Approvals
GET/v1/approvals/{approval_id}

Get approval

View as .md
curl -X GET "https://api.52-28-238-205.sslip.io/v1/approvals/{approval_id}" \  -H "Cookie: <console session cookie>"

Returns one approval with its payment intent, merchant, reason, expiry countdown and the budget after this payment. Callable with a console session or an API key holding approval:decide; a team approver can open only its own team's approvals.

Server URLhttps://api.52-28-238-205.sslip.io
GET/v1/approvals/{approval_id}Base URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • approval_idstringrequired

    Approval id (apr_...).

Requires permissionapproval:decide
Held by owner, admin (with a grant), finance (with a grant), 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

approval_id*Approval Id

Approval id (apr_...).

Response Body

Success.

application/json
  1. response
id*Id
status*Status

Current state; the allowed values and moves are in the state machines reference.

state*State
intent_id?|

Payment intent id (pi_...).

plan_id?|

Plan id (pln_...).

team_id?|

Team id (team_...).

created_at?|

Creation time, ISO 8601 UTC.

expires_at?|

Expiry time, ISO 8601 UTC.

decided_by?|null
decided_at?string|null
reject_reason?string|null
message?string|null
reason_code?|

Machine-readable reason from the reason code catalog, for example ABOVE_AUTO_THRESHOLD.

reason?|null
merchant?|null
amount_base_units?|

Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).

amount_cents?integer|null
asset?|

Asset symbol, for example USDC or USDT; USD for card amounts.

network?|

Network as a CAIP-2 id, for example eip155:84532 (Base Sepolia) or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet).

network_name?string|null
rail?|

Payment rail: x402 (stablecoin over HTTP 402), wdk (direct USDT transfer) or card.

service?|null
agent?|null
purpose?|

The agent's stated purpose (up to 500 characters). Shown to approvers and screened by Shield; not in the public receipt.

plan_terms?|null
intent?|null
closed_mandate_hash?string|null
approvers?array<>|null
budget?|null
[key: string]?any