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

> ## Agent Instructions
> For short, quotable answers about SmartAlex (what it is, who it is for, what it costs, where it runs, how it keeps data safe, which apps it connects to), read the facts page at /ai/facts on this site first, then the page it links to. Its last table maps every section of these docs.
> For how to do something, use the step-by-step pages: /learn for whole paths, and each section's first-time pages such as /calls/buy-your-first-number, /agents/create-an-agent or /campaigns/import-your-first-contacts. Give the click path exactly as written there, for example Calls, then Numbers, then Buy number, with the bold button labels unchanged.
> Prices come from the Pricing page at /pricing and the pages under /pricing. Quote a price exactly as written there, with its currency and unit.
> Short answers to common questions are under /help, grouped by section. Legal documents are summarised under /legal; each summary links to the binding text, which prevails over the summary.
> If a feature or screen is not described in these docs, say that you could not find it rather than guessing.
> Pages under /comparisons describe other companies' products as of the date on each page. For SmartAlex's own features and prices, use the product pages.
> The MCP server at /mcp on this site only searches this documentation. To work inside your own SmartAlex workspace (agents, calls, campaigns, contacts), use the SmartAlex MCP server described at /mcp/overview.

# Developers and MCP: questions and answers

> Connect SmartAlex to Claude, ChatGPT and other AI apps over MCP, use the REST API and webhooks, and call your own systems from an agent.

You can work with SmartAlex from code or from an AI app. The MCP server lets Claude, ChatGPT, Cursor and other AI apps manage your agents, contacts, campaigns and calls after you sign in. The REST API, webhooks and campaign trigger address connect your own systems.

> [!NOTE]
>
> In the app: **Sidebar → Settings → Webhooks & API** for API keys and webhooks. MCP connects from your AI app with your SmartAlex sign-in.

![Webhooks and API settings with API keys and webhooks](https://mintcdn.com/smartalex/B19K8M9fDg-qW6ro/images/screens/help-answers/webhooks-api.webp?fit=max\&auto=format\&n=B19K8M9fDg-qW6ro\&q=85\&s=af98ab708604c832123bdd256008a6b1)

API keys and webhooks live in Settings

The diagram shows how your AI app talks to SmartAlex over MCP.

```mermaid theme={null}
sequenceDiagram
  participant App as Your AI app
  participant MCP as SmartAlex MCP server
  participant You as You
  App->>MCP: Add the SmartAlex connector
  MCP->>You: Sign in to SmartAlex
  You->>MCP: Approve access
  App->>MCP: "List my campaigns"
  MCP->>App: Results from your workspace
```

## Connect an AI app

> [accordion] What is the SmartAlex MCP server?
>
> It is a connection that lets an AI app such as Claude or ChatGPT work in your SmartAlex workspace for you. You add one address to the app and sign in to SmartAlex in your browser. Then you can ask it in plain words to build agents, start campaigns, read calls and manage contacts. It works as you, in your workspace, with your role's permissions.
>
> See [MCP overview](https://docs.getsmartalex.com/mcp/overview.md).

> [accordion] Which AI apps can I connect, and on which plans?
>
> Claude works on every Claude plan. Pro, Max and Ultra add the SmartAlex plugin. The Free plan adds a connector, with one custom connector allowed. ChatGPT works fully on Business, Enterprise and Edu, is read only on Pro, and does not list custom servers on Plus, Go or Free. Claude Code, Codex, Cursor and VS Code can connect too, as can any other app that supports MCP sign-in.
>
> See [Install in ChatGPT](https://docs.getsmartalex.com/mcp/install-chatgpt.md).

> [accordion] What address do I add to my AI app?
>
> Add `https://mcp.getsmartalex.com`, then sign in to SmartAlex in your browser and press **Approve**. You do not need an API key. If you pay by the token, use `https://mcp.getsmartalex.com/lean` instead. It starts each chat with far fewer tools and looks up the rest as it needs them.
>
> See [Getting started](https://docs.getsmartalex.com/mcp/getting-started.md).

> [accordion] How do I connect Claude?
>
> 1. Open **Plugins** in Claude (older menus say **Customize**).
> 2. On Pro, Max or Ultra, add the marketplace `The-RCS-Group/smartalex-plugin` and install SmartAlex. On the Free plan, add a custom connector with the address `https://mcp.getsmartalex.com`.
> 3. Click **Connect**.
> 4. Sign in to SmartAlex if it asks, and click **Approve**.
> 5. Start a new chat and ask "How many contacts, campaigns and calls do I have in SmartAlex?"
>
> See [Install in Claude](https://docs.getsmartalex.com/mcp/install-claude.md).

> [accordion] How do I connect Claude on a Team or Enterprise plan?
>
> The owner adds SmartAlex once as an organisation connector, then each member connects it with their own SmartAlex login. Nobody is connected until they sign in themselves, and each person sees only what their own SmartAlex role allows.
>
> See [Claude Team and Enterprise](https://docs.getsmartalex.com/mcp/claude-team-and-enterprise.md).

> [accordion] How do I connect ChatGPT?
>
> On chatgpt.com, click **Plugins**, then **+**, then **Add custom MCP server**. Name it `SmartAlex`, paste `https://mcp.getsmartalex.com` under **Connection**, pick **OAuth**, and click **Approve** on the SmartAlex page. On Business, Enterprise and Edu your admin sets it up first and shares it, then each member connects.
>
> See [Install in ChatGPT](https://docs.getsmartalex.com/mcp/install-chatgpt.md).

> [accordion] How do I connect Claude Code, Codex or Cursor?
>
> Give the app one sentence and it does the setup: "Set up the SmartAlex plugin by following the steps in [https://github.com/The-RCS-Group/smartalex-plugin](https://github.com/The-RCS-Group/smartalex-plugin)". In Claude Code, run it as `claude "..."` in your terminal. When a SmartAlex page opens in your browser, click **Approve**. No API key is stored in any file, and each app also has a connection-only route if plugins are blocked.
>
> See [Install in Claude Code](https://docs.getsmartalex.com/mcp/install-claude-code.md).

> [accordion] What does the Claude plugin add?
>
> The plugin gives your AI app every SmartAlex tool. It also adds step-by-step guides for jobs that change your code. Examples are adding the voice widget to your site, wiring call events into your backend and calling a list. It works in Claude, Claude Code, Codex and Cursor. ChatGPT gets the tools but not the guides.
>
> See [Install the plugin](https://docs.getsmartalex.com/mcp/install-plugin.md).

> [accordion] What is the npm package, and do I need it?
>
> It is an older local version of the MCP server, run with `npx @smartalex/mcp-server`, that signs in with an API key in the `SMARTALEX_API_KEY` setting. Most people do not need it: connect to `https://mcp.getsmartalex.com` by signing in instead. The package needs Node.js 18 or later and a key from **Sidebar → Settings → Webhooks & API**.
>
> See [npm package](https://docs.getsmartalex.com/mcp/npm-package.md).

## What an AI app can do

> [accordion] Can an AI assistant build agents and campaigns for me through MCP?
>
> Yes. It can create an agent from your website, edit its prompt section by section, add knowledge, create and start campaigns and review calls. Campaigns need the Outbound Campaigns add-on, and creating an agent needs a free agent slot. Phone numbers and agent slots are bought in SmartAlex itself, not from the AI app.
>
> See [Agent capabilities](https://docs.getsmartalex.com/mcp/agent-capabilities.md). First time: [Call your own list from ChatGPT or Claude](https://docs.getsmartalex.com/use-cases/call-your-list-from-chatgpt.md).

> [accordion] What will the AI app ask me before it acts?
>
> Anything that spends money, contacts real people, routes callers to a number or deletes something for good shows you a preview first. It waits for your yes. This is on for every workspace and cannot be turned off. Smaller changes, such as editing a contact or an agent's prompt, run straight away, and prompt changes are saved as versions you can undo.
>
> See [Security and permissions](https://docs.getsmartalex.com/mcp/security-and-permissions.md).

> [accordion] Can I switch workspaces through the assistant?
>
> Yes. Ask "List my workspaces", then "Switch to" and the workspace's name. From then on every request reads and changes that workspace, in every AI app signed in as you, until you switch again. The SmartAlex web app stays on the workspace open there, and if the app still shows the old tools, start a new chat.
>
> See [Install in ChatGPT](https://docs.getsmartalex.com/mcp/install-chatgpt.md#how-do-i-work-in-another-workspace).

> [accordion] How do I disconnect an AI app?
>
> Remove SmartAlex in the AI app. Then end its sign-in in SmartAlex: click **Settings** at the bottom of the sidebar and open **Where you're signed in** under **Security**. Removing the app does not always end its access, so sign it out there to be sure. On a team plan, the owner removes it for everyone.
>
> See [Check and disconnect](https://docs.getsmartalex.com/mcp/check-and-disconnect.md).

> [accordion] What are the limits and common errors?
>
> An AI app can make 100 requests a minute per workspace, and over that it gets a `429` with a `Retry-After` header and backs off. An expired sign-in says so, and you sign in again from the app. A tool refused because of your role needs a workspace owner or admin.
>
> See [Error reference](https://docs.getsmartalex.com/mcp/errors.md).

> [accordion] Which AI-app tools cover automations, reminders after calls, social media and the Inbox?
>
> For automations, your AI app can list them and switch them on or off. It can also create, change or delete comment-to-DM automations for Instagram and Facebook, with a log of what they sent. For follow-ups it can list, move or cancel callbacks, ring someone back now, and change your report settings. Reading the Inbox and posting to social accounts happen in the app, in **Inbox** and **Marketing**. Tools marked "Asks first" wait for your yes.
>
> See [Tools reference](https://docs.getsmartalex.com/mcp/tools-reference.md#reports-and-automations).

## REST API and keys

> [accordion] Is there an API?
>
> Yes, a public REST API at `https://api.getsmartalex.com/functions/v1/rest-api`, as well as the MCP server. Owners and admins create API keys under **Sidebar → Settings → Webhooks & API**, which needs the Power Tools add-on.
>
> | Add-on | Monthly | Yearly | Included on |
> | - | - | - | - |
> | **Outbound Campaigns** | \$49 | \$490 | Real Estate, Enterprise and the Professional trial |
> | **Unified Inbox** | \$39 | \$390 | Real Estate, Enterprise and the Professional trial |
> | **Power Tools** | \$29 | \$290 | Real Estate, Enterprise and the Professional trial |
> | **Meeting Assistant** | \$29 | \$290 | Real Estate, Enterprise and the Professional trial |
>
> Paying yearly costs ten months. On Enterprise, the SmartAlex team switches the add-ons on for you. What you use with an add-on, such as campaign calls or meeting hours, is paid from your wallet. See [Pricing](https://docs.getsmartalex.com/pricing.md#add-ons).
>
> See [Integrations](https://docs.getsmartalex.com/integrations.md#connect-your-own-systems).

> [accordion] How do I create an API key?
>
> Open **Sidebar → Settings → Webhooks & API** (`/developers`), choose the **API keys** tab and click the button above the list to create a key. Give it a name, choose **live** or **test** and tick what it can read. Then choose when it stops working: **Never**, **In 30 days**, **In 90 days** or **In a year**. Click **Create key**, then copy it straight away, because it is shown only once.
>
> See [Authentication](https://docs.getsmartalex.com/mcp/authentication.md#can-i-use-an-api-key-instead).

> [accordion] Who can create a key, and can a key change data?
>
> Only workspace owners and admins can see **Webhooks & API**. Keys you create there are read-only, so they can read contacts, calls, campaigns, agents and so on but not change them. Our support team can give a key write access on request.
>
> See [Authentication](https://docs.getsmartalex.com/mcp/authentication.md#can-i-use-an-api-key-instead).

> [accordion] What happens when a key stops working?
>
> A key stops when it expires or when you revoke it on the **API keys** tab. It also needs the Power Tools add-on to work. A request over the key's limit gets a `429`, and a key allows 60 requests a minute unless set otherwise. Create a new key and update your system.
>
> See [Integrations](https://docs.getsmartalex.com/integrations.md#connect-your-own-systems).

## Webhooks and triggers

> [accordion] Is there a way to get results by webhook when a call finishes?
>
> Yes. Open **Sidebar → Settings → Webhooks & API → Webhooks**, click **Add a webhook URL**, paste your HTTPS address and tick **Call finished**. SmartAlex sends each event you choose to that address as it happens. You can also pick **Contact created**, **Contact changed**, **Campaign finished**, **Deal created**, **Deal moved stage** and the quote events.
>
> See [Integrations](https://docs.getsmartalex.com/integrations.md#connect-your-own-systems).

> [accordion] How do I verify a webhook really came from SmartAlex?
>
> Copy the signing secret when you add the webhook, because it is shown only once. Every delivery carries an `X-SmartAlex-Signature` header holding the hex HMAC-SHA256 of the raw body, made with that secret, so compute it yourself and compare. The body has an `id` that stays the same on every retry, so you can ignore repeats.
>
> See [Integrations](https://docs.getsmartalex.com/integrations.md#connect-your-own-systems).

> [accordion] What happens if my webhook address is down?
>
> SmartAlex tries again, at roughly 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. Each retry is signed again, so you can refuse old ones, and the `X-SmartAlex-Attempt` header tells you which try it is. A webhook that has delivered nothing for a day after repeated failures is switched off, so check its status on the **Webhooks** tab.
>
> See [Integrations](https://docs.getsmartalex.com/integrations.md#connect-your-own-systems).

> [accordion] Can I start calls from my own system, one person at a time or in a batch?
>
> Yes, through a campaign trigger address. Ask your AI app connected to SmartAlex to "give the campaign a web address". It asks you first, and only owners and admins can. You get an address and a secret, shown once. Your CRM, a form or a scheduled job then posts one person in each request, or up to 100 people at once. The campaign calls them inside its calling hours.
>
> See [Tools reference](https://docs.getsmartalex.com/mcp/tools-reference.md).

> [accordion] What can I send to the trigger address, and how far ahead can a call be set?
>
> Each person needs a phone number. They can also carry a first and last name, an email, notes of up to 500 characters and up to 10 short details. Add a `call_at` time to schedule the call, up to 90 days ahead. Send the secret as `Authorization: Bearer` and the campaign must be running. Do-not-call, the cooldown and the daily cap still decide each person.
>
> See [Tools reference](https://docs.getsmartalex.com/mcp/tools-reference.md).

## Custom tools for your agent

> [accordion] Can I write custom tools the agent calls during a call?
>
> Yes, as API actions (custom HTTP tools). Open **Sidebar → Agent Settings → APIs**, click **Add API action**. The agent then calls your HTTPS endpoint when it decides it is the right move, and uses your answer in its reply. They need the Power Tools add-on.
>
> | Add-on | Monthly | Yearly | Included on |
> | - | - | - | - |
> | **Outbound Campaigns** | \$49 | \$490 | Real Estate, Enterprise and the Professional trial |
> | **Unified Inbox** | \$39 | \$390 | Real Estate, Enterprise and the Professional trial |
> | **Power Tools** | \$29 | \$290 | Real Estate, Enterprise and the Professional trial |
> | **Meeting Assistant** | \$29 | \$290 | Real Estate, Enterprise and the Professional trial |
>
> Paying yearly costs ten months. On Enterprise, the SmartAlex team switches the add-ons on for you. What you use with an add-on, such as campaign calls or meeting hours, is paid from your wallet. See [Pricing](https://docs.getsmartalex.com/pricing.md#add-ons).
>
> See [HTTP tools overview](https://docs.getsmartalex.com/guides/http-tools/overview.md). First time: [Create your first API tool](https://docs.getsmartalex.com/guides/http-tools/quickstart.md).

> [accordion] How do I verify that an API action request came from SmartAlex?
>
> Each request carries an `X-SmartAlex-Signature` header in the form `t=<time>,v1=<signature>`. Compute `HMAC-SHA256(secret, time + "." + rawBody)` on the raw body bytes, compare it in constant time, and refuse anything older than 5 minutes. The signing secret starts with `shs_` and is shown once, in **Signing secret and limits** on the API action.
>
> See [Signature verification](https://docs.getsmartalex.com/guides/http-tools/signature-verification.md). First time: [Create your first API tool](https://docs.getsmartalex.com/guides/http-tools/quickstart.md).

> [accordion] What limits apply to API actions?
>
> Each call can run one API action 10 times a minute. One action across all calls can run 120 times a minute. Test runs are limited to 20 a minute per workspace. Over the limit, the agent carries on without that answer and does not retry. Your endpoint has 10 seconds to answer, and a response over 64 KB is cut.
>
> See [Rate limits](https://docs.getsmartalex.com/guides/http-tools/rate-limits.md). First time: [Create your first API tool](https://docs.getsmartalex.com/guides/http-tools/quickstart.md).

> [accordion] Why did my API action fail?
>
> Open the action in **Sidebar → Agent Settings → APIs**, where its **Last run**, **Status** and recent requests show what came back. Common causes are an address that is not public `https://` or a signing check that rejects the request. Others are no answer within 10 seconds and the limits above. Test it from the action before you rely on it.
>
> See [Troubleshooting](https://docs.getsmartalex.com/guides/http-tools/troubleshooting.md). First time: [Create your first API tool](https://docs.getsmartalex.com/guides/http-tools/quickstart.md).

## Related

> [card] [MCP overview](https://docs.getsmartalex.com/mcp/overview.md)
>
> What the MCP server can do.

> [card] [Install in Claude](https://docs.getsmartalex.com/mcp/install-claude.md)
>
> Connect SmartAlex to Claude.

> [card] [Install in ChatGPT](https://docs.getsmartalex.com/mcp/install-chatgpt.md)
>
> Connect SmartAlex to ChatGPT.

> [card] [MCP tools reference](https://docs.getsmartalex.com/mcp/tools-reference.md)
>
> Every tool the MCP server offers.


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