Walkthroughs
Send calls for analysis
Send the transcript of a call Valeron did not record, and get the same analysis as any other call.
Use POST /v1/analyses when your calls happen outside Valeron, for example in your own dialer. Valeron stores the call as a recording and analyzes it exactly like one it recorded itself. You send transcripts only: audio and video are not accepted.
#1. Create a key
Create a key with analyses:write and recordings:read. See Authentication.
#2. Check your balance
An analysis costs $0.014 per started minute. The request is refused with 402 insufficient_balance when your balance is under the price of the whole call. See Billing and charges.
#3. Send the call
curl -X POST "https://api.valeron.io/v1/analyses" \
-H "Authorization: Bearer $VALERON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"external_id": "call-48213",
"member": "[email protected]",
"started_at": "2026-12-03T14:30:00Z",
"title": "Discovery call with Jordan Rivera",
"duration_seconds": 1260,
"contact": { "email": "[email protected]" },
"create_contact": true,
"participants": [
{ "name": "Maya Chen", "email": "[email protected]", "is_member": true },
{ "name": "Jordan Rivera", "email": "[email protected]", "is_member": false }
],
"transcript": [
{ "speaker": "Maya Chen", "is_member": true, "start_seconds": 4.2, "end_seconds": 11.8, "text": "Thanks for making time today. What made you book this call?" },
{ "speaker": "Jordan Rivera", "is_member": false, "start_seconds": 12.4, "end_seconds": 25.0, "text": "Our new closers take too long to ramp, and I cannot see why." }
]
}'const response = await fetch("https://api.valeron.io/v1/analyses", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VALERON_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
external_id: "call-48213",
member: "[email protected]",
started_at: "2026-12-03T14:30:00Z",
duration_seconds: 1260,
contact: { email: "[email protected]" },
create_contact: true,
transcript: [
{ speaker: "Maya Chen", is_member: true, start_seconds: 4.2, end_seconds: 11.8, text: "Thanks for making time today. What made you book this call?" },
{ speaker: "Jordan Rivera", is_member: false, start_seconds: 12.4, end_seconds: 25.0, text: "Our new closers take too long to ramp, and I cannot see why." },
],
}),
});
const { recording_id } = await response.json(); // 202import os
import requests
response = requests.post(
"https://api.valeron.io/v1/analyses",
headers={"Authorization": f"Bearer {os.environ['VALERON_API_KEY']}"},
json={
"external_id": "call-48213",
"member": "[email protected]",
"started_at": "2026-12-03T14:30:00Z",
"duration_seconds": 1260,
"contact": {"email": "[email protected]"},
"create_contact": True,
"transcript": [
{"speaker": "Maya Chen", "is_member": True, "start_seconds": 4.2, "end_seconds": 11.8, "text": "Thanks for making time today. What made you book this call?"},
{"speaker": "Jordan Rivera", "is_member": False, "start_seconds": 12.4, "end_seconds": 25.0, "text": "Our new closers take too long to ramp, and I cannot see why."},
],
},
)
response.raise_for_status()
recording_id = response.json()["recording_id"] # 202#The fields
| Field | Required | Notes |
|---|---|---|
external_id | Yes | Your own ID for the call. Sending it again returns the first recording with 200 and its current status (queued, running, done or failed), and charges nothing more. |
member | Yes | The member who held the call: a usr_ ID or their email. |
started_at | Yes | When the call started, in UTC. |
transcript | Yes | 1 to 5,000 segments, at most 500,000 characters in all. Each segment is { speaker, is_member?, start_seconds?, end_seconds?, text }. |
duration_seconds | No | 1 to 86,400. Sets the billed minutes. Without it Valeron uses the largest end_seconds. With neither, you get 422 duration_required. |
contact | No | { id }, or { email, phone } (either or both) matched with Valeron's usual match rules. first_name and last_name are used only when the contact is created. |
create_contact | No | true creates the contact when nothing matches. Otherwise no match leaves the recording unlinked. |
participants | No | [{ name, email?, phone?, is_member }]. |
title | No | A title for the recording. |
type | No | meeting (the default, analyzed right away) or phone_call (analyzed in a batch, within a few hours). |
Give start_seconds and end_seconds on every segment or on none. Mark which speaker is the member with is_member. Talk metrics, such as talk ratio and speaking pace, need to know whose voice is the member's. Without it they are null.
#4. Wait for the analysis
The answer is 202:
{ "recording_id": "rec_01JEX4S9M8", "status": "queued" }The recording appears in Valeron like any other, with the source api and your external_id. Its tasks, proposed record changes and AI fields follow as they do for any analyzed recording.
There are two ways to get the result.
Receive a webhook. Subscribe an endpoint to recording.analyzed. See Keep your CRM up to date with webhooks.
Read it. Call GET /v1/recordings/{recording_id}/analysis. While the analysis is still being worked on, the recording shows its processing state. Try again after a short wait.
#What an analysis contains
One analysis per call. A call is scored only with at least 2 minutes of conversation and both people speaking. Otherwise its status is not_enough_conversation. The result holds:
- a score (the average of four sub-scores out of 10: structure, tonality, objection handling and discovery), each with evidence,
- a summary,
- objections, each with its category, a quote, the response and whether it was resolved,
- discovery questions, close attempts, value statements, pricing mentions and competitor mentions,
- whether a next step was secured, and the next steps, which become tasks for review,
- a payment agreement, only when an amount was said out loud,
- the contact's sentiment: positive, neutral or negative,
- the call outcome and type, from your organization's lists only, otherwise
null, - highlights, strengths and coaching areas,
- proposed record changes, which wait for a person to approve them.
Every item carries the quote and the time it came from. Talk metrics are worked out from the transcript's timing: talk_ratio, longest_monologue_seconds, interruption_count, words_per_minute and filler_word_count. See Get analysis for the exact shape.
#Retries and duplicates
Always send an external_id. If your request times out, send it again with the same value: you get the first recording back and pay once.
