Skip to content

Builds API

List the builds of the workspace, newest first

The builds of your workspace, so a version can be made from one without knowing its id. Filter with status (succeeded lists the builds that can become a version, failed the ones to fix) and component_id.

Operation listBuilds. Scopes: components:read.

Parameters

Name In Type Required Description
limit query integer (1 to 100, default 20) no Page size, 1 to 100.
cursor query string no Opaque next_cursor of the previous page, for the same list and filters. Omit for the first page.
status query one of queued, building, checking, succeeded, failed no Only the builds in this status.
component_id query string no Only the builds of sources uploaded to this component (older builds have none).

Responses

Status Meaning Content type
200 One page of builds. application/json
400 validation_failed (bad limit or filter) or invalid_cursor. application/problem+json
401 unauthenticated: no credentials, or credentials that prove nothing. application/problem+json
403 insufficient_scope: the credential lacks a scope this route needs (see missing_scopes). permission_denied: the current workspace role does not allow the action. oauth_consent_required: an OAuth token whose person has not yet chosen the workspace and the permissions (see consent_url). mfa_required: a portal session that must still verify or set up MFA (see mfa_reason). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
405 method_not_allowed: the path exists, but not for this method; Allow lists the methods it answers. application/problem+json
429 rate_limited: the limit of the route class (rate_limit.limit_class: read, write, publish, heavy, approval, diff, metrics, destructive or ip) was reached. Wait Retry-After seconds. rate_limiter_unavailable (503) is answered for heavy routes and destructive calls when the limiter itself fails, and for a valid OAuth token with no grant when the consent-link limiter fails (never a 401, so an MCP client does not log in again). application/problem+json
500 internal_error (nothing about the failure; quote request_id) or configuration_error. application/problem+json
503 database_unavailable: the API could not reach its database (timeout, dropped connection). Wait Retry-After seconds and send the same request again: repeating is safe with the same Idempotency-Key; without it a POST may already have been applied. application/problem+json
curl
curl "https://api.taggor.dev/v1/builds" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/builds", {
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
Example response
{
"data": [
{
"id": "bld_0123456789abcdefghjkmnpqrs",
"status": "succeeded",
"created_at": "2026-11-02T12:00:00.000Z",
"updated_at": "2026-11-02T12:00:09.000Z",
"duration_ms": 9000,
"gates": [],
"errors": [],
"warnings": [],
"version_id": null,
"preview_url": null,
"tag": "price-card",
"preview_state": "none"
}
],
"next_cursor": null,
"has_more": false
}

The state of a build, with its gate results and structured errors

Operation getBuild. Scopes: components:read.

Parameters

Name In Type Required Description
build_id path string yes Public build id.
wait query integer (0 to 30) no Long poll: seconds to wait (up to 30) for the status to change before answering. A finished build answers at once.
status query one of queued, building, checking, succeeded, failed no With wait: the status you last saw. The answer comes as soon as the status differs (default: the status found when the request arrives).

Responses

Status Meaning Content type
200 The build. errors[0] has file, line, column, code and hint. application/json
400 validation_failed: a bad path parameter or body field. application/problem+json
401 unauthenticated: no credentials, or credentials that prove nothing. application/problem+json
403 insufficient_scope: the credential lacks a scope this route needs (see missing_scopes). permission_denied: the current workspace role does not allow the action. oauth_consent_required: an OAuth token whose person has not yet chosen the workspace and the permissions (see consent_url). mfa_required: a portal session that must still verify or set up MFA (see mfa_reason). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no build with this id in the caller's workspace. application/problem+json
405 method_not_allowed: the path exists, but not for this method; Allow lists the methods it answers. application/problem+json
429 rate_limited: this workspace already has the most build streams it may keep open, or the build's log has all the readers it allows. Retry after Retry-After seconds. Also rate_limited: the limit of the route class was reached (rate_limit.limit_class); wait Retry-After seconds. application/problem+json
500 internal_error (nothing about the failure; quote request_id) or configuration_error. application/problem+json
503 database_unavailable: the API could not reach its database (timeout, dropped connection). Wait Retry-After seconds and send the same request again: repeating is safe with the same Idempotency-Key; without it a POST may already have been applied. application/problem+json
curl
curl "https://api.taggor.dev/v1/builds/bld_0123456789abcdefghjkmnpqrs" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/builds/bld_0123456789abcdefghjkmnpqrs", {
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
Example response
{
"id": "bld_0123456789abcdefghjkmnpqrs",
"status": "failed",
"created_at": "2026-11-02T12:00:00.000Z",
"updated_at": "2026-11-02T12:00:09.000Z",
"duration_ms": 9000,
"gates": [],
"errors": [
{
"code": "TS2322",
"severity": "error",
"message": "Type 'string' is not assignable to type 'number'.",
"hint": "Change the type of the value or of the prop.",
"docs_url": "https://docs.taggor.dev/diagnostics/TS#TS2322",
"file": "src/index.tsx",
"line": 12,
"column": 7,
"snippet": null,
"manifest_path": null
}
],
"warnings": [],
"version_id": null,
"preview_url": null,
"tag": null,
"preview_state": "none"
}

The progress events of a build as Server-Sent Events

Operation streamBuildEvents. Scopes: components:read.

Parameters

Name In Type Required Description
build_id path string yes Public build id.
follow query one of true, false no true (default): keep the stream open until the build is done. false: only what is stored now.
last-event-id header string (up to 32 characters) no The seq of the last event received; the stream resumes after it.

Responses

Status Meaning Content type
200 text/event-stream: one frame per event, id: is the event's seq, event: its type (stage_started, stage_finished, diagnostic, retry, done), data: its JSON in snake_case. Comment lines (: keepalive) keep the connection alive. The stream closes after done, or after a fixed time: reconnect with Last-Event-ID. A build that has no events yet gives an empty stream, not an error. text/event-stream
400 validation_failed: a bad path parameter or body field. application/problem+json
401 unauthenticated: no credentials, or credentials that prove nothing. application/problem+json
403 insufficient_scope: the credential lacks a scope this route needs (see missing_scopes). permission_denied: the current workspace role does not allow the action. oauth_consent_required: an OAuth token whose person has not yet chosen the workspace and the permissions (see consent_url). mfa_required: a portal session that must still verify or set up MFA (see mfa_reason). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no build with this id in the caller's workspace. application/problem+json
405 method_not_allowed: the path exists, but not for this method; Allow lists the methods it answers. application/problem+json
429 rate_limited: this workspace already has the most build streams it may keep open, or the build's log has all the readers it allows. Retry after Retry-After seconds. Also rate_limited: the limit of the route class was reached (rate_limit.limit_class); wait Retry-After seconds. application/problem+json
500 internal_error (nothing about the failure; quote request_id) or configuration_error. application/problem+json
503 database_unavailable: the API could not reach its database (timeout, dropped connection). Wait Retry-After seconds and send the same request again: repeating is safe with the same Idempotency-Key; without it a POST may already have been applied. application/problem+json
curl
curl "https://api.taggor.dev/v1/builds/bld_0123456789abcdefghjkmnpqrs/events" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/builds/bld_0123456789abcdefghjkmnpqrs/events", {
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
const reader = response.body?.getReader();
const result = await reader?.read();
console.log(result);

The log of a build as text, or followed live as Server-Sent Events

Operation getBuildLogs. Scopes: components:read.

Parameters

Name In Type Required Description
build_id path string yes Public build id.
follow query one of true, false no true: stream new lines as Server-Sent Events (event: log, id: is the event's seq) until the build is done. Default false: the lines stored now as text/plain.
last-event-id header string (up to 32 characters) no The seq of the last event received; the stream resumes after it.

Responses

Status Meaning Content type
200 text/plain: one line per event (time, stage, what happened; diagnostics print severity, code, file:line:column and message), plain text with control characters escaped. With follow=true, text/event-stream with one log frame per line. text/plain, text/event-stream
400 validation_failed: a bad path parameter or body field. application/problem+json
401 unauthenticated: no credentials, or credentials that prove nothing. application/problem+json
403 insufficient_scope: the credential lacks a scope this route needs (see missing_scopes). permission_denied: the current workspace role does not allow the action. oauth_consent_required: an OAuth token whose person has not yet chosen the workspace and the permissions (see consent_url). mfa_required: a portal session that must still verify or set up MFA (see mfa_reason). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no build with this id in the caller's workspace. application/problem+json
405 method_not_allowed: the path exists, but not for this method; Allow lists the methods it answers. application/problem+json
429 rate_limited: this workspace already has the most build streams it may keep open, or the build's log has all the readers it allows. Retry after Retry-After seconds. Also rate_limited: the limit of the route class was reached (rate_limit.limit_class); wait Retry-After seconds. application/problem+json
500 internal_error (nothing about the failure; quote request_id) or configuration_error. application/problem+json
503 database_unavailable: the API could not reach its database (timeout, dropped connection). Wait Retry-After seconds and send the same request again: repeating is safe with the same Idempotency-Key; without it a POST may already have been applied. application/problem+json
curl
curl "https://api.taggor.dev/v1/builds/bld_0123456789abcdefghjkmnpqrs/logs" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/builds/bld_0123456789abcdefghjkmnpqrs/logs", {
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
const result = await response.text();
console.log(result);

The source map of a succeeded build

Operation getBuildSourceMap. Scopes: components:read.

Parameters

Name In Type Required Description
build_id path string yes Public build id.

Responses

Status Meaning Content type
200 The source map (JSON, version 3), private to the workspace: it holds the component's source. application/json
400 validation_failed: a bad path parameter or body field. application/problem+json
401 unauthenticated: no credentials, or credentials that prove nothing. application/problem+json
403 insufficient_scope: the credential lacks a scope this route needs (see missing_scopes). permission_denied: the current workspace role does not allow the action. oauth_consent_required: an OAuth token whose person has not yet chosen the workspace and the permissions (see consent_url). mfa_required: a portal session that must still verify or set up MFA (see mfa_reason). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no such build in the caller's workspace, the build did not succeed, or it has no source map. application/problem+json
405 method_not_allowed: the path exists, but not for this method; Allow lists the methods it answers. application/problem+json
429 rate_limited: the limit of the route class (rate_limit.limit_class: read, write, publish, heavy, approval, diff, metrics, destructive or ip) was reached. Wait Retry-After seconds. rate_limiter_unavailable (503) is answered for heavy routes and destructive calls when the limiter itself fails, and for a valid OAuth token with no grant when the consent-link limiter fails (never a 401, so an MCP client does not log in again). application/problem+json
500 internal_error (nothing about the failure; quote request_id) or configuration_error. application/problem+json
503 database_unavailable: the API could not reach its database (timeout, dropped connection). Wait Retry-After seconds and send the same request again: repeating is safe with the same Idempotency-Key; without it a POST may already have been applied. application/problem+json
curl
curl "https://api.taggor.dev/v1/builds/bld_0123456789abcdefghjkmnpqrs/sourcemap" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/builds/bld_0123456789abcdefghjkmnpqrs/sourcemap", {
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
Example response
{
"version": 3,
"sources": [
"src/index.tsx"
],
"mappings": "AAAA"
}