Skip to main content
POST
Control a FaceTime Call
Live. The REST side-channel for a call you placed with Place a FaceTime Call. The call’s audio runs over its streamUrl WebSocket; this endpoint is how you do things to the live call — end it, or mute/unmute it.
No sandbox. A request from the Try it panel runs against production with the key you paste in, and acts on a real, live call.

Overview

One endpoint, three actions, keyed by the callDocId you got from Place a FaceTime Call:
Duration and answered status are measured by Tuco, from the live call — your client never reports them. So a hangup carries no durationSec or answered: ending the call is all you send, and the record is finalized from what actually happened. This is what keeps the daily-limit count honest.

Making a request

  • Method: POST
  • URL: https://app.tuco.ai/api/facetime/event
  • Headers: Authorization: Bearer tuco_... and Content-Type: application/json
  • Body: JSON with callDocId and action

Request body

string
required
The call record ID returned by Place a FaceTime Call. Must be a call in your workspace.
string
required
One of hangup, mute, or unmute.

Example


Response

200 OK For hangup:
For mute / unmute:
boolean
Always true on success.
boolean
On mute / unmute only: whether the command reached the live audio stream. false means the call’s streamUrl isn’t currently connected — the command is a no-op, not an error. (The authoritative mute is simply your frontend not sending microphone audio.)
hangup is idempotent: sending it for a call that already ended still returns 200, so it’s always safe to send — for example on a disconnect you didn’t initiate. The recording, transcript, and summary of an answered call arrive a few seconds later as a call.recording.ready webhook.

Errors

Errors return a JSON body with an error field.