> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superintern.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# CRM API

> Read and write your SuperIntern CRM tables from your own code with the REST API, keys and webhooks.

Your CRM has a REST API for your own code, scripts and other tools. AI apps can use the same CRM through [MCP](https://docs.superintern.ai/integrations/claude.md).

**Base address:** `https://api.superintern.ai/crm/v1`

## Get a key

On the CRM board, click **Set up API / MCP → Connect your CRM**, or go to **Team → API keys → Create Key**. Choose what the key can do:

| Option | Can |
| - | - |
| **Public only** | Read only what you made public. Safe to put on a website |
| **Read** | Read every table and item |
| **Read and edit** | Also add, change and delete items |
| **Full access** | Also change tables and columns |
| **Read, with views and automations** | Also read saved views and automations |
| **Full access, with views and automations** | Also change them |

A key reaches **one** CRM and works as the person who made it. It's shown once, so store it safely and never put any key other than **Public only** in a website or app.

```bash theme={null}
curl https://api.superintern.ai/crm/v1/me \
  -H "Authorization: Bearer sk_live_…"
```

## Tables and items

| Request | Does |
| - | - |
| `GET /me` | Which CRM the key reaches and what it can do |
| `GET /tables` | Your tables and their columns |
| `POST /tables` | Create a table (full access) |
| `GET`, `PATCH`, `DELETE /tables/<table>` | Read, change or delete a table |
| `GET /tables/<table>/records`, `POST …/records/search` | Find items |
| `POST /tables/<table>/records` | Add or update up to 100 items. `match_column` updates existing items instead of adding duplicates |
| `GET`, `PATCH`, `DELETE …/records/<id>` | One item |
| `…/views`, `…/automations` | Saved views and automations |

A table can be named by its id or its name. Read column keys from `GET /tables` instead of guessing them from labels.

## For websites

`GET /site/tables`, `GET /site/tables/<table>/rows` and `GET /site/tables/<table>/rows/<row>` return only what you made public, whatever key asks: public tables, public columns and public items. People and Companies are never returned. Use a **Public only** key. See [Show Your CRM on Your Website](https://docs.superintern.ai/websites/crm-on-your-website.md).

## Webhooks

Get told when items change:

```bash theme={null}
curl -X POST https://api.superintern.ai/crm/v1/hooks \
  -H "Authorization: Bearer sk_live_…" -H "Content-Type: application/json" \
  -d '{"table": "Orders", "url": "https://example.com/hooks/superintern"}'
```

* Events: `record.created`, `record.updated`, `record.deleted`, `record.restored`, `automation.step`, `ping`.
* Each delivery is signed. Check the `X-SuperIntern-Signature` header (`t=…,v1=…`: an HMAC-SHA256 of `"<t>.<raw body>"` with your `whsec_…` secret, shown once).
* A delivery can arrive more than once; ignore repeats by their `id`.
* The address must use `https`. Failed deliveries are retried after 1 minute, 5 minutes, 30 minutes and 2 hours. After five failures in a row the webhook pauses; `POST /hooks/<id>/resume` turns it back on.

## Limits

* Up to 100 items per save.
* Up to 10 webhooks per key and 50 per CRM.
* Public website reads: 600 requests a minute per key.
* An automation that sends email is always saved switched off; a team admin switches it on in the CRM.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.