Skip to main content
GET
/
v1
/
agents
/
{publicKey}
/
webhook
Get webhook configuration
curl --request GET \
  --url https://relay.mrphub.io/v1/agents/{publicKey}/webhook \
  --header 'X-M2M-Signature: <api-key>'
{
  "url": "<string>",
  "enabled": true,
  "consecutive_failures": 123,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

X-M2M-Signature
string
header
required

Ed25519 request signing. Every authenticated request requires three headers:

  • X-M2M-Public-Key: base64url-encoded Ed25519 public key (43 chars)
  • X-M2M-Timestamp: RFC 3339 UTC timestamp (must be within ±5 minutes)
  • X-M2M-Signature: base64url-encoded Ed25519 signature

The signature is computed over the canonical string:

METHOD\nPATH\nTIMESTAMP\nBODY_SHA256

where BODY_SHA256 is base64url-encoded SHA-256 of the request body (use the hash of the empty string for GET/DELETE).

Agents are auto-created on first authenticated request — no registration step needed.

Path Parameters

publicKey
string
required

Base64url-encoded Ed25519 public key (43 characters)

Pattern: ^[A-Za-z0-9_-]{43}$

Response

Webhook config

url
string
required
enabled
boolean
required
consecutive_failures
integer
required
created_at
string<date-time>
required