Approval Queue

Resolve an approval request

Changed on

Approve or deny a pending approval request. If approved, the gateway resumes the full task pipeline (stages 2–8: credit debit → compute → IPFS → fingerprint → receipt). If denied, the task is marked FAILED and no credits are consumed. Both JWT and API key authentication are supported — enabling programmatic resolution from SDKs and scripts without the dashboard.

patch/api/v1/approvals/{id}

Request

  • Base URL
    https://api.agentchain.cloud
  • URL
    https://api.agentchain.cloud/api/v1/approvals/{id}
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

idstring required

Approval request ID

Request body

decision'approved' | 'denied' required

Approval decision

notestring

Optional note explaining the decision (e.g. "Verified invoice with finance team")

Response

Approval resolved successfully

successboolean
decision'approved' | 'denied'
taskIdstring
receiptobject

Full task receipt (only present when approved)

Example response

{
  "success": true
}

Changes

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      removed the non-success response with the status

    • info

      endpoint added