Skip to content
Evisona

API integration

Authentication, regional addresses and 421, uploading recordings, webhooks and signature verification, reading reports, error codes; curl and Python examples.

On this page

  • Two addresses: the regional data API and the control API
  • Authentication, scopes and API keys
  • Request bodies, rate limit and monthly quota
  • Wrong region (421)
  • Uploading recordings and tracking status
  • Webhooks and signature verification
  • Reading reports, searching, rescoring
  • Trends, overview, teams and agents
  • Scorecards and trials
  • Error codes and versioning

The examples on this page use the variables below. The addresses are real (Türkiye region; details in the table under "Two addresses"); the key is a placeholder that you create yourself (below).

export QM_DATA_URL="https://tr.api.evisona.io"   # your tenant's regional data API (Türkiye)
export QM_CONTROL_URL="https://api.evisona.io"   # control API (one address for all regions)
export QM_API_KEY="<YOUR_API_KEY>"               # placeholder

Full contract: the OpenAPI 3.1 document (openapi.yaml).

Two addresses

Address Used for Carries content
Regional data API: tr.api.evisona.io for the Türkiye region (pattern <region>.api.evisona.io) Uploading recordings, call status, report, explanation, search, rescoring, audio, trends, overview, team and agent directory, scorecard trials Yes. Content only passes through your tenant's region.
Control API: api.evisona.io (one address for all regions) Scorecards, webhook subscriptions, tenant settings (/v1/settings), scoring settings, API keys (/v1/api-keys), signed-in user (/v1/me) No

Your tenant's region is fixed. Send all data requests to that region's address.

Authentication

Method Header Used by
API key X-API-Key: <key> Server-to-server integrations
OAuth access token Authorization: Bearer <token> Web panel and MCP
  • Every key and token is bound to a single tenant. The tenant ID is read from it.
  • Do not send tenant_id in requests. If tenant_id appears in the path, query or body, the request is rejected with 400 and code: "tenant_id_not_allowed".
  • If you try to access an ID belonging to another tenant, you get 404. You are told "not found" even if the record exists.
  • An API key's secret value is shown only once, when it is created. Store it somewhere safe.

If authentication fails, 401 is returned. The code gives the reason:

code When
credentials_missing No credentials header
credentials_invalid The key or token is unknown or malformed. A revoked key may also be returned with this code.
credentials_expired The token has expired
credentials_revoked The API key has been revoked

If the token cannot be verified at the moment, 503 with code: "auth_unavailable" is returned; try again a little later.

Scopes

Scope Allows
calls:write Uploading recordings, rescoring, retrying a failed step
calls:read Call status, search, audio access, reading teams and agents
reports:read Report, score explanation, agent and team trends, overview
scorecards:read Reading scorecards, trial results and scoring settings
scorecards:write Creating, updating and archiving scorecards, starting a trial
webhooks:manage Managing webhook subscriptions
directory:write Creating and updating teams and agents
admin Tenant administration

If the scope is insufficient, 403 with code: "insufficient_scope" is returned. The platform:admin scope, which manages provider keys, belongs only to the platform administrator; it cannot be given to tenant keys or tokens.

403 has two more reasons: forbidden (the action is not allowed on this record, for example updating a system scorecard) and tenant_inactive (your tenant is suspended or being deleted; can be returned by any endpoint). Reading is also closed during the 7-day wait after deletion is requested; if you want your data, read it through the API before requesting deletion.

API keys

The tenant administrator manages integration keys on the control API (admin scope):

Endpoint What it does
GET /v1/api-keys Lists keys: name, prefix (prefix), scopes, the last 4 characters of the secret (last4), created and last-used times. Revoked keys appear with revoked_at. The secret is not returned.
POST /v1/api-keys Creates a key. Body: name and scopes.
DELETE /v1/api-keys/{key_id} Revokes the key; returns 204. There is no permanent deletion; a revoked key is never accepted again.
curl -X POST "$QM_CONTROL_URL/v1/api-keys" \
  -H "X-API-Key: $QM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Phone system integration", "scopes": ["calls:write", "calls:read", "reports:read"]}'
  • The secret value (secret) is returned only once, in this response. Evisona does not store the secret; it cannot be shown again. If you lose it, revoke the key and create a new one.
  • Afterwards you recognise the key by prefix and last4.
  • You can only grant scopes your own credentials have. Asking for a scope you do not have, or for platform:admin, returns 403 with code: "insufficient_scope".

Signed-in user and region

GET /v1/me (control API) returns the credentials' scopes and the tenant information including the region. The panel and MCP find the data API address from it.

  • Called with an OAuth token, it also returns the signed-in user. Called with an API key, the user fields (user_id, display_name) are empty.
  • The platform administrator is not bound to a tenant; in their response the tenant field is empty.

Request bodies

  • JSON bodies are accepted only as UTF-8. Any other encoding is rejected with 400 and code: "invalid_request".
  • On every endpoint with a JSON body the general body limit is 1 MiB (1,048,576 bytes). Above it, 413 with code: "payload_too_large" is returned.
  • Audio file upload (POST /v1/calls, multipart) is not subject to this limit; the limit for the audio file is 200 MiB (209,715,200 bytes). See Sending recordings.
  • Unknown fields in request bodies are rejected (400).

Rate limit and monthly quota

Rate limit

Your tenant has a per-minute request limit (limit):

  • The sustained rate is limit requests per minute.
  • On top of that a burst of up to limit requests is allowed. So at most 2×limit−1 requests can pass in any 60-second window.
  • When the limit is exceeded, 429 with code: "rate_limited" is returned. The response always carries a Retry-After header; wait that many seconds.
  • The limit applies on every endpoint that accepts tenant credentials.

Monthly quota

Your tenant has a number of audio minutes it can process per month:

  • The period is the UTC calendar month.
  • Only analysis counts. Rescoring and scorecard trials do not use quota.
  • When analysis starts, quota equal to the recording's duration is reserved. Usage is recorded in the UTC month in which the reservation was made: a job that starts at the end of a month and finishes in the next one counts only against the month it started in.
  • Usage becomes final the moment the transcription service accepts the recording and returns a successful (2xx) response. From then on the recording's duration counts against the quota whatever happens next: the step may succeed, or fail because the response could not be processed (transcribe.invalid_provider_response), because the channel count in the response does not match the recording (transcribe.audio_rejected) or because the transcript could not be stored. It is not given back even if a later step (scoring) fails permanently. On a failure before the service responds (download, decoding, limits, the service being unreachable or rejecting the recording), the reserved quota is released.
  • If the duration reported by the transcription provider exceeds the decoded duration by more than 2% + 2 seconds (for example a multi-track or concatenated file), the call becomes failed, the transcribe step's error_code is ingest.decode_failed, and the provider-reported duration counts against the quota.
  • Retrying a failed step by hand (POST /v1/calls/{call_id}/retry): if the call has already been counted against the quota (the transcription service responded), no quota is reserved, no 429 is returned because of quota and the recording is not counted a second time. If it has not been counted, quota is reserved again.
  • When the quota is used up, POST /v1/calls and (for a call not yet counted against the quota) POST /v1/calls/{call_id}/retry return 429 with code: "monthly_quota_exceeded". Retry-After gives the time until the start of the next UTC month.
  • The duration of a recording fetched from an https address is not known when the request arrives. If, after the download, the duration exceeds the quota, the request does not get 429; instead the call becomes failed with error_code ingest.quota_exceeded.

Wrong region (421)

If a request goes to a data API outside your tenant's region:

  • The response is 421.
  • The body contains code: "wrong_region" and the correct region (region).
  • Send the request again to that region's address.
{
  "type": "about:blank",
  "title": "Wrong region",
  "status": 421,
  "code": "wrong_region",
  "region": "tr"
}

Requests that carry content are not forwarded between regions. That is why redirection happens on the client side. To know your region up front, use the tenant region in the GET /v1/me response.

Uploading a recording

POST /v1/calls (data API, calls:write). Processing is asynchronous; it returns 202 immediately.

Rules and limits: Sending recordings.

File upload (multipart)

curl -X POST "$QM_DATA_URL/v1/calls" \
  -H "X-API-Key: $QM_API_KEY" \
  -H "Idempotency-Key: pbx-20261202-0417" \
  -F "file=@call.wav" \
  -F 'metadata={"channel_layout":"stereo","agent_channel":0,"external_ref":"PBX-20261202-0417"};type=application/json'
import json
import os

import httpx

data_url = os.environ["QM_DATA_URL"]
headers = {"X-API-Key": os.environ["QM_API_KEY"], "Idempotency-Key": "pbx-20261202-0417"}
metadata = {"channel_layout": "stereo", "agent_channel": 0, "external_ref": "PBX-20261202-0417"}

with open("call.wav", "rb") as f:
    r = httpx.post(
        f"{data_url}/v1/calls",
        headers=headers,
        files={
            "file": ("call.wav", f, "audio/wav"),
            "metadata": (None, json.dumps(metadata), "application/json"),
        },
        timeout=120,
    )
r.raise_for_status()
print(r.json())  # {"call_id": "...", "status": "queued", "region": "tr"}

Fetching from an https address

curl -X POST "$QM_DATA_URL/v1/calls" \
  -H "X-API-Key: $QM_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: pbx-20261202-0418" \
  -d '{
        "audio_url": "https://<your-allowed-domain>/recordings/0418.wav?<signature>",
        "metadata": {"channel_layout": "mono", "external_ref": "PBX-20261202-0418"}
      }'

audio_url rules:

  • Only https is accepted; an http:// address is rejected.
  • The address's domain must be on your tenant's allowed domain list.
  • Redirects are not followed; the address must point to the file itself.
  • An address that resolves to a private, local or cloud metadata address is rejected.
  • An address that breaks the rules is rejected with 422 and code: "audio_url_not_allowed".

Errors after the download make the call failed and appear in error_code: ingest.fetch_failed if the file cannot be downloaded, ingest.limit_exceeded if the file exceeds the size or duration limit, ingest.quota_exceeded if the recording's duration exceeds the monthly quota.

Metadata rules

  • If scorecard_id, agent_id or team_id does not exist in your tenant, the request is rejected with 422 and code: "unknown_reference". The field in the response shows which field was not found (for example metadata.scorecard_id); the value is not included. An ID belonging to another tenant gets the same response.
  • If agent_external_ref is not known in your tenant, no error is returned: the agent is created automatically.
  • Idempotency-Key is valid for 24 hours. The same key with a different body returns 409.

Response

{"call_id": "3f6c0d1e-0000-4000-8000-000000000000", "status": "queued", "region": "tr"}

Tracking status

GET /v1/calls/{call_id} (calls:read) returns the call's status (queued, processing, completed, failed) and its step-by-step progress (steps[]: step, status, attempts, error_code).

We recommend webhooks instead of frequent polling.

Retrying a failed step

POST /v1/calls/{call_id}/retry (calls:write) continues processing from the failed step only. It has no body; it returns 202.

  • If the step is still running, 409 with code: "step_in_progress" is returned; if there is no failed step, 409 with code: "nothing_to_retry".
  • If the call has not been counted against the quota, a retry reserves analysis quota again; if the quota is used up, 429 with code: "monthly_quota_exceeded" may be returned. If it has been counted (the transcription service responded), no quota is reserved, no 429 is returned because of quota and it is not counted a second time; the rate limit (429 rate_limited) still applies.
  • A permanent ingest or transcription error is not retried; 409 with code: "not_retryable" is returned. These codes are ingest.fetch_failed, ingest.decode_failed (including the duration mismatch shown on the transcription step), ingest.limit_exceeded, ingest.quota_exceeded within the same UTC month, transcribe.audio_rejected and transcribe.invalid_provider_response. Send the recording again instead.
  • Once the transcription service has accepted the recording and responded, any later error counts the recording's duration against the quota (for a multi-track file, the duration reported by the service). Storage errors after that point can be retried; the recording does not count against the quota a second time.
  • Each step is attempted at most 10 times in total (automatic and manual attempts together). This count is never reset; once it is reached, 409 with code: "retry_limit_exceeded" is returned. Each manual retry restarts the automatic attempts.
  • Scoring errors (including score.refused) can be retried by hand, for example after changing the scorecard. This does not use quota.

Webhooks

Evisona sends an event to your address when a report is ready or processing fails.

Subscribing

POST /v1/webhooks (control API, webhooks:manage).

curl -X POST "$QM_CONTROL_URL/v1/webhooks" \
  -H "X-API-Key: $QM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://<your-receiver>/qm-webhook", "events": ["call.report.ready", "call.failed"]}'
  • The address must be https on port 443, with a host name (not an IP address) that resolves to a public address. Redirects are not followed. An address that breaks these rules gets 422 with code: "webhook_url_not_allowed".
  • The signing secret in the response (whsec_…) is returned only once, in this response. Store it. Later responses show only its last 4 characters.
  • List subscriptions with GET /v1/webhooks and delete one with DELETE /v1/webhooks/{webhook_id}. Subscriptions cannot be edited; create a new one and delete the old one. At most 10 subscriptions per tenant; an 11th gets 409 with code: "webhook_limit_exceeded". A subscription that does not exist or belongs to another tenant returns 404 with code: "not_found".
  • If another webhook change of yours is in progress, you get 409 with code: "webhook_busy"; wait for Retry-After (1 second) and try again. If the secret store is busy or unreachable, you get 503 with code: "secret_store_unavailable"; nothing was changed, try again after Retry-After.
  • To rotate the secret, create a second subscription for the same address, accept both secrets for a while (choose by X-Evisona-Webhook-Id), then delete the old subscription.

Events

Event When
call.report.ready A report is ready (initial scoring or rescoring)
call.failed Processing failed; the error_code field gives the reason

The body carries only IDs, no content. You fetch the report from the API.

{
  "event_id": "8a1b2c3d-0000-4000-8000-000000000000",
  "type": "call.report.ready",
  "occurred_at": "2026-12-02T10:21:00+03:00",
  "tenant_id": "<your-tenant-id>",
  "region": "tr",
  "call_id": "3f6c0d1e-0000-4000-8000-000000000000",
  "external_ref": "PBX-20261202-0417",
  "report_id": "5e2f0a9b-0000-4000-8000-000000000000",
  "report_revision": 1
}

The region field tells you which regional address to fetch the report from.

Verifying the signature

Every request carries four headers:

Header What
X-Evisona-Event-Id Event ID
X-Evisona-Webhook-Id The subscription this delivery belongs to; use it to pick the secret
X-Evisona-Timestamp Unix time (seconds)
X-Evisona-Signature v1=<hex(HMAC-SHA256(secret, timestamp + "." + body))>

Requests arrive with User-Agent: Evisona-Webhooks/1.

The key is the whole secret string, including whsec_. Verify the signature over the raw body and reject timestamps more than 5 minutes away from your clock. Each delivery attempt is signed again with a new timestamp. The header may carry more than one v1= value, separated by commas; accept the request if any of them matches.

import hashlib
import hmac
import time

TOLERANCE_S = 300  # 5 minutes

def verify(secret: str, timestamp: str, body: bytes, signature_header: str) -> bool:
    if not timestamp.isascii() or not timestamp.isdigit():
        return False  # non-numeric timestamp: reject, do not raise
    if abs(time.time() - int(timestamp)) > TOLERANCE_S:
        return False
    expected = hmac.new(secret.encode("ascii"), timestamp.encode() + b"." + body, hashlib.sha256).hexdigest()
    received = [p.strip().removeprefix("v1=") for p in signature_header.split(",") if p.strip().startswith("v1=")]
    return any(hmac.compare_digest(expected, r) for r in received)

Delivery and retries

  • Acknowledge the event with 2XX within 15 seconds.
  • Any other result (including 4xx, redirects and timeouts) is retried: 8 attempts in total, waiting about 1, 5, 15, 30, 60, 180 and 300 minutes between them; the last attempt comes about 10 hours after the first.
  • The same event may arrive more than once. Use event_id to drop duplicates.
  • Events can arrive out of order (for example, a retried call.failed after the call.report.ready that followed it). Treat an event as "look at this call" and read the current state from the API; for the same call, the higher report_revision is the latest.

Reading a report

GET /v1/calls/{call_id}/report (reports:read). The latest revision is returned by default; use ?revision=1 for an older one.

If the report is not ready yet, 404 with code: "report_not_ready" is returned.

curl "$QM_DATA_URL/v1/calls/$CALL_ID/report" -H "X-API-Key: $QM_API_KEY"

An excerpt of a report:

{
  "schema_version": "1.0",
  "report_revision": 2,
  "region": "tr",
  "processing_mode": "cloud",
  "eu_mode": false,
  "scoring": {
    "scorecard_revision": 3,
    "overall_score": 77.6,
    "pass_threshold": 70,
    "passed": true,
    "needs_review": true,
    "criteria": [
      {
        "criterion_id": "dispute_handling",
        "name": "Dispute handling",
        "weight": 20,
        "applicable": true,
        "score": 55,
        "needs_review": true,
        "rationale": "…",
        "evidence": [
          {"quote": "…", "start_ms": 141200, "end_ms": 147000, "speaker_id": "ch0", "verified": true},
          {"quote": "…", "start_ms": 204000, "end_ms": 210000, "speaker_id": "ch0", "verified": false}
        ]
      }
    ]
  },
  "warnings": [{"code": "scoring.unverified_evidence", "step": "score"}]
}
  • Times are milliseconds from the start of the recording.
  • The review reason is in warnings[].code. Codes: Reading a report and Glossary.

Explaining a score

GET /v1/calls/{call_id}/report/explanation?criterion_id=empathy returns each criterion's weight, normalised weight, score and contribution to the overall score, plus the rationale and evidence of the requested criterion. If the report was not scored, 404 with code: "report_not_scored" is returned.

GET /v1/calls/{call_id}/report/revisions lists the report's revisions: each revision's reason (initial or rescore), the card and card revision used, the overall score, the pass/fail result and the user or API key that triggered it. For the full revision, use GET /v1/calls/{call_id}/report?revision=2.

Audio

GET /v1/calls/{call_id}/audio (calls:read) returns a short-lived, signed https address for playing the recording. The address points to storage in your tenant's region.

  • The address is a secret. Do not log or share it.
  • Request a new one when it expires.
  • If the audio retention period has ended, 404 with code: "audio_not_available" is returned.

POST /v1/calls/search (calls:read). Filters: agent, team, date range, scorecard, overall score range, passed/failed, at most a given score on a criterion, channel layout, language, status, source call number, needs review.

curl -X POST "$QM_DATA_URL/v1/calls/search" \
  -H "X-API-Key: $QM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"started_from": "2026-11-01T00:00:00+03:00", "passed": false, "sort": "score_asc", "limit": 50}'
  • Results are summaries; they contain no transcript or quotes.
  • Pagination uses a cursor: send the next_cursor value from the response as cursor in the next request. No total count is returned.
  • Searching transcript text is not available in this version; a request with the text field is rejected with 422 and code: "text_search_not_supported".
  • Each result row carries needs_review and the review reasons (review_reasons).

Rescoring

POST /v1/calls/{call_id}/rescore (calls:write). With an empty body the current revision of the call's current card is used.

curl -X POST "$QM_DATA_URL/v1/calls/$CALL_ID/rescore" \
  -H "X-API-Key: $QM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"scorecard_id": "<scorecard-id>", "scorecard_revision": 3}'
  • Returns 202; call.report.ready follows when it finishes. The transcript and metrics are not produced again; a new revision of the report is created and earlier ones stay readable.
  • If the call is already being rescored, 409 with code: "rescore_in_progress" is returned; if initial processing is still running, 409 with code: "step_in_progress".
  • If the call has no transcript (initial processing did not get that far, or the content retention period has ended), 409 with code: "transcript_not_available" is returned.
  • If the card is not active (draft or archived), 422 with code: "scorecard_not_active" is returned. To try a draft card, see "Trying a card on a call".
  • Rescoring does not use your monthly quota, but it creates a usage cost.

On the data API, reports:read:

Endpoint Returns
GET /v1/agents/{agent_id}/trend The agent's average overall score, pass rate, criterion averages, talk share, pace and average interruptions per period
GET /v1/teams/{team_id}/trend The same shape for a team
GET /v1/overview Period totals and period points for the tenant or a team (team_id)

Common query parameters: date_from, date_to (required), granularity (day, week, month), scorecard_id, timezone (defaults to the tenant's time zone).

If your tenant uses cards per language and has no general default card, scorecard_id is required; without it 422 with code: "scorecard_id_required" is returned.

The date range includes both ends and is made of calendar days in the chosen time zone. The longest range is 366 days for granularity=day and 731 days for week and month; a longer range returns 422 with code: "date_range_too_large".

Responses carry only counts and rates; no content.

Teams and agents

On the data API. Team and agent names are personal data and are kept in your tenant's region.

Endpoint Scope
GET /v1/teams, GET /v1/teams/{team_id} calls:read
POST /v1/teams, PATCH /v1/teams/{team_id} directory:write
GET /v1/agents?team_id=&q=, GET /v1/agents/{agent_id} calls:read
POST /v1/agents, PATCH /v1/agents/{agent_id} directory:write
  • q searches by the start of the name (for example q=Ay); it is not a full-text search.
  • An agent's ID in the source system (external_ref) is unique within the tenant; a duplicate returns 409.

Scorecards

On the control API: GET/POST /v1/scorecards, GET/PUT/DELETE /v1/scorecards/{scorecard_id}.

  • PUT replaces the whole card and increases the revision by 1. The If-Match: "<current revision>" header is required: without it 428 is returned, and if the card changed after you read it, 412.
  • DELETE archives the card; it does not delete it permanently. The system card cannot be updated (403). The system card and the tenant's default card cannot be archived (409, code: "scorecard_protected").
  • GET /v1/scorecards/{scorecard_id}/revisions lists the card's revisions (revision, status, time, who changed it). The full text of an older revision: GET /v1/scorecards/{scorecard_id}?revision=2.
  • Your tenant's scoring settings (default cards, target pass rate, time zone): GET /v1/settings/scoring (scorecards:read).

Trying a card on a call

The API for "Try on a call" is on the data API:

  • POST /v1/scorecards/{scorecard_id}/trial (scorecards:write and calls:read) starts a trial; returns 202. Only one trial runs on a call at a time (409 trial_in_progress).
  • GET /v1/scorecards/{scorecard_id}/trial/{trial_id} (scorecards:read and reports:read) gets the result.
  • Rescoring and trials do not use the monthly quota, but the number of jobs waiting or running at once per tenant is limited (default 20; 429 job_limit_exceeded + Retry-After), the total per UTC calendar day is limited (default 500; 429 daily_job_limit_exceeded, Retry-After until the next UTC midnight; rescoring continued by a retry also counts), and these two endpoints have their own rate limit (10 requests per minute). GET /v1/settings/scoring shows your limits; only the service provider can change them.
  • A trial adds no revision to the official report and is not included in trends. It works with a draft card. The result is kept for 24 hours; after that the status becomes expired and the result is empty.
  • An archived card cannot be tried: 422 with code: "scorecard_not_active". If the call has no transcript, 409 with code: "transcript_not_available" is returned.
  • A trial does not use your monthly quota, but it creates a usage cost.

Error codes

Errors use application/problem+json: title, status, and code and detail where available; field, region and instance where relevant. Error texts carry no content or personal data.

Status Meaning
400 invalid_request: the request does not match the schema (unknown field, format error, JSON body not in UTF-8). tenant_id_not_allowed: tenant_id in the path, query or body
401 Authentication failed. code: credentials_missing, credentials_invalid, credentials_expired, credentials_revoked
403 insufficient_scope: scope not sufficient. forbidden: the action is not allowed on this record (for example updating the system card). tenant_inactive: the tenant is suspended or being deleted. client_not_allowed: administrative actions (API keys, webhook subscriptions, writing teams and agents, tenant settings, platform administration) can only be done from the web panel or with an API key, not from an MCP client or another OAuth client. User and invitation management and platform administration can only be done from the web panel, not with an API key either. When accepting an invitation: invitation_email_mismatch (the email of the signed-in account is not the one on the invitation), invitation_identity_provider_mismatch (the tenant uses company SSO but the sign-in used another method). When approving a platform administrator: approval_not_allowed (the inviter or the invitee cannot approve)
404 Not found or belongs to another tenant. code: not_found, report_not_ready, report_not_scored (the revision asked for an explanation was not scored), audio_not_available, peaks_not_ready (waveform data not ready yet), invitation_not_found (the invitation link is wrong or the invitation was revoked)
405 method_not_allowed: an HTTP method not defined on the path
409 Conflict: same Idempotency-Key with different content (idempotency_conflict), a repeat with the same key before the first request has been accepted (idempotency_in_progress; wait 1 second and try again, the first response is returned), a scorecard trial is already running on the call (trial_in_progress), a service required for analysis is not yet available in your tenant's region (provider_unavailable_in_region; returned when uploading a recording, rescoring, running a scorecard trial or retrying; the recording is not accepted and no quota is used; currently applies to the EU region), rescoring in progress (rescore_in_progress), no transcript for rescoring or a trial (transcript_not_available), archiving the default or system card or setting the default card to draft (scorecard_protected), duplicate agent external_ref (duplicate_external_ref), step_in_progress, nothing_to_retry, not_retryable or retry_limit_exceeded on a retry, the webhook subscription limit (webhook_limit_exceeded), another webhook change in progress (webhook_busy; wait for Retry-After), the tenant's agent limit reached (agent_limit_exceeded; no new agent can be created, recordings for existing agents are still accepted), a connection test already running for the same provider and region (provider_test_in_progress; platform administrator only). For members and invitations (panel only): the invitation was already accepted (invitation_already_used), the user is already a member of a tenant or the platform (already_member), the last administrator cannot be removed or demoted (last_admin), the pending invitation limit is reached (invitation_limit_exceeded; 100 per tenant), the platform membership to approve is not awaiting approval (membership_not_pending), the tenant's region is not yet enabled on this installation (region_not_enabled; the invitation cannot be created or accepted, an existing invitation stays valid; contact the platform team)
410 invitation_expired: the invitation's 7-day validity has passed; the administrator creates a new invitation
412 revision_mismatch: If-Match did not match or is malformed (the value must be a single quoted revision, e.g. "3")
413 file_too_large: audio file over 200 MiB. duration_too_long: recording over 3 hours. payload_too_large: JSON body over 1 MiB
415 unsupported_format, sample_rate_too_low, sample_rate_too_high, unsupported_channels. unsupported_media_type: the Content-Type header does not fit the endpoint (send application/json on JSON endpoints; multipart/form-data or application/json when uploading a recording)
421 Wrong region. code: wrong_region, region is the correct region
422 The request is valid but cannot be processed. code: agent_channel_required, audio_url_not_allowed, unknown_reference (field names the field), channel_layout_mismatch, text_search_not_supported, scorecard_id_required, scorecard_not_active (card not active for rescoring, or archived for a trial), date_range_too_large (trend or overview range too long), retention_extension_not_allowed, scorecard_language_mismatch (in settings, a language was mapped to a card that does not support it), webhook_url_not_allowed (webhook address breaks the rules)
428 if_match_required: If-Match header missing or * on a scorecard or settings update
429 rate_limited: rate limit exceeded. monthly_quota_exceeded: monthly quota used up. job_limit_exceeded: the limit on rescoring and trial jobs waiting or running at once is reached. daily_job_limit_exceeded: today's (UTC) limit on rescoring and trials is reached; Retry-After gives the time until the next UTC midnight. Wait the number of seconds in the Retry-After header
500 internal_error: unexpected error. The instance field carries the error ID in the form urn:qm:error:<id>; give this ID in your support request
503 auth_unavailable: credentials cannot be verified right now. config_unavailable: your tenant settings cannot be read in up-to-date form right now (the service's central part cannot be reached); the request was not processed with old settings. identity_admin_unavailable: the invitation could not be completed right now; the invitation stays valid. query_timeout: a search, overview or trend query took too long; narrow the date range or filters. secret_store_unavailable: the secret store is busy or unreachable while creating or deleting a webhook; nothing was changed. In both cases wait for Retry-After if present, otherwise a little, and try again

For a code you do not recognise, show a general error message.

Versioning

  • The path prefix is /v1. Breaking changes come with a new path prefix (/v2).
  • Reports carry schema_version (currently 1.0).
  • Ignore fields you do not recognise in responses. New fields may be added in a backward-compatible way.
  • Unknown fields in request bodies are rejected (400).