HomeDocumentationAPI Reference
    Documentation/API Reference

    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#

    text
    REST API base URL: http://127.0.0.1:44541/api/v1/rest
    text
    OpenAPI spec: http://127.0.0.1:44541/api/v1/rest/openapi.json
    Note: Use the OpenAPI spec above as the canonical endpoint and schema reference.

    Authentication#

    Bearer token request
    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.

    Warning: External partner integrations should use /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.

    MethodPathScopeDescription
    GET/rest/accountNone (no scope needed)Get account and branding context
    GET/rest/usersusersList active users in account
    GET/rest/teamsteamsList teams with members
    GET/rest/departmentsdepartmentsList enabled departments
    GET/rest/conversation-typesconversationsList the account's conversation types
    GET/rest/conversationsconversationsList conversations (last 30 days by default; pass date_from for older ones; cursor pagination)
    GET/rest/conversations/by-identityconversations + (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/:idconversationsGet conversation detail (optional transcript/insights includes; the call object also needs the calls scope)
    GET/rest/conversations/:id/transcripttranscriptsGet transcript payload for one conversation
    GET/rest/conversations/:id/insightsinsightsGet insights/topics for one conversation
    GET/rest/conversations/:id/recording-urlrecordings + include_recordings=trueGet a signed recording URL, valid for 1 hour
    GET/rest/conversations/:id/summaryconversationsGet stored summary text for one conversation
    GET/rest/calendar/events/by-identitycalendar_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/requestnotetakerRequest a notetaker for a Microsoft Teams or Google Meet URL (returns 201)
    POST/rest/recordings/uploadrecordings:uploadUpload an audio or video recording as multipart/form-data (returns 202)
    GET/rest/recordings/:id/statusrecordings:upload or conversationsCheck the processing status of an uploaded recording
    GET/rest/webhooks/deliveriesNone (no scope needed)List up to the 100 most recent webhook deliveries from the last 7 days
    Note: 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.
    Recordings dual-gate:

    GET /rest/conversations/:id/recording-url requires both:

    • the recordings scope on the token and
    • the include_recordings = true setting 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#

    Request
    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"
    Response
    {
      "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"
      }
    }
    Tip: Transcript shape follows stored 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#

    Headers on every delivery attempt
    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#

    1. Read the raw request body before any JSON parsing.
    2. 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).
    3. Compare expected against the hex value in X-Webhook-Signature using a constant-time comparison (for example hmac.compare_digest in Python or crypto.timingSafeEqual in Node.js).
    4. 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.
    5. 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.

    Node.js verification snippet
    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#

    Example 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
        }
      }
    }
    Scope-conditional fields: Some fields are only included when the subscriptions has the matching scope:
    • transcript requires the transcripts scope.
    • insights requires the insights scope.
    • call requires the calls scope.
    • has_recording, recording_url, recording_url_endpoint requires the recordings scope. and include_recordings = true on the subscription.
    Field notes:
    • 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 the X-Webhook-Delivery-Id header. 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_prefix keep working. Set to the prefix of a same-account API token that has the same webhook URL when one exists, otherwise null. Use subscription_id instead. 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.

    Example payload
    {
      "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-000000000000 and never resolves to a real conversation.
    • Always check event / X-Webhook-Event before 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.

    429 response (truncated)
    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.

    Example error payload
    {
      "statusCode": 403,
      "error": "Forbidden",
      "message": "Token does not have the 'transcripts' scope",
      "code": "missing_scope",
      "details": {
        "required_scope": "transcripts",
        "granted_scopes": ["conversations", "insights"]
      }
    }
    Note:

    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 example required_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.

    StatuscodeWhen
    400invalid_meeting_urlMeeting URL is missing or is not a Microsoft Teams or Google Meet URL
    400invalid_mediaUpload has an unsupported media type or file extension, or no filename
    400invalid_upload_requestUpload 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
    401missing_api_tokenThe Authorization header is missing or does not have the form Bearer mt_...
    401invalid_api_tokenToken does not match any record, or the user who created it is no longer an active member of the account
    401token_inactive / token_revoked / token_expiredToken has been deactivated or revoked, or has expired
    403missing_scopeToken is missing the scope required by this endpoint
    403recordings_not_allowedToken has no recording access
    403quota_exceededDaily unique-conversation quota reached for this token, or the token's daily recording upload cap reached
    403no_account_adminThe account has no active owner or admin (returned by GET /rest/calendar/events/by-identity)
    403audio_license_requiredUpload with medium call (the default for audio) without an active Audio or Live Recording license
    403live_recording_license_requiredUpload 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
    403viewer_read_onlyViewer-only users cannot submit recordings
    403license_requiredThe account's license or quota does not allow this upload
    404account_not_foundThe token's account no longer exists
    404conversation_not_foundConversation does not exist or is not visible to this token
    404invalid_user_assignmentuser_id is not an active member of the token's account
    404invalid_department_assignmentdepartment_id is not available to this token; a department-restricted token that sends a different department_id also gets this code
    404recording_not_foundUnknown recording id, or the recording is not visible to this token
    409idempotency_key_conflictThe Idempotency-Key was already used for a different request
    409idempotency_request_in_progressA request with the same Idempotency-Key is still being processed
    413file_too_largeRecording file exceeds the maximum size (2 GiB by default)
    429rate_limit_exceededPer-minute request rate limit hit (honor Retry-After)
    502notetaker_upstream_errorThe notetaker provider returned a failing or invalid response
    503upload_failedRecording storage is unavailable; retry later

    Support#

    Note: Questions about integration behavior or contract details? Email [email protected].