> ## 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.

# API Operations

> Explore FirstTouch Public API methods, schemas, and usage guidance.

Choose a method from API Operations in the sidebar, then review its description, available request and response schemas, authentication requirements, validation rules, costs, and side effects. Consult the canonical OpenAPI document to resolve schema references; an unspecified output schema does not define an empty result.

Every operation uses `POST` with a JSON object request body:

```text theme={null}
https://gateway.firsttouch.ai/api/public/tools/<tool_name>
```

Send your user-scoped key for the selected team in the `X-API-Key` header. Each operation page shows the exact `<tool_name>` and supported input.

> [!NOTE]
>
> Use `gateway.firsttouch.ai` as the HTTP host and keep the complete `/api/public/tools/<tool_name>` path. The documentation applies a server URL overlay so generated examples use this host. The canonical source currently omits `servers`, so set the host explicitly when generating a client from that source. The [quickstart](https://docs.firsttouch.com/api-reference/quickstart.md) includes complete requests.

Endpoint Markdown provides operation guidance without a regenerated schema fragment. Fetch the [canonical OpenAPI document](https://gateway.firsttouch.ai/api/public/openapi.json) for complete input/output contracts, resolvable internal references, and `x-mcp-annotations`. Select the operation by its exact path; do not infer its input or output fields from the page title or prose alone.

> [card] [OpenAPI document](https://gateway.firsttouch.ai/api/public/openapi.json)
>
> Download the live OpenAPI 3.1 contract for code generation and automated tooling.

> [card] [Open ReDoc reference](https://gateway.firsttouch.ai/api/public/docs)
>
> Browse the same operations in ReDoc.

## Cancel A Contact Waiting To Start A Flow

[`add_manual_flow_enrollment`](https://docs.firsttouch.com/api-reference/operations/enrollments/add-manual-flow-enrollment) returns a `candidateId` when the contact is added to Awaiting (`outcome=awaiting`). Save this ID to identify the waiting entry. To explicitly add a contact without starting the flow, set `enrollmentMode=manual`.

An Awaiting candidate is not yet an enrollment queue item: use `candidateId`, not `queueItemId` or `enrollmentId`. For existing waiting entries, call [`get_flow_workspace`](https://docs.firsttouch.com/api-reference/operations/flow-plans/get-flow-workspace) and read `awaiting.items[].candidate_id`.

To cancel selected waiting entries, call [`cancel_awaiting_flow_items`](https://docs.firsttouch.com/api-reference/operations/enrollments/cancel-awaiting-flow-items):

```http theme={null}
POST https://gateway.firsttouch.ai/api/public/tools/cancel_awaiting_flow_items
Content-Type: application/json
X-API-Key: <your-api-key>
```

```json theme={null}
{
  "flowPlanId": "your-flow-id",
  "itemIds": ["enrollment_candidate_..."]
}
```

Pass the saved `candidateId` values in `itemIds`; at least one is required. Read `canceledCount` in the response to see how many waiting entries were canceled. This operation requires the admin team role or global admin access.

Cancellation removes the selected entries from Awaiting without deleting or globally disqualifying the contacts. It does not cancel active enrollment queue items; use `cancel_flow_enrollments` for those. If an entry has already left Awaiting, inspect its current state rather than assuming it was canceled. This workflow is for normal Flow Plans, not the shared MCP Dynamic Actions flow plan.

## Start With These Guides

* [Agent Start Here](https://docs.firsttouch.com/api-reference/agent-start.md)
* [Execution and recovery](https://docs.firsttouch.com/api-reference/execution-and-recovery.md)
* [Public API overview](https://docs.firsttouch.com/api-reference/introduction.md)
* [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)


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