Calls
Generated from api/openapi.yaml (OpenAPI 3.1). Base URL: https://api.teemli.com. Auth: Authorization: Bearer <token or tml_ API key>. Errors are application/problem+json; writes accept an Idempotency-Key header.
Meetings module (M8b, product.md 7.16): calls on self-hosted LiveKit. Every /calls/* route returns 404 while
the organisation’s meetings switch is off. Huddles start in a channel or DM (one live huddle per channel;
starting again joins it; DMs ring the other people); their chat is the thread of the “started a huddle” message.
Meetings are scheduled with a join link (/j/<code>): colleagues who open it become invitees; guests without
an account knock in a lobby (/v1/calls/lobby/…) and someone in the call lets them in. POST …/join returns a
short-lived LiveKit token only to people who can see the call (channel members, readers of a public channel, the
host, invitees, people who were in it — RLS decides; everyone else gets 404). Identities: p:<person>,
g:<lobby entry>, agent:<agent>, notes:<call>. Participants are recorded only from LiveKit’s signed webhooks.
AI notes: anyone who can see a live call turns them on (PUT …/notes); everyone in the call sees it; the
media worker joins as “AI notes”, relays each person’s speech in memory to speech-to-text (never stored) and the
notes (M4b pipeline) are posted to the call’s thread. Agents show their computer screen (view only):
your own agent, or an AI employee you manage or that’s shared with you.
Calls I can see
Section titled “Calls I can see”GET /v1/orgs/{org}/callsAPI keys: needs the meetings:read scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
view |
query | live, upcoming, recent |
|
channel_id |
query | string (uuid) | |
limit |
query | integer | Page size. |
Responses
200Calls — object404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Start a huddle in a channel or DM (or join the live one), or set up a meeting
Section titled “Start a huddle in a channel or DM (or join the live one), or set up a meeting”POST /v1/orgs/{org}/callsAPI keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
kind |
huddle, meeting |
|
channel_id |
string (uuid) | Required for huddles; optional for meetings (posted there) |
title |
string | Meetings |
description |
string | |
scheduled_at |
string (date-time) | Default now |
duration_minutes |
integer | |
invitee_ids |
array of string (uuid) | |
guests_allowed |
boolean |
Responses
201The call (createdfalse when you joined the huddle already going) — Call403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem422Invalid input — Problem
A colleague opened a meeting link (same organisation) — become an invitee
Section titled “A colleague opened a meeting link (same organisation) — become an invitee”POST /v1/orgs/{org}/call-links/{code}API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
code (required) |
path | string |
Responses
200The call — Call404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
A call (with who’s in it, notes, agents, invitees, notes records)
Section titled “A call (with who’s in it, notes, agents, invitees, notes records)”GET /v1/orgs/{org}/calls/{call}API keys: needs the meetings:read scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Responses
200The call — Call404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Change or cancel a meeting (its host only)
Section titled “Change or cancel a meeting (its host only)”PATCH /v1/orgs/{org}/calls/{call}API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
title |
string | |
description |
string | |
scheduled_at |
string (date-time) | |
duration_minutes |
integer | |
guests_allowed |
boolean | |
invitee_ids |
array of string (uuid) | |
cancelled |
boolean |
Responses
200The call — Call403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem
A LiveKit room token for this call (10 minutes to connect)
Section titled “A LiveKit room token for this call (10 minutes to connect)”POST /v1/orgs/{org}/calls/{call}/joinOnly for people who can see the call; everyone else (any organisation) gets 404. Ended huddles and cancelled meetings 409.
API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Responses
200Where and how to connect — object404Not found (also returned for rows the caller may not see, and for disabled features) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem503A dependency (e.g. the sign-in service) is unavailable — Problem
Not now — stop ringing on my other devices
Section titled “Not now — stop ringing on my other devices”POST /v1/orgs/{org}/calls/{call}/declineAPI keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Responses
204Declined
Turn AI notes on or off (everyone in the call is told)
Section titled “Turn AI notes on or off (everyone in the call is told)”PUT /v1/orgs/{org}/calls/{call}/notesOn: a notes record (a meetings row owned by you, platform: teemli) and a notetaker for the media worker; a line
in the call’s thread. Off (anyone in the call): the notetaker sends its last speech and the notes are written,
then posted in the thread.
API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
on (required) |
boolean |
Responses
200The call — Call404Not found (also returned for rows the caller may not see, and for disabled features) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem
An agent shows its computer screen in the call (view only)
Section titled “An agent shows its computer screen in the call (view only)”POST /v1/orgs/{org}/calls/{call}/agentsYour own agent, or an AI employee you manage or that’s shared with you. Its controller can take over the computer as usual.
API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
agent_id (required) |
string (uuid) |
Responses
200The call — Call404Not found (also returned for rows the caller may not see, and for disabled features) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem422Invalid input — Problem
Stop showing an agent’s screen (anyone in the call)
Section titled “Stop showing an agent’s screen (anyone in the call)”DELETE /v1/orgs/{org}/calls/{call}/agents/{agent}API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) | |
agent (required) |
path | string (uuid) |
Responses
200The call — Call
Guests waiting to be let in
Section titled “Guests waiting to be let in”GET /v1/orgs/{org}/calls/{call}/lobbyAPI keys: needs the meetings:read scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Responses
200Waiting guests — object
Let a guest in (or not)
Section titled “Let a guest in (or not)”POST /v1/orgs/{org}/calls/{call}/lobby/{entry}API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) | |
entry (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
admit (required) |
boolean |
Responses
200The lobby404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
The meeting as a calendar file (Add to calendar)
Section titled “The meeting as a calendar file (Add to calendar)”GET /v1/orgs/{org}/calls/{call}/invite.icsAPI keys: needs the meetings:read scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Responses
200text/calendar
Send the meeting’s invitations from the host’s own Google Calendar / Outlook (G2)
Section titled “Send the meeting’s invitations from the host’s own Google Calendar / Outlook (G2)”POST /v1/orgs/{org}/calls/{call}/calendarHost only, once per meeting. Composio creates the event as exactly the host’s connected account (default, or connection_id), with the invitees (not people who only opened the link), the join link and the description. Without a calendar connection: 422 (use invite.ics).
API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
connection_id |
string (uuid) |
Responses
200{provider: googlecalendar|outlook, app_name, invited, link}403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem409The invitations already went out422No calendar connected, or the calendar refused (a sentence for people)
Calendars you can send meeting invitations from: your ready Google Calendar / Outlook connections
Section titled “Calendars you can send meeting invitations from: your ready Google Calendar / Outlook connections”GET /v1/orgs/{org}/call-calendarsAPI keys: needs the meetings:read scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Responses
200{items: [{connection_id, app: googlecalendar|outlook, app_name, label}]}
Raise or lower your hand {up} (the server sets your participant attribute: people can’t change their own, audit L-11)
Section titled “Raise or lower your hand {up} (the server sets your participant attribute: people can’t change their own, audit L-11)”PUT /v1/orgs/{org}/calls/{call}/handAPI keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
call (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
up (required) |
boolean |
Responses
200{up}409Join the call first
Public: the meeting behind a link (title, host, organisation, state)
Section titled “Public: the meeting behind a link (title, host, organisation, state)”GET /v1/calls/lobby/{code}Auth: none (public endpoint).
| Parameter | In | Type | Description |
|---|---|---|---|
code (required) |
path | string |
Responses
200{title, host_name, org_name, state, guests_allowed, scheduled_at}404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Public: a guest asks to join (waits in the lobby)
Section titled “Public: a guest asks to join (waits in the lobby)”POST /v1/calls/lobby/{code}/knockReturns a one-time secret the guest keeps to check in; the server stores only its SHA-256. At most 20 waiting per meeting.
Auth: none (public endpoint).
| Parameter | In | Type | Description |
|---|---|---|---|
code (required) |
path | string |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
name (required) |
string |
Responses
201{lobby_id, secret, state: waiting}403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem422Invalid input — Problem
Public: a waiting guest checks in; once let in, a guest LiveKit token (identity g:)
Section titled “Public: a waiting guest checks in; once let in, a guest LiveKit token (identity g:)”GET /v1/calls/lobby/{code}/wait/{lobby}Auth: none (public endpoint).
| Parameter | In | Type | Description |
|---|---|---|---|
code (required) |
path | string | |
lobby (required) |
path | string (uuid) | |
X-Lobby-Secret (required) |
header | string |
Responses
200{state: waiting|admitted|denied|left|ended, url?, token?, identity?}404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
LiveKit’s webhook (participants joined/left, room finished)
Section titled “LiveKit’s webhook (participants joined/left, room finished)”POST /v1/calls/livekit/webhookAuthorization is a JWT signed with the LiveKit API secret (iss = the API key) whose sha256 claim is the base64
SHA-256 of the raw body; both are checked before anything is believed. Unknown rooms and identities are ignored.
Auth: none (public endpoint).
Request body: application/webhook+json.
Responses
200Applied (or ignored)401Missing, invalid or expired token — Problem
Include me in the AI notes (or not)
Section titled “Include me in the AI notes (or not)”POST /v1/orgs/{org}/calls/{id}/notes/consentWhere everyone must agree (the organisation’s or the person’s country: EU/EEA, UK, CH, CA, AU, BR, AE…), each
participant is asked; their audio isn’t transcribed until they accept. Guests are always asked. Elsewhere the
banner and thread line are the notice. The call’s notes.consent {mode: notice|ask, people[], me} shows who is in.
API keys: not available (needs a person signed in to the app).
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
id (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
accept (required) |
boolean |
Responses
200The call404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
A guest’s answer to AI notes (with the secret only they hold)
Section titled “A guest’s answer to AI notes (with the secret only they hold)”POST /v1/calls/lobby/{code}/consent/{lobby}Auth: none (public endpoint).
| Parameter | In | Type | Description |
|---|---|---|---|
code (required) |
path | string | |
lobby (required) |
path | string (uuid) |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
secret (required) |
string | |
accept (required) |
boolean |
Responses
200Saved404Not found (also returned for rows the caller may not see, and for disabled features) — Problem