For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
    • Welcome
  • API Reference
      • GETListar Llamadas
      • POSTLanzar Llamada Saliente
      • GETObtener Llamada
Logo
API ReferenceCalls

Lanzar Llamada Saliente

POST
https://nebrijaai.com/api/v1/calls
POST
/api/v1/calls
$curl -X POST https://nebrijaai.com/api/v1/calls \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "customer": {
> "number": "+34600111222"
> }
>}'
1{
2 "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
3 "status": "initiated",
4 "customer": {
5 "number": "+34600111222"
6 },
7 "assistantId": "a3bb189e-8bf9-3888-9912-ace4e6543002",
8 "phoneNumberId": "b1c2d3e4-f567-890a-bcde-f1234567890a",
9 "testId": "c4d5e6f7-1234-5678-9abc-def012345678",
10 "testVariant": "A",
11 "startTime": "2024-06-01T09:00:00Z",
12 "endTime": "2024-06-01T09:15:00Z",
13 "durationMinutes": 15,
14 "cost": 2.75,
15 "endedReason": "Call completed successfully",
16 "transcript": "Hello, this is a test call to demonstrate the assistant capabilities.",
17 "recordingUrl": "https://nebrijaai.com/recordings/d290f1ee-6c54-4b01-90e6-d701748f0851.mp3",
18 "analysis": {},
19 "transferDestination": {}
20}

Inicia una llamada utilizando un asistente o una prueba A/B.

Was this page helpful?
Previous

Obtener Llamada

Next
Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
customerobjectRequired
assistantIdstringOptionalformat: "uuid"
testIdstringOptionalformat: "uuid"
phoneNumberIdstringOptionalformat: "uuid"
variablesobjectOptional

Response

Llamada iniciada.
idstring
statusenum
Allowed values:
customerobject
assistantIdstringformat: "uuid"
phoneNumberIdstringformat: "uuid"
testIdstringformat: "uuid"
testVariantenum
Allowed values:
startTimestring
endTimestring
durationMinutesdouble
costdouble
endedReasonstring
transcriptstring
recordingUrlstring
analysisobject
transferDestinationobject