latestOpenAPI 3.0.32026-08-20146131.7 MB
672b1916ba61
Wallets
Cancel wallet approval request
Cancels a pending wallet operation approval request. The requester may cancel its own request; otherwise the resolver must be an active member of the assigned approval group, or an organization/API admin when no group is assigned. A user and the API keys they created are treated as the same requester.
post/v1/wallets/approval-requests/{approvalRequestId}/cancel
Path parameters
approvalRequestIdstring required
Approval request ID.
Example:appr_example
Approval request ID.
Headers
x-project-idstring
Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.
Example:prj_example
Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.
Response
Wallet approval request
Example response
{
"data": {
"approvalRequest": {
"id": "appr_example",
"projectId": "prj_example",
"status": "pending",
"provider": "fireblocks",
"providerReference": "fb_tx_123",
"expiresAt": "2025-01-01T00:00:00.000Z",
"resolvedAt": "2025-01-01T00:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"wallet": {
"walletId": "privy_wallet_123",
"publicKey": "So11111111111111111111111111111111111111112"
},
"operation": {
"walletId": "privy_wallet_123",
"source": "api",
"operationFamily": "payment",
"operationType": "payment_transfer_execute",
"status": "pending_approval",
"executionStartedAt": "2025-01-01T00:00:00.000Z",
"executionCompletedAt": "2025-01-01T00:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
},
"policyEvaluation": {
"decision": "approval_required",
"reasonCode": "wallet_policy_match",
"requiresApproval": true,
"evaluatedAt": "2025-01-01T00:00:00.000Z"
}
}
},
"meta": {
"requestId": "req_example",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}