---
title: "API Keys and Permissions"
description: "Create a key for your AI agent, choose exactly what it may do, roll or delete it, and disconnect apps you connected by signing in."
url: "https://www.contito.com/docs/ai-agents/api-keys-and-permissions"
published: "2026-11-16T06:04:37.917Z"
modified: "2026-11-16T06:04:37.917Z"
---

# API Keys and Permissions

An API key is one way an AI agent signs in to Contito.

Each key has its own name and its own list of permissions, called **scopes**.

Apps you connect by signing in, like Claude or ChatGPT, need no key. They're listed in the same place, under **Connected apps**.

API keys need a paid plan: Starter, Pro or Ultimate.

## Open Connections

Click the Contito logo to open the app menu, and choose **Connections**.

The list at the top shows your keys, when each was created and when it was last used.

![The Connections dialog with the API keys, Create Key, the MCP URL and a connected app numbered](https://www.contito.com/__asset/dvftpx)

| \# | What it does |
| --- | --- |
| 1 | A key. Click it to edit, roll or delete it. |
| 2 | **Create Key**: makes a new key. |
| 3 | The MCP URL, for apps that connect by signing in. The button copies it. |
| 4 | A connected app. See [Connected apps](#connected-apps) below. |

## Create a key

Click **Create Key**.

![The Create API key dialog with Name, the scope chips and Create marked](https://www.contito.com/__asset/1da839q)

| \# | What it does |
| --- | --- |
| 1 | **Name**: a label you'll recognize later, such as "Claude Code on my laptop". |
| 2 | **Scopes**: click a chip to give the key that permission. **ALL** selects every scope. |
| 3 | **Create**: makes the key and shows it. |

### What each scope allows

| Scope | Lets the agent |
| --- | --- |
| `project:read` | List your sites and read their settings, list the built-in themes |
| `project:write` | Create sites and change their settings (name, navigation, logo, theme style) |
| `content:read` | Read contents, collections, tags and images |
| `content:write` | Publish, change and delete contents, collections and tags, upload images, run a sync |
| `theme:read` | Read the theme guide, export a theme's source, look up fonts and icons |
| `theme:write` | Build and preview your custom theme, save versions, and switch the theme your site uses |

Pick the scopes for the job:

| To | Select |
| --- | --- |
| Write content | `project:read`, `content:read`, `content:write` |
| Design a theme | the three above, plus `theme:read` and `theme:write` |
| Do anything you can do | **ALL** |

A key never does more than its owner can. A key made by a member who can't delete a site can't delete one either, whatever its scopes say.

## Copy the key

The key appears once, right after you create it.

> Copy it now — for security it won't be shown again.

![The new key, hidden here, with the Choose what to copy menu open](https://www.contito.com/__asset/1dl95f5)

| \# | What it does |
| --- | --- |
| 1 | **Choose what to copy**: picks what the box below shows. |
| 2 | The key, or the setup command with the key already in it. Click **Copy** below it. |

The menu offers:

| Option | What you get |
| --- | --- |
| **API key** | The key on its own |
| **Claude Code** | A command that adds Contito to Claude Code |
| **mcp.json** | A config file for Cursor and other agents that use one |
| **Codex** | A command that adds Contito to Codex |
| **Gemini CLI** | A command that adds Contito to Gemini CLI |
| **VS Code** | A command that adds Contito to VS Code |

Paste the command into your terminal, or follow [Connect Your Agent](https://www.contito.com/ai-agents/connect-your-agent).

Lost the key before you copied it? Contito can't show it again.

Roll the key to get a new one.

## Change, roll or delete a key

Click a key in the list to open it.

![The Edit API key dialog with Delete key, Roll and Save numbered](https://www.contito.com/__asset/1lzar4m)

| \# | What it does |
| --- | --- |
| 1 | **Delete key**: revokes the key for good. Anything using it stops working immediately. |
| 2 | **Roll**: gives you a new secret to copy once, and the old one stops working immediately. Roll a key that has leaked. |
| 3 | **Save**: keeps your changes to the name and scopes. The agent doesn't need to reconnect. |

Both **Roll** and **Delete key** ask you to confirm first.

After a roll, set the new key up in your agent again.

## Connected apps

Apps you connected by signing in are listed under **Connected apps**.

[Connect Your Agent](https://www.contito.com/ai-agents/connect-your-agent) shows how to connect one.

Under each app's name:

| Detail | Means |
| --- | --- |
| **On this computer** | A program on your own computer, such as Claude Code, rather than a chat website |
| **Sites**, **Sites and content** or **Sites, content and themes** | What you allowed it to do |
| **Connected** and **Last used** | When you allowed it, and when it last worked on your sites |
| **Approved from** | The region and country where you clicked **Allow** |

To change what an app may do, disconnect it and connect it again.

### Disconnect an app

Click **Disconnect** next to the app, then **Disconnect** again to confirm.

It loses access at once, including anything it's in the middle of.

To use it again, connect it from the app and click **Allow** in Contito.

A connection ends on its own 180 days after you allowed it.
