Send a call to the analysis
/v1/analysesRequires the scope analyses:write
Store a call Valeron did not record, from its transcript, and analyze it like any recording. external_id is your own ID for the call: sending it again returns the first recording with a 200 and charges nothing more. The call's minutes are duration_seconds, or else the last segment's end_seconds; with neither the answer is 422 duration_required. The analysis costs $0.014 per started minute, charged when it is stored; the request is refused with 402 insufficient_balance when the balance can't cover the whole call. The answer is a 202 with the recording's ID: fetch the result from GET /v1/recordings/{id}/analysis, or wait for the recording.analyzed webhook event.
#Request body
id, or an email and/or phone matched like any
contact. first_name and last_name are used only when create_contact makes it.Show child attributesHide child attributes
Show child attributesHide child attributes
Show child attributesHide child attributes
#Responses
external_id was sent before: the first recording, and how far its analysis is. Nothing more is charged.Show response fieldsHide response fields
Show response fieldsHide response fields
#Errors
Errors use the standard error shape.
| Status | Meaning |
|---|---|
400 | The request is not valid. |
401 | Not signed in, or the credentials are not valid. |
402 | The balance is too low. |
403 | Not allowed to do this. |
404 | Not found. |
409 | Conflicts with the current state. |
413 | The request body is too large. |
415 | The content type is not supported. |
422 | A value in the request is not valid. |
429 | Too many requests. Wait for Retry-After seconds. |
500 | Something went wrong on our side. |
502 | A service Valeron depends on refused the request. |
503 | A service Valeron depends on is unavailable. |
