Email Studio
Create, inspect, and update Email Studio drafts, import email remixes, and publish directly to connected Klaviyo accounts.
AuthorizationBearer <sk_…>A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….
X-Shaw-Tenant?stringThe 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.
Success. The body is JSON.
response?unknownapplication/jsoncurl -X GET 'https://shaw.ai/api/email-studio/drafts'nullAuthorizationBearer <sk_…>A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….
draftId*stringEmail draft id.
X-Shaw-Tenant?stringThe 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.
Success. The body is JSON.
response?unknownapplication/jsoncurl -X GET 'https://shaw.ai/api/email-studio/drafts/string'nullAuthorizationBearer <sk_…>A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….
draftId*stringEmail draft id.
X-Shaw-Tenant?stringThe 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.
Success. The body is JSON.
response?unknownapplication/jsoncurl -X DELETE 'https://shaw.ai/api/email-studio/drafts/string'nullAuthorizationBearer <sk_…>A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….
draftId*stringEmail draft id (1-64 alphanumeric, dash, or underscore characters).
X-Shaw-Tenant?stringThe 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.
application/json- body
document*Structured EmailDocument payload (title, subject, sections, etc.).
Success. The body is JSON.
response?unknownapplication/jsoncurl -X PUT 'https://shaw.ai/api/email-studio/drafts/string' \ -H 'Content-Type: application/json' \ -d '{ "document": {}}'nullAuthorizationBearer <sk_…>A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….
X-Shaw-Tenant?stringThe 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.
application/json- body
remixId*stringEmail remix id (rmx_...) to convert into an Email Studio draft.
Success. The body is JSON.
response?unknownapplication/jsoncurl -X POST 'https://shaw.ai/api/email-studio/import-remix' \ -H 'Content-Type: application/json' \ -d '{ "remixId": "string"}'nullAuthorizationBearer <sk_…>A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….
X-Shaw-Tenant?stringThe 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.
application/json- body
audienceId?stringKlaviyo list or segment id when mode is campaign_draft.
document?EmailDocument payload; omitted if publishing an existing draftId.
draftId?stringSaved Email Studio draft id to publish.
fromEmail?stringSender email override.
fromLabel?stringSender display name override.
mode*stringPublish a reusable Klaviyo template or a campaign draft.
"template""campaign_draft"replyToEmail?stringReply-to email override.
templateName?stringTemplate name in Klaviyo.
Success. The body is JSON.
response?unknownapplication/jsoncurl -X POST 'https://shaw.ai/api/email-studio/klaviyo/publish' \ -H 'Content-Type: application/json' \ -d '{ "mode": "template"}'nullAuthorizationBearer <sk_…>A personal API key created in Settings → Developers. Send it as Authorization: Bearer sk_….
X-Shaw-Tenant?stringThe 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.
application/json- body
audienceId?stringKlaviyo list or segment id when mode is campaign_draft.
excludedAudienceIds?array<unknown>Optional list of Klaviyo list or segment ids to exclude from a campaign draft.
existingKlaviyoTemplateId?stringOptional existing Klaviyo template id to update in place.
fromEmail?stringSender email override.
fromLabel?stringSender display name override.
mode?stringPublish a reusable Klaviyo CODE template or a Klaviyo draft campaign (defaults to template).
"template""campaign_draft"previewText?stringOptional inbox preview / preheader text.
replyToEmail?stringReply-to email override.
slug?stringLibrary email template slug (e.g. aesop/email-welcome), if templateId is omitted.
subject?stringOptional email subject line override.
templateId?stringLibrary email template id (tpl_...) from search_templates.
templateName?stringTemplate name in Klaviyo.
useSmartSending?booleanWhether Klaviyo Smart Sending is enabled (default true).
version?stringOptional template version id (YYYY-MM-DD).
Success. The body is JSON.
response?unknownapplication/jsoncurl -X POST 'https://shaw.ai/api/email-studio/klaviyo/publish-template' \ -H 'Content-Type: application/json' \ -d '{}'null