Approval Queue
Register approval webhook callback
Register a one-shot callback URL for a specific approval request. When resolved, AgentChain POSTs the result with dual-signature headers: x-agentchain-signature (HMAC-SHA256 for web2 verification) and x-agentchain-eip712-sig (EIP-712 for crypto-native verification). The callback fires once and is then deleted. Primary use case: Trigger.dev wait.forToken() integration for zero-cost checkpoint-resume approval flows.
post/api/v1/approvals/{id}/callback
Path parameters
idstring required
Approval request ID
Request body
Example request
{
"callbackUrl": "https://api.trigger.dev/wait/token/abc123"
}Response
Callback registered
Example response
{
"registered": true
}