API reference

Design system

The brand rules every draft is validated against — voice, banned terms, hashtags, emoji policy, per-channel overrides. Versioned; writes need If-Match.

The brand rules every draft is validated against: voice, banned terms, hashtags, emoji policy, per-channel overrides. Versioned; writes need If-Match.

Method Endpoint Summary
GET /v1/workspaces/{ws}/design-system Get the design system
PUT /v1/workspaces/{ws}/design-system Replace the design system
PATCH /v1/workspaces/{ws}/design-system Partially update the design system
GET /v1/workspaces/{ws}/design-system/versions Design system history
POST /v1/workspaces/{ws}/design-system/import Import a design system from markdown
POST /v1/workspaces/{ws}/design-system/versions/{number}/restore Restore a design system version

Get the design system#

GET/v1/workspaces/{ws}/design-system

?format=prompt returns LLM-ready markdown sized for a system prompt (Accept: text/markdown for raw). ?version=N for history. ETag "ds:N".

Auth: API key (Authorization: Bearer obx_live_…). Requires scope design_system:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Query parameters

Name Required Description
format no
version no

Response 200 — DesignSystem. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/workspaces/acme/design-system?format=prompt" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Replace the design system#

PUT/v1/workspaces/{ws}/design-system

Requires If-Match: "ds:". Every change creates a new version; posts record the version they were validated against.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope design_system:write with workspace role owner / admin / editor / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Headers

Name Required Description
If-Match yes ETag or version from your last read (optimistic concurrency).

Request body

Field Type Description
data object
change_note string

Response 200 — DesignSystem. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X PUT "https://api.outboxer.dev/v1/workspaces/acme/design-system" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H 'If-Match: "ds:3"' \
  -H "Content-Type: application/json" \
  -d '{
  "data": {},
  "change_note": "example"
}'

Partially update the design system#

PATCH/v1/workspaces/{ws}/design-system

JSON Merge Patch (RFC 7396) on data: objects merge, null deletes a key, arrays replace. Requires If-Match: "ds:". Needs design_system:write (agents only when granted).

Auth: API key (Authorization: Bearer obx_live_…). Requires scope design_system:write with workspace role owner / admin / editor / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Headers

Name Required Description
If-Match yes ETag or version from your last read (optimistic concurrency).

Request body

Field Type Description
data object
change_note string

Response 200 — DesignSystem. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X PATCH "https://api.outboxer.dev/v1/workspaces/acme/design-system" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H 'If-Match: "ds:3"' \
  -H "Content-Type: application/json" \
  -d '{
  "data": {
    "language": {
      "banned_terms": [
        "cheap",
        "guaranteed"
      ]
    },
    "emoji": {
      "policy": "none"
    }
  },
  "change_note": "No emoji for the B2B relaunch"
}'

Design system history#

GET/v1/workspaces/{ws}/design-system/versions

Auth: API key (Authorization: Bearer obx_live_…). Requires scope design_system:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/workspaces/acme/design-system/versions" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Import a design system from markdown#

POST/v1/workspaces/{ws}/design-system/import

Parses a brand / design-system markdown document (## Colors, ## Typography, ## Logo, ## Do, ## Don't, …) into design-system fields; unrecognized sections are kept in extra_sections. dry_run: true returns the parsed sections and resulting data without saving (needs design_system:read). Otherwise saves a new version: requires If-Match "ds:" and design_system:write. mode: merge (default; keeps sections the document doesn't mention) or replace.

Auth: API key (Authorization: Bearer obx_live_…).

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Request body

Field Type Description
markdown string
mode string
dry_run boolean
change_note string

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/workspaces/acme/design-system/import" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Restore a design system version#

POST/v1/workspaces/{ws}/design-system/versions/{number}/restore

Creates a new version whose data equals version {number}. Requires If-Match.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope design_system:write with workspace role owner / admin / editor / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug
number yes Revision or version number.

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.
If-Match yes ETag or version from your last read (optimistic concurrency).

Request body

Field Type Description
change_note string

Response 201 — DesignSystem. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/workspaces/acme/design-system/versions/2/restore" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H 'If-Match: "ds:3"'