Skip to main content

Pipelines API

Autessa Pipelines: start, watch, promote and roll back runs

  • Base URL: https://api.autessa.com
  • Auth: your API key in the Authorization header, with no Bearer prefix.
  • Guide: Pipelines
  • Status: 0 live, 6 in preview. Preview operations are marked.

A pipeline's runs, newest first​

Preview GET/clients/pipelines/{pipelineId}/runs

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
pipelineIdpathstringYes
cursorquerystring

Response

FieldTypeRequiredDescription
itemsarray of RunDto
nextCursorstringPass as cursor for the next page; absent or null on the last page.
curl -X GET "https://api.autessa.com/clients/pipelines/V1StGXR8Z5/runs" \
-H "Authorization: $AUTESSA_API_KEY"

Start a run from a git ref of the pipeline's repo​

Preview POST/clients/pipelines/{pipelineId}/runs

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
pipelineIdpathstringYes

Request body

FieldTypeRequiredDescription
refstringYesGit ref (branch, tag or commit) to fetch from the pipeline's repo

Response

FieldTypeRequiredDescription
runRunDto
curl -X POST "https://api.autessa.com/clients/pipelines/V1StGXR8Z5/runs" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ref":"main"}'

One run with its stages, steps and diffs​

Preview GET/clients/pipelines/{pipelineId}/runs/{runId}

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
pipelineIdpathstringYes
runIdpathstringYes

Response

FieldTypeRequiredDescription
runRunDto
curl -X GET "https://api.autessa.com/clients/pipelines/V1StGXR8Z5/runs/V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY"

Approve a stage waiting for approval​

Preview POST/clients/pipelines/{pipelineId}/runs/{runId}/promote

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
pipelineIdpathstringYes
runIdpathstringYes

Request body

FieldTypeRequiredDescription
stageNamestring

Response

FieldTypeRequiredDescription
runRunDto
curl -X POST "https://api.autessa.com/clients/pipelines/V1StGXR8Z5/runs/V1StGXR8Z5/promote" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"stageName":"string"}'

Roll a deployed stage back​

Preview POST/clients/pipelines/{pipelineId}/runs/{runId}/rollback

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
pipelineIdpathstringYes
runIdpathstringYes

Request body

FieldTypeRequiredDescription
stageNamestring

Response

FieldTypeRequiredDescription
runRunDto
curl -X POST "https://api.autessa.com/clients/pipelines/V1StGXR8Z5/runs/V1StGXR8Z5/rollback" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"stageName":"string"}'

GitHub push webhook (HMAC-verified with the pipeline's webhook secret)​

Preview POST/clients/pipelines/{pipelineId}/webhook/github

Verified with the pipeline's secret (X-Hub-Signature-256); the repo tarball is fetched with a stored token.

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
pipelineIdpathstringYes
X-GitHub-Eventheaderstring
X-Hub-Signature-256headerstringHMAC-SHA256 of the body with the pipeline's webhook secret.

Response

FieldTypeRequiredDescription
messagestring
runIdstring
curl -X POST "https://api.autessa.com/clients/pipelines/V1StGXR8Z5/webhook/github" \
-H "Authorization: $AUTESSA_API_KEY"