Skip to main content

Deploy API

Autessa CDK: diff, deploy, roll back and pull a project in one tenant (deploy key)

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

Apply a manifest to a stage (idempotent, matched on logicalId); poll the deployment​

Preview POST/clients/deploy/apply

Idempotent, matched on logicalId; publishes draft to published. Deletes only with prune. Needs scope DEPLOY_APPLY.

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

Request body

FieldTypeRequiredDescription
allowPhonePurchasebooleanThe stage's allowPhonePurchase (see preview). Default false.
driftstringAlias of permissionDrift
idempotencyKeystringYesRetrying with the same key returns the first deployment (the Idempotency-Key header works too)
manifestobjectYes
manifestHashstring
permissionDriftREPORT | RESET
pruneboolean
stagestringYes
variablesobject

Response

FieldTypeRequiredDescription
changesarray of Change
deploymentIdstring
errorstring
finishedAtstringISO-8601 time.
kindstring
manifestHashstring
rollbackOfDeploymentIdstring
stagestring
startedAtstringISO-8601 time.
statusRUNNING | SUCCEEDED | FAILED | ROLLED_BACK
curl -X POST "https://api.autessa.com/clients/deploy/apply" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"manifest":{},"stage":"dev","idempotencyKey":"string"}'

Deployments, newest first​

Preview GET/clients/deploy/deployments

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

Parameters

NameInTypeRequiredDescription
stagequerystring
limitqueryinteger

Response

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

One deployment: status, changes, error​

Preview GET/clients/deploy/deployments/{deploymentId}

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

Parameters

NameInTypeRequiredDescription
deploymentIdpathstringYes

Response

FieldTypeRequiredDescription
changesarray of Change
deploymentIdstring
errorstring
finishedAtstringISO-8601 time.
kindstring
manifestHashstring
rollbackOfDeploymentIdstring
stagestring
startedAtstringISO-8601 time.
statusRUNNING | SUCCEEDED | FAILED | ROLLED_BACK
curl -X GET "https://api.autessa.com/clients/deploy/deployments/V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY"

Pull: export the tenant's resources as Manifest v2 plus source files​

Preview GET/clients/deploy/export

Needs scope DEPLOY_PULL.

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

Parameters

NameInTypeRequiredDescription
resourcesquerystringComma-separated kinds (tables,tools,agents,managers,scheduledEvents,webhooks,mcpServers,apps); default all
includequerystringsource,apps

Response

FieldTypeRequiredDescription
downloadUrlstring
curl -X GET "https://api.autessa.com/clients/deploy/export" \
-H "Authorization: $AUTESSA_API_KEY"

Upload synth files, each part named sha256:<hex> of its content; files already stored are skipped​

Preview POST/clients/deploy/files

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

Also accepts multipart/form-data:

FieldTypeRequiredDescription
emptyboolean

Response

FieldTypeRequiredDescription
hashesarray of stringHashes stored (already present ones are skipped).
curl -X POST "https://api.autessa.com/clients/deploy/files" \
-H "Authorization: $AUTESSA_API_KEY"

Which of these content hashes still need uploading​

Preview GET/clients/deploy/files/missing

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

Parameters

NameInTypeRequiredDescription
hashesquerystringYesComma-separated sha256:<hex> hashes

Response

FieldTypeRequiredDescription
hashesarray of stringHashes stored (already present ones are skipped).
curl -X GET "https://api.autessa.com/clients/deploy/files/missing" \
-H "Authorization: $AUTESSA_API_KEY"

Server-side diff of a manifest against a stage; flags every change that widens access​

Preview POST/clients/deploy/preview

Needs scope DEPLOY_DIFF.

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

Request body

FieldTypeRequiredDescription
allowPhonePurchasebooleanThe stage's allowPhonePurchase: let the deploy buy a phone number when no company number meets a PhoneNumber's requirement (the preview marks it WILL PURCHASE). Default false.
driftstringAlias of permissionDrift
manifestobjectYesManifest v2 (see GET /clients/deploy/schema)
manifestHashstringInstead of manifest: the content hash of an uploaded manifest.json
permissionDriftREPORT | RESETThe stage's permissions.drift: REPORT (default) lists sharing changed outside the project; RESET puts it back to what the project declares
pruneboolean
stagestringYes
variablesobjectStage variables, resolved into {{name}} placeholders

Response

FieldTypeRequiredDescription
changesarray of Change
costBearingboolean
driftedPermissionsarray of DriftedPermission
warningsarray of string
widensboolean
curl -X POST "https://api.autessa.com/clients/deploy/preview" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"manifest":{},"stage":"dev"}'

Re-apply an earlier good manifest to a stage​

Preview POST/clients/deploy/rollback

Needs scope DEPLOY_ROLLBACK.

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

Request body

FieldTypeRequiredDescription
stagestringYes
toDeploymentIdstringDeployment to go back to; default = the last successful one before the current

Response

FieldTypeRequiredDescription
changesarray of Change
deploymentIdstring
errorstring
finishedAtstringISO-8601 time.
kindstring
manifestHashstring
rollbackOfDeploymentIdstring
stagestring
startedAtstringISO-8601 time.
statusRUNNING | SUCCEEDED | FAILED | ROLLED_BACK
curl -X POST "https://api.autessa.com/clients/deploy/rollback" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"stage":"dev"}'

The Manifest v2 JSON Schema​

Preview GET/clients/deploy/schema

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

Response

FieldTypeRequiredDescription
schemaobject
curl -X GET "https://api.autessa.com/clients/deploy/schema" \
-H "Authorization: $AUTESSA_API_KEY"