Cards
POST/v1/cards

Create card

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

Issues a virtual card in the card sandbox for one agent, with an optional spend limit, auto-approve amount and merchant categories (amounts in cents). Requires card:manage.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/cardsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

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

Requires permissioncard:manage
Held by owner, admin, finance. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
agent_id*Agent Id

Agent id (agt_...).

spend_limit_cents?|

Card spend limit in US cents.

auto_approve_cents?|

Card amount in US cents up to which authorizations are approved without a person.

merchant_categories?array<string>|null

Response Body

Success.

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