Saypage API keys
Use Saypage from your own code with an API key: a daily insights report with the Claude API, a script, any MCP client. Read-only or full access, created and revoked on your account page.
An API key lets your own code use Saypage the way your assistant does: a daily insights report sent by a scheduled job, a script that reads your comments, a tool that can't sign in with OAuth. It opens Saypage's MCP server, with the same tools your assistant has.
You don't need a key for Claude, ChatGPT or any assistant app: they sign in on their own when you add the connector. Their scheduled tasks use that same connection.
Create a key#
- Sign in on saypage.ai and open API keys in your account.
- Name the key after what uses it, such as "Daily insights report".
- Choose its access: Read only (the default) or Full access.
- Select Create key, and confirm it's you if Saypage asks.
- Copy the key. Saypage shows it this once and keeps only a fingerprint of it, so nobody can show it to you again. Lost a key? Revoke it and create another.
A key starts with sp_. Keep it like a password, in your job's secret store, never in code you share.
Read only or full access#
| Access | What the key can do |
|---|---|
| Read only | Read your posts, comments, insights, pages and their statistics, automations and their activity, contacts and collected emails. It can't post, reply, send DMs, connect accounts or change anything. |
| Full access | Everything your assistant can do, publishing and deleting included. |
A read-only key sees only the tools that read: get_instagram_insights, list_instagram_posts, get_automation_activity and the others marked Read only in the tools reference, except connect_instagram, get_instagram_publishing_link and preview_instagram_post, which create links or images, and onboarding, the welcome for a new user in an assistant. Saypage refuses it any change, whichever tool asks.
Pick read only unless the job needs to change something. A key works within your plan, like your assistant: on Free, even a full-access key only reads.
Use a key#
Connect to https://api.saypage.ai/mcp and send the key as a bearer token in the Authorization header:
Authorization: Bearer sp_…
The key works there only: Saypage's other addresses don't take keys, and no key can create, see or revoke keys.
A daily report with the Claude API#
The Claude API's MCP connector calls Saypage's tools for you. Pass the key as the server's authorization_token. In Python, with a key in SAYPAGE_API_KEY:
import os
import anthropic
client = anthropic.Anthropic()
response = client.beta.messages.create(
model="claude-opus-5-5",
max_tokens=16000,
betas=["mcp-client-2025-11-20"],
mcp_servers=[
{
"type": "url",
"url": "https://api.saypage.ai/mcp",
"name": "saypage",
"authorization_token": os.environ["SAYPAGE_API_KEY"],
}
],
tools=[{"type": "mcp_toolset", "mcp_server_name": "saypage"}],
messages=[
{
"role": "user",
"content": "Give me yesterday's Instagram brief: reach, views, new followers, "
"the best post and why, and one idea for today.",
}
],
)
print("".join(block.text for block in response.content if block.type == "text"))
Run it from a scheduler (cron, a cloud scheduled job) at the time you want, and send the text where your team reads it. A read-only key is enough for a report.
With Claude Managed Agents, store the key in a vault as a static bearer credential for https://api.saypage.ai/mcp: the agent's Saypage calls carry it, and the agent never sees it.
Any MCP client, or curl#
Any MCP client that can send a header works. To check a key, list the tools it reaches:
curl https://api.saypage.ai/mcp \
-H "Authorization: Bearer $SAYPAGE_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-06-18" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'
A key Saypage doesn't know, or one you revoked, gets 401 Unauthorized.
Revoke a key#
Open API keys in your account and select Revoke next to the key. Whatever uses it stops working at once. Revoke a key as soon as you think someone else may have it.
The list shows when each key was last used, to the minute, so you can tell which ones are still in use.
Questions#
How many keys can I have?#
Up to 10 at a time. Revoke one you no longer use to create another.
Can my assistant create a key for me?#
No. Keys are created and revoked on your account page only, after you confirm it's you. No assistant and no key can create one.
What happens to my keys if I delete my account?#
They stop working as soon as you ask for the deletion, and are deleted with your account.