# API keys

> Create, scope and revoke keys. Keys are personal, act with your role in each workspace, and are included with every account.

URL: https://heyorbitapp.vercel.app/docs/developers/api-keys
Last updated: 2026-11-21

Developers · [Documentation](https://heyorbitapp.vercel.app/docs)

The REST API and the MCP server are included with every account, at no extra cost. Dashboard → **API Keys**.

## Create a key

1. **Create key** → name it after where it will be used ("Claude Desktop", "Zapier", "Reporting script").
2. Choose **scopes**: **Read** (list posts, accounts, analytics and inbox items) and/or **Write** (create, schedule, publish and reply). Both are ticked by default.
3. Copy the key. It's shown once and stored only as a hash. Keys look like orb_xxxxxx_ followed by a long secret.

You can have up to 20 active keys. The list shows each key's prefix, scopes, when it was created and when it was **last used**.

## Permissions

A key acts as **you**, in every workspace you belong to, with your role in each. An Editor's key can create and schedule posts but can't manage members; a Viewer's key can only read. Workspace rules, such as required approval, apply to posts created through the API.

A read-only key can only make GET requests to the REST API. On the MCP server it can list and call the read-only tools; tools that change something need a key with the write scope.

## Use a key

~~~bash
curl https://app.heyorbit.app/api/v1/me \
  -H "Authorization: Bearer orb_xxxxxx_your_api_key"
~~~

Choose the workspace with an x-workspace header or a workspaceId query or body field; without one, your first workspace is used. The API Keys page shows the exact URLs and ready-to-copy snippets for your HeyOrbit. See [REST API](https://heyorbitapp.vercel.app/docs/developers/rest-api).

## Revoke and rotate

**Revoke** stops a key working immediately. To rotate, create a new key, update the client, then revoke the old one.

## Safety

- Never paste keys into chat prompts; MCP clients keep them in their config ([MCP server](https://heyorbitapp.vercel.app/docs/developers/mcp-server)).
- Use read-only keys for scripts that only read.
- One key per integration, so revoking one doesn't break the others.
