ValeronDocs

Analyses

Send a call to the analysis

POST/v1/analyses

Requires 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

application/json
contactobject or null
The contact the call was with: 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
emailstring or null
first_namestring or null
idstring or null
last_namestring or null
phonestring or null
create_contactboolean
Default: false
duration_secondsinteger or null
Maximum: 86400
external_idstringrequired
memberstringrequired
participantsobject[]
Default: []
Items: 0 to 100
Show child attributesHide child attributes
emailstring or null
is_memberbooleanrequired
namestringrequired
phonestring or null
started_atstring (date-time)required
titlestring or null
transcriptobject[]required
Items: 1 to 5000
Show child attributesHide child attributes
end_secondsnumber or null
Minimum: 0
is_memberboolean or null
speakerstringrequired
start_secondsnumber or null
Minimum: 0
textstringrequired
typestring
Allowed values: "meeting" "phone_call"
Default: "meeting"

#Responses

200This external_id was sent before: the first recording, and how far its analysis is. Nothing more is charged.
Show response fieldsHide response fields
recording_idstringrequired
statusstringrequired
Allowed values: "queued" "running" "done" "failed"
202Successful Response
Show response fieldsHide response fields
recording_idstringrequired
statusstringrequired
Allowed values: "queued" "running" "done" "failed"

#Errors

Errors use the standard error shape.

StatusMeaning
400The request is not valid.
401Not signed in, or the credentials are not valid.
402The balance is too low.
403Not allowed to do this.
404Not found.
409Conflicts with the current state.
413The request body is too large.
415The content type is not supported.
422A value in the request is not valid.
429Too many requests. Wait for Retry-After seconds.
500Something went wrong on our side.
502A service Valeron depends on refused the request.
503A service Valeron depends on is unavailable.