Skip to main content
DELETE
/
agents
/
{agentId}
Delete agent
curl --request DELETE \
  --url https://api.natural.co/agents/{agentId} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "type": "agent",
    "id": "agt_3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r",
    "attributes": {
      "name": "Carrier Payment Agent v2.1",
      "description": "Autonomous agent that pays delivery carriers",
      "status": "ACTIVE",
      "limits": {
        "perTransaction": 1000
      },
      "createdAt": "2026-01-04T15:30:00Z",
      "createdBy": "usr_550e8400e29b41d4a716446655440000",
      "updatedAt": "2026-01-04T15:30:00Z",
      "updatedBy": "usr_550e8400e29b41d4a716446655440000",
      "observability": null
    },
    "relationships": {
      "party": {
        "data": {
          "type": "party",
          "id": "pty_7c9e6679e29b41d4a716446655440001"
        }
      }
    }
  },
  "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

agentId
string
required

Agent ID

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

Response

Successful Response

data
AgentResource · object
required
meta
DeletedMeta · object
required