Skip to main content
DELETE
/
customers
/
{customerId}
/
agents
/
{agentId}
Revoke agent access
curl --request DELETE \
  --url https://api.natural.co/customers/{customerId}/agents/{agentId} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "pty_4a8c9823f39c42a5b817556766551112",
    "type": "customer",
    "attributes": {
      "name": "Acme Co",
      "email": "ops@acme.com",
      "createdAt": "2026-01-04T15:30:00.000Z",
      "delegation": {
        "id": "dlg_550e8400e29b41d4a716446655440000",
        "status": "ACTIVE",
        "permissions": [
          "payments.read"
        ],
        "createdAt": "2026-01-10T12:00:00.000Z"
      },
      "agents": [
        {
          "id": "agt_3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
          "name": "Invoice Agent",
          "status": "ACTIVE",
          "permissions": [
            "payments.read"
          ],
          "limits": {
            "perTransaction": 100000
          }
        }
      ]
    }
  },
  "meta": {
    "deleted": true
  }
}

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

Path Parameters

customerId
string
required

Customer party ID

Pattern: ^pty_[0-9a-f]{32}$
agentId
string
required

Agent ID

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

Response

Successful Response

data
CustomerActiveResource · object
required

An active customer.