Skip to main content
POST
/
agents
Create agent
curl --request POST \
  --url https://api.natural.co/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "attributes": {
      "name": "Carrier Payment Agent v2.1",
      "description": "Autonomous agent that pays delivery carriers",
      "limits": {
        "perTransaction": 100000
      }
    }
  }
}
'
{
  "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"
        }
      }
    }
  }
}

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
Idempotency-Key
string | null

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

Body

application/json
data
object
required

Resource object

Response

Successful Response

data
AgentResource · object
required