Skip to main content
This page documents verified SendWhale API endpoints. All requests must include a valid Authorization: Bearer <TOKEN> header and be scoped to a workspace using your workspace_id. Your data is isolated to your workspace — a credential can only access data in workspaces it is authorized for.
This reference covers verified API endpoints from the SendWhale implementation. If you need an endpoint not listed here, contact support@gosendwhale.com.

Brand Context API

Returns the brand context for a workspace. Use this endpoint to read brand data programmatically for use in AI integrations, external tools, or custom workflows. Method: POST URL: https://fvtvyejucthdmnpfkrnl.supabase.co/functions/v1/brand-agent

Request headers

Request body

string
required
The action to perform. Must be "context" to retrieve brand context data.
string
required
The unique identifier of the workspace whose brand context you want to read. Find your Workspace ID in workspace Settings → Agent Access.

Response

A successful request returns HTTP 200 with a JSON object containing your workspace’s brand context.
string
The workspace or brand name.
string
A short description of the brand.
string
Brand voice and tone guidelines used when generating copy.
object
Brand color values, including primary and secondary palette entries.
object
Preferred font choices for headings and body text.
object
Social media profile URLs associated with the workspace.
array
An array of brand knowledge base entries — facts, guidelines, and reference material stored in the workspace.

Example request

Error codes


Transactional Email API

Transactional email API credentials and endpoints are configured separately from marketing credentials. Contact support@gosendwhale.com to request access and receive your endpoint documentation.

Campaign API

Campaign API operations are also available via the MCP server tools — including list_campaigns, get_campaign, create_campaign_draft, and update_campaign_draft. See the MCP Tools page for full schemas. A REST endpoint reference for campaign operations is under development.

Authentication reference

All API requests require an Authorization: Bearer <TOKEN> header. The credential type you use depends on the endpoint: For full details on obtaining and rotating each credential type, see the Authentication page.