API Reference

Transcribe & Analyze

11min
the transcribe & analyze endpoint takes a call recording, transcribes it, and analyzes via the ai model that you specify in your request endpoint post https //app salesriver ai/api/v1/analyze request body parameter type required description recording url string yes an accessible url to the mp3 audio recording file model id string yes the id of the ai model to use for analysis you can find this in your salesriver ai account by going to settings > ai models caller number string yes the caller id of the consumer for this call must be in the following format +12223334444 rep id string yes a unique identifier for the rep that handled this call call source string yes the source name in which this call was received or generated from state string yes the state in which the caller called in from external id string yes the external id for this call in your system authentication all requests must include an api key in the authorization header authorization your api key responses success response (200 ok) a success response will include success true and id # the id in this response is the unique identifier for the call in salesriver ai { 	"success" true, 	"id" 578 } error responses 401 unauthorized { "error" "unauthorized" } 400 bad request { "error" "missing required field call id" } 404 not found { "error" "call not found" } 500 internal server error { "error" "error analyzing call" } usage notes the call must be fully transcribed before it can be analyzed analysis is asynchronous you'll receive a response immediately, but the analysis will continue in the background the analysis status will be updated in the database as it progresses billing is based on the length of the call and the ai model used