/api/v1/calls/uploadSubir Llamada
Sube una llamada. Puede proporcionar una mediaUrl en el cuerpo o subir un archivo directamente.
Autenticación
Envía tu API key en el header x-api-key header.
Cuerpo de la petición
obligatorioDatos de la llamada y subida de archivo opcional
PublicApiCallUploadRequestDto
namerequiredstring
Name of the call for uploading
mediaUrlstring
URL of the media file to upload (alternative to file upload)
startDateTimerequiredstring (date-time)
Scheduled start date and time of the call
descriptionstring
Description of the call
fromNumberstring
Phone number of the caller
toNumberstring
Phone number of the callee
filestring (binary)
Audio file to upload (alternative to mediaUrl). It must be a valid mp3 / wav file
ownerIdstring
ID of the user who owns this call
personIdsarray<string>
Array of person IDs for call participants. Use comma to separate values. Recommendation: include the owner's personId here to guarantee feedback generation.
Ejemplo de petición
{
"name": "Sales Call Recording",
"mediaUrl": "https://example.com/upload/call_recording.mp3",
"startDateTime": "2024-07-18T14:00:00.000Z",
"description": "Recording of the sales call with Acme Corp.",
"fromNumber": "+1234567890",
"toNumber": "+0987654321",
"file": "",
"ownerId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"personIds": [
"5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
]
}
Respuestas
PublicApiPostCallUploadResponseDto
statusCoderequirednumber
countrequirednumber
errorrequiredstring
datarequiredPublicApiCallUploadResponseDto
Ejemplo de respuesta
{
"statusCode": 200,
"count": 0,
"error": null,
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}