ShawDocs
API Reference

Builder

Manage your workspace Brand Kit, create and edit AI template remixes, and publish hosted landing pages or custom domains.

Download spec

Read workspace Brand Kit

GET
/api/builder/brand-kit

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X GET 'https://shaw.ai/api/builder/brand-kit'
Example Response
null
PUT
/api/builder/brand-kit

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body

Complete Brand Kit object (brandName, domain, tagline, logoUrl, primaryColor, accentColor, backgroundColor, textColor, headingFont, bodyFont, tone).

[key: string]?any

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X PUT 'https://shaw.ai/api/builder/brand-kit' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
null
POST
/api/builder/brand-kit/import

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
save?boolean

Set true to persist imported values to the Brand Kit.

source*string

Import from a public website URL or connected Shopify store.

Value in"url""shopify"
url?string

Public https:// URL or domain when source is url.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X POST 'https://shaw.ai/api/builder/brand-kit/import' \  -H 'Content-Type: application/json' \  -d '{  "source": "url"}'
Example Response
null
GET
/api/templates/remixes/history

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X GET 'https://shaw.ai/api/templates/remixes/history'
Example Response
null
POST
/api/templates/remixes

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
imageModel?string

Optional image model id.

keep?array<unknown>

Aspects to preserve from the original: layout, colors, images.

notes?string

Additional copy, section, or Brand Kit instructions.

path?string

Page path to remix (defaults to /).

template*string

Template id (tpl_...) or slug to remix.

version?string

Optional template version id.

yourBrand*string

Brand name or domain this remix is for.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X POST 'https://shaw.ai/api/templates/remixes' \  -H 'Content-Type: application/json' \  -d '{  "template": "string",  "yourBrand": "string"}'
Example Response
null
GET
/api/templates/remixes/{remixId}/detail

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Path Parameters

remixId*string

The remix id (rmx_...).

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X GET 'https://shaw.ai/api/templates/remixes/string/detail'
Example Response
null
PATCH
/api/templates/remixes/{remixId}

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Path Parameters

remixId*string

The remix id (rmx_...).

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
brandName?string

Updated brand name.

colors?array<unknown>

Array of [fromHex, toHex] color swap pairs.

links?array<unknown>

Array of [originalHref, targetHref] link swap pairs.

texts?array<unknown>

Array of [originalText, replacementText] copy swap pairs.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X PATCH 'https://shaw.ai/api/templates/remixes/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
null
POST
/api/templates/remixes/{remixId}/pictures/{index}

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Path Parameters

index*string

Zero-based picture slot index.

remixId*string

The remix id (rmx_...).

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
imageModel?string

Optional image model id.

prompt?string

Custom prompt when redrawing.

redraw?boolean

Set true to regenerate an existing image.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X POST 'https://shaw.ai/api/templates/remixes/string/pictures/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
null
GET
/api/builder/pages

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X GET 'https://shaw.ai/api/builder/pages'
Example Response
null
POST
/api/builder/pages/publish

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
customDomain?string

Optional verified custom domain hostname to bind.

description?string

SEO meta description.

remixId*string

The remix id (rmx_...) to publish.

slug?string

Hosted path slug under /p/<slug>.

title?string

Page title.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X POST 'https://shaw.ai/api/builder/pages/publish' \  -H 'Content-Type: application/json' \  -d '{  "remixId": "string"}'
Example Response
null
POST
/api/builder/pages/publish-shopify

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
existingShopifyPageId?string

Existing Shopify Online Store page GID to update.

handle?string

Shopify page URL handle.

isPublished?boolean

Whether the Shopify page should be published live (default true).

remixId*string

The remix id (rmx_...) to publish.

slug?string

Optional hosted slug for asset paths.

title?string

Shopify page title.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X POST 'https://shaw.ai/api/builder/pages/publish-shopify' \  -H 'Content-Type: application/json' \  -d '{  "remixId": "string"}'
Example Response
null
DELETE
/api/builder/pages/{slug}

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Path Parameters

slug*string

Hosted landing page slug.

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X DELETE 'https://shaw.ai/api/builder/pages/string'
Example Response
null

List custom domains

GET
/api/builder/domains

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X GET 'https://shaw.ai/api/builder/domains'
Example Response
null
POST
/api/builder/domains

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Request Body

application/json
  1. body
hostname*string

Custom hostname (e.g. lp.yourbrand.com).

pageSlug?string

Optional hosted page slug to bind.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X POST 'https://shaw.ai/api/builder/domains' \  -H 'Content-Type: application/json' \  -d '{  "hostname": "string"}'
Example Response
null
POST
/api/builder/domains/{hostname}/verify

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Path Parameters

hostname*string

Custom domain hostname.

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X POST 'https://shaw.ai/api/builder/domains/string/verify'
Example Response
null

Remove a custom domain

DELETE
/api/builder/domains/{hostname}

Authorization

headerAuthorizationBearer <sk_…>

A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….

Path Parameters

hostname*string

Custom domain hostname.

Header Parameters

X-Shaw-Tenant?string

The organization to act for (an id from GET /api/me). Defaults to the key's pinned organization, else your first organization. You must be a member of it.

Response Body

Success. The body is JSON.

response?unknownapplication/json
Example Request
curl -X DELETE 'https://shaw.ai/api/builder/domains/string'
Example Response
null