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
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.
- 401 unknown or revoked key.
- 402
team_cap,personal_poolorcredits: the monthly allowance of the key owner's team, their own, or their credits are used up;messagenames the day they renew, so do not retry before then.licence_inactive: the team's licence is not in force; until it is, keys made by the team's owners and managers still read, and nothing is written.no_access: the key owner has no access to Sales Mentor any more, after leaving the team that gave it, say; without access no key can be made either. - 403 scope or permission.
- 404 not visible to this key.
- 409 duplicate;
existing_idcarries the row. - 422 validation;
errornames what failed. - 429 daily limit:
rate_limitedafter 5,000 requests per team and UTC day,call_limitfor pushed transcripts per team and UTC day (50 by default). - 503
paused: a daily spend limit holds call analysis, the deployment's or the key owner's own; try again later.
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.websiteis an http(s) address: a bare host getshttps://, any other scheme isbad_website. The value a company already holds may be sent back unchanged. An older value with a script scheme such asjavascript:reads asnull. - GET /deals?q=&status=&stage=
- List;
statusisopen,won,lostorall. - POST /deals
- Create:
value_eur(a number, or text such as"15.000"or"15k") orvalue_cents, up to 10 billion euros (value_cents1000000000000; more is 422bad_value),stagekey,contact_id,companyorcompany_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_euras on create. - POST /activities
kindnote, call, email, meeting or whatsapp;body; linked withdeal_id,contact_id,company_idorcontact_email.- POST /tasks
title,due_at(a day alone,2026-10-09, is due at 18:00 Vienna time and comes back withdue_has_timefalse; a time is kept, withdue_has_timetrue),deal_id,contact_id.- POST /calls
- Push a transcript:
transcript,filename,deal_id,contact_idorcontact_email,languagede 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:
deal.created,deal.updated,deal.stage_changed,deal.closed,deal.reopened,deal.reassignedcontact.created,company.created,task.done,activity.createdcall_analysis.done: only for analyses a system pushes throughPOST /callswith one of the team's keys, never for calls members upload in the app
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.