Agents
POST/v1/agents/{id}/freeze

Freeze agent

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/agents/{id}/freeze" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"reason":"not_delivered"}'

Freezes an active agent so its payments are denied until it is unfrozen, with an optional reason. Console session or API key with agent:revoke; only an active agent can be frozen (409).

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/agents/{id}/freezeBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Agent id (agt_...).

Body

application/json. Fields are listed under Request body below.

Requires permissionagent:revoke
Held by owner, admin, approver (own team). The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Agent id (agt_...).

Request Body

application/json
  1. body
reason?string|null

Response Body

Success.

application/json
  1. response
agent*
[key: string]?any