ShawDocs
API Reference

Templates

Search Shaw's live template catalog, inspect measured LOC credit costs, read launch notes, and unlock source bundles.

Download spec
GET
/api/templates/search

Authorization

headerAuthorizationBearer <sk_…>

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

Query Parameters

brand?string

Filter by brand slug or name.

category?string

Filter by category group or label.

channel?string

Filter by surface channel.

Value in"websites""emails""apps""ads"
limit?integer

Results per page (1-25, default 20).

offset?integer

Pagination offset (default 0).

q?string

Search query across brand, title, surface, or subject.

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/search'
Example Response
null
GET
/api/templates/detail/{id}

Authorization

headerAuthorizationBearer <sk_…>

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

Path Parameters

id*string

Template id (tpl_...) from search_templates.

Query Parameters

path?string

Optional page path within the template (defaults to /).

version?string

Optional template version id (YYYY-MM-DD).

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/detail/string'
Example Response
null

List catalog brands

GET
/api/templates/brands

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/brands'
Example Response
null
GET
/api/templates/notes/{id}

Authorization

headerAuthorizationBearer <sk_…>

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

Path Parameters

id*string

Template id (tpl_...) from search_templates.

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/notes/string'
Example Response
null
POST
/api/templates/use

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
path?string

Page path within the template (defaults to /).

slug?string

Template slug (e.g. rhode/landing), if templateId is omitted.

templateId?string

Template id (tpl_...) from search_templates.

version?string

Optional template version id.

Response Body

Success. The body is JSON.

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