Skip to main content
Resolves a pending approval request with an approve or deny decision. Use it after create_card or get_card_details returns a 202 that requires approval; on approval it automatically completes the follow-up action and returns the result.

Parameters

ParameterTypeRequiredDescription
approval_idstringYesThe approval request ID.
decisionstringYesapproved or denied.
actionstringYesThe original action type from the approval prompt: card_details or transaction.
resource_idstringYesFor card_details, the card ID. For transaction, the approval ID.

Returns

A message describing the outcome, with a status of denied, card_details, card_created, or unknown_action. If the decision is denied, no action is taken. If approved with action: "card_details" (where resource_id is the card ID), it fetches and returns the full card details, with the PAN and CVV appearing only in the text. If approved with action: "transaction" (where resource_id is the approval ID), it creates the card and returns its ID, last 4 digits, expiry, balance, and status.

Example

{ "name": "approve_request", "arguments": { "approval_id": "appr_abc123", "decision": "approved", "action": "card_details", "resource_id": "card_xyz789" } }