Annotations and workflow API
Operate annotation work through stages and tasks with ownership, actions, overrides, and history.
Stage and task discovery
Method
Endpoint
Purpose
curl --fail-with-body --silent --show-error \
"$UNITLAB_API_URL/api/sdk/projects/PROJECT_ID/workflow/stages/STAGE_ID/tasks/?include_unavailable=0" \
-H "Authorization: Api-Key $UNITLAB_API_KEY"Ownership and actions
Method
Endpoint
Body
curl --fail-with-body --silent --show-error \
-X POST "$UNITLAB_API_URL/api/sdk/workflow-tasks/TASK_ID/actions/" \
-H "Authorization: Api-Key $UNITLAB_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"action":"approve",
"idempotency_key":"YOUR_UUID",
"expected_stage_id":"REVIEW_STAGE_ID",
"rejection_reason":"",
"comment":"QA policy checks passed"
}'Bulk manager operations
Method
Endpoint
Purpose
Request operating contract
Concern
Required behavior