API ReferenceAgent

Get agent mandate

GET
/v1/agent/mandates/{id}

The agent's own mandate, status and spend

Authorization

agent
AuthorizationBearer <token>

Per-agent API key from POST /v1/agents

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/agent/mandates/string"
{  "mandate": {    "mandate_id": "string",    "user_id": "string",    "agent_id": "string",    "purpose": "string",    "constraints": {      "currency": "string",      "max_total": "string",      "max_per_transaction": "string",      "max_transactions": 0,      "allowed_categories": [        "PHYSICAL_GOODS"      ],      "payee_allowlist": [        "string"      ],      "payee_blocklist": [        "string"      ],      "max_quantity_per_item": 0,      "require_human_approval_over": "string",      "require_merchant_order": true,      "sku_allowlist": [        "string"      ]    },    "created_at": "string",    "expires_at": "string",    "version": 0  },  "status": "draft",  "spend": {    "spent_minor": 0,    "reserved_minor": 0,    "tx_count": 0  }}