> For the complete documentation index, see [llms.txt](https://help.blotato.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.blotato.com/settings/api-keys.md).

# API keys

For plan allowances, see [billing and credits](/settings/billing-and-credits.md) and [current pricing](https://www.blotato.com/pricing).

## Blotato API Key

Your API key is used for Claude Code, Cursor, n8n, Make.com, and REST API integrations. If you use Claude.ai Web, Claude Desktop, or Claude Cowork, you connect via OAuth and do not need an API key (see [MCP Setup](/start-with-an-ai-agent/mcp/setup.md)).

To get your Blotato API key, go to [Settings > API](https://my.blotato.com/settings/api) and click "Copy API Key". Under Choose where you'll use Blotato, select your client for its setup instructions. These controls are available from either website mode.

Your API key sometimes ends with one or more `=` characters (base64 padding). The `=` is part of your key. Copy the full key including the trailing `=`, and do not remove it. When you paste the key into a shell, `.env` file, or script, wrap it in single quotes (for example `'abc123=='`), because `=` is a special character in those contexts. A dropped or stripped trailing `=` causes a 401 "invalid API key" error.

### How to revoke or regenerate your API key

To revoke your current API key, go to [Settings > API](https://my.blotato.com/settings/api) and click "Regenerate." This creates a new key and immediately invalidates the old one.

After regenerating, update the new key in all your automation workflows (n8n, Make.com, Claude Code, Cursor, etc.). OAuth-connected clients (Claude.ai, Claude Desktop, Claude Cowork) are not affected by API key changes.

### One API key per Blotato account

Each Blotato account has one API key. To run separate automations for separate clients, each client needs their own Blotato account and its own API key -- one key cannot address multiple accounts.

### Social account IDs

Open [Accounts](https://my.blotato.com/accounts) to find your connected destinations. Use Copy account ID beside the intended row's Account ID.

For Facebook Pages and LinkedIn company Pages, also use Copy page ID beside the intended Page. These are destination identifiers, not your Blotato API key.

The Blotato API allows you to upload media assets, publish to your social media accounts, and manage communications on your Facebook and Instagram accounts.

Typical use cases include:

* automated content creation & publishing
* automated publishing of AI avatar videos
* automated cross-posting across social accounts (e.g. TikTok to IG Reels)
* automated comment and direct message management on Instagram and Facebook

***

## Troubleshooting Blotato API Errors

Here are 2 ways to check what JSON data format is required by the Blotato API:

1. Download an existing Make blueprint with the HTTP nodes already configured. For example, here's a Make workflow automation for an AI Social Media System: <https://www.sabrina.dev/p/i-built-an-ai-social-media-system>
2. Open Developer Platform > Logs, select a matching request, and expand Raw request and response. Compare the recorded payload with the [Publish Post reference](/rest-api-reference/publish-post.md). Remove credentials and signed URLs before sharing a payload.

***

## Setup Replicate API Key

Settings > API no longer has a Replicate key field. For image creation in the current website, follow [AI images](/web-app-features/ai-images.md). Review the displayed credit cost before generating.

## Elevenlabs API Key

If you have custom voices in Elevenlabs, you can use them in the Blotato video web app.

In Settings, input your Elevenlabs API key:

Open Settings > API and find External API Keys. Enter the key in Elevenlabs, then select Save.

When you create a new video in the web app, all your custom Elevenlabs voices will be listed and available for you to select.

Custom ElevenLabs voices are available in the web-app editor after connecting your ElevenLabs key. The public Create Visual template API does not expose a custom `voiceId` field. For the external-audio workflow using ElevenLabs and Combine Clips and Apply Basic Edits, see [Voice IDs](/rest-api-reference/accounts/voice-ids.md).

***

## Troubleshooting API Key Errors

If you're seeing API key errors in Blotato, double check the following:

* setup Billing correctly for each account
* add your credit card to each account

If that still didn't work, I suggest removing your API keys for now. Remember to click **Save**.

Contact Sabrina via in-app chat in the bottom right corner for further assistance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.blotato.com/settings/api-keys.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
