For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tags

Tags are tenant-scoped labels you can attach to components, journeys, and pages. Use them to group related items (e.g. "high-touch", "experiment-2026-q4") so list views, the agent API, and ad-hoc searches all share one taxonomy.

The agent API exposes only the catalog of tags. Attaching and detaching tags from individual entities is done through the in-app UI today — we'll add v1 endpoints for that in a future release.

Listing and reading tags requires the read scope; creating, updating, and deleting tags requires the admin scope.

Endpoints

GET /api/v1/tags

List taxonomy tags for the tenant

get
/tags
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Query parameters
limitinteger · min: 1 · max: 100Optional

Max items to return (1–100, default 20)

Default: 20
offsetintegerOptional

Number of items to skip (default 0)

Default: 0
Responses
200

Paginated list of tags

application/json
requestIdstringOptional
get/tags
GET /api/v1/tags HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "slug": "text",
      "description": "text",
      "color": "text",
      "isActive": true,
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "pagination": {
    "total": 1,
    "limit": 1,
    "offset": 1,
    "hasMore": true
  },
  "requestId": "text"
}

Notes, examples, or caveats for GET /tags go here.

POST /api/v1/tags

Create a tag. When `slug` is omitted it is derived from `name`.

post
/tags
Required scopes
This endpoint requires the following scopes:
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Body
namestring · min: 1 · max: 100Required
slugstring · max: 120Optional

Lowercase alphanumeric with hyphens. Derived from name when omitted.

Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
descriptionstring · max: 2000 · nullableOptional
colorstring · nullableOptional

Hex color in #RRGGBB form

Pattern: ^#[0-9a-fA-F]{6}$
isActivebooleanOptional
Responses
201

Tag created

application/json

A tenant-scoped taxonomy tag. Slugs are unique per tenant.

idstring · uuidOptional
namestring · max: 100Optional
slugstring · max: 120Optional

Lowercase alphanumeric with hyphens, unique within the tenant

descriptionstring · max: 2000 · nullableOptional
colorstring · nullableOptional

Hex color in #RRGGBB form

isActivebooleanOptional
createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
post/tags
POST /api/v1/tags HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 81

{
  "name": "text",
  "slug": "text",
  "description": "text",
  "color": "text",
  "isActive": true
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "slug": "text",
  "description": "text",
  "color": "text",
  "isActive": true,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z"
}

Notes, examples, or caveats for POST /tags go here.

DELETE /api/v1/tags/{id}

Delete a tag. Tags still assigned to items are protected — pass ?force=1 to delete anyway and drop the assignments.

delete
/tags/{id}
Required scopes
This endpoint requires the following scopes:
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Path parameters
idstringRequired

Tag ID

Query parameters
forcestring · enumOptional

Pass 1 to delete a tag that is still in use

Possible values:
Responses
204

Tag deleted

No content

delete/tags/{id}
DELETE /api/v1/tags/{id} HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*

No content

Notes, examples, or caveats for DELETE /tags/{id} go here.

GET /api/v1/tags/{id}

Get tag details

get
/tags/{id}
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Path parameters
idstringRequired

Tag ID

Responses
200

Tag details

application/json

A tenant-scoped taxonomy tag. Slugs are unique per tenant.

idstring · uuidOptional
namestring · max: 100Optional
slugstring · max: 120Optional

Lowercase alphanumeric with hyphens, unique within the tenant

descriptionstring · max: 2000 · nullableOptional
colorstring · nullableOptional

Hex color in #RRGGBB form

isActivebooleanOptional
createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
get/tags/{id}
GET /api/v1/tags/{id} HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "slug": "text",
  "description": "text",
  "color": "text",
  "isActive": true,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z"
}

Notes, examples, or caveats for GET /tags/{id} go here.

PATCH /api/v1/tags/{id}

Update a tag (partial update). Changing the slug is rejected if it collides with another tag.

patch
/tags/{id}
Required scopes
This endpoint requires the following scopes:
Authorizations
X-API-KeystringRequired

Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.

Path parameters
idstringRequired

Tag ID

Body
namestring · min: 1 · max: 100Optional
slugstring · max: 120OptionalPattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
descriptionstring · max: 2000 · nullableOptional
colorstring · nullableOptionalPattern: ^#[0-9a-fA-F]{6}$
isActivebooleanOptional
Responses
200

Tag updated

application/json

A tenant-scoped taxonomy tag. Slugs are unique per tenant.

idstring · uuidOptional
namestring · max: 100Optional
slugstring · max: 120Optional

Lowercase alphanumeric with hyphens, unique within the tenant

descriptionstring · max: 2000 · nullableOptional
colorstring · nullableOptional

Hex color in #RRGGBB form

isActivebooleanOptional
createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
patch/tags/{id}
PATCH /api/v1/tags/{id} HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 81

{
  "name": "text",
  "slug": "text",
  "description": "text",
  "color": "text",
  "isActive": true
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "slug": "text",
  "description": "text",
  "color": "text",
  "isActive": true,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z"
}

Notes, examples, or caveats for PATCH /tags/{id} go here.

Last updated

Was this helpful?