Skip to main content
POST
/
agent-delegation-invitations
Create agent delegation invitation
curl --request POST \
  --url https://api.natural.co/agent-delegation-invitations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "attributes": {
      "customerEmail": "customer@example.com",
      "permissions": [
        "payments.create",
        "wallets.read"
      ],
      "proposedAgents": [
        {
          "agentId": "agt_3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r",
          "permissions": [
            "payments.create"
          ]
        }
      ],
      "expiresInDays": 7
    }
  }
}
'
{
  "data": {
    "type": "delegationInvitation",
    "id": "din_550e8400e29b41d4a716446655440000",
    "attributes": {
      "customerEmail": "customer@example.com",
      "developerName": null,
      "status": "PENDING",
      "permissions": [
        "payments.create",
        "wallets.read"
      ],
      "expiresAt": "2026-01-11T15:30:00Z",
      "token": null,
      "magicLink": null,
      "createdAt": "2026-01-04T15:30:00Z"
    },
    "relationships": {
      "delegateeParty": {
        "data": {
          "type": "party",
          "id": "pty_7c9e6679e29b41d4a716446655440002"
        }
      },
      "delegatorParty": {
        "data": null
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Headers

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

Body

application/json
data
DelegationInvitationCreateData · object
required

Response

Successful Response

data
DelegationInvitationResource · object
required