Skip to main content
DELETE
/
agents
/
invitations
/
{id}
Revoke a pending agent invitation
curl --request DELETE \
  --url https://api.natural.co/agents/invitations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Idempotency-Key: <idempotency-key>'
{
  "data": {
    "type": "agentDelegationInvitation",
    "id": "adi_550e8400e29b41d4a716446655440000",
    "attributes": {
      "developerName": "Acme Inc",
      "email": "ops@customer.com",
      "agentName": "Invoice Agent",
      "permissions": [
        "payments.read"
      ],
      "limits": {
        "perTransaction": 100000
      },
      "status": "CANCELED",
      "effectiveStatus": "CANCELED",
      "expiresAt": "2026-01-12T10:15:00.000Z",
      "acceptedAt": null,
      "declinedAt": null,
      "cancelReason": "DEVELOPER_REVOKED",
      "createdAt": "2026-01-05T10:15:00.000Z",
      "updatedAt": "2026-01-05T10:20:00.000Z"
    },
    "relationships": {
      "developerParty": {
        "data": {
          "type": "party",
          "id": "pty_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d"
        }
      },
      "customerParty": {
        "data": null
      },
      "agent": {
        "data": {
          "type": "agent",
          "id": "agt_3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f"
        }
      },
      "agentDelegation": {
        "data": null
      }
    }
  },
  "meta": {
    "deleted": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required

Unique key for idempotent request handling. If a request with the same key was already processed, the original response is returned.

X-Agent-ID
string | null

Agent ID (agt_xxx) identifying which agent is making the request.

X-Instance-ID
string | null

Required when X-Agent-ID is present. Session or conversation ID for agent observability.

Maximum string length: 1024

Path Parameters

id
string
required

Invitation ID (adi_*)

Pattern: ^adi_[0-9a-f]{32}$

Response

Successful Response

data
AgentDelegationInvitationResource · object
required
meta
DeletedMeta · object
required