Approvals and input requests
Treat permission to perform an operation separately from information supplied to an Agent. Only expose requests the current application/user is authorized to handle.
Choose the interaction surface
Invocation exposes waiting states and approval counts, but no dedicated Invocation approval-list, reply or follow-up-message endpoint. Its execution_id is opaque and must not be interpreted as a public Task ID. Sanitized events do not guarantee approval/input-request identifiers.
A minimal Invocation-only application should show the wait and let an authorized operator handle it in Console. Embedded interactions need an authorized native Task workflow, or Goal Experience approval projections for a multi-iteration objective. Never select the first pending project approval and assume it belongs to the current job.
Native Task approvals
When a supported flow has supplied the authorized Task/Approval identity:
| Action | Endpoint | Permission |
|---|---|---|
| Read | GET /api/v1/approvals/{id} | approvals:read |
| Approve | POST /api/v1/approvals/{id}/approve | approvals:write |
| Deny | POST /api/v1/approvals/{id}/deny | approvals:write |
curl --fail-with-body \
"https://api.orbitspace.dev/api/v1/approvals/$APPROVAL_ID/approve" \
-H "Authorization: Bearer $ORBITSPACE_ACCESS_TOKEN" \
-H 'Content-Type: application/json' -d '{}'Display request_summary, target, status and expires_at. Decode Base64 request_json when the canonical request must be shown. The public decision request does not accept a caller-selected decided_by or tenant; identity comes from authentication.
A decision authorizes that operation only. Refresh expired, cancelled or concurrently resolved requests. Automatic approval cannot override a policy that requires an explicit human decision.
Native input requests
Read GET /api/v1/tasks/{task_id}/input-requests or GET /api/v1/input-requests/{id}. Render and validate against the returned response_schema, then submit:
curl --fail-with-body \
"https://api.orbitspace.dev/api/v1/input-requests/$INPUT_REQUEST_ID:reply" \
-H "Authorization: Bearer $ORBITSPACE_ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
--data-binary @input-reply.jsonReplace the version in input-reply.json with the current request version and adapt response to its schema. Reads need tasks:read; replies need tasks:write; attachments also need Artifact access.
Repeating the same actor, key and payload recovers the same submission. Competing or changed replies conflict. A reply resumes the same Run rather than creating a new task, and may wait behind resource-cleanup and scheduling barriers.
Goal Experience approvals
Read the Goal Experience projection, then use POST /api/v1/goal-experiences/{id}/approvals/{approval_id}:decide with {"approve":true} or false. Appropriate Task/approval permissions and the application's business ownership checks still apply.
Capability and lifecycle
Interactive questions require explicitly enabled compatible Worker input-request capability. Adding a reply button does not enable it. Waiting input, paused execution and a terminal report asking for more information are different states; terminal work is not automatically reopened by another message.