Request an agent top-up approval
Requests Link approval to credit an owned agent. amountUsdCents is an integer 50–100000; reason must be 100–2000 chars. Optional intentId binds the top-up to a retained service intent. Agent tokens may only top up themselves (403 agent_mismatch). Typically invoked automatically by the gateway for retained intents.
/v1/payments/topupsAuthorizationBearer token (JWT) · headerrequiredClerk human owner session JWT; iss must equal the configured Clerk issuer and the identity must be a human (not agent) owner with a verified email.
AuthorizationBearer token (JWT) · headerrequiredVerified AgentID agent JWT (iss https://auth.agentid.com) or an agentsub OAuth access token (typ at+jwt, iss https://api.agentsub.dev, scope agentsub:agent). The agent's human owner must exist in Clerk with the same verified email.
AuthorizationOAuth2 access token · headerrequiredagentsub:ownerIdempotency-KeystringrequiredRequired only where this parameter is listed. Same payload/key recovers prior operation; secret replays omit plaintext.
application/jsonagentIdstringrequiredamountUsdCentsintegerrequiredreasonstringrequiredintentIdstringTop-up request (approval pending)
idstringagentIdstringamountUsdCentsintegerstatusstringkindstringcheckoutlinkapprovalUrlstring<uri>checkoutUrlstring<uri>nextActionobjectShow propertiesHide properties
resolutionstringactionUrlstring<uri>intentIdstringinvalid_input or idempotency_required
codestringrequiredowner_requiredagent_mismatchidempotency_requiredinvalid_inputstripe_signature_requiredpayment_unavailablestatusintegerrequiredagent_mismatch or owner_required
codestringrequiredowner_requiredagent_mismatchidempotency_requiredinvalid_inputstripe_signature_requiredpayment_unavailablestatusintegerrequiredpayment_unavailable
codestringrequiredowner_requiredagent_mismatchidempotency_requiredinvalid_inputstripe_signature_requiredpayment_unavailablestatusintegerrequired