Deployments
Trigger a deployment
Manually trigger a fresh sync from the connected GitHub repo. Use this when you need to rebuild without pushing a new commit (e.g. after rotating secrets).
Trigger a deployment
curl --request POST \
--url 'https://api.nookdocs.com/v1/projects/{id}/deployments' \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"commit_sha": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"pages_total": 123,
"pages_failed": 123,
"pages_success": 123
}Authorizations
AuthorizationstringheaderrequiredAPI key issued from your dashboard (Settings → API Keys). Format: nook_... — pass as Authorization: Bearer nook_.... Keys carry scopes (projects:read/write, pages:read, deployments:read/trigger, analytics:read) — calls without the required scope return 403.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path parameters
idstring (uuid)pathrequiredResponse
Deployment queued
idstring (uuid)requiredstatusenum<string>requiredoptions:
queuedbuildingdeployedfailedcommit_shastringGit commit SHA that triggered the deployment
project_idstring (uuid)requiredstarted_atstring (date-time)requiredfinished_atstring (date-time)Null while the deployment is still in progress
pages_totalintegerTotal page count for this deployment
pages_failedintegerPages that failed during sync
pages_successintegerPages successfully synced
errorstringrequiredMachine-readable error code (e.g. `invalid_request`, `unauthorized`, `not_found`)
messagestringrequiredHuman-readable error description