SDK reference
Pipelines
GET/
The workflows of a branch (default: the default branch), with their problems and last run.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/workflows' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Turns a workflow on or off (off: no event starts it).
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/workflows/{file}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"enabled": true
}'POST/
Runs a workflow by hand on a branch with inputs (workflow_dispatch).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/workflows/{file}/dispatches' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"ref": "example"
}'GET/
Runs, newest first, filtered by workflow, branch, status, actor and event.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A run (an attempt of it): jobs with steps, the job graph, approvals, artifacts.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Cancels a run: queued and waiting jobs end at once, running ones are stopped. Needs git:write.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/cancel' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Re-runs a finished run as a new attempt: all jobs, the failed ones, or one job (and what needs it).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/rerun' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"failedOnly": false,
"job": "example"
}'POST/
Approves or rejects the jobs of the current attempt waiting for an environment (its reviewers only).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/approvals' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"environment": "example",
"decision": "approve"
}'GET/
One job of a run: status, runner, environment, steps, annotations, summary and error.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/jobs/{jobId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A page of a job's log after cursor; done when the job finished and everything was read.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/jobs/{jobId}/logs' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The whole log as text (up to 5 MB).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/jobs/{jobId}/logs/raw' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A download link for one of the run's artifacts (15 minutes); attempt picks an earlier attempt's.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/artifacts/{artifact}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Deletes an artifact of the run now. Needs git:admin.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/artifacts/{artifact}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
What the runs of commits add up to (up to 100: ?sha=…&sha=…).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/statuses' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Environments with their rules, and the names of their secrets and variables.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Creates or changes an environment's rules: reviewers (up to 6 people or groups; empty means no approval), preventSelfReview, waitMinutes, branchPolicy (all, protected or selected with branchPatterns). Needs git:admin.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"reviewers": [
{
"type": "user",
"id": "<id>"
}
],
"preventSelfReview": false,
"waitMinutes": 0
}'DELETE/
Removes an environment with its secrets and variables. Needs git:admin.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sets an environment secret (value, at most the platform's size). Only that environment's jobs get it, after its rules pass. Needs git:admin.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}/secrets/{secret}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"value": "example"
}'DELETE/
Removes an environment secret. Needs git:admin.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}/secrets/{secret}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sets an environment variable (value). Needs git:admin.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}/variables/{variable}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"value": "example"
}'DELETE/
Removes an environment variable. Needs git:admin.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}/variables/{variable}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Secret names (never values): the repository's, and the org's visible to it. Needs git:write.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/secrets' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sets a repository secret (value): KMS-encrypted, never returned, handed only to running jobs. Needs git:admin.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/secrets/{secret}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"value": "example"
}'DELETE/
Removes a repository secret. Needs git:admin.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/secrets/{secret}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Variables (values are visible): the repository's and the org's visible to it.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/variables' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sets a repository variable (value, readable in vars). Needs git:admin.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/variables/{variable}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"value": "example"
}'DELETE/
Removes a repository variable. Needs git:admin.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/variables/{variable}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The repository's caches: key, ref, size and when each was last used.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/caches' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Removes caches: one key (on one ref, or every ref), or all of them.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/caches' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Org secret names and which repositories see them (never values).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/secrets' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sets an organization secret: value (required for a new one), and visibility (all repositories, or selected with repoIds). Needs git:admin.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/secrets/{secret}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"visibility": "all",
"repoIds": [],
"value": "example"
}'DELETE/
Removes an organization secret. Needs git:admin.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/secrets/{secret}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Organization variables with their values and which repositories see them.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/variables' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sets an organization variable: value, visibility and repoIds as for secrets. Needs git:admin.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/variables/{variable}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"value": "example"
}'DELETE/
Removes an organization variable. Needs git:admin.
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/variables/{variable}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Minutes this month (or month=2026-10) against the plan, by runner type.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/usage' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Hosted runner types the org can use, and its self-hosted runners (devices approved for pipelines).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/runners' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
A self-hosted runner's own labels (runs-on: [self-hosted, <label>]).
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/runners/{deviceId}/labels' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"labels": [
"example"
]
}'