Skip to main content
DELETE
/
v1
/
agents
/
{publicKey}
Delete agent and all associated data (own agent only)
curl --request DELETE \
  --url https://relay.mrphub.io/v1/agents/{publicKey} \
  --header 'X-M2M-Signature: <api-key>'
{
  "error": {
    "code": "bad_request",
    "message": "<string>",
    "details": "<unknown>",
    "request_id": "<string>"
  }
}

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

Agent deleted