curl --request POST \
--url https://api.trillet.ai/v1/api/calls/web/connect \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-workspace-id: <x-workspace-id>' \
--data '{
"agentId": "<string>",
"mode": "<string>"
}'
{
"status": "success",
"callId": "call1234",
"roomName": "web-genericAgent-call1234",
"token": "<REDACTED_JWT_TOKEN>",
"agent": {
"id": "agent12345678",
"name": "Generic Agent",
"model": "llm-mini",
"voice": {
"provider": "genericVoiceProvider",
"voiceId": "standard",
"language": "en"
}
}
}
Initiate a live web-based call session with an AI agent.
curl --request POST \
--url https://api.trillet.ai/v1/api/calls/web/connect \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-workspace-id: <x-workspace-id>' \
--data '{
"agentId": "<string>",
"mode": "<string>"
}'
{
"status": "success",
"callId": "call1234",
"roomName": "web-genericAgent-call1234",
"token": "<REDACTED_JWT_TOKEN>",
"agent": {
"id": "agent12345678",
"name": "Generic Agent",
"model": "llm-mini",
"voice": {
"provider": "genericVoiceProvider",
"voiceId": "standard",
"language": "en"
}
}
}
{
"status": "success",
"callId": "call1234",
"roomName": "web-genericAgent-call1234",
"token": "<REDACTED_JWT_TOKEN>",
"agent": {
"id": "agent12345678",
"name": "Generic Agent",
"model": "llm-mini",
"voice": {
"provider": "genericVoiceProvider",
"voiceId": "standard",
"language": "en"
}
}
}