Approve an agent action
Approve a pending agent action, allowing Grid to proceed with execution. The action must have status PENDING_APPROVAL. Once approved, Grid executes the underlying operation (quote execution or transfer) and the action transitions to APPROVED.
For EXECUTE_QUOTE actions, note that the underlying quote may have expired between submission and approval — in that case the action will transition to FAILED instead.
This endpoint is called by the platform’s backend using platform credentials, not by the agent itself.
Authorizations
API token authentication using format <api token id>:<api client secret>
Path Parameters
System-generated unique agent identifier
Unique identifier of the agent action to approve
Response
Action approved successfully. Returns the updated AgentAction.
An action submitted by an agent that may require platform approval before execution. All agent-initiated operations (quote execution, transfers) are represented as AgentActions, giving the platform a consistent object to approve, reject, and audit regardless of the underlying operation type.
System-generated unique identifier for this action.
"AgentAction:019542f5-b3e7-1d02-0000-000000000099"
The agent that submitted this action.
"Agent:019542f5-b3e7-1d02-0000-000000000042"
The customer on whose behalf the action was submitted.
"Customer:019542f5-b3e7-1d02-0000-000000000010"
Platform-specific ID of the customer.
"user-a1b2c3"
Status of an agent action.
PENDING_APPROVAL, APPROVED, REJECTED, FAILED The type of action the agent is requesting.
EXECUTE_QUOTE, ISSUE_PURCHASE_CARD When the action expires. For EXECUTE_QUOTE, this is the quote's own expiry. A PENDING_APPROVAL action that reaches this time transitions to FAILED with failureReason QUOTE_EXPIRED; approval never creates a replacement quote. An ISSUE_PURCHASE_CARD action expires five minutes after it is submitted and then fails with APPROVAL_EXPIRED.
"2025-10-03T15:05:00Z"
When the action was submitted by the agent.
"2025-10-03T15:00:00Z"
When the action was last updated.
"2025-10-03T15:02:00Z"
The quote being executed. Contains the full amount, currency, destination, and rate details needed to present an approval decision to the user. Present for EXECUTE_QUOTE.
The purchase card requested. Present for ISSUE_PURCHASE_CARD, so an approval decision can show its kind, amount or cap, and source account.
- Single-Use Card
- Merchant-Locked Card
The issued purchase card, populated once an ISSUE_PURCHASE_CARD action has completed.
The resulting transaction, populated once the action has been approved and execution has begun. Absent while the action is PENDING_APPROVAL or REJECTED.
- Incoming Transaction
- Outgoing Transaction
- Card Transaction
Human-readable reason provided by the platform when rejecting the action. Only present when status is REJECTED.
"Transaction amount exceeds customer's current risk limit."
Machine-readable reason the action failed. Only present when status is FAILED; rejectionReason is used only for REJECTED actions.
QUOTE_EXPIRED, POLICY_DENIED, AGENT_INACTIVE, EXECUTION_FAILED, CARD_ISSUANCE_FAILED, APPROVAL_EXPIRED, PRICE_MOVED