Get a deployment
Returns a single deployment with its full status, page counts, and timestamps. Useful for polling a deployment in progress.
GET/projects/{id}/deployments/{deploymentId}
Authorization
Requires: BearerAuth
Path parameters
idstring (uuid)pathrequiredProject UUID
deploymentIdstring (uuid)pathrequiredDeployment UUID
Response
200 — Deployment found
idstring (uuid)requiredstatusenum (queued, building, deployed...)requiredcommit_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
404 — Deployment not found
errorstringrequiredMachine-readable error code (e.g. `invalid_request`, `unauthorized`, `not_found`)
messagestringrequiredHuman-readable error description
Get a deployment
curl --request GET \
--url 'https://api.codivdocs.com/v1/projects/{id}/deployments/{deploymentId}' \
--header 'Authorization: Bearer <token>'{
"id": "00000000-0000-0000-0000-000000000000",
"status": "queued",
"commit_sha": "<string>",
"project_id": "00000000-0000-0000-0000-000000000000",
"started_at": "2026-04-13T03:26:01.609Z",
"finished_at": "2026-04-13T03:26:01.609Z",
"pages_total": 0,
"pages_failed": 0,
"pages_success": 0
}