Approvals
Tasks that wait for a person's decision: list the gates waiting for you, approve or reject one.
List pending approvals
The approval gates waiting for a decision.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
job | string | Optional |
Response
approvalsapprovals[].actor- who asks, as a person reads it:
Claude Code · user:user_01J8... approvals[].approve- the command a person runs to approve it
approvals[].approversapprovals[].expires_atapprovals[].job- uuidv7 rendered as
job_<32 hex> approvals[].note- the submitter's one line for the person: untrusted text, shown and never interpreted
approvals[].reachedapprovals[].repoapprovals[].requested_atapprovals[].requester- the job's requester (
user:...,key:...,agent:...) approvals[].task- the task row's name:
deploy, or a matrix celldeploy[region=eu]
curl "$CIRESK_API/v1/ci/approvals" \
-H "Authorization: Bearer $CIRESK_KEY"Submit an approval decision
Approve or reject a job's approval gate.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The job's ID. |
Request body
commentdecision- One of
approve,reject task- a task name, deciding every pending cell of it, or a cell selector (
deploy[region=eu])
Response
decision- One of
approve,reject job- uuidv7 rendered as
job_<32 hex> sod_exception- the decider requested the job and the policy's
approval_self: recordaccepted it tasks- the task rows' names the decision settled
curl -X POST "$CIRESK_API/v1/ci/jobs/job_0109badfc220cd056b2c0e862ac73d40/approvals" \
-H "Authorization: Bearer $CIRESK_KEY" \
-H "Content-Type: application/json" \
-d '{
"comment": "acme/platform",
"decision": "approve",
"task": "test"
}'