This quickstart uses the Brand Context API because it is a read-only, low-risk operation. Brand read keys cannot send mail, read contact lists, or modify campaigns. They are a safe starting point for exploring SendWhale’s developer surface.
1
Get your Workspace ID
Your Workspace ID is required on every API request. To find it:
- Sign in to SendWhale.
- Open your workspace Settings.
- Navigate to the Agent Access tab.
- Copy the Workspace ID displayed at the top of the page.
ws_abc123. Keep it handy — you will use it in every API call.2
Create a brand read key
Brand read keys authenticate requests to the Brand Context API. To create one:
- In workspace Settings → Agent Access, click Create Key.
- Give the key a descriptive name (for example,
my-first-api-test). - Click Create and copy the key immediately — it is only shown once.
3
Make a read request to the Brand Context API
With your Workspace ID and brand read key ready, run the following command in your terminal. Replace A successful request returns an HTTP
<YOUR_BRAND_KEY> and <YOUR_WORKSPACE_ID> with the values you copied in the previous steps.200 response with a JSON body. Common errors:4
Review the response
The response body contains your workspace’s brand context object. It includes fields such as:
- name — your workspace or brand name
- description — a short description of your brand
- voice — brand voice and tone guidelines
- colors — primary and secondary brand colors
- fonts — preferred font choices
- social — social media profile links
- knowledge — brand knowledge base entries
5
Use this data in your integrations
Now that you can read brand context programmatically, you can:
- Feed it as a system prompt to an AI model in your own application.
- Cache it server-side and refresh it before your 90-day key expires.
- Use the MCP server to give an AI client like Claude Desktop direct, live access to this data alongside campaign management tools.