curl "https://win.oneshotagent.com/v1/approvals/appr_01J..." \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 signed proof, scope=read>"
{
"success": true,
"data": {
"approval_id": "appr_01J...",
"source": "api",
"tool": null,
"status": "pending",
"action_summary": "Send the signed LOI to Acme",
"preview": {
"contact": "[email protected]"
},
"policy_rule": null,
"approver": {
"channel": "email",
"address": "o***@acme.com"
},
"expires_at": "2026-10-19T13:00:00.000Z",
"use_by": null,
"decided_at": null,
"decided_via": null,
"decision_note": null,
"decision_receipt_id": null,
"consumed_at": null,
"notified": true,
"notify_error": null,
"compute": null,
"created_at": "2026-10-19T12:00:00.000Z"
}
}
Approvals
Get approval
Read an approval and poll for its decision
GET
/
v1
/
approvals
/
{id}
curl "https://win.oneshotagent.com/v1/approvals/appr_01J..." \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 signed proof, scope=read>"
{
"success": true,
"data": {
"approval_id": "appr_01J...",
"source": "api",
"tool": null,
"status": "pending",
"action_summary": "Send the signed LOI to Acme",
"preview": {
"contact": "[email protected]"
},
"policy_rule": null,
"approver": {
"channel": "email",
"address": "o***@acme.com"
},
"expires_at": "2026-10-19T13:00:00.000Z",
"use_by": null,
"decided_at": null,
"decided_via": null,
"decision_note": null,
"decision_receipt_id": null,
"consumed_at": null,
"notified": true,
"notify_error": null,
"compute": null,
"created_at": "2026-10-19T12:00:00.000Z"
}
}
Authentication
X-Agent-ID plus a signed x-agent-proof with scope: "read". See proof authentication.
curl "https://win.oneshotagent.com/v1/approvals/appr_01J..." \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 signed proof, scope=read>"
Parameters
Response
200 returns the approval. Poll until status leaves pending. 404 approval_not_found means it does not exist or belongs to another agent.
{
"success": true,
"data": {
"approval_id": "appr_01J...",
"source": "api",
"tool": null,
"status": "pending",
"action_summary": "Send the signed LOI to Acme",
"preview": {
"contact": "[email protected]"
},
"policy_rule": null,
"approver": {
"channel": "email",
"address": "o***@acme.com"
},
"expires_at": "2026-10-19T13:00:00.000Z",
"use_by": null,
"decided_at": null,
"decided_via": null,
"decision_note": null,
"decision_receipt_id": null,
"consumed_at": null,
"notified": true,
"notify_error": null,
"compute": null,
"created_at": "2026-10-19T12:00:00.000Z"
}
}
api, policy or compute. tool and policy_rule are nullable; action_summary and nullable preview describe the action.ISO deadline.
created_at is the creation time; nullable use_by, decided_at and consumed_at record later stages.X-Approval-Id once approved.