Sales Mentor

API documentation

With the public API a team connects its own systems to Sales Mentor: a dialer pushes finished calls for analysis, a CRM or a Zapier flow creates contacts and deals. JSON in, JSON out, UTF-8.

Base URL: https://www.sales-mentor.ai/api/v1

Authentication

Owners and managers create API keys in the cockpit, on the Team page under API keys. A key is shown once; store it in your secret manager. Send it as a bearer token:

Authorization: Bearer rz_live_...

Keys have scopes: read (lists and details) and write (create and change). A key acts for its team and writes rows owned by the person who created it; it never sees more than that person would in the cockpit. Revoked keys answer 401. A key is revoked for good when the person who created it leaves the team, is removed from it or deletes their account; the webhooks they registered, last pointed at a new address or turned back on are paused then, and a manager turns them back on.

Errors

{"detail": {"error": "<code>", "message": "<short text>"}}

Branch on detail.error, the stable code; detail.message is a short English sentence for a log. Some refusals carry one more key in detail: a 409 duplicate existing_id, a 422 on one field field. A text field sent as a number, a list or an object is bad_type, and text no field can hold, with a NUL character or a lone surrogate (half an emoji), bad_text, each with its field. bad_text holds for every endpoint and for anything a request carries: the JSON body anywhere (keys included, as \u escapes or as raw bytes), a query parameter, the X-Filename header and the path (then field is path). This is checked before the API key. A body that cannot be parsed (malformed JSON) gets the standard 422 instead, where detail is a list with one entry per problem.

POST /calls also answers 428 consent_required (the key owner has not accepted the privacy notice in the app).

Endpoints

GET /me
Team, role and pipeline stages of the key.
GET /contacts?q=&cursor=&limit=
List, in keyset pages: items, next_cursor, total.
POST /contacts
Find or create by email; 201 created, 200 updated.
GET /contacts/{id}
The contact with its company, deals, tasks and timeline.
GET /companies?q=
List.
POST /companies
Find or create by name. website is an http(s) address: a bare host gets https://, any other scheme is bad_website. The value a company already holds may be sent back unchanged. An older value with a script scheme such as javascript: reads as null.
GET /deals?q=&status=&stage=
List; status is open, won, lost or all.
POST /deals
Create: value_eur (a number, or text such as "15.000" or "15k") or value_cents, up to 10 billion euros (value_cents 1000000000000; more is 422 bad_value), stage key, contact_id, company or company_id, next_step, next_step_at.
GET /deals/{id}
The deal with its tasks, timeline and stage history.
PATCH /deals/{id}
Update the fields of an open deal; value_eur as on create.
POST /activities
kind note, call, email, meeting or whatsapp; body; linked with deal_id, contact_id, company_id or contact_email.
POST /tasks
title, due_at (a day alone, 2026-10-09, is due at 18:00 Vienna time and comes back with due_has_time false; a time is kept, with due_has_time true), deal_id, contact_id.
POST /calls
Push a transcript: transcript, filename, deal_id, contact_id or contact_email, language de or en. Answers 202; the analysis runs in the background.
GET /calls/{id}
Status and result of an analysis.

Every row comes in the same shape whichever endpoint returns it.

Example: a dialer pushes a finished call

curl -X POST https://www.sales-mentor.ai/api/v1/calls \
  -H "Authorization: Bearer rz_live_..." \
  -H "Content-Type: application/json" \
  -d '{"transcript": "...", "filename": "aircall-4711", "contact_email": "eva@huber.example"}'

The analysis lands on the contact's timeline (and the deal's, when the contact is linked to one) and a call_analysis.done webhook fires for the webhooks of the team the key belongs to. Only a transcript pushed here is announced: a call a member uploads in the app's coach stays theirs and reaches no webhook. The result carries scores (five dimensions, 1 to 5), strongest_moment, biggest_miss (the salesperson's own line in quote, with what_to_say_instead), three moments and a commitment. biggest_miss and each moment may carry method: the name of the coaching method the analysis applied, present only when it named one. With language en the coaching texts (why, coaching, commitment) are English and a method comes with an English method_label; what_to_say_instead stays in the language of the call and in the form of address the salesperson used, since it is a line for the customer; a name it needs that the call does not give is a placeholder in the words of language: [Dein Name] and [Name des Kunden], with en [Your name] and [Customer's name]. With language en, biggest_miss also carries what_to_say_instead_en, that line in English for the salesperson to understand, unless the call is in English itself. A transcript too short to analyse (under 60 words, about half a minute of speech) that the analysis cannot judge ends failed with a fail_reason saying so: push the whole call.

Webhooks

Owners and managers register webhooks in the cockpit, on the Team page under Webhooks (URL and events). Every delivery is a POST with:

Content-Type: application/json
X-RZ-Event: deal.created
X-RZ-Delivery: <id>
X-RZ-Signature: sha256=<hex HMAC-SHA256 of the raw body with the webhook secret>

The body is {"id", "event", "created_at", "data"}, where data is the row as the API returns it. Events:

Answer 2xx within 10 seconds; anything else is retried with backoff, 5 attempts in all. Verify the signature before you trust a body. Only https URLs are accepted, and no targets in private networks.