API Reference
External integrations use the Meetric partner REST API under /rest with mt_* bearer tokens.
Getting Started#
REST Contract
OpenAPI schema is the source of truth
Scoped Tokens
Data endpoints are controlled by token scopes
Rate Limited
Per-token limits and daily conversation quotas
Base URL and OpenAPI#
REST API base URL: http://127.0.0.1:44541/api/v1/restOpenAPI spec: http://127.0.0.1:44541/api/v1/rest/openapi.jsonAuthentication#
curl -X GET "http://127.0.0.1:44541/api/v1/rest/conversations?limit=25" \
-H "Authorization: Bearer mt_your_api_token"Generate tokens in Settings -> API -> API Tokens. Tokens are shown once and should be stored securely. You can later edit a token's name, description, scopes, recording access and daily quota without changing the token string. Webhook destinations are configured separately under Settings -> API -> Webhook subscriptions — see the Webhooks section below.
/rest endpoints only. Internal JWT endpoints under /api/v1 are not part of this partner API contract.Scopes#
Each token has a set of scopes. Every data endpoint needs a scope (see the endpoint table below); the account and webhook delivery endpoints need none.
conversations— list and read conversations, conversation types and summaries.transcripts— read conversation transcripts.insights— read conversation insights.calls— include the call object (phone-system call data) on conversation detail and in webhook payloads.recordings— get recording links. Works together with the token's recording access setting.users— list users.teams— list teams.departments— list departments.notetaker— request a notetaker for a meeting.recordings:upload— upload recordings and check their processing status.calendar_read— look up calendar events by identity (together with partner_success or partner_csm).partner_success— use the by-identity lookups for conversations and calendar events.partner_csm— same lookups as partner_success. Limited to internal accounts configured by Meetric; it cannot be selected in Settings.
- A token created without any scopes gets conversations, transcripts and insights.
- An account can have up to 10 active tokens.
- A token sees the data that the user who created it can see.
- If that user is no longer an active member of the account, every call with the token returns 401 invalid_api_token.
Endpoint Contract#
Current partner API endpoints and required scopes, aligned with the REST OpenAPI contract.
| Method | Path | Scope | Description |
|---|---|---|---|
| GET | /rest/account | None (no scope needed) | Get account and branding context |
| GET | /rest/users | users | List active users in account |
| GET | /rest/teams | teams | List teams with members |
| GET | /rest/departments | departments | List enabled departments |
| GET | /rest/conversation-types | conversations | List the account's conversation types |
| GET | /rest/conversations | conversations | List conversations (last 30 days by default; pass date_from for older ones; cursor pagination) |
| GET | /rest/conversations/by-identity | conversations + (partner_csm or partner_success) | Look up conversations by identity across the whole account history, private conversations excluded (default 50, max 100 per page) |
| GET | /rest/conversations/:id | conversations | Get conversation detail (optional transcript/insights includes; the call object also needs the calls scope) |
| GET | /rest/conversations/:id/transcript | transcripts | Get transcript payload for one conversation |
| GET | /rest/conversations/:id/insights | insights | Get insights/topics for one conversation |
| GET | /rest/conversations/:id/recording-url | recordings + include_recordings=true | Get a signed recording URL, valid for 1 hour |
| GET | /rest/conversations/:id/summary | conversations | Get stored summary text for one conversation |
| GET | /rest/calendar/events/by-identity | calendar_read + (partner_csm or partner_success) | Look up calendar events by identity (default 50, max 100 per page; department-restricted tokens get 403) |
| POST | /rest/notetaker/request | notetaker | Request a notetaker for a Microsoft Teams or Google Meet URL (returns 201) |
| POST | /rest/recordings/upload | recordings:upload | Upload an audio or video recording as multipart/form-data (returns 202) |
| GET | /rest/recordings/:id/status | recordings:upload or conversations | Check the processing status of an uploaded recording |
| GET | /rest/webhooks/deliveries | None (no scope needed) | List up to the 100 most recent webhook deliveries from the last 7 days |
GET /rest/conversations returns the last 30 days by default; pass date_from to reach older conversations. At most limit=25 per page. Use pagination.next_cursor for additional pages.GET /rest/conversations/:id/recording-url requires both:
- the
recordingsscope on the token and - the
include_recordings = truesetting on the token.
A token without recording access returns 403 with code: recordings_not_allowed. Older tokens that have the setting but not the scope return 403 with code: missing_scope. The Settings UI couples both controls so admins cannot create an invalid combination.
Transcript Endpoint#
GET /rest/conversations/:id/transcript#
curl -X GET "http://127.0.0.1:44541/api/v1/rest/conversations/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/transcript" \
-H "Authorization: Bearer mt_your_api_token"{
"conversation_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"transcript": {
"sentences": [
{
"speaker_name": "Erik Lindstrom",
"start": 0.84,
"end": 3.14,
"text": "Thanks for joining today."
}
]
},
"_meta": {
"token_prefix": "mt_ab12cd34",
"timestamp": "2026-06-03T09:42:00.000Z"
}
}transcript_data. Some sources use sentences, others use messages. You can also use GET /rest/conversations/:id?include_transcript=true to embed transcript in conversation detail.Webhooks#
Webhook deliveries fire automatically once a conversation's transcript and summary are ready. Insights and recordings are included when available, but they do not hold back the event. The only event is conversation.completed; test deliveries use webhook.test. Each subscription receives a conversation at most once. It is not sent again when the conversation is reprocessed, and a delivery that expired after all retries is not re-sent.
Webhook destinations are configured as subscriptions under Settings -> API -> Webhook subscriptions. Each subscription has its own URL, signing secret, scopes, optional department filter and include_recordings flag. The signing secret is shown once on create or rotate. A subscription only receives conversations that its creator can see; if the creator leaves the account or loses access, deliveries stop. With a department filter, only conversations in that department are sent, and conversations without a department are not.
One account can have many subscriptions. Each enabled subscription receives its own delivery for the same conversation event — subscription_id identifies which one in both the payload and the /rest/webhooks/deliveries audit endpoint.
Delivery headers#
X-Webhook-Signature: sha256=<hmac_sha256_of_raw_body>
X-Webhook-Event: conversation.completed
X-Webhook-Delivery-Id: <delivery_uuid>
X-Webhook-Timestamp: <unix_timestamp_seconds>X-Webhook-Delivery-Id is stable across retries for the same delivery. Use it for idempotency. X-Webhook-Timestamp is the time of the attempt in unix seconds, refreshed on every attempt including retries. Neither of these two headers is signed: X-Webhook-Signature covers the raw body only.
Verification and replay protection#
- Read the raw request body before any JSON parsing.
- Compute
expected = HMAC_SHA256(subscription_webhook_secret, raw_body)using the signing secret of the subscription that received the delivery (matched via_meta.subscription_id). - Compare
expectedagainst the hex value inX-Webhook-Signatureusing a constant-time comparison (for examplehmac.compare_digestin Python orcrypto.timingSafeEqualinNode.js). - For replay protection, de-duplicate on
_meta.delivery_id(it is inside the signed body and equals X-Webhook-Delivery-Id). Treat a repeated value as the same delivery and skip re-processing. - As an extra filter, reject requests when
|now_unix_seconds - X-Webhook-Timestamp| > 300(more than 5 minutes off). The timestamp header is not signed, so use this check in addition to de-duplication, not instead of it.
The timestamp field in the body is when the event was queued and stays the same across retries, so do not apply the 5-minute check to it.
import crypto from "node:crypto";
function verifyMeetricWebhook(req, secret, seenDeliveryIds) {
const rawBody = req.rawBody; // Buffer or string captured BEFORE JSON parsing
const sigHeader = req.headers["x-webhook-signature"] || "";
const tsHeader = Number(req.headers["x-webhook-timestamp"] || "0");
// 1) HMAC-SHA256 of the raw body (the signature covers the body only)
const expected =
"sha256=" +
crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
// 2) Constant-time compare
const sigBuf = Buffer.from(sigHeader);
const expBuf = Buffer.from(expected);
if (sigBuf.length !== expBuf.length || !crypto.timingSafeEqual(sigBuf, expBuf)) {
return { ok: false, reason: "bad_signature" };
}
// 3) De-duplicate on _meta.delivery_id (inside the signed body)
const payload = JSON.parse(rawBody.toString());
if (seenDeliveryIds.has(payload._meta.delivery_id)) {
return { ok: true, duplicate: true };
}
// 4) Extra filter: X-Webhook-Timestamp is not signed; reject if more than 5 minutes off
if (Math.abs(Math.floor(Date.now() / 1000) - tsHeader) > 300) {
return { ok: false, reason: "stale_timestamp" };
}
seenDeliveryIds.add(payload._meta.delivery_id);
return { ok: true, payload };
}Retries and idempotency#
Meetric retries failed deliveries with the same X-Webhook-Delivery-Id. A delivery gets up to 5 attempts:
- Attempt 1: shortly after the event (the dispatcher checks for new deliveries every 30 seconds)
- Attempt 2: about 1 minute after the first failure
- Attempt 3: about 5 minutes after the second failure
- Attempt 4: about 30 minutes after the third failure
- Attempt 5: about 2 hours after the fourth failure (final)
If the 5th attempt also fails, the delivery is marked expired and is not sent again. A delivery succeeds when your endpoint returns any 2xx status within 10 seconds. Redirects are not followed, so a 3xx counts as a failure. Any other status or a network error is retried. Retries go to the subscription's current URL and are signed with its current secret. Disabling a subscription cancels its pending retries.
Use GET /rest/webhooks/deliveries to see up to the 100 most recent deliveries from the last 7 days across all subscriptions for your account (no pagination). There is one row per delivery with its attempt count, and each row includes subscription_id, and you can filter the list by ?subscription_id=<uuid> for a per-destination view.
conversation.completed payload#
{
"event": "conversation.completed",
"timestamp": "2026-06-03T09:45:00.000Z",
"data": {
"conversation": {
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"title": "Discovery call - Acme",
"company": "Acme",
"date": "2026-06-03T09:30:00.000Z",
"duration": 1800,
"medium": "call",
"sentiment": "positive",
"conversation_type": "sales",
"summary": "Customer requested pricing follow-up.",
"department": { "id": "11111111-0000-0000-0000-000000000001", "name": "B2B Sales" },
"user": {
"id": "67c869eb-30b1-4eb3-bd2c-be8c912a9827",
"name": "Erik Lindstrom",
"email": "[email protected]",
"phone": "+15555550199"
},
"participants": [
{ "name": "Jane Doe", "email": "[email protected]", "role": "customer" }
],
"call": { "direction": "outgoing", "external_number": "+15555550100" },
"transcript": {
"sentences": [
{
"speaker_name": "Erik Lindstrom",
"start": 0.84,
"end": 3.14,
"text": "Thanks for joining today."
}
]
},
"insights": [],
"has_recording": true,
"recording_url": "https://example.com/recording",
"recording_url_endpoint": "/api/v1/rest/conversations/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/recording-url"
}
},
"_meta": {
"subscription_id": "11111111-2222-3333-4444-555555555555",
"delivery_id": "bbbbbbbb-cccc-dddd-eeee-ffffffffffff",
"token_prefix": "mt_ab12cd34",
"account_id": "cccccccc-dddd-eeee-ffff-000000000000",
"content_ready": {
"transcript": true,
"summary": true,
"insights": false,
"recording": true
}
}
}transcriptrequires thetranscriptsscope.insightsrequires theinsightsscope.callrequires thecallsscope.has_recording,recording_url,recording_url_endpointrequires therecordingsscope. andinclude_recordings = trueon the subscription.
department— can be null.call— null for meetings, for calls without phone-system data, and when the call data cannot be loaded. Inside it, direction and external_number can each be null.has_recording— boolean; whether the conversation has a recording.recording_url— the stored recording link. It can be null even when has_recording is true.recording_url_endpoint— call this endpoint to get a fresh signed recording link.transcript— the shape depends on the conversation source (for example sentences or messages).
_meta fields#
subscription_id— canonical correlation key. Always present. Matches the subscription you configured in Settings -> API -> Webhook subscriptions.delivery_id— same value as theX-Webhook-Delivery-Idheader. Stable across retries and covered by the signature, so use it to de-duplicate.account_id— the Meetric account the event belongs to.content_ready— object of booleans describing which conversation parts were present when this delivery was built. Use it to distinguish "empty / not applicable" from "not ready yet" instead of re-fetching over REST.transcript/summary— always true on a delivered conversation.completed event. The webhook is not enqueued until both are ready.insights— may be false on a delivered event, because insights do not hold back delivery. It shows whether insights exist, even when the subscription does not receive them.recording— may be false on a delivered event, because recordings do not hold back delivery. Always false when recordings are not enabled on the subscription.
token_prefix— DEPRECATED. Retained for one minor version so existing integrations that read_meta.token_prefixkeep working. Set to the prefix of a same-account API token that has the same webhook URL when one exists, otherwisenull. Usesubscription_idinstead. This field is removed in a future release.
Test deliveries#
Pressing Test on a webhook subscription sends a test delivery. It carries a sample conversation in the same shape as conversation.completed, filtered by the subscription scopes, so you can test your integration before you have any real conversations. A test delivery is sent once, without retries, even if the subscription is disabled. Test deliveries are listed in the delivery log like any other delivery. On test rows in the delivery list, resource_id is the delivery id, not a conversation id.
{
"event": "webhook.test",
"timestamp": "2026-06-03T09:45:00.000Z",
"data": {
"message": "This is a test webhook delivery",
"subscription_name": "<subscription name>",
"conversation": {
"id": "00000000-0000-4000-8000-000000000000",
"...": "same fields as conversation.completed, without has_recording and recording_url_endpoint"
}
},
"_meta": {
"subscription_id": "<uuid>",
"delivery_id": "<uuid>",
"token_prefix": null,
"account_id": "<uuid>",
"test": true,
"content_ready": {
"transcript": true,
"summary": true,
"insights": true,
"recording": false
}
}
}- Compared with conversation.completed, the test payload has _meta.test set to true, has no has_recording or recording_url_endpoint fields, always has content_ready.insights set to true, and adds data.message and data.subscription_name.
- The sample conversation always has the id
00000000-0000-4000-8000-000000000000and never resolves to a real conversation. - Always check
event/X-Webhook-Eventbefore processing data.conversation. Only conversation.completed describes a real conversation. - Requesting a notetaker returns conversation_id as null, because the conversation is created only after the meeting ends and is processed. Use the id from the conversation.completed webhook to fetch it.
Limits and Errors#
Rate Limits#
- Each token can make 60 requests per minute by default, counted over a sliding one-minute window. There is no Settings field for this limit.
- Each token also has a daily quota (daily_quota) of 10,000 unique conversations per day by default. An account admin can set it per token, from 1 to 100,000, in Settings -> API when creating or editing the token. The quota resets at 00:00 UTC.
- Only requests for one specific conversation count toward the quota: conversation detail, transcript, insights, summary and recording-url. List endpoints do not count. A conversation that was already counted today stays readable after the quota is reached.
- When the quota is reached, requests return 403 quota_exceeded with details.daily_quota and details.used_today.
- Recording uploads are limited to daily_quota upload requests per token per day. Every upload request counts, including rejected requests and idempotent replays.
When the per-minute limit is exceeded, the response includes a Retry-After header (seconds) — honor it instead of retrying immediately.
HTTP/1.1 429 Too Many Requests
Retry-After: 60
Content-Type: application/json
{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded. Please try again in a moment.",
"code": "rate_limit_exceeded",
"details": { "retry_after_seconds": 60 },
"retry_after_seconds": 60
}Error Envelope#
Documented error responses on /rest/* use the same envelope when applicable. Branch on a published stable code field; treat message as human-readable text that may change between releases.
{
"statusCode": 403,
"error": "Forbidden",
"message": "Token does not have the 'transcripts' scope",
"code": "missing_scope",
"details": {
"required_scope": "transcripts",
"granted_scopes": ["conversations", "insights"]
}
}Envelope fields:
code— stable, machine-readable identifier. Safe to branch on when present. We never rename or repurpose a published code. Generic infrastructure errors can omit this field.message— human-readable explanation. May change between releases. Do not parse.details— optional object carrying error-specific context (for examplerequired_scope,required_any_scope,granted_scopes,retry_after_seconds,daily_quota,used_today).retry_after_seconds— deprecated top-level compatibility field on 429 responses. New clients should read details.retry_after_seconds and the Retry-After header.
HTTP Status Codes#
- 200 - request succeeded
- 400 - invalid parameters or body
- 401 - token missing, invalid, inactive, revoked, or expired
- 403 - scope missing, no recording access, daily quota or upload cap reached, or an upload refused because of the license or the user's role
- 404 - resource not found in this account / not visible to this token
- 409 - Idempotency-Key conflict, or a request with the same key is still in progress
- 413 - uploaded file is too large
- 429 - per-minute rate limit exceeded (honor
Retry-After) - 500 - unexpected internal error; details are sanitized
- 502 - an upstream dependency returned a failing or invalid response
- 503 - a required service is temporarily unavailable
- 504 - an upstream or database request timed out
Stable Error Codes#
The code field uses these stable identifiers. Use them for retry/branching logic instead of matching on the message.
| Status | code | When |
|---|---|---|
| 400 | invalid_meeting_url | Meeting URL is missing or is not a Microsoft Teams or Google Meet URL |
| 400 | invalid_media | Upload has an unsupported media type or file extension, or no filename |
| 400 | invalid_upload_request | Upload metadata is invalid, for example a missing user_id, malformed participants JSON, more than 100 participants, a participant without name or email, or no duration when medium is live |
| 401 | missing_api_token | The Authorization header is missing or does not have the form Bearer mt_... |
| 401 | invalid_api_token | Token does not match any record, or the user who created it is no longer an active member of the account |
| 401 | token_inactive / token_revoked / token_expired | Token has been deactivated or revoked, or has expired |
| 403 | missing_scope | Token is missing the scope required by this endpoint |
| 403 | recordings_not_allowed | Token has no recording access |
| 403 | quota_exceeded | Daily unique-conversation quota reached for this token, or the token's daily recording upload cap reached |
| 403 | no_account_admin | The account has no active owner or admin (returned by GET /rest/calendar/events/by-identity) |
| 403 | audio_license_required | Upload with medium call (the default for audio) without an active Audio or Live Recording license |
| 403 | live_recording_license_required | Upload with medium live (the default for video files) without an active Live Recording license; an explicit video medium without the Video product also returns this code |
| 403 | viewer_read_only | Viewer-only users cannot submit recordings |
| 403 | license_required | The account's license or quota does not allow this upload |
| 404 | account_not_found | The token's account no longer exists |
| 404 | conversation_not_found | Conversation does not exist or is not visible to this token |
| 404 | invalid_user_assignment | user_id is not an active member of the token's account |
| 404 | invalid_department_assignment | department_id is not available to this token; a department-restricted token that sends a different department_id also gets this code |
| 404 | recording_not_found | Unknown recording id, or the recording is not visible to this token |
| 409 | idempotency_key_conflict | The Idempotency-Key was already used for a different request |
| 409 | idempotency_request_in_progress | A request with the same Idempotency-Key is still being processed |
| 413 | file_too_large | Recording file exceeds the maximum size (2 GiB by default) |
| 429 | rate_limit_exceeded | Per-minute request rate limit hit (honor Retry-After) |
| 502 | notetaker_upstream_error | The notetaker provider returned a failing or invalid response |
| 503 | upload_failed | Recording storage is unavailable; retry later |