Approval flow
When approval is triggered
Section titled “When approval is triggered”Any transfer where amount ≥ threshold on the API key triggers the approval flow. The operation does not fail — it pauses and waits.
-
Agent calls
nuez.transferorPOST /v1/transferswith an amount at or above the threshold. -
nuez pauses execution and creates a pending approval record. The API does not return immediately — the connection stays open (long poll) for up to 5 minutes.
-
WhatsApp notification is sent to the phone number on the account. The message includes:
- Amount and currency
- Destination (CVU/CBU/alias and name if available)
- Description from the request
- Approve / Reject buttons
-
Owner responds with a tap. nuez records the decision.
-
If approved: the transfer executes over Transferencias 3.0 and a signed webhook fires. The MCP tool or API call returns with the transaction result.
If rejected: the API call returns
402 Payment Requiredwith"status": "rejected". The agent receives this as a tool error and can handle it in its reasoning loop.
Timeout behavior
Section titled “Timeout behavior”If no response is received within 5 minutes, the pending approval expires. The API call returns 408 Request Timeout with "status": "expired". The agent should surface this to the user and retry if needed.
Handling approval in agents
Section titled “Handling approval in agents”For MCP agents, Claude handles the wait transparently — it receives the tool result when the approval resolves. For REST API integrations, use the GET /v1/transfers/{id} endpoint to poll status if you don’t want to hold the connection open.
Testing approval flow
Section titled “Testing approval flow”Use your sandbox key (nz_sk_test_...) and set a low threshold (e.g. 1). Every test transfer will trigger the approval flow without moving real money.