Developer docs v0.1.0

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

NameTypeRequiredDescription
limitintegernoPage size (1–100). · ≥ 1, ≤ 100, default 20
starting_afterstringnoObject ID; return objects after it (ascending ID order). · 26 chars
order"asc" | "desc"nodesc lists newest first. · default "asc"
status"active" | "disabled"noFilter by status.

Responses

StatusMeaningBody / error codes
200Success.object
400Invalid query.invalid_query_param
401Missing or invalid API key.authentication_error
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server 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

NameTypeRequiredDescription
Idempotency-KeystringnoMakes 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

FieldTypeRequiredDescription
oauthAgentOAuthIdentityno
namestringyes≤ 255 chars
operatorstringno≤ 255 chars
api_key_idstringnoAn active agent API key to tie to this agent. · 26 chars
signing_keysobject[]noReplaces 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[].xstringyesThe 32-byte public key, base64url (43 characters).
require_signaturebooleannoRefuse unsigned requests from the agent's key. Needs at least one signing key (signing_key_required).
signature_agentstring | nullnoOrigin 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

StatusMeaningBody / error codes
201Created.Agent
400Invalid body.invalid_json signing_key_required validation_failed
401Missing or invalid API key.authentication_error
404The API key was not found.resource_missing
409The key is already tied to another active agent.agent_key_in_use
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server 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

NameTypeRequiredDescription
idstringyesObject ID (ULID). · 26 chars

Responses

StatusMeaningBody / error codes
200Success.Agent
401Missing or invalid API key.authentication_error
404Not found, or not yours.resource_missing
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server 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

NameTypeRequiredDescription
idstringyesObject ID (ULID). · 26 chars

Headers

NameTypeRequiredDescription
Idempotency-KeystringnoMakes 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

FieldTypeRequiredDescription
oauthanynoReplace the OAuth identity; null revokes OAuth access.
namestringno
operatorstring | nullno
api_key_idstring | nullno
status"active" | "disabled"no
signing_keysobject[]noReplaces 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[].xstringyesThe 32-byte public key, base64url (43 characters).
require_signaturebooleannoRefuse unsigned requests from the agent's key. Needs at least one signing key (signing_key_required).
signature_agentstring | nullnoOrigin 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

StatusMeaningBody / error codes
200Success.Agent
400Invalid body.invalid_json signing_key_required validation_failed
401Missing or invalid API key.authentication_error
404Not found, or not yours.resource_missing
409The key is already tied to another active agent.agent_key_in_use
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server 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"
}