v15

latestOpenAPI 3.0.0raw.githubusercontent.com2026-04-287323136.0 KB
Approval Queue

Resolve an approval request

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}

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
}