curl --request POST \
--url https://sequencer.example.com/v1/credit/reclaim \
--header 'Content-Type: application/json' \
--data '{
"authId": "0x1122334455667788990011223344556677889900112233445566778899001122",
"callerType": "agent",
"requestedAt": "1735690000",
"agentId": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"agentSig": "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba"
}'
{
"ok": true,
"authId": "0x1122334455667788990011223344556677889900112233445566778899001122"
}
Reclaim an expired authorization to return funds to the agent balance
curl --request POST \
--url https://sequencer.example.com/v1/credit/reclaim \
--header 'Content-Type: application/json' \
--data '{
"authId": "0x1122334455667788990011223344556677889900112233445566778899001122",
"callerType": "agent",
"requestedAt": "1735690000",
"agentId": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"agentSig": "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba"
}'
{
"ok": true,
"authId": "0x1122334455667788990011223344556677889900112233445566778899001122"
}
This endpoint allows agents or the sequencer to reclaim expired authorizations that were never executed. When reclaimed, the authorized amount is returned to the agent’s available balance.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nhestrompia/shielded-x402/llms.txt
Use this file to discover all available pages before exploring further.
agent or sequencer.agent.agent.sequencer.true on success.| Code | Description |
|---|---|
INVALID_REQUEST | Malformed request payload or validation error |
NOT_FOUND | Authorization not found |
authorization not found | AuthId doesn’t exist |
unauthorized sequencer reclaim caller | Invalid or missing admin token for sequencer reclaim |
agentId and agentSig are required for agent reclaim | Missing required fields for agent reclaim |
agent reclaim caller mismatch | AgentId doesn’t match the authorization’s agent |
agent signing metadata missing | Agent hasn’t made any authorizations yet (no signature metadata stored) |
invalid agent reclaim signature | Agent signature verification failed |
only ISSUED authorizations can be reclaimed | Authorization status is not ISSUED (may be EXECUTED or already RECLAIMED) |
authorization not yet expired | Cannot reclaim before the authorization’s expiresAt timestamp |
authorization already reclaimed | Authorization was already reclaimed |
INVARIANT_VIOLATION outstanding balance lower than reclaim amount | Internal accounting error |
curl --request POST \
--url https://sequencer.example.com/v1/credit/reclaim \
--header 'Content-Type: application/json' \
--data '{
"authId": "0x1122334455667788990011223344556677889900112233445566778899001122",
"callerType": "agent",
"requestedAt": "1735690000",
"agentId": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"agentSig": "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba"
}'
{
"ok": true,
"authId": "0x1122334455667788990011223344556677889900112233445566778899001122"
}