SDK reference
Serverless App Services
GET/
Lists the organization's Serverless App Services.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a Serverless App Service. Without location, the registry's default location is used.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"slug": "example"
}'GET/
A Serverless App Service with its most recent deployments and, once it has a production deployment, its production hostname.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Updates the name, repository link, production branch, root directory, build and install commands, function memory and max duration (for new deployments; null returns to the default) or deployment protection (standard or off, applied to existing deployment URLs at once). repoId: null unlinks the repository; productionHold: false lets new production builds go live again after a rollback.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"buildCommand": {},
"installCommand": {},
"outputDirectory": {}
}'GET/
The production deployment's cron jobs (cactive.json), whether they're paused, and each path's last scheduled call.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/crons' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Pauses or resumes the Serverless App Service's cron jobs. Schedules stay and are disabled, and stay disabled when a deployment, promotion or rollback replaces them, until resumed.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/crons' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"paused": true
}'GET/
The org's groups (Tenant → Groups) that protection can be limited to, by name.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/protection/groups' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates (or replaces) the protection bypass secret: automation sends it as the x-si-protection-bypass header or query parameter. Only its hash is stored; it's shown once.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/protection/bypass' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Revokes the protection bypass secret: requests carrying it get the sign-in from then on.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/protection/bypass' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Moves a Serverless App Service to another org the caller administers. Deployments, domains, environment variables (re-encrypted for the new org) and crons move with it; the repository stays and is disconnected, and linked storage must be unlinked first.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/transfer' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"orgId": "<orgId>"
}'DELETE/
Deletes a project: its domains (routes and certificates), crons, server functions, routes, deployment records and environment variables. Linked storage is unlinked, not deleted, and the repository is kept.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"