# API, webhooks and MCP for developers

> Under Developers you find everything to connect your own systems: API keys with scopes for the public REST API (OpenAPI at /api/v1/openapi.json), webhook endpoints that receive signed events and can be retried, an MCP server for AI assistants such as Claude and Cursor, OAuth apps for integrations other businesses install, and sandbox workspaces for testing. API, webhooks and MCP are included from the Pro plan.

Source: https://toti.chat/en/help/features/api-and-webhooks/
Updated: 2026-11-27

## API keys

1. Open **Developers → API keys** and create a key.
2. Choose its scopes, for example reading contacts or sending messages. A read-only key cannot send anything.
3. Copy the key once and store it in your server’s secrets. Revoke keys you no longer use.

The **API reference** tab documents every endpoint; the OpenAPI description is at `/api/v1/openapi.json`.

## Webhooks

1. Open **Developers → Webhooks** and add an endpoint (an https URL).
2. Choose the events, such as a new contact, a message received or an order paid.
3. Store the secret and verify the `Toti-Signature` header on every request.
4. Delivery attempts are listed per endpoint; a failed delivery can be retried.

## MCP

**Developers → MCP** shows the server address and ready configuration for Claude Code, Claude Desktop and Cursor. The server uses Streamable HTTP and your API key, and its tools follow the key’s scopes.

## OAuth apps and sandboxes

Build an integration other workspaces can install with **OAuth apps** (authorization code with PKCE, scopes and a consent screen). Test safely in **Sandboxes**, separate workspaces for development.
