Skip to content

Components API

List the workspace's shared folders

Operation listSharedFolders. 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.
archived query one of true, false no true lists only the archived folders; false or absent, only the ones in use.

Responses

Status Meaning Content type
200 One page of the workspace's shared folders in use (or the archived ones), newest first. 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/shared-folders" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/shared-folders", {
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": "shf_0123456789abcdefghjkmnpqrs",
"name": "ui",
"path": "my-lib/shared",
"current_version_id": "shv_0123456789abcdefghjkmnpqrs",
"created_at": "2026-12-03T11:00:00.000Z",
"updated_at": "2026-12-03T12:00:00.000Z",
"archived_at": null,
"versions": [
{
"id": "shv_0123456789abcdefghjkmnpqrs",
"shared_folder_id": "shf_0123456789abcdefghjkmnpqrs",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"build_id": "bld_0123456789abcdefghjkmnpqrs",
"exports": [
"Button",
"formatPrice"
],
"contract_version": "1.17.0",
"created_by": {
"id": "key_0123456789abcdefghjkmnpqrs",
"kind": "api_key",
"name": "CI deploy"
},
"created_at": "2026-12-03T12:00:00.000Z"
}
]
}
],
"next_cursor": null,
"has_more": false
}

Create a shared folder of code, named and placed in the project

Operation createSharedFolder. Scopes: components:write.

Parameters

Name In Type Required Description
idempotency-key header string no Makes a retry safe: see Idempotency.

Request body (application/json, required)

Field Type Required Description
name string yes The folder's name, unique in the workspace: lowercase letters, digits and hyphens. Components declare the folder by it in taggor.json.
path string (up to 200 characters) yes The folder's path relative to the project root, without . or ... Unique in the workspace.

Responses

Status Meaning Content type
201 The new folder; versions are published to it next. 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
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). 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
409 shared_folder_limit_reached: the workspace already holds as many shared folders as it can. Nothing was created; the body carries limit, plan and upgrade_url. shared_folder_name_taken or shared_folder_path_taken (the workspace has a folder with this name or path: shared_folder_id), or idempotency_request_in_progress. application/problem+json
413 payload_too_large: the request body is over the limit of the route (256 KiB for JSON). application/problem+json
415 unsupported_media_type: the body was sent with a Content-Type other than application/json. Send the body as JSON with Content-Type: application/json. application/problem+json
422 idempotency_key_reused: this key was used in the last 24 h with a different request. 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 -X POST "https://api.taggor.dev/v1/shared-folders" \
-H "Authorization: Bearer $TAGGOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "ui",
"path": "my-lib/shared"
}'
TypeScript
const response = await fetch("https://api.taggor.dev/v1/shared-folders", {
method: "POST",
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}`, "content-type": "application/json" },
body: JSON.stringify({
"name": "ui",
"path": "my-lib/shared"
}),
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
Example response
{
"id": "shf_0123456789abcdefghjkmnpqrs",
"name": "ui",
"path": "my-lib/shared",
"current_version_id": "shv_0123456789abcdefghjkmnpqrs",
"created_at": "2026-12-03T11:00:00.000Z",
"updated_at": "2026-12-03T12:00:00.000Z",
"archived_at": null,
"versions": [
{
"id": "shv_0123456789abcdefghjkmnpqrs",
"shared_folder_id": "shf_0123456789abcdefghjkmnpqrs",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"build_id": "bld_0123456789abcdefghjkmnpqrs",
"exports": [
"Button",
"formatPrice"
],
"contract_version": "1.17.0",
"created_by": {
"id": "key_0123456789abcdefghjkmnpqrs",
"kind": "api_key",
"name": "CI deploy"
},
"created_at": "2026-12-03T12:00:00.000Z"
}
]
}

POST /v1/shared-folders/{shared_folder_id}/archive

Section titled “POST /v1/shared-folders/{shared_folder_id}/archive”

Archive a shared folder

The folder leaves the list and takes no new build or version; its name, its path and its versions stay, so every published component goes on working with the version it imports. A component that still imports the folder cannot be built again until the folder is restored.

Operation archiveSharedFolder. Scopes: components:write.

Parameters

Name In Type Required Description
shared_folder_id path string yes Public shared_folder id.
idempotency-key header string no Makes a retry safe: see Idempotency.

Responses

Status Meaning Content type
200 The archived folder. Repeating the request changes nothing. 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
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no shared folder (or 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
409 idempotency_request_in_progress: a request with this key is still running; retry after Retry-After seconds. application/problem+json
422 idempotency_key_reused: this key was used in the last 24 h with a different request. 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 -X POST "https://api.taggor.dev/v1/shared-folders/shf_0123456789abcdefghjkmnpqrs/archive" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/shared-folders/shf_0123456789abcdefghjkmnpqrs/archive", {
method: "POST",
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": "shf_0123456789abcdefghjkmnpqrs",
"name": "ui",
"path": "my-lib/shared",
"current_version_id": "shv_0123456789abcdefghjkmnpqrs",
"created_at": "2026-12-03T11:00:00.000Z",
"updated_at": "2026-12-03T12:00:00.000Z",
"archived_at": "2026-12-04T09:00:00.000Z",
"versions": [
{
"id": "shv_0123456789abcdefghjkmnpqrs",
"shared_folder_id": "shf_0123456789abcdefghjkmnpqrs",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"build_id": "bld_0123456789abcdefghjkmnpqrs",
"exports": [
"Button",
"formatPrice"
],
"contract_version": "1.17.0",
"created_by": {
"id": "key_0123456789abcdefghjkmnpqrs",
"kind": "api_key",
"name": "CI deploy"
},
"created_at": "2026-12-03T12:00:00.000Z"
}
]
}

POST /v1/shared-folders/{shared_folder_id}/restore

Section titled “POST /v1/shared-folders/{shared_folder_id}/restore”

Restore an archived shared folder

Operation restoreSharedFolder. Scopes: components:write.

Parameters

Name In Type Required Description
shared_folder_id path string yes Public shared_folder id.
idempotency-key header string no Makes a retry safe: see Idempotency.

Responses

Status Meaning Content type
200 The folder, in use again (archived_at null). Restoring a folder in use changes nothing. 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
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no shared folder (or 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
409 shared_folder_limit_reached: the workspace already holds as many folders in use as it can. Nothing was created; the body carries limit, plan and upgrade_url. idempotency_request_in_progress: a request with this key is still running; retry after Retry-After seconds. application/problem+json
422 idempotency_key_reused: this key was used in the last 24 h with a different request. 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 -X POST "https://api.taggor.dev/v1/shared-folders/shf_0123456789abcdefghjkmnpqrs/restore" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/shared-folders/shf_0123456789abcdefghjkmnpqrs/restore", {
method: "POST",
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": "shf_0123456789abcdefghjkmnpqrs",
"name": "ui",
"path": "my-lib/shared",
"current_version_id": "shv_0123456789abcdefghjkmnpqrs",
"created_at": "2026-12-03T11:00:00.000Z",
"updated_at": "2026-12-03T12:00:00.000Z",
"archived_at": null,
"versions": [
{
"id": "shv_0123456789abcdefghjkmnpqrs",
"shared_folder_id": "shf_0123456789abcdefghjkmnpqrs",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"build_id": "bld_0123456789abcdefghjkmnpqrs",
"exports": [
"Button",
"formatPrice"
],
"contract_version": "1.17.0",
"created_by": {
"id": "key_0123456789abcdefghjkmnpqrs",
"kind": "api_key",
"name": "CI deploy"
},
"created_at": "2026-12-03T12:00:00.000Z"
}
]
}

GET /v1/shared-folders/{shared_folder_id}/versions/{shared_folder_version_id}/source

Section titled “GET /v1/shared-folders/{shared_folder_id}/versions/{shared_folder_version_id}/source”

Download the source package a shared folder version was built from

The .tar.gz exactly as it was published: the folder's files under src/, with package.json, its lock and taggor.json at the root. It is customer data: only the workspace that owns the folder reads it (404 otherwise). taggor pull uses it to put the folder back at its path. The body is never unpacked or run by the API.

Operation getSharedFolderVersionSource. Scopes: components:read.

Parameters

Name In Type Required Description
shared_folder_id path string yes Public shared_folder id.
shared_folder_version_id path string yes Public shared_folder_version id.

Responses

Status Meaning Content type
200 The source package, as an attachment. application/gzip
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 shared folder (or 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: 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/shared-folders/shf_0123456789abcdefghjkmnpqrs/versions/shv_0123456789abcdefghjkmnpqrs/source" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/shared-folders/shf_0123456789abcdefghjkmnpqrs/versions/shv_0123456789abcdefghjkmnpqrs/source", {
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
const result = new Uint8Array(await response.arrayBuffer());
console.log(result);

GET /v1/components/{component_id}/versions/{version_id}/shared-folders

Section titled “GET /v1/components/{component_id}/versions/{version_id}/shared-folders”

List the shared folder versions a component version imports

A component version imports the exact version of each shared folder its build used, and keeps it for good. current: false says the folder has a newer version: rebuild the component to take it.

Operation listComponentVersionSharedFolders. Scopes: components:read.

Parameters

Name In Type Required Description
component_id path string yes Public component id.
version_id path string yes Public version id.
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.

Responses

Status Meaning Content type
200 One page with an entry per shared folder the version imports, the most recently published first. 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
404 not_found: no such component or version 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: 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/components/cmp_0123456789abcdefghjkmnpqrs/versions/ver_0123456789abcdefghjkmnpqrs/shared-folders" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions/ver_0123456789abcdefghjkmnpqrs/shared-folders", {
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
{
"next_cursor": null,
"has_more": false,
"data": [
{
"id": "shf_0123456789abcdefghjkmnpqrs",
"name": "ui",
"path": "my-lib/shared",
"package_name": "ui",
"shared_folder_version_id": "shv_0123456789abcdefghjkmnpqrs",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"published_at": "2026-12-03T12:00:00.000Z",
"current_version_id": "shv_0123456789abcdefghjkmnpqrs",
"current": true,
"archived_at": null
}
]
}

POST /v1/components/{component_id}/versions/{version_id}/rebuild

Section titled “POST /v1/components/{component_id}/versions/{version_id}/rebuild”

Build a component version's source again with the current shared folder versions

Queues a build of the source this version was published from, against the current version of each shared folder it uses. Nothing published changes: when the build succeeds, create the new version with { build_id } and move a channel to it, as after a source upload. Counts as a build of the plan.

Operation rebuildComponentVersion. Scopes: versions:publish.

Parameters

Name In Type Required Description
component_id path string yes Public component id.
version_id path string yes Public version id.
idempotency-key header string no Makes a retry safe: see Idempotency.

Responses

Status Meaning Content type
200 No folder changed since: the version this source already is with the current folder versions, unchanged. application/json
202 A build is queued (or the workspace already had a build of this source with these folder versions: same build_id). Follow Location for its status. 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
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. component_disabled: Taggor disabled the component, so no new version of it is accepted. application/problem+json
404 not_found: no such component or version in the caller's workspace, or a folder the version uses is gone or has no version (shared_folder names it). application/problem+json
405 method_not_allowed: the path exists, but not for this method; Allow lists the methods it answers. application/problem+json
409 component_archived (restore the component first), shared_folder_archived (a folder the version uses is archived: shared_folder names it) or an idempotency error. application/problem+json
422 idempotency_key_reused: this key was used in the last 24 h with a different request. application/problem+json
429 build_quota_exceeded or platform_build_capacity, with Retry-After. 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 -X POST "https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions/ver_0123456789abcdefghjkmnpqrs/rebuild" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions/ver_0123456789abcdefghjkmnpqrs/rebuild", {
method: "POST",
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);

Read a shared folder with its newest versions

Operation getSharedFolder. Scopes: components:read.

Parameters

Name In Type Required Description
shared_folder_id path string yes Public shared_folder id.

Responses

Status Meaning Content type
200 The folder and its newest versions. 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 shared folder (or 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: 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/shared-folders/shf_0123456789abcdefghjkmnpqrs" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/shared-folders/shf_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": "shf_0123456789abcdefghjkmnpqrs",
"name": "ui",
"path": "my-lib/shared",
"current_version_id": "shv_0123456789abcdefghjkmnpqrs",
"created_at": "2026-12-03T11:00:00.000Z",
"updated_at": "2026-12-03T12:00:00.000Z",
"archived_at": null,
"versions": [
{
"id": "shv_0123456789abcdefghjkmnpqrs",
"shared_folder_id": "shf_0123456789abcdefghjkmnpqrs",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"build_id": "bld_0123456789abcdefghjkmnpqrs",
"exports": [
"Button",
"formatPrice"
],
"contract_version": "1.17.0",
"created_by": {
"id": "key_0123456789abcdefghjkmnpqrs",
"kind": "api_key",
"name": "CI deploy"
},
"created_at": "2026-12-03T12:00:00.000Z"
}
]
}

GET /v1/shared-folders/{shared_folder_id}/usage

Section titled “GET /v1/shared-folders/{shared_folder_id}/usage”

List the components that use a shared folder, per channel

Operation getSharedFolderUsage. Scopes: components:read.

Parameters

Name In Type Required Description
shared_folder_id path string yes Public shared_folder id.
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.

Responses

Status Meaning Content type
200 One page with an entry per component channel whose version imports a version of the folder, with whether it is the current one. 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
404 not_found: no shared folder (or 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: 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/shared-folders/shf_0123456789abcdefghjkmnpqrs/usage" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/shared-folders/shf_0123456789abcdefghjkmnpqrs/usage", {
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
{
"next_cursor": null,
"has_more": false,
"data": [
{
"id": "cmp_0123456789abcdefghjkmnpqrs",
"tag": "price-card",
"channels": [
{
"channel": "staging",
"component_version_id": "ver_0123456789abcdefghjkmnpqrs",
"shared_folder_version_id": "shv_0123456789abcdefghjkmnpqrs",
"current": true
}
]
}
]
}

POST /v1/shared-folders/{shared_folder_id}/versions

Section titled “POST /v1/shared-folders/{shared_folder_id}/versions”

Publish an immutable version of a shared folder from a finished build, or upload its source to build

Operation createSharedFolderVersion. Scopes: versions:publish.

Parameters

Name In Type Required Description
shared_folder_id path string yes Public shared_folder id.
idempotency-key header string no Makes a retry safe: see Idempotency.

Request body (application/json or application/gzip, required)

Field Type Required Description
build_id string yes Public build id.

Responses

Status Meaning Content type
200 This source, or this build, already became a version of the folder: that version, unchanged. It is the folder's current version again. application/json
201 The new version, now the folder's current one. It never changes, and no published component changes with it: components take it when they are built again. application/json
202 The source was stored and a build is queued (or the workspace already had a build of this exact source: same build_id). 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
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no shared folder (or 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
409 shared_folder_archived (the folder is archived: restore it first), build_expired (the build finished more than 7 days ago: build again), build_not_publishable (the build failed, is still running or is not a shared folder's: reason, build_status, diagnostic_codes), or idempotency_request_in_progress. application/problem+json
413 payload_too_large: the package is over a size limit. application/problem+json
415 unsupported_media_type. application/problem+json
422 source_package_invalid (the package was refused: diagnostics) or an idempotency error. application/problem+json
429 build_quota_exceeded or platform_build_capacity, with Retry-After. 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 -X POST "https://api.taggor.dev/v1/shared-folders/shf_0123456789abcdefghjkmnpqrs/versions" \
-H "Authorization: Bearer $TAGGOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"build_id": "bld_0123456789abcdefghjkmnpqrs"
}'
TypeScript
const response = await fetch("https://api.taggor.dev/v1/shared-folders/shf_0123456789abcdefghjkmnpqrs/versions", {
method: "POST",
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}`, "content-type": "application/json" },
body: JSON.stringify({
"build_id": "bld_0123456789abcdefghjkmnpqrs"
}),
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
Example response
{
"id": "shv_0123456789abcdefghjkmnpqrs",
"shared_folder_id": "shf_0123456789abcdefghjkmnpqrs",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"build_id": "bld_0123456789abcdefghjkmnpqrs",
"exports": [
"Button",
"formatPrice"
],
"contract_version": "1.17.0",
"created_by": {
"id": "key_0123456789abcdefghjkmnpqrs",
"kind": "api_key",
"name": "CI deploy"
},
"created_at": "2026-12-03T12:00:00.000Z"
}

GET /v1/components/{component_id}/deletion

Section titled “GET /v1/components/{component_id}/deletion”

Where the permanent deletion of a component stands

Before a deletion was asked for: what it would remove, with counts, and whether it can be asked for. After: the job's phase and progress. Readable with any credential that reads the component; asking for the deletion is only a person's, in the portal.

Operation getComponentDeletion. Scopes: components:read.

Parameters

Name In Type Required Description
component_id path string yes Public component id.

Responses

Status Meaning Content type
200 The state of the deletion. application/json
400 validation_failed: the path id is not a component id. 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 component 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: 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/components/cmp_0123456789abcdefghjkmnpqrs/deletion" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/deletion", {
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
{
"component": {
"id": "cmp_0123456789abcdefghjkmnpqrs",
"tag": "price-card"
},
"state": "running",
"phase": "data",
"impact": {
"versions": 3,
"builds": 4,
"collections": 1,
"submissions": 250,
"files": 12
},
"removed": {
"versions": 0,
"builds": 0,
"collections": 0,
"submissions": 120,
"files": 5
},
"requested_at": "2026-12-03T12:00:00.000Z",
"completed_at": null,
"stuck": false,
"deletable": false,
"blockers": []
}

List the workspace's components with the current version of each channel, newest first (archived ones excluded)

Lists the components in use. With archived=true it lists only the archived ones instead, so one can be found and restored; the two never come in one list.

Operation listComponents. 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.
archived query one of true, false no true lists only the archived components; false or absent, only the ones in use.
bundle_id query string no Only the components of this bundle: one of the workspace's own (its draft) or one it acquired (the components copied from it). Works with archived.

Responses

Status Meaning Content type
200 One page of components 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/components" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components", {
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": "cmp_0123456789abcdefghjkmnpqrs",
"tag": "price-card",
"description": "Price card for the pricing page",
"created_at": "2026-11-01T12:00:00.000Z",
"archived_at": null,
"channels": [
{
"channel": "production",
"version_id": "ver_0123456789abcdefghjkmnpqrs",
"semver": "1.0.0",
"updated_at": "2026-11-01T12:30:00.000Z",
"updated_by": {
"id": "usr_0123456789abcdefghjkmnpqrs",
"kind": "user",
"name": "Ana"
}
},
{
"channel": "staging",
"version_id": null,
"semver": null,
"updated_at": null,
"updated_by": null
}
],
"marketplace": null
}
],
"next_cursor": null,
"has_more": false
}

Create a component named by its Custom Element tag

Operation createComponent. Scopes: components:write.

Parameters

Name In Type Required Description
idempotency-key header string no Makes a retry safe: see Idempotency.

Request body (application/json, required)

Field Type Required Description
tag string (up to 256 characters) yes Custom Element name: lowercase ASCII letters, digits and hyphens, starts with a letter, at least one hyphen, not reserved. Unique in the workspace.
description string (up to 500 characters) no What the component is for, for people and agents reading the list.

Responses

Status Meaning Content type
201 The new component; versions are created for it next. application/json
400 validation_failed: a bad body field, or a tag that is not a valid custom element name (errors[] points at /tag and says why; suggested_tag is a valid one). application/problem+json
401 unauthenticated: no credentials, or credentials that prove nothing. application/problem+json
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). 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
409 component_already_exists (the workspace has a component with this tag, archived or not: component_id) or idempotency_request_in_progress. application/problem+json
413 payload_too_large: the request body is over the limit of the route (256 KiB for JSON). application/problem+json
415 unsupported_media_type: the body was sent with a Content-Type other than application/json. Send the body as JSON with Content-Type: application/json. application/problem+json
422 idempotency_key_reused: this key was used in the last 24 h with a different request. 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 -X POST "https://api.taggor.dev/v1/components" \
-H "Authorization: Bearer $TAGGOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag": "price-card"
}'
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components", {
method: "POST",
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}`, "content-type": "application/json" },
body: JSON.stringify({
"tag": "price-card"
}),
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
Example response
{
"id": "cmp_0123456789abcdefghjkmnpqrs",
"tag": "price-card",
"description": "Price card for the pricing page",
"created_at": "2026-11-01T12:00:00.000Z",
"archived_at": null,
"channels": [
{
"channel": "production",
"version_id": "ver_0123456789abcdefghjkmnpqrs",
"semver": "1.0.0",
"updated_at": "2026-11-01T12:30:00.000Z",
"updated_by": {
"id": "usr_0123456789abcdefghjkmnpqrs",
"kind": "user",
"name": "Ana"
}
},
{
"channel": "staging",
"version_id": null,
"semver": null,
"updated_at": null,
"updated_by": null
}
],
"marketplace": null
}

List the sites that have the component attached, newest site first

One call for what the portal needs to count and manage a component's attachments; sites that were deleted are left out. An archived component stays readable.

Operation listComponentSites. Scopes: sites:read.

Parameters

Name In Type Required Description
component_id path string yes Public component id.
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.

Responses

Status Meaning Content type
200 One page of sites. 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
404 not_found: no component 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: 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/components/cmp_0123456789abcdefghjkmnpqrs/sites" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/sites", {
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": "st_0123456789abcdefghjkmnpqrs",
"production_site_key": "st_k3x7m2q7ab",
"staging_site_key": "st_w5t2n4h6cd",
"name": "Pricing site",
"status": "active",
"production": {
"served_version_id": "ver_0123456789abcdefghjkmnpqrs",
"served_semver": "1.2.0",
"source": "production_channel",
"pinned_version_id": null,
"suspended_props": []
},
"staging": {
"served_version_id": "ver_0123456789abcdefghjkmnpqrs",
"served_semver": "1.2.0",
"source": "fallback_to_production_channel",
"pinned_version_id": null,
"suspended_props": []
},
"enabled": true,
"client_id": null
}
],
"next_cursor": null,
"has_more": false
}

Get a component with the current version of each channel

Operation getComponent. Scopes: components:read.

Parameters

Name In Type Required Description
component_id path string yes Public component id.

Responses

Status Meaning Content type
200 The component; an archived one is returned too, with archived_at set. application/json
400 validation_failed: the path id is not a component id. 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 component 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: 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/components/cmp_0123456789abcdefghjkmnpqrs" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components/cmp_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": "cmp_0123456789abcdefghjkmnpqrs",
"tag": "price-card",
"description": "Price card for the pricing page",
"created_at": "2026-11-01T12:00:00.000Z",
"archived_at": null,
"channels": [
{
"channel": "production",
"version_id": "ver_0123456789abcdefghjkmnpqrs",
"semver": "1.0.0",
"updated_at": "2026-11-01T12:30:00.000Z",
"updated_by": {
"id": "usr_0123456789abcdefghjkmnpqrs",
"kind": "user",
"name": "Ana"
}
},
{
"channel": "staging",
"version_id": null,
"semver": null,
"updated_at": null,
"updated_by": null
}
],
"marketplace": null
}

Change the description of a component

Operation patchComponent. Scopes: components:write.

Parameters

Name In Type Required Description
component_id path string yes Public component id.

Request body (application/json, required)

Field Type Required Description
description string or null (up to 500 characters) yes The new description; null clears it.

Responses

Status Meaning Content type
200 The component with its new description. 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
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no component 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
409 component_archived: an archived component keeps its record; restore it first. application/problem+json
413 payload_too_large: the request body is over the limit of the route (256 KiB for JSON). application/problem+json
415 unsupported_media_type: the body was sent with a Content-Type other than application/json. Send the body as JSON with Content-Type: application/json. 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 -X PATCH "https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs" \
-H "Authorization: Bearer $TAGGOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "example"
}'
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs", {
method: "PATCH",
headers: { authorization: `Bearer ${process.env.TAGGOR_API_KEY}`, "content-type": "application/json" },
body: JSON.stringify({
"description": "example"
}),
});
if (!response.ok) throw new Error(await response.text());
const result: unknown = await response.json();
console.log(result);
Example response
{
"id": "cmp_0123456789abcdefghjkmnpqrs",
"tag": "price-card",
"description": "Price card for the pricing page",
"created_at": "2026-11-01T12:00:00.000Z",
"archived_at": null,
"channels": [
{
"channel": "production",
"version_id": "ver_0123456789abcdefghjkmnpqrs",
"semver": "1.0.0",
"updated_at": "2026-11-01T12:30:00.000Z",
"updated_by": {
"id": "usr_0123456789abcdefghjkmnpqrs",
"kind": "user",
"name": "Ana"
}
},
{
"channel": "staging",
"version_id": null,
"semver": null,
"updated_at": null,
"updated_by": null
}
],
"marketplace": null
}

POST /v1/components/{component_id}/archive

Section titled “POST /v1/components/{component_id}/archive”

Archive a component (versions and data stay)

Operation archiveComponent. Scopes: components:write.

Parameters

Name In Type Required Description
component_id path string yes Public component id.
idempotency-key header string no Makes a retry safe: see Idempotency.

Responses

Status Meaning Content type
200 The archived component. Repeating the request changes nothing and keeps the first archived_at. application/json
400 validation_failed: the path id is not a component id. application/problem+json
401 unauthenticated: no credentials, or credentials that prove nothing. application/problem+json
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no component 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
409 idempotency_request_in_progress: a request with this key is still running; retry after Retry-After seconds. application/problem+json
422 idempotency_key_reused: this key was used in the last 24 h with a different request. 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 -X POST "https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/archive" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/archive", {
method: "POST",
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": "cmp_0123456789abcdefghjkmnpqrs",
"tag": "price-card",
"description": "Price card for the pricing page",
"created_at": "2026-11-01T12:00:00.000Z",
"archived_at": "2026-11-02T09:00:00.000Z",
"channels": [
{
"channel": "production",
"version_id": "ver_0123456789abcdefghjkmnpqrs",
"semver": "1.0.0",
"updated_at": "2026-11-01T12:30:00.000Z",
"updated_by": {
"id": "usr_0123456789abcdefghjkmnpqrs",
"kind": "user",
"name": "Ana"
}
},
{
"channel": "staging",
"version_id": null,
"semver": null,
"updated_at": null,
"updated_by": null
}
],
"marketplace": null
}

POST /v1/components/{component_id}/restore

Section titled “POST /v1/components/{component_id}/restore”

Restore an archived component

Operation restoreComponent. Scopes: components:write.

Parameters

Name In Type Required Description
component_id path string yes Public component id.
idempotency-key header string no Makes a retry safe: see Idempotency.

Responses

Status Meaning Content type
200 The component, active again (archived_at null). Repeating the request, or restoring an active component, changes nothing. application/json
400 validation_failed: the path id is not a component id. application/problem+json
401 unauthenticated: no credentials, or credentials that prove nothing. application/problem+json
402 workspace_payment_required: the workspace needs a paid plan and has none, so it accepts no change; reading and exporting still work. A person pays in the portal, under Settings, Plan and billing. 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). cross_site_request: authenticated by the session cookie, but not from the portal (another Origin, or not Content-Type: application/json). workspace_suspended: Taggor suspended the workspace; every credential acting in it is refused until it is lifted. application/problem+json
404 not_found: no component 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
409 component_deletion_in_progress: a person asked to delete the component for good; it stays archived until the job removes it. application/problem+json
422 idempotency_key_reused: this key was used in the last 24 h with a different request. 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 -X POST "https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/restore" \
-H "Authorization: Bearer $TAGGOR_API_KEY"
TypeScript
const response = await fetch("https://api.taggor.dev/v1/components/cmp_0123456789abcdefghjkmnpqrs/restore", {
method: "POST",
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": "cmp_0123456789abcdefghjkmnpqrs",
"tag": "price-card",
"description": "Price card for the pricing page",
"created_at": "2026-11-01T12:00:00.000Z",
"archived_at": null,
"channels": [
{
"channel": "production",
"version_id": "ver_0123456789abcdefghjkmnpqrs",
"semver": "1.0.0",
"updated_at": "2026-11-01T12:30:00.000Z",
"updated_by": {
"id": "usr_0123456789abcdefghjkmnpqrs",
"kind": "user",
"name": "Ana"
}
},
{
"channel": "staging",
"version_id": null,
"semver": null,
"updated_at": null,
"updated_by": null
}
],
"marketplace": null
}