Skip to main content
POST
/
applications
/
v1
/
deployments
Create deployment
curl --request POST \
  --url https://api.case.dev/applications/v1/deployments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectId": "<string>",
  "target": "production",
  "ref": "<string>"
}
'

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
projectId
string
required

Project ID to deploy

target
enum<string>
default:production

Deployment target environment

Available options:
production,
preview
ref
string

Git branch, tag, or commit to deploy. Defaults to the project branch.

Response

Deployment started successfully