Skip to main content
POST
/
static-sites
/
deployments
Deploy static site
curl --request POST \
  --url https://api.sevalla.com/v2/static-sites/deployments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "static_site_id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
  "branch": "main"
}
'
{
  "deployment": {
    "id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
    "status": "success"
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Body

application/json
static_site_id
string<uuid>
required

ID of the static site to deploy

Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

branch
string

Git branch to deploy

Minimum string length: 1
Example:

"main"

Response

Default Response

deployment
object
required