> For the complete documentation index, see [llms.txt](https://help.usejimo.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.usejimo.com/docs/integrations/mcp/api-keys-for-automations.md). Agents can also search and read this documentation through its [MCP server](https://help.usejimo.com/docs/~gitbook/mcp).

# API keys for automations

A Slack bot, or an AI agent your team hosts cannot sign in through a browser. For those, create an API key: keys let a server-side agent use the Jimo MCP without a browser login.

A key is a service account owned by the project, not by the person who created it. It keeps working if that person leaves, ensuring continuity for your automations.

{% hint style="warning" %}
This is **not** the Jimo REST API. The REST API has its own credentials: enabling the **API** card in [Settings > Integrations](https://i.usejimo.com/settings/integrations) issues an API client and an API secret for the project, and **Disconnect integration** revokes them at once. Those credentials do not work here, and an MCP key does not work there. See [the API reference](https://help.usejimo.com/docs/for-developers/for-developers/api.md).
{% endhint %}

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2FbYBATGVemmPcVWL4w20V%2FR241-01-mcp-settings.png?alt=media&amp;token=084bbf0e-f006-4d86-a923-0a598fa83992" alt="Settings > Integrations > Model Context Protocol: the MCP Endpoint https://mcp.usejimo.com/mcp with its Copy button (A), the Connected AI clients that signed in through the browser (B), and the API Keys card with New key for automations (C)."><figcaption></figcaption></figure>

## Create a Key

{% stepper %}
{% step %}
**Open the API Keys card**

Go to [Settings → Integrations → Model Context Protocol](https://i.usejimo.com/settings/integrations/mcp) and click **+ New key** on the **API Keys** card. The **Create an MCP API Key** window opens.
{% endstep %}

{% step %}
**Name it after the job**

One key per automation, so a single job can be revoked alone. Type the name in the **Label** field, for example "Release Automation".
{% endstep %}

{% step %}
**Choose what the key can do**

Under **What this key can do**, tick the permissions the job needs. They work exactly like the [assistant permissions](https://help.usejimo.com/docs/integrations/mcp/permissions-and-safety.md).

* **Build and run my Jimo Agent**: create and edit the agent's pages, skills, suggestions and settings, and switch it live. Changes end users would see are previewed first.
* **Teach my Jimo Agent**: save custom answers, import documents and websites, and refresh or remove the knowledge the agent answers from.
* **Manage Experiences**: create, play/pause, publish, delete, or change changelog posts, banners, modals. Publishing and deleting require explicit confirmation.
* **Read project data and analytics**: read experiences, survey responses, user segments, end-user adoption data, and the AI agent's setup and conversations; ask the agent test questions. Ticked by default.

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2FuCDRlMeApVV6k2nBUOZA%2FR241-03-new-key-permissions.png?alt=media&amp;token=3d3ffee2-58e5-4e03-a955-d88093f82695" alt="The Create an MCP API Key window: name the key after its job in Label (A), then tick what this key can do (B): Build and run my Jimo Agent, Teach my Jimo Agent, Manage Experiences, and Read project data and analytics, ticked by default."><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Set Custom Access**

Tick **Custom Access** to choose box by box what the key may reach, independent of who created it. The boxes come in four groups:

* **Experiences**: View experiences, View experiences analytics, Create and edit experiences, Publish and pause experiences, Delete experiences.
* **Changelog**: View posts, View post analytics, Create and edit posts, Publish posts, Delete posts.
* **Users**: View end users identities.
* **AI Agent**: see below.

The experience tools use the same boxes, there is no separate one for them:

| What the key does                                               | Box to tick                                                                                     |
| --------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| Display rules, audience, theme and position, tags, translations | **Create and edit experiences** (**Create and edit posts** for posts)                           |
| A/B tests, publish, pause and resume                            | **Publish and pause experiences** (**Publish posts** for posts)                                 |
| Delete something live                                           | **Delete experiences** or **Delete posts**. Not ticked by default: tick it under Custom Access. |

The **AI Agent** group covers the agent:

* View the agent setup and conversations
* Edit pages, skills and settings
* Delete pages and skills
* Manage AI knowledge

Ticking **Build and run my Jimo Agent** grants view and edit. **Delete pages and skills** stays unticked until someone opts in, the same as deleting experiences or posts. A read-only key can view the agent setup and its knowledge, it cannot change them.

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2FxYMzR1cH44akF0NKdt2b%2FR241-04-new-key-custom-access.png?alt=media&amp;token=c9f3d993-262e-4ca7-94cd-4da68592c2b7" alt="Custom Access ticked (A) shows the boxes group by group: Experiences (B), then Changelog, Users and AI Agent. Delete boxes stay unticked until you opt in."><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Copy the Client ID and Client secret**

Click **Create**. The secret is shown once. Store it in your secret manager right away.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Custom Access applies to keys only. An assistant that signs in through the browser works with your own Jimo role.
{% endhint %}

## How a Key Works

An assistant signs in through the server URL with OAuth. A key is for headless access (scripts, CI, server agents): your script uses the OAuth client\_credentials flow to exchange the Client ID and Client secret for a short-lived access token (about 30 minutes), then calls the same endpoint an assistant uses:

```
https://mcp.usejimo.com/mcp
```

Good to know:

* Content created by a key has **no author**, and webhooks it triggers carry no user.
* The same [preview and confirm rules](https://help.usejimo.com/docs/integrations/mcp/permissions-and-safety.md#every-change-is-previewed-first) apply to keys as to assistants.
* A key cannot create or end an A/B test: those need a signed-in Jimo user. Run them from an assistant connected with your account.
* Up to **10 keys per project**.

## Rotation and Revocation

<figure><img src="https://2794860263-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKzAcDWQbK1gKbpra7bkb%2Fuploads%2FVO0pey3dNU4Gxc7aM4uC%2FR241-g03-mcp-key-lifecycle.png?alt=media&amp;token=02e70018-e6bf-4a03-85af-86dae8a38544" alt="The life of an MCP API key: create it with fixed permissions, use it through 30-minute tokens, rotate with a 24-hour overlap, revoke to stop it at once."><figcaption></figcaption></figure>

| Action          | Effect                                                                                                                                                     |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Rotate**      | Issues a new secret. The previous one keeps working for 24 hours, or until you click **Retire previous secret**, so you can swap secrets without downtime. |
| **Revoke**      | Disables the key and every token minted from it immediately.                                                                                               |
| **Permissions** | Fixed at creation. To change them, revoke and create a new key.                                                                                            |

{% hint style="info" %}
A key created before October 7, 2026 cannot gain **Build and run my Jimo Agent**: create a new one.
{% endhint %}

{% hint style="danger" %}
Never share a Client secret, including with Jimo support.
{% endhint %}

## Next Steps

* [Managing Access, Usage & Limits](https://help.usejimo.com/docs/integrations/mcp/managing-access-usage-and-limits.md): where keys are listed, rotated, and revoked.
* [Tools Reference](https://help.usejimo.com/docs/integrations/mcp/tools-reference.md): what a key can call, depending on its permissions.
