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

# Place a FaceTime Call Endpoint

> Dial a FaceTime Audio call from one of your FaceTime lines to a phone number or Apple ID. Returns a streamUrl for two-way audio. Enforces the one-call-per-line lock and the 40-numbers-a-day limit.

> [!NOTE]
>
> **Live.** Places the call and returns a **`streamUrl`** — connect to it to stream the call's audio both ways into your own UI (see [Stream FaceTime Call Audio](https://docs.tuco.ai/api-reference/endpoint/facetime-stream.md)). Call-state [webhooks](https://docs.tuco.ai/api-reference/message-webhooks.md#facetime-call-events) fire `call.ringing` → `call.answered` → `call.ended` alongside.

> [!WARNING]
>
> **No sandbox.** A request from the Try it panel runs against production (`https://app.tuco.ai`) with the key you paste in, and places a **real FaceTime call** to a real device.

## Overview

Dial a FaceTime Audio call from one of your workspace's **FaceTime-enabled** lines to any phone number or Apple ID email that has FaceTime. The call goes out from the same Apple identity that texts the lead — no carrier, no "Potential spam" label. See [FaceTime Audio Calling](https://docs.tuco.ai/features/facetime-audio.md) for how the feature works end to end.

The endpoint enforces, in order:

1. **Line is FaceTime-enabled** — the line must have the FaceTime Audio add-on and be reachable.
2. **One call per line** — a line already on a call is locked; a second caller gets `409`.
3. **Daily limit** — a line may reach **40 different numbers per workspace day** on FaceTime. See [Daily limit](https://docs.tuco.ai/features/facetime-audio.md#daily-limit).

***

## Making a request

* **Method**: `POST`
* **URL**: `https://app.tuco.ai/api/facetime/call`
* **Headers**: `Authorization: Bearer tuco_...` and `Content-Type: application/json`
* **Body**: JSON with `lineId` and `handle`

### Request body

```json theme={null}
{
  "lineId": "699f704bc405fae6ca299a08",
  "handle": "+13025550123"
}
```

**lineId** `string` *required*

The FaceTime line to call from — the line's **`_id`** (MongoDB ObjectId). The line must be in your workspace and have the FaceTime Audio add-on. Get it from [Get All Lines](https://docs.tuco.ai/api-reference/endpoint/get-lines.md) (lines with the add-on have a `facetimeUsage` field).

**handle** `string` *required*

Who to call: a **phone number in E.164** (e.g. `+13025550123`) or an **Apple ID email** (matched case-insensitively). The destination must have FaceTime.

### Example

```bash theme={null}
curl -X POST https://app.tuco.ai/api/facetime/call \
  -H "Authorization: Bearer tuco_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "lineId": "699f704bc405fae6ca299a08",
    "handle": "+13025550123"
  }'
```

***

## Response

**`200 OK`** — the dial was accepted and the line is ringing the destination.

```json theme={null}
{
  "callDocId": "6a4ed2d5dec1b2d01a6f7656",
  "streamUrl": "wss://app.tuco.ai/api/facetime/stream?token=eyJhbGciOi..."
}
```

**callDocId** `string`

The FaceTime call record ID. **Keep it** — you pass it to [Control a FaceTime Call](https://docs.tuco.ai/api-reference/endpoint/facetime-end-call.md) to hang up, mute, or unmute, and it's the `callDocId` on every call webhook.

**streamUrl** `string`

A one-time, per-call WebSocket URL for the call's **two-way audio**. Open it to send your caller's microphone and hear the other side — see [Stream FaceTime Call Audio](https://docs.tuco.ai/api-reference/endpoint/facetime-stream.md). The token is short-lived and scoped to this one call, and carries no API key, so it's safe to use from a browser. Omitted only if audio streaming isn't configured for your workspace.

> [!NOTE]
>
> `200` means the call is **ringing**, not answered. A number only counts toward the [daily limit](https://docs.tuco.ai/features/facetime-audio.md#daily-limit) once the call **connects** — Tuco measures this from the live call, not from anything your client reports. Unanswered and failed dials are free.

***

## Errors

Errors return a JSON body with an `error` field (some add `message` and extra context).

| HTTP | `error` | Meaning |
| - | - | - |
| 401 | `Unauthorized` | Missing or invalid API key, or the key has no workspace. |
| 400 | `Invalid JSON body` | Body wasn't valid JSON. |
| 400 | `valid lineId required` | `lineId` missing or not a valid ObjectId. |
| 400 | `handle required` | `handle` was empty. |
| 404 | `Line not found` | No line with that `_id` in **your** workspace. |
| 400 | `Line is not FaceTime-enabled` | The line doesn't have the FaceTime Audio add-on. |
| 409 | `in-use` | The line is already on a call — see below. |
| 503 | `limit_check_unavailable` | The daily-limit counter couldn't be read; **nothing was dialed**. Fail-closed by design; retry. |
| 429 | `facetime_daily_limit` | The line already reached 40 different numbers today — see below. |
| 502 | `Agent unreachable` | The line couldn't be reached to place the call; the lock is released. Includes `callDocId`. |

### `409 in-use`

One call per line. While a call is live (or within 30 minutes of a crashed one), another caller is refused:

```json theme={null}
{
  "error": "in-use",
  "message": "This line is in use by a teammate.",
  "inUseBy": "rep@yourcompany.com"
}
```

The lock auto-frees 30 minutes after a crashed call, and the **same** caller can re-dial their own held line immediately (a closed tab that didn't release it won't lock you out).

### `429 facetime_daily_limit`

The line has connected with 40 different numbers on this workspace day. Numbers it **already reached today** can still be called (repeats are free); new numbers resume after `resetsAt` (workspace midnight).

```json theme={null}
{
  "error": "facetime_daily_limit",
  "message": "This line has connected with 40 different numbers on FaceTime today. You can still call numbers it already reached today.",
  "used": 40,
  "limit": 40,
  "resetsAt": "2026-11-21T05:00:00.000Z"
}
```

**used** `integer`

Different numbers the line has connected with today.

**limit** `integer`

The per-day cap. Currently `40`.

**resetsAt** `string`

ISO 8601 — workspace midnight, when `used` returns to `0`.

> [!TIP]
>
> Read a line's current count any time from the `facetimeUsage` field in [Get All Lines](https://docs.tuco.ai/api-reference/endpoint/get-lines.md) — `used`, `limit`, `remaining`, `resetsAt` — so you can check before you dial instead of catching the `429`.


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