POSThttps://core-api.heysadie.ai/webrtc-call/connect
phoneNumber firstMessage token url room success error code message details field metadata timestamp version pathCreate WebRTC session
Try it in the API ExplorerExample request
curl -X POST "https://core-api.heysadie.ai/webrtc-call/connect" \
-H "Authorization: ApiKey YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "string"
}'Authentication
Authenticate with an API key in the Authorization header using the ApiKey scheme — see Authentication for how keys work and where to get them.
AuthorizationstringrequiredAPI key in the ApiKey scheme: ApiKey YOUR_API_KEY. Tenant keys authorize their own tenant; organization keys can act on any tenant in the organization.
X-Tenant-Idstring (uuid)optionalRequired when authenticating with an organization key — selects the tenant the request acts on. Omit with tenant keys.
Request
Body application/json · required
phoneNumberstringrequiredE.164-formatted phone number owned by the calling tenant (8–16 chars, e.g. +15555550123).
firstMessagestringoptionalOptional greeting the agent speaks at the start of this WebRTC call, overriding the assistant's saved first message. Omit (or send empty) to use the saved greeting.
Responses
tokenstringrequiredShort-lived (10 min) LiveKit access token. Pass to the browser SDK to join the dispatched room.
urlstringrequiredLiveKit project URL the browser SDK should connect to (e.g. wss://<project>.livekit.cloud).
roomstringrequiredServer-generated room name (`webrtc-<uuid>`) the agent has been dispatched into.
400
successbooleanrequirederrorobjectoptionalShow 3 child properties
codeenumrequired"VALIDATION_ERROR"messagestringrequireddetailsobject[]optionalShow 2 item properties
fieldstringrequiredmessagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional401
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"UNAUTHORIZED"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional403
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"FORBIDDEN"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional404
errorenumrequired"not_found"500
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"INTERNAL_SERVER_ERROR"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional