List deployments
const url = 'https://api.deploybase.eu/api/v1/api/v1/deployments';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/deployments \ --header 'Authorization: <Authorization>'Returns a paginated list of deployments with optional filters
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”Page number (default: 1)
Items per page (default: 20, max: 100)
Filter by project ID (UUID)
Filter by status (pending, queued, building, deployed, failed, cancelled)
Responses
Section titled “ Responses ”OK
object
object
object
object
BuildQueuedAt is when the build entered the queue. Subtract it from build_started_at for the queue wait.
ContentHash is the digest of the upload’s sorted manifest (path+hash pairs). Two uploads of identical content share it, which is what makes a re-upload a no-op.
ErrorCategory of a failed build: build_error, configuration, platform, timeout or platform_restart. Always a category, never a raw error message.
FailureSignature identifies this build’s classified failure (DEP-544): a truncated SHA-256 of stage, category and the classified error line. Equal signatures across a project’s deployments are “the same failure again”, which is what the auto-deploy circuit breaker counts. NULL for a successful or unclassified build.
FailureSummary is why this build failed and, when we know one, the settings change that would fix it (DEP-673, migration 000110). Written once with the failed status. nil for anything that did not fail; for a failure recorded before the column existed, the logs endpoint derives one from the build log’s summary block.
object
Class is one of the FailureClass* values.
FirstErrorLine is the first line of the build’s own output that reads as the cause, not the exit-code line that follows it. Empty when there is no such line.
Fix is the settings change that would clear this failure, when we know one.
object
Reason is the one-sentence classified error, the same line the log’s summary block holds.
Stage is where the build stopped: Configuration, Clone, Build, Upload, Initialization.
Suggestion is what to do about it, in a sentence or two.
Was holds the values the failed build ran with, for the fields Fix changes.
object
Framework the project was built as, e.g. “astro”. “unknown” when unresolved.
object
object
PackageManager used for this build: npm, pnpm, yarn or bun.
Queue is set only while Status is queued: where this deployment sits in the build queue (DEP-326). Never stored.
object
object
Source is where this deployment’s files came from: git or upload.
Provenance (DEP-674, migration 000113): how the request that created this deployment was authenticated (proven) and which of our clients says it sent it (claimed, from X-Deploybase-Client). Written once by Create and never by Update. nil = unknown: a deployment from before 000113, a client that sent no or an unknown header, or a webhook push, which has no client.
UploadLabel is the user-supplied name for an upload, standing in for the commit message a git deployment carries.
Warnings are user-facing notes about what this deploy published (DEP-442). Written once, with the terminal status, in the same UPDATE. Each stores a code; the wording and the remedy are rendered from it at read time — see deployment_warning.go.
object
The build timing, set only on BUILD_NEAR_TIME_LIMIT. SlowestStage is empty when the log held no finished stage.
Paths are the entries the warning is about, relative to the output directory. Empty for warnings that are about configuration rather than files.
Example
{ "data": { "deployments": [ { "source": "git", "status": "pending", "trigger_client": "dashboard", "trigger_source": "session", "warnings": [ { "code": "OUTPUT_DIR_IS_REPO_ROOT" } ] } ] }}Bad Request
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built