Skip to main content
POST
Each workspace has a limit on direct calls that are active or waiting to start. If that limit is reached, the API returns 429 RATE_LIMIT_EXCEEDED before creating a call. Retry after an existing call finishes. This limit counts calls created through this API; it does not include calls started elsewhere.

Authorizations

Authorization
string
header
required

Workspace API token from Settings → Developer.

Headers

Idempotency-Key
string

Reuse with an identical request for 24 hours. A replay returns the current resource state; after 24 hours the key can create a new resource.

Required string length: 1 - 255
Pattern: ^[!-~]+$

Body

application/json
to
string
required

Destination in E.164 format.

Pattern: ^\+[1-9]\d{7,14}$
Example:

"+14155550100"

prompt
string
required

Instructions for this call only.

Required string length: 1 - 20000
Pattern: \S
Example:

"Confirm the appointment tomorrow at 2 PM."

from
string

An available outbound number in this workspace, in E.164 format.

Pattern: ^\+[1-9]\d{7,14}$
voice
string

Voice ID or available built-in name. Use GET /v1/voices to list options. Marin requires OpenAI Live access and the automatic transcriber.

Minimum string length: 1
Pattern: \S
Example:

"tessa"

language
enum<string>
default:en

Language code supported by Thoughtly.

Available options:
bg,
ca,
zh,
cs,
da,
nl,
en,
et,
fi,
fr,
de,
el,
hi,
hu,
id,
it,
ja,
ko,
lv,
lt,
ms,
no,
pl,
pt,
ro,
ru,
sk,
es,
sv,
th,
tr,
uk,
vi,
ar,
hr
transcriber
enum<string>
default:auto

Marin requires auto. Arabic, Croatian and Mandarin require auto or gladia.

Available options:
auto,
deepgram,
gladia
first_message
string

Opening spoken from this text; omit when the recipient speaks first.

Maximum string length: 1000
start_speaking
enum<string>
default:assistant
Available options:
assistant,
recipient
voicemail
object

By default, hang up when voicemail is detected.

max_duration_seconds
integer
default:600
Required range: 30 <= x <= 14400
ring_timeout_seconds
integer
default:30
Required range: 5 <= x <= 600
interruptions
object
metadata
object

Application data returned with the call.

webhook_url
string<uri>

Public HTTPS URL. Provide webhook_secret with this field.

Pattern: ^\s*[Hh][Tt][Tt][Pp][Ss]://@?[^/?#@\s]+(?:[/?#]|\s*$)
webhook_secret
string
write-only

Secret used to sign completion events.

Required string length: 32 - 1024

Response

Call accepted.

id
string<uuid>
required
status
enum<string>
required

An unknown status means the carrier may have received the call, but its outcome is not yet confirmed. Check the same call ID; do not create a new call to retry it. If no terminal event arrives by the maximum duration plus the ring timeout and 15 minutes, the call is marked failed and its completion webhook is sent.

Available options:
queued,
unknown,
in_progress,
completed,
no_answer,
busy,
failed,
canceled
to
string
from
string | null
created_at
string<date-time>
started_at
string<date-time> | null
ended_at
string<date-time> | null
duration_seconds
number | null
transcript
object[]
summary
string | null
recording_url
string | null
voicemail
enum<string> | null
Available options:
left_message,
detected,
null
end_reason
string | null
metadata
object