Skip to content

Start a deploy

POST /api/sites/{id}/deploy

Builds the site's docs from its docs branch and publishes them. The build runs after the call returns: follow it at the url in the response. Needs a key with the deploy scope. A key may start 10 deploys a minute.

Authorization

Authorizationheaderrequired

Bearer token

Path parameters

idstringrequired

The site's ID, which is in its dashboard address.

Responses

application/json

The build has started.

buildobjectrequired
ShowHide child attributes
idstringrequired

The build's ID.

urlstringrequired

The build's page in the dashboard.

Request

cURL
curl --request POST \
--url 'https://app.specly.xyz/api/sites/{id}/deploy' \
--header 'Authorization: Bearer <token>'

Response

202
{
"build": {
"id": "5b0e6c3a-1f4d-4c1e-9a53-0d8f6f2f7a10",
"url": "https://app.specly.xyz/sites/2f6c1b8e-7d3a-4e55-b1c9-3a9d0c4e8f12/deploys/5b0e6c3a-1f4d-4c1e-9a53-0d8f6f2f7a10"
}
}
Was this page helpful?