SDK reference

Pipelines

Each route's function in the SDK, its call beside the same request in cURL.
orgReposPipelinesWorkflows

GET/v1/orgs/:orgId/repos/:name/pipelines/workflows

The workflows of a branch (default: the default branch), with their problems and last run.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/workflows' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgReposPipelinesWorkflowsByFile

PUT/v1/orgs/:orgId/repos/:name/pipelines/workflows/:file

Turns a workflow on or off (off: no event starts it).

Parameters and answers
curl -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
  }'
postOrgReposPipelinesWorkflowsDispatches

POST/v1/orgs/:orgId/repos/:name/pipelines/workflows/:file/dispatches

Runs a workflow by hand on a branch with inputs (workflow_dispatch).

Parameters and answers
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"
  }'
orgReposPipelinesRuns

GET/v1/orgs/:orgId/repos/:name/pipelines/runs

Runs, newest first, filtered by workflow, branch, status, actor and event.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesRunsByNumber

GET/v1/orgs/:orgId/repos/:name/pipelines/runs/:number

A run (an attempt of it): jobs with steps, the job graph, approvals, artifacts.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgReposPipelinesRunsCancel

POST/v1/orgs/:orgId/repos/:name/pipelines/runs/:number/cancel

Cancels a run: queued and waiting jobs end at once, running ones are stopped. Needs git:write.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/cancel' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgReposPipelinesRunsRerun

POST/v1/orgs/:orgId/repos/:name/pipelines/runs/:number/rerun

Re-runs a finished run as a new attempt: all jobs, the failed ones, or one job (and what needs it).

Parameters and answers
curl -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"
  }'
postOrgReposPipelinesRunsApprovals

POST/v1/orgs/:orgId/repos/:name/pipelines/runs/:number/approvals

Approves or rejects the jobs of the current attempt waiting for an environment (its reviewers only).

Parameters and answers
curl -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"
  }'
orgReposPipelinesRunsJobsByJobId

GET/v1/orgs/:orgId/repos/:name/pipelines/runs/:number/jobs/:jobId

One job of a run: status, runner, environment, steps, annotations, summary and error.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/jobs/{jobId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesRunsJobsLogs

GET/v1/orgs/:orgId/repos/:name/pipelines/runs/:number/jobs/:jobId/logs

A page of a job's log after cursor; done when the job finished and everything was read.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/jobs/{jobId}/logs' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesRunsJobsLogsRaw

GET/v1/orgs/:orgId/repos/:name/pipelines/runs/:number/jobs/:jobId/logs/raw

The whole log as text (up to 5 MB).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/jobs/{jobId}/logs/raw' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesRunsArtifactsByArtifact

GET/v1/orgs/:orgId/repos/:name/pipelines/runs/:number/artifacts/:artifact

A download link for one of the run's artifacts (15 minutes); attempt picks an earlier attempt's.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/artifacts/{artifact}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgReposPipelinesRunsArtifactsByArtifact

DELETE/v1/orgs/:orgId/repos/:name/pipelines/runs/:number/artifacts/:artifact

Deletes an artifact of the run now. Needs git:admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/runs/{number}/artifacts/{artifact}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesStatuses

GET/v1/orgs/:orgId/repos/:name/pipelines/statuses

What the runs of commits add up to (up to 100: ?sha=…&sha=…).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/statuses' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesEnvironments

GET/v1/orgs/:orgId/repos/:name/pipelines/environments

Environments with their rules, and the names of their secrets and variables.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgReposPipelinesEnvironmentsByEnvironment

PUT/v1/orgs/:orgId/repos/:name/pipelines/environments/:environment

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.

Parameters and answers
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
  }'
deleteOrgReposPipelinesEnvironmentsByEnvironment

DELETE/v1/orgs/:orgId/repos/:name/pipelines/environments/:environment

Removes an environment with its secrets and variables. Needs git:admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgReposPipelinesEnvironmentsSecretsBySecret

PUT/v1/orgs/:orgId/repos/:name/pipelines/environments/:environment/secrets/:secret

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.

Parameters and answers
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"
  }'
deleteOrgReposPipelinesEnvironmentsSecretsBySecret

DELETE/v1/orgs/:orgId/repos/:name/pipelines/environments/:environment/secrets/:secret

Removes an environment secret. Needs git:admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}/secrets/{secret}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgReposPipelinesEnvironmentsVariablesByVariable

PUT/v1/orgs/:orgId/repos/:name/pipelines/environments/:environment/variables/:variable

Sets an environment variable (value). Needs git:admin.

Parameters and answers
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"
  }'
deleteOrgReposPipelinesEnvironmentsVariablesByVariable

DELETE/v1/orgs/:orgId/repos/:name/pipelines/environments/:environment/variables/:variable

Removes an environment variable. Needs git:admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/environments/{environment}/variables/{variable}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesSecrets

GET/v1/orgs/:orgId/repos/:name/pipelines/secrets

Secret names (never values): the repository's, and the org's visible to it. Needs git:write.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/secrets' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgReposPipelinesSecretsBySecret

PUT/v1/orgs/:orgId/repos/:name/pipelines/secrets/:secret

Sets a repository secret (value): KMS-encrypted, never returned, handed only to running jobs. Needs git:admin.

Parameters and answers
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"
  }'
deleteOrgReposPipelinesSecretsBySecret

DELETE/v1/orgs/:orgId/repos/:name/pipelines/secrets/:secret

Removes a repository secret. Needs git:admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/secrets/{secret}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesVariables

GET/v1/orgs/:orgId/repos/:name/pipelines/variables

Variables (values are visible): the repository's and the org's visible to it.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/variables' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgReposPipelinesVariablesByVariable

PUT/v1/orgs/:orgId/repos/:name/pipelines/variables/:variable

Sets a repository variable (value, readable in vars). Needs git:admin.

Parameters and answers
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"
  }'
deleteOrgReposPipelinesVariablesByVariable

DELETE/v1/orgs/:orgId/repos/:name/pipelines/variables/:variable

Removes a repository variable. Needs git:admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/variables/{variable}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgReposPipelinesCaches

GET/v1/orgs/:orgId/repos/:name/pipelines/caches

The repository's caches: key, ref, size and when each was last used.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/caches' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgReposPipelinesCaches

DELETE/v1/orgs/:orgId/repos/:name/pipelines/caches

Removes caches: one key (on one ref, or every ref), or all of them.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/repos/{name}/pipelines/caches' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgPipelinesSecrets

GET/v1/orgs/:orgId/pipelines/secrets

Org secret names and which repositories see them (never values).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/secrets' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgPipelinesSecretsBySecret

PUT/v1/orgs/:orgId/pipelines/secrets/:secret

Sets an organization secret: value (required for a new one), and visibility (all repositories, or selected with repoIds). Needs git:admin.

Parameters and answers
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"
  }'
deleteOrgPipelinesSecretsBySecret

DELETE/v1/orgs/:orgId/pipelines/secrets/:secret

Removes an organization secret. Needs git:admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/secrets/{secret}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgPipelinesVariables

GET/v1/orgs/:orgId/pipelines/variables

Organization variables with their values and which repositories see them.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/variables' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgPipelinesVariablesByVariable

PUT/v1/orgs/:orgId/pipelines/variables/:variable

Sets an organization variable: value, visibility and repoIds as for secrets. Needs git:admin.

Parameters and answers
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"
  }'
deleteOrgPipelinesVariablesByVariable

DELETE/v1/orgs/:orgId/pipelines/variables/:variable

Removes an organization variable. Needs git:admin.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/variables/{variable}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgPipelinesUsage

GET/v1/orgs/:orgId/pipelines/usage

Minutes this month (or month=2026-10) against the plan, by runner type.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/usage' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgPipelinesRunners

GET/v1/orgs/:orgId/pipelines/runners

Hosted runner types the org can use, and its self-hosted runners (devices approved for pipelines).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pipelines/runners' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgPipelinesRunnersLabels

PUT/v1/orgs/:orgId/pipelines/runners/:deviceId/labels

A self-hosted runner's own labels (runs-on: [self-hosted, <label>]).

Parameters and answers
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"
    ]
  }'