Agents
Agents you let act for your customers.
GET /v1/agents
List agents
Cursor-paginated (limit, starting_after, order).
- Authentication
- Merchant API key
- Effect
- Read-only.
Query parameters
| Name | Type | Required | Description |
|---|
limit | integer | no | Page size (1–100). · ≥ 1, ≤ 100, default 20 |
starting_after | string | no | Object ID; return objects after it (ascending ID order). · 26 chars |
order | "asc" | "desc" | no | desc lists newest first. · default "asc" |
status | "active" | "disabled" | no | Filter by status. |
Responses
| Status | Meaning | Body / error codes |
|---|
| 200 | Success. | object |
| 400 | Invalid query. | invalid_query_param |
| 401 | Missing or invalid API key. | authentication_error |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
| 500 | Server error. | api_error |
Example response
{
"object": "list",
"url": "string",
"has_more": false,
"data": [
{
"oauth": null,
"object": "agent",
"id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"merchant_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"name": "string",
"operator": "string",
"api_key_id": "string",
"status": "active",
"created_at": "2026-10-25T18:00:00.000Z",
"updated_at": "2026-10-25T18:00:00.000Z",
"signing_keys": [
{
"kid": "string",
"kty": "OKP",
"crv": "Ed25519",
"x": "string"
}
],
"require_signature": false,
"signature_agent": "string"
}
]
}
POST /v1/agents
Register an agent
Registers an agent you let act for your customers. Tie it to an agent API key so only that key can charge its mandates. A disabled agent's mandates stop working at once. Standard keys only; an agent key cannot manage agents.
- Authentication
- Merchant API key
- Effect
- Creates an agent.
Headers
| Name | Type | Required | Description |
|---|
Idempotency-Key | string | no | Makes retries safe: same key + body replays the stored response (idempotency-replayed: true); a different body, or an agent key or dashboard session reusing another credential's key, returns 409 idempotency_key_in_use. · ≤ 96 chars |
Request body
| Field | Type | Required | Description |
|---|
oauth | AgentOAuthIdentity | no | |
name | string | yes | ≤ 255 chars |
operator | string | no | ≤ 255 chars |
api_key_id | string | no | An active agent API key to tie to this agent. · 26 chars |
signing_keys | object[] | no | Replaces the agent's signing keys. Up to 3 Ed25519 public keys as JWKs (kty OKP, crv Ed25519, x). · ≤ 3 items |
signing_keys[].kty | "OKP" | yes | |
signing_keys[].crv | "Ed25519" | yes | |
signing_keys[].x | string | yes | The 32-byte public key, base64url (43 characters). |
require_signature | boolean | no | Refuse unsigned requests from the agent's key. Needs at least one signing key (signing_key_required). |
signature_agent | string | null | no | Origin of the operator's key directory (no path). null removes it. Must be a public https address. |
Example request
{
"oauth": {
"issuer": "https://example.com/hooks/payware",
"subject": "string",
"client_id": "string"
},
"name": "string",
"operator": "string",
"api_key_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"signing_keys": [
{
"kty": "OKP",
"crv": "Ed25519",
"x": "string"
}
],
"require_signature": false,
"signature_agent": "string"
}
Responses
| Status | Meaning | Body / error codes |
|---|
| 201 | Created. | Agent |
| 400 | Invalid body. | invalid_json signing_key_required validation_failed |
| 401 | Missing or invalid API key. | authentication_error |
| 404 | The API key was not found. | resource_missing |
| 409 | The key is already tied to another active agent. | agent_key_in_use |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
| 500 | Server error. | api_error |
Example response
{
"oauth": null,
"object": "agent",
"id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"merchant_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"name": "string",
"operator": "string",
"api_key_id": "string",
"status": "active",
"created_at": "2026-10-25T18:00:00.000Z",
"updated_at": "2026-10-25T18:00:00.000Z",
"signing_keys": [
{
"kid": "string",
"kty": "OKP",
"crv": "Ed25519",
"x": "string"
}
],
"require_signature": false,
"signature_agent": "string"
}
GET /v1/agents/:id
Retrieve an agent
- Authentication
- Merchant API key
- Effect
- Read-only.
Path parameters
| Name | Type | Required | Description |
|---|
id | string | yes | Object ID (ULID). · 26 chars |
Responses
| Status | Meaning | Body / error codes |
|---|
| 200 | Success. | Agent |
| 401 | Missing or invalid API key. | authentication_error |
| 404 | Not found, or not yours. | resource_missing |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
| 500 | Server error. | api_error |
Example response
{
"oauth": null,
"object": "agent",
"id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"merchant_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"name": "string",
"operator": "string",
"api_key_id": "string",
"status": "active",
"created_at": "2026-10-25T18:00:00.000Z",
"updated_at": "2026-10-25T18:00:00.000Z",
"signing_keys": [
{
"kid": "string",
"kty": "OKP",
"crv": "Ed25519",
"x": "string"
}
],
"require_signature": false,
"signature_agent": "string"
}
POST /v1/agents/:id
Update an agent
Rename it, change the operator, tie it to a different agent key (or null to untie), or disable and re-enable it.
- Authentication
- Merchant API key
- Effect
- Updates the agent.
Path parameters
| Name | Type | Required | Description |
|---|
id | string | yes | Object ID (ULID). · 26 chars |
Headers
| Name | Type | Required | Description |
|---|
Idempotency-Key | string | no | Makes retries safe: same key + body replays the stored response (idempotency-replayed: true); a different body, or an agent key or dashboard session reusing another credential's key, returns 409 idempotency_key_in_use. · ≤ 96 chars |
Request body
| Field | Type | Required | Description |
|---|
oauth | any | no | Replace the OAuth identity; null revokes OAuth access. |
name | string | no | |
operator | string | null | no | |
api_key_id | string | null | no | |
status | "active" | "disabled" | no | |
signing_keys | object[] | no | Replaces the agent's signing keys. Up to 3 Ed25519 public keys as JWKs (kty OKP, crv Ed25519, x). · ≤ 3 items |
signing_keys[].kty | "OKP" | yes | |
signing_keys[].crv | "Ed25519" | yes | |
signing_keys[].x | string | yes | The 32-byte public key, base64url (43 characters). |
require_signature | boolean | no | Refuse unsigned requests from the agent's key. Needs at least one signing key (signing_key_required). |
signature_agent | string | null | no | Origin of the operator's key directory (no path). null removes it. Must be a public https address. |
Example request
{
"oauth": null,
"name": "string",
"operator": "string",
"api_key_id": "string",
"status": "active",
"signing_keys": [
{
"kty": "OKP",
"crv": "Ed25519",
"x": "string"
}
],
"require_signature": false,
"signature_agent": "string"
}
Responses
| Status | Meaning | Body / error codes |
|---|
| 200 | Success. | Agent |
| 400 | Invalid body. | invalid_json signing_key_required validation_failed |
| 401 | Missing or invalid API key. | authentication_error |
| 404 | Not found, or not yours. | resource_missing |
| 409 | The key is already tied to another active agent. | agent_key_in_use |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
| 500 | Server error. | api_error |
Example response
{
"oauth": null,
"object": "agent",
"id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"merchant_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"name": "string",
"operator": "string",
"api_key_id": "string",
"status": "active",
"created_at": "2026-10-25T18:00:00.000Z",
"updated_at": "2026-10-25T18:00:00.000Z",
"signing_keys": [
{
"kid": "string",
"kty": "OKP",
"crv": "Ed25519",
"x": "string"
}
],
"require_signature": false,
"signature_agent": "string"
}