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

> ## Agent Instructions
> For API operations, fetch https://gateway.firsttouch.ai/api/public/openapi.json for the complete input/output schemas, internal references, and x-mcp-annotations. Endpoint Markdown intentionally omits generated schema fragments. Select /api/public/tools/<tool_name> using the exact underscore-separated name. Send requests to https://gateway.firsttouch.ai; the canonical document currently omits servers. Start at https://docs.firsttouch.com/api-reference/agent-start.md.

# Public API Overview

> Use the FirstTouch MCP tool catalog through a conventional JSON API.

The FirstTouch Public API exposes the same supported operations as FirstTouch MCP through conventional HTTP requests. Use it for server-to-server integrations that need to work with audiences, flows, contacts, enrichment, tasks, queues, metrics, and other FirstTouch workflows without running an MCP client.

> [card] [Authentication](https://docs.firsttouch.com/api-reference/authentication.md)
>
> Create a user-scoped API key for the selected team and send it through the `X-API-Key` header.

> [card] [Quickstart](https://docs.firsttouch.com/api-reference/quickstart.md)
>
> Call `get_current_user`, inspect the JSON response, and discover more operations.

> [card] [Agent Start Here](https://docs.firsttouch.com/api-reference/agent-start.md)
>
> Choose a workflow, load its contract, and handle operation results.

> [card] [API Operations](https://docs.firsttouch.com/api-reference/operations)
>
> Browse the complete method reference.

## Endpoints

| Purpose | URL |
| - | - |
| API operations | `https://gateway.firsttouch.ai/api/public/tools/<tool_name>` |
| Human-readable API reference | `https://gateway.firsttouch.ai/api/public/docs` |
| OpenAPI document | `https://gateway.firsttouch.ai/api/public/openapi.json` |

Every tool operation uses `POST`. Replace `<tool_name>` with the MCP tool name shown in the [API Operations reference](https://docs.firsttouch.com/api-reference/operations).

Example:

```text theme={null}
POST https://gateway.firsttouch.ai/api/public/tools/get_current_user
```

## How It Relates To MCP

The Public API and MCP are two transports over the same FirstTouch operations:

* The Public API accepts a JSON request body and returns normal JSON.
* MCP uses the Model Context Protocol and can use browser OAuth or a compatible API key.
* Both enforce the current user, team, permissions, feature access, credit rules, and workflow validation.
* Rotating or revoking an API key immediately affects both Public API and MCP requests using that key.

> [!NOTE]
>
> The Public API does not bypass FirstTouch permissions or product entitlements. An API key can only perform operations its creator is currently allowed to perform in the key's team.

## Request And Response Format

Send a JSON object matching the selected operation's input schema. Operations without arguments accept an empty object:

```json theme={null}
{}
```

Successful calls return the operation result directly as JSON rather than an MCP JSON-RPC or content envelope. An HTTP `200` response alone does not establish that downstream work finished. Inspect the result and follow [execution and recovery](https://docs.firsttouch.com/api-reference/execution-and-recovery.md) for pending actions and task creation.

## Next Steps

* [Create and secure an API key](https://docs.firsttouch.com/api-reference/authentication.md)
* [Make your first request](https://docs.firsttouch.com/api-reference/quickstart.md)
* [Manage keys in FirstTouch](https://docs.firsttouch.com/WebApp/Settings/api-keys.md)
* [Browse API operations](https://docs.firsttouch.com/api-reference/operations)
* [Build an agent integration](https://docs.firsttouch.com/api-reference/agent-start.md)
* [Browse all API operations](https://docs.firsttouch.com/api-reference/operations)


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