Skip to main content

Quality

Quality review cases, evaluations, coaching and sales quality.

Set up and run reviews

  1. Publish a scorecard and point the campaign at it.

    POSTPublish a scorecardPUTSave quality settings for a campaign

  2. Work the queue.

    GETList quality reviewsGETGet a quality review

  3. Score the call and coach the agent.

    POSTSubmit an evaluationPOSTCreate a coaching task

List quality reviews

GET/v1/tenants/{tenantSlug}/qms

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.readPaging offset (hasMore)

Returns one page of the quality review queue (50 reviews, newest first) with queue totals in report. Page with offset while hasMore is true. For managers the response also carries the scorecards, per-campaign settings, campaigns and eligible reviewers; for other roles those lists are empty. The acting member needs a quality role. Managers see every review; reviewers see the reviews assigned to them; agents see only their own submitted reviews.

Query parameters

  • campaignIdstring (uuid)optional

    Only reviews of this campaign.

  • statusenumoptional

    reviewed: submitted reviews only; pending: everything else.

    One ofpendingreviewed

    Lowercase values, unlike most enums here. Conventions

  • offsetintegeroptional

    Number of reviews to skip. Pages hold 50 reviews.

    0–10000 · default 0

Responses

One page of reviews.

  • roleenumrequired

    The acting member's quality role. It decides which reviews items holds and whether the setup lists (cards, settings, campaigns, reviewers) are filled: only for MANAGER.

    One ofMANAGERREVIEWERAGENT

  • itemsarray of objectrequired

    The records in this response, in the documented order.

  • hasMorebooleanrequired

    true when another page follows.

  • cardsarray of objectrequired

    Scorecards.

  • settingsarray of objectrequired

    Quality settings per campaign.

  • campaignsarray of objectrequired

    Campaigns the viewer can see.

  • reviewersarray of objectrequired

    Members who can review.

  • reportobjectrequired

    Totals for the period.

  • analysisConfiguredbooleanrequired

    Whether automatic analysis is set up.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl "$BASE/qms" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "hasMore": true,  "role": "MANAGER",  "items": [    {      "id": "23ca7086-af1a-49b4-8231-9e4bac24fc81",      "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "agentName": "Rahul Mehta",      "campaignName": "Pune rooftop launch",      "reviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a",      "reviewerName": "Priya Nair",      "state": "OPEN",      "analysisStatus": "NOT_REQUESTED",      "analysisError": null,      "revision": 4,      "createdAt": "2026-11-28T09:15:00.000Z",      "scorePercent": null,      "criticalFailure": false    }  ],  "cards": [    {      "id": "198780dd-3228-4132-8d5c-db6cc13059e1",      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "title": "Follow up on the solar quote",      "version": 1,      "parameters": [        {          "id": "ce7b976a_465a_42fc_b5e4_978b2b361db1",          "name": "Asha Verma",          "instruction": "Greets the customer by name and says who is calling.",          "source": "TRANSCRIPT",          "maxScore": 1,          "critical": false        }      ],      "createdAt": "2026-11-28T09:15:00.000Z"    }  ],  "settings": [    {      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "enabled": true,      "autoAnalyze": false,      "scorecardId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",      "defaultReviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a",      "revision": 4    }  ],  "campaigns": [    {      "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "name": "Pune rooftop launch"    }  ],  "reviewers": [    {      "id": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "name": "Priya Nair"    }  ],  "report": {    "reviewed": 1,    "pending": 1,    "averageScore": 1,    "criticalFailures": 1  },  "analysisConfigured": false}

Get a quality review

GET/v1/tenants/{tenantSlug}/qms/cases/{id}

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.read

Returns one review: the call, the scorecard it is scored against, automatic analysis (transcript, metrics and suggested scores) when available, evaluations and coaching tasks. Use item.revision as expectedRevision when you change the review. The acting member needs a quality role. Managers see every review; reviewers see the reviews assigned to them; agents see only their own submitted reviews.

Path parameters

  • idstring (uuid)required

    Quality review ID.

Responses

The review.

  • itemobjectrequired

    The review case.

  • cardobjectrequired

    Scorecard used.

  • analysisobject or nullrequired

    Automatic analysis; null if not run.

  • evaluationsarray of objectrequired

    Reviews of the call, newest first.

  • coachingarray of objectrequired

    Coaching tasks from this review.

  • manifestany JSONrequired

    The call's recording manifest saved with the review; null without recording access.

  • canReviewbooleanrequired

    Whether the viewer may review the call.

  • canManagebooleanrequired

    Whether the viewer may manage scorecards and settings.

  • wrapUpany JSONrequired

    The agent's wrap-up of the call, or null.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"REVIEW_CASE_ID="b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"curl "$BASE/qms/cases/$REVIEW_CASE_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "item": {    "id": "23ca7086-af1a-49b4-8231-9e4bac24fc81",    "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",    "agentName": "Rahul Mehta",    "campaignName": "Pune rooftop launch",    "reviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a",    "reviewerName": "Priya Nair",    "state": "OPEN",    "analysisStatus": "NOT_REQUESTED",    "analysisError": null,    "revision": 4,    "createdAt": "2026-11-28T09:15:00.000Z",    "scorePercent": null,    "criticalFailure": false  },  "card": {    "id": "198780dd-3228-4132-8d5c-db6cc13059e1",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "title": "Follow up on the solar quote",    "version": 1,    "parameters": [      {        "id": "ce7b976a_465a_42fc_b5e4_978b2b361db1",        "name": "Asha Verma",        "instruction": "Greets the customer by name and says who is calling.",        "source": "TRANSCRIPT",        "maxScore": 1,        "critical": false      }    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "analysis": {    "version": "v3",    "artifactId": "rec_01HZX4",    "checksum": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",    "durationMs": 1200,    "segments": [      {        "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e",        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "text": "Yes, please call me after 6 pm.",        "confidence": null      }    ],    "metrics": {      "responseGapMedianMs": 1200,      "responseGapCount": 19,      "version": "v3",      "durationMs": 1200,      "customerSpeechMs": 1200,      "agentSpeechMs": 1200,      "overlapMs": 1200,      "silenceMs": 1200,      "longestAgentTurnMs": 1200,      "agentWordsPerMinute": 30,      "customerWordsPerMinute": 30,      "clippedFraction": [        1      ],      "silentChannels": [        false      ],      "channelCorrelation": 1,      "windows": [        {          "startMs": null,          "endMs": null,          "customerActive": null,          "agentActive": null,          "customerDb": null,          "agentDb": null        }      ]    },    "scores": [      {        "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",        "result": "PASS",        "score": 1,        "reason": "Customer asked to be called next week.",        "evidenceSegmentIds": [          null        ],        "evidenceStartMs": null,        "evidenceEndMs": null      }    ],    "findings": [      {        "kind": "STRENGTH",        "message": "Lead not found.",        "segmentIds": [          "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"        ],        "status": "SUGGESTED"      }    ],    "expressions": [      {        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "label": "Work",        "confidence": 1,        "model": "expression-2"      }    ],    "expressionStatus": "NOT_CONFIGURED",    "scorerStatus": "NOT_CONFIGURED",    "sttModel": "speech-to-text-2",    "scorerModel": "scorer-2",    "warnings": [      "AUDIO_CONTINUITY_NOT_CERTIFIED"    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "evaluations": [    {      "id": "588471dd-5774-4172-8262-8b64358cbcad",      "actorId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "source": "MANUAL",      "submitted": false,      "scorePercent": null,      "criticalFailure": false,      "createdAt": "2026-11-28T09:15:00.000Z",      "scores": [        {          "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",          "result": "PASS",          "score": 1,          "reason": "Customer asked to be called next week.",          "evidenceSegmentIds": [            "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"          ],          "evidenceStartMs": 1200,          "evidenceEndMs": 1200        }      ],      "notes": "Asked for a callback after 6 pm."    }  ],  "coaching": [    {      "id": "cee8464d-52ad-4eb2-9781-98981f82f865",      "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "title": "Follow up on the solar quote",      "note": "Asked for a callback after 6 pm.",      "dueAt": "2026-12-02T06:30:00.000Z",      "state": "OPEN",      "revision": 4,      "startMs": 1200,      "endMs": 1200,      "createdAt": "2026-11-28T09:15:00.000Z"    }  ],  "manifest": null,  "canReview": false,  "canManage": false,  "wrapUp": null}

Assign a quality review

PUT/v1/tenants/{tenantSlug}/qms/cases/{id}/assignment

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Assigns the review to a reviewer (a member who can evaluate), or unassigns it with reviewerId: null. Needs a quality manager. Send the review's current revision (from Get a quality review) as expectedRevision. If the review changed in the meantime the request fails with 409: read it again and retry.

Path parameters

  • idstring (uuid)required

    Quality review ID.

Request body (application/json)

  • reviewerIdstring (uuid) or nullrequired

    Reviewer's user ID; null unassigns.

  • expectedRevisionintegerrequired

    The revision from your last read. If the record changed since, the request fails with 409 and nothing is saved.

    at least 0

    One of two concurrency tokens. Conventions

Responses

The quality review after the change.

  • itemobjectrequired

    The review case.

  • cardobjectrequired

    Scorecard used.

  • analysisobject or nullrequired

    Automatic analysis; null if not run.

  • evaluationsarray of objectrequired

    Reviews of the call, newest first.

  • coachingarray of objectrequired

    Coaching tasks from this review.

  • manifestany JSONrequired

    The call's recording manifest saved with the review; null without recording access.

  • canReviewbooleanrequired

    Whether the viewer may review the call.

  • canManagebooleanrequired

    Whether the viewer may manage scorecards and settings.

  • wrapUpany JSONrequired

    The agent's wrap-up of the call, or null.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 409 ConflictThe change conflicts with the record's current state or a workflow rule; error.code names it.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"REVIEW_CASE_ID="b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"curl -X PUT "$BASE/qms/cases/$REVIEW_CASE_ID/assignment" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "reviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a",    "expectedRevision": 1  }'
Example response (200 OK) (200 OK)
{  "item": {    "id": "23ca7086-af1a-49b4-8231-9e4bac24fc81",    "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",    "agentName": "Rahul Mehta",    "campaignName": "Pune rooftop launch",    "reviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a",    "reviewerName": "Priya Nair",    "state": "OPEN",    "analysisStatus": "NOT_REQUESTED",    "analysisError": null,    "revision": 4,    "createdAt": "2026-11-28T09:15:00.000Z",    "scorePercent": null,    "criticalFailure": false  },  "card": {    "id": "198780dd-3228-4132-8d5c-db6cc13059e1",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "title": "Follow up on the solar quote",    "version": 1,    "parameters": [      {        "id": "ce7b976a_465a_42fc_b5e4_978b2b361db1",        "name": "Asha Verma",        "instruction": "Greets the customer by name and says who is calling.",        "source": "TRANSCRIPT",        "maxScore": 1,        "critical": false      }    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "analysis": {    "version": "v3",    "artifactId": "rec_01HZX4",    "checksum": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",    "durationMs": 1200,    "segments": [      {        "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e",        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "text": "Yes, please call me after 6 pm.",        "confidence": null      }    ],    "metrics": {      "responseGapMedianMs": 1200,      "responseGapCount": 19,      "version": "v3",      "durationMs": 1200,      "customerSpeechMs": 1200,      "agentSpeechMs": 1200,      "overlapMs": 1200,      "silenceMs": 1200,      "longestAgentTurnMs": 1200,      "agentWordsPerMinute": 30,      "customerWordsPerMinute": 30,      "clippedFraction": [        1      ],      "silentChannels": [        false      ],      "channelCorrelation": 1,      "windows": [        {          "startMs": null,          "endMs": null,          "customerActive": null,          "agentActive": null,          "customerDb": null,          "agentDb": null        }      ]    },    "scores": [      {        "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",        "result": "PASS",        "score": 1,        "reason": "Customer asked to be called next week.",        "evidenceSegmentIds": [          null        ],        "evidenceStartMs": null,        "evidenceEndMs": null      }    ],    "findings": [      {        "kind": "STRENGTH",        "message": "Lead not found.",        "segmentIds": [          "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"        ],        "status": "SUGGESTED"      }    ],    "expressions": [      {        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "label": "Work",        "confidence": 1,        "model": "expression-2"      }    ],    "expressionStatus": "NOT_CONFIGURED",    "scorerStatus": "NOT_CONFIGURED",    "sttModel": "speech-to-text-2",    "scorerModel": "scorer-2",    "warnings": [      "AUDIO_CONTINUITY_NOT_CERTIFIED"    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "evaluations": [    {      "id": "588471dd-5774-4172-8262-8b64358cbcad",      "actorId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "source": "MANUAL",      "submitted": false,      "scorePercent": null,      "criticalFailure": false,      "createdAt": "2026-11-28T09:15:00.000Z",      "scores": [        {          "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",          "result": "PASS",          "score": 1,          "reason": "Customer asked to be called next week.",          "evidenceSegmentIds": [            "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"          ],          "evidenceStartMs": 1200,          "evidenceEndMs": 1200        }      ],      "notes": "Asked for a callback after 6 pm."    }  ],  "coaching": [    {      "id": "cee8464d-52ad-4eb2-9781-98981f82f865",      "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "title": "Follow up on the solar quote",      "note": "Asked for a callback after 6 pm.",      "dueAt": "2026-12-02T06:30:00.000Z",      "state": "OPEN",      "revision": 4,      "startMs": 1200,      "endMs": 1200,      "createdAt": "2026-11-28T09:15:00.000Z"    }  ],  "manifest": null,  "canReview": false,  "canManage": false,  "wrapUp": null}

Request automatic analysis

POST/v1/tenants/{tenantSlug}/qms/cases/{id}/analysis

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Queues automatic analysis of the call: transcription, talk-time metrics and suggested scores against the scorecard. Analysis runs in the background; poll Get a quality review until item.analysisStatus is COMPLETED or FAILED.

If analysis is already queued, running or completed, nothing is queued again and the current state is returned. Needs a reviewer or manager with recording access.

The response is { id, state }. Returns 503 while quality evidence encryption is not configured for the workspace.

Path parameters

  • idstring (uuid)required

    Quality review ID.

Responses

Analysis is queued or already done: { id, state }.

  • idstring (uuid)required

    ID of the quality review.

  • stateenumrequired

    QUEUED when just requested; otherwise the analysis already under way or done.

    One ofQUEUEDRUNNINGCOMPLETED

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 503 Service UnavailableA service this operation depends on is temporarily unavailable; retry with backoff.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"REVIEW_CASE_ID="b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"curl -X POST "$BASE/qms/cases/$REVIEW_CASE_ID/analysis" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (202 Accepted) (202 Accepted)
{  "id": "b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e",  "state": "QUEUED"}

Submit an evaluation

POST/v1/tenants/{tenantSlug}/qms/cases/{id}/evaluations

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Scores the call against the review's scorecard, one entry per parameter. With submit: false the evaluation is saved as a draft and the review stays in review; with submit: true the review becomes REVIEWED, its score and critical-failure flag are set, and every score needs a reason.

Evidence (evidenceSegmentIds, evidenceStartMs, evidenceEndMs) must point into the call's transcript and duration. Scores above a parameter's maxScore or unknown parameters return 400.

Send the review's current revision (from Get a quality review) as expectedRevision. If the review changed in the meantime the request fails with 409: read it again and retry.

requestId is a UUID you generate per submission. Retrying with the same requestId and the same body returns the current review without saving twice; the same requestId with a different body returns 409. Returns 503 while quality evidence encryption is not configured for the workspace.

Path parameters

  • idstring (uuid)required

    Quality review ID.

Request body (application/json)

  • requestIdstring (uuid)required

    A UUID you create for this submission. Resend the same one to retry safely; a new submission needs a new one.

  • expectedRevisionintegerrequired

    The revision from your last read. If the record changed since, the request fails with 409 and nothing is saved.

    at least 0

    One of two concurrency tokens. Conventions

  • submitbooleanrequired

    true to submit the evaluation; false saves a draft.

  • scoresarray of objectrequired

    Score for each parameter.

    up to 50 items

  • notesstringoptional

    Free-text notes.

    up to 5000 characters · default ""

Responses

The quality review after the change.

  • itemobjectrequired

    The review case.

  • cardobjectrequired

    Scorecard used.

  • analysisobject or nullrequired

    Automatic analysis; null if not run.

  • evaluationsarray of objectrequired

    Reviews of the call, newest first.

  • coachingarray of objectrequired

    Coaching tasks from this review.

  • manifestany JSONrequired

    The call's recording manifest saved with the review; null without recording access.

  • canReviewbooleanrequired

    Whether the viewer may review the call.

  • canManagebooleanrequired

    Whether the viewer may manage scorecards and settings.

  • wrapUpany JSONrequired

    The agent's wrap-up of the call, or null.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 409 ConflictThe change conflicts with the record's current state or a workflow rule; error.code names it.
  • 503 Service UnavailableA service this operation depends on is temporarily unavailable; retry with backoff.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"REVIEW_CASE_ID="b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"curl -X POST "$BASE/qms/cases/$REVIEW_CASE_ID/evaluations" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "requestId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",    "expectedRevision": 2,    "submit": true,    "scores": [      {        "parameterId": "greeting",        "result": "PASS",        "score": 10,        "reason": "Greeted by name; named the company.",        "evidenceSegmentIds": [          "seg_0001"        ],        "evidenceStartMs": 0,        "evidenceEndMs": 6200      },      {        "parameterId": "recording_disclosure",        "result": "FAIL",        "score": 0,        "reason": "The recording disclosure was not given.",        "evidenceSegmentIds": [],        "evidenceStartMs": null,        "evidenceEndMs": null      },      {        "parameterId": "needs_discovery",        "result": "PASS",        "score": 25,        "reason": "Asked bill and roof type, not roof area.",        "evidenceSegmentIds": [          "seg_0007",          "seg_0009"        ],        "evidenceStartMs": 41000,        "evidenceEndMs": 88500      }    ],    "notes": "Coach on the recording disclosure."  }'
Example response (200 OK) (200 OK)
{  "item": {    "id": "23ca7086-af1a-49b4-8231-9e4bac24fc81",    "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",    "agentName": "Rahul Mehta",    "campaignName": "Pune rooftop launch",    "reviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a",    "reviewerName": "Priya Nair",    "state": "OPEN",    "analysisStatus": "NOT_REQUESTED",    "analysisError": null,    "revision": 4,    "createdAt": "2026-11-28T09:15:00.000Z",    "scorePercent": null,    "criticalFailure": false  },  "card": {    "id": "198780dd-3228-4132-8d5c-db6cc13059e1",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "title": "Follow up on the solar quote",    "version": 1,    "parameters": [      {        "id": "ce7b976a_465a_42fc_b5e4_978b2b361db1",        "name": "Asha Verma",        "instruction": "Greets the customer by name and says who is calling.",        "source": "TRANSCRIPT",        "maxScore": 1,        "critical": false      }    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "analysis": {    "version": "v3",    "artifactId": "rec_01HZX4",    "checksum": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",    "durationMs": 1200,    "segments": [      {        "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e",        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "text": "Yes, please call me after 6 pm.",        "confidence": null      }    ],    "metrics": {      "responseGapMedianMs": 1200,      "responseGapCount": 19,      "version": "v3",      "durationMs": 1200,      "customerSpeechMs": 1200,      "agentSpeechMs": 1200,      "overlapMs": 1200,      "silenceMs": 1200,      "longestAgentTurnMs": 1200,      "agentWordsPerMinute": 30,      "customerWordsPerMinute": 30,      "clippedFraction": [        1      ],      "silentChannels": [        false      ],      "channelCorrelation": 1,      "windows": [        {          "startMs": null,          "endMs": null,          "customerActive": null,          "agentActive": null,          "customerDb": null,          "agentDb": null        }      ]    },    "scores": [      {        "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",        "result": "PASS",        "score": 1,        "reason": "Customer asked to be called next week.",        "evidenceSegmentIds": [          null        ],        "evidenceStartMs": null,        "evidenceEndMs": null      }    ],    "findings": [      {        "kind": "STRENGTH",        "message": "Lead not found.",        "segmentIds": [          "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"        ],        "status": "SUGGESTED"      }    ],    "expressions": [      {        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "label": "Work",        "confidence": 1,        "model": "expression-2"      }    ],    "expressionStatus": "NOT_CONFIGURED",    "scorerStatus": "NOT_CONFIGURED",    "sttModel": "speech-to-text-2",    "scorerModel": "scorer-2",    "warnings": [      "AUDIO_CONTINUITY_NOT_CERTIFIED"    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "evaluations": [    {      "id": "588471dd-5774-4172-8262-8b64358cbcad",      "actorId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "source": "MANUAL",      "submitted": false,      "scorePercent": null,      "criticalFailure": false,      "createdAt": "2026-11-28T09:15:00.000Z",      "scores": [        {          "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",          "result": "PASS",          "score": 1,          "reason": "Customer asked to be called next week.",          "evidenceSegmentIds": [            "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"          ],          "evidenceStartMs": 1200,          "evidenceEndMs": 1200        }      ],      "notes": "Asked for a callback after 6 pm."    }  ],  "coaching": [    {      "id": "cee8464d-52ad-4eb2-9781-98981f82f865",      "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "title": "Follow up on the solar quote",      "note": "Asked for a callback after 6 pm.",      "dueAt": "2026-12-02T06:30:00.000Z",      "state": "OPEN",      "revision": 4,      "startMs": 1200,      "endMs": 1200,      "createdAt": "2026-11-28T09:15:00.000Z"    }  ],  "manifest": null,  "canReview": false,  "canManage": false,  "wrapUp": null}

Get a review's recording manifest

GET/v1/tenants/{tenantSlug}/qms/cases/{id}/manifest

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.read

Lists the recordings of the reviewed call, grouped into recording sets, with each artifact's id, type, format, length and whether it is playable. Use a playable artifact's id with Download a review recording. The acting member needs recording access. Returns 503 when recording playback is unavailable.

Path parameters

  • idstring (uuid)required

    Quality review ID.

Responses

The recording manifest. Its fields are snake_case, as the call recorder writes them.

  • schema_versionalways 1required

    Manifest format version.

  • call_idstring (uuid)required

    ID of the call.

  • call_statestringrequired

    State of the call when the manifest was built, for example COMPLETED.

  • generated_atstring (date-time)required

    When the manifest was built (ISO 8601).

  • setsarray of objectrequired

    Recording sets, one per call attempt.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 503 Service UnavailableA service this operation depends on is temporarily unavailable; retry with backoff.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"REVIEW_CASE_ID="b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"curl "$BASE/qms/cases/$REVIEW_CASE_ID/manifest" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "schema_version": 1,  "call_id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",  "call_state": "COMPLETED",  "generated_at": "2026-12-01T09:46:00.000Z",  "sets": [    {      "id": "set-1",      "attempt_id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",      "state": "ACKNOWLEDGED",      "attribution": "CONFIRMED_TWO_PARTY",      "warnings": [],      "artifacts": [        {          "id": "rec_01HZX4",          "type": "STEREO_MASTER",          "state": "ACKNOWLEDGED",          "format": "wav",          "sample_rate": 8000,          "channels": 2,          "checksum": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",          "byte_length": 5888044,          "start_offset_ms": 0,          "playable": true,          "channel_roles": [            "CUSTOMER",            "AGENT"          ]        }      ],      "segments": []    }  ]}

Download a review recording

GET/v1/tenants/{tenantSlug}/qms/cases/{id}/recordings/{recordingId}/content

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.read

Streams the audio of a recording listed in the review's manifest. Send a single Range: bytes=… header to resume a download or seek; the response is then 206 Partial Content. The acting member needs recording access, and each download is recorded in the audit log.

Path parameters

  • idstring (uuid)required

    Quality review ID.

  • recordingIdstringrequired

    Recording ID.

    pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$

Headers

  • Rangestringoptional

    One byte range, for example bytes=0-1048575.

Responses

The whole recording.

Headers

  • Accept-Ranges Always bytes.
  • Content-Length Size of the audio in bytes.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundRECORDING_NOT_FOUNDThe recording does not exist or the key cannot see it.
  • 503 Service UnavailableA service this operation depends on is temporarily unavailable; retry with backoff.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"REVIEW_CASE_ID="b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"RECORDING_ID="rec_01HZX4"curl \  "$BASE/qms/cases/$REVIEW_CASE_ID/recordings/$RECORDING_ID/content" \  -H "Authorization: Bearer $LMS_API_KEY" \  --fail -o recording.wav# Resume or seek: ask for one byte range (206 Partial Content).curl \  "$BASE/qms/cases/$REVIEW_CASE_ID/recordings/$RECORDING_ID/content" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Range: bytes=0-1048575" \  --fail -o recording-part.wav

Create a coaching task

POST/v1/tenants/{tenantSlug}/qms/cases/{id}/coaching

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Creates a coaching task for the agent who handled the call, optionally pointing at an interval of the recording (startMs and endMs both set, or both null). dueAt must be in the future. Needs a quality manager. Calls without an attributed agent return 409.

requestId is a UUID you generate per submission. Retrying with the same requestId and the same body returns the current review without saving twice; the same requestId with a different body returns 409. Returns 503 while quality evidence encryption is not configured for the workspace.

Path parameters

  • idstring (uuid)required

    Quality review ID.

Request body (application/json)

  • requestIdstring (uuid)required

    A UUID you create for this submission. Resend the same one to retry safely; a new submission needs a new one.

  • titlestringrequired

    Title shown in the LMS.

    1–180 characters

  • notestringrequired

    Free-text note.

    1–3000 characters

  • dueAtstring (date-time)required

    When it is due (ISO 8601).

  • startMsnumber or nullrequired

    Start, in milliseconds.

    at least 0

  • endMsnumber or nullrequired

    End, in milliseconds.

    at least 0

Responses

The review with the new task.

  • itemobjectrequired

    The review case.

  • cardobjectrequired

    Scorecard used.

  • analysisobject or nullrequired

    Automatic analysis; null if not run.

  • evaluationsarray of objectrequired

    Reviews of the call, newest first.

  • coachingarray of objectrequired

    Coaching tasks from this review.

  • manifestany JSONrequired

    The call's recording manifest saved with the review; null without recording access.

  • canReviewbooleanrequired

    Whether the viewer may review the call.

  • canManagebooleanrequired

    Whether the viewer may manage scorecards and settings.

  • wrapUpany JSONrequired

    The agent's wrap-up of the call, or null.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 409 ConflictThe change conflicts with the record's current state or a workflow rule; error.code names it.
  • 503 Service UnavailableA service this operation depends on is temporarily unavailable; retry with backoff.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"REVIEW_CASE_ID="b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"curl -X POST "$BASE/qms/cases/$REVIEW_CASE_ID/coaching" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "requestId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",    "title": "Give the recording disclosure",    "note": "Say the call is recorded before anything else.",    "dueAt": "2026-12-08T12:30:00.000Z",    "startMs": 0,    "endMs": 15000  }'
Example response (201 Created) (201 Created)
{  "item": {    "id": "23ca7086-af1a-49b4-8231-9e4bac24fc81",    "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",    "agentName": "Rahul Mehta",    "campaignName": "Pune rooftop launch",    "reviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a",    "reviewerName": "Priya Nair",    "state": "OPEN",    "analysisStatus": "NOT_REQUESTED",    "analysisError": null,    "revision": 4,    "createdAt": "2026-11-28T09:15:00.000Z",    "scorePercent": null,    "criticalFailure": false  },  "card": {    "id": "198780dd-3228-4132-8d5c-db6cc13059e1",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "title": "Follow up on the solar quote",    "version": 1,    "parameters": [      {        "id": "ce7b976a_465a_42fc_b5e4_978b2b361db1",        "name": "Asha Verma",        "instruction": "Greets the customer by name and says who is calling.",        "source": "TRANSCRIPT",        "maxScore": 1,        "critical": false      }    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "analysis": {    "version": "v3",    "artifactId": "rec_01HZX4",    "checksum": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",    "durationMs": 1200,    "segments": [      {        "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e",        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "text": "Yes, please call me after 6 pm.",        "confidence": null      }    ],    "metrics": {      "responseGapMedianMs": 1200,      "responseGapCount": 19,      "version": "v3",      "durationMs": 1200,      "customerSpeechMs": 1200,      "agentSpeechMs": 1200,      "overlapMs": 1200,      "silenceMs": 1200,      "longestAgentTurnMs": 1200,      "agentWordsPerMinute": 30,      "customerWordsPerMinute": 30,      "clippedFraction": [        1      ],      "silentChannels": [        false      ],      "channelCorrelation": 1,      "windows": [        {          "startMs": null,          "endMs": null,          "customerActive": null,          "agentActive": null,          "customerDb": null,          "agentDb": null        }      ]    },    "scores": [      {        "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",        "result": "PASS",        "score": 1,        "reason": "Customer asked to be called next week.",        "evidenceSegmentIds": [          null        ],        "evidenceStartMs": null,        "evidenceEndMs": null      }    ],    "findings": [      {        "kind": "STRENGTH",        "message": "Lead not found.",        "segmentIds": [          "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"        ],        "status": "SUGGESTED"      }    ],    "expressions": [      {        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "label": "Work",        "confidence": 1,        "model": "expression-2"      }    ],    "expressionStatus": "NOT_CONFIGURED",    "scorerStatus": "NOT_CONFIGURED",    "sttModel": "speech-to-text-2",    "scorerModel": "scorer-2",    "warnings": [      "AUDIO_CONTINUITY_NOT_CERTIFIED"    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "evaluations": [    {      "id": "588471dd-5774-4172-8262-8b64358cbcad",      "actorId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "source": "MANUAL",      "submitted": false,      "scorePercent": null,      "criticalFailure": false,      "createdAt": "2026-11-28T09:15:00.000Z",      "scores": [        {          "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",          "result": "PASS",          "score": 1,          "reason": "Customer asked to be called next week.",          "evidenceSegmentIds": [            "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"          ],          "evidenceStartMs": 1200,          "evidenceEndMs": 1200        }      ],      "notes": "Asked for a callback after 6 pm."    }  ],  "coaching": [    {      "id": "cee8464d-52ad-4eb2-9781-98981f82f865",      "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "title": "Follow up on the solar quote",      "note": "Asked for a callback after 6 pm.",      "dueAt": "2026-12-02T06:30:00.000Z",      "state": "OPEN",      "revision": 4,      "startMs": 1200,      "endMs": 1200,      "createdAt": "2026-11-28T09:15:00.000Z"    }  ],  "manifest": null,  "canReview": false,  "canManage": false,  "wrapUp": null}

Acknowledge or complete a coaching task

PUT/v1/tenants/{tenantSlug}/qms/cases/{id}/coaching/{taskId}

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Moves a coaching task forward: the coached agent acknowledges an OPEN task (ACKNOWLEDGED), then a quality manager completes it (COMPLETED). Send the task's current revision as expectedRevision; a stale revision, or a task not in the expected state, returns 409.

Path parameters

  • idstring (uuid)required

    Quality review ID.

  • taskIdstring (uuid)required

    Coaching task ID.

Request body (application/json)

  • stateenumrequired

    Current state of the coaching task.

    One ofACKNOWLEDGEDCOMPLETED

  • expectedRevisionintegerrequired

    The revision from your last read. If the record changed since, the request fails with 409 and nothing is saved.

    at least 0

    One of two concurrency tokens. Conventions

Responses

The quality review after the change.

  • itemobjectrequired

    The review case.

  • cardobjectrequired

    Scorecard used.

  • analysisobject or nullrequired

    Automatic analysis; null if not run.

  • evaluationsarray of objectrequired

    Reviews of the call, newest first.

  • coachingarray of objectrequired

    Coaching tasks from this review.

  • manifestany JSONrequired

    The call's recording manifest saved with the review; null without recording access.

  • canReviewbooleanrequired

    Whether the viewer may review the call.

  • canManagebooleanrequired

    Whether the viewer may manage scorecards and settings.

  • wrapUpany JSONrequired

    The agent's wrap-up of the call, or null.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 409 ConflictThe change conflicts with the record's current state or a workflow rule; error.code names it.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"REVIEW_CASE_ID="b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"TASK_ID="d0e1f2a3-b4c5-4d6e-9f7a-8b9c0d1e2f3a"curl -X PUT "$BASE/qms/cases/$REVIEW_CASE_ID/coaching/$TASK_ID" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "state": "ACKNOWLEDGED",    "expectedRevision": 1  }'
Example response (200 OK) (200 OK)
{  "item": {    "id": "23ca7086-af1a-49b4-8231-9e4bac24fc81",    "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",    "agentName": "Rahul Mehta",    "campaignName": "Pune rooftop launch",    "reviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a",    "reviewerName": "Priya Nair",    "state": "OPEN",    "analysisStatus": "NOT_REQUESTED",    "analysisError": null,    "revision": 4,    "createdAt": "2026-11-28T09:15:00.000Z",    "scorePercent": null,    "criticalFailure": false  },  "card": {    "id": "198780dd-3228-4132-8d5c-db6cc13059e1",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "title": "Follow up on the solar quote",    "version": 1,    "parameters": [      {        "id": "ce7b976a_465a_42fc_b5e4_978b2b361db1",        "name": "Asha Verma",        "instruction": "Greets the customer by name and says who is calling.",        "source": "TRANSCRIPT",        "maxScore": 1,        "critical": false      }    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "analysis": {    "version": "v3",    "artifactId": "rec_01HZX4",    "checksum": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",    "durationMs": 1200,    "segments": [      {        "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e",        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "text": "Yes, please call me after 6 pm.",        "confidence": null      }    ],    "metrics": {      "responseGapMedianMs": 1200,      "responseGapCount": 19,      "version": "v3",      "durationMs": 1200,      "customerSpeechMs": 1200,      "agentSpeechMs": 1200,      "overlapMs": 1200,      "silenceMs": 1200,      "longestAgentTurnMs": 1200,      "agentWordsPerMinute": 30,      "customerWordsPerMinute": 30,      "clippedFraction": [        1      ],      "silentChannels": [        false      ],      "channelCorrelation": 1,      "windows": [        {          "startMs": null,          "endMs": null,          "customerActive": null,          "agentActive": null,          "customerDb": null,          "agentDb": null        }      ]    },    "scores": [      {        "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",        "result": "PASS",        "score": 1,        "reason": "Customer asked to be called next week.",        "evidenceSegmentIds": [          null        ],        "evidenceStartMs": null,        "evidenceEndMs": null      }    ],    "findings": [      {        "kind": "STRENGTH",        "message": "Lead not found.",        "segmentIds": [          "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"        ],        "status": "SUGGESTED"      }    ],    "expressions": [      {        "role": "AGENT",        "startMs": 1200,        "endMs": 1200,        "label": "Work",        "confidence": 1,        "model": "expression-2"      }    ],    "expressionStatus": "NOT_CONFIGURED",    "scorerStatus": "NOT_CONFIGURED",    "sttModel": "speech-to-text-2",    "scorerModel": "scorer-2",    "warnings": [      "AUDIO_CONTINUITY_NOT_CERTIFIED"    ],    "createdAt": "2026-11-28T09:15:00.000Z"  },  "evaluations": [    {      "id": "588471dd-5774-4172-8262-8b64358cbcad",      "actorId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "source": "MANUAL",      "submitted": false,      "scorePercent": null,      "criticalFailure": false,      "createdAt": "2026-11-28T09:15:00.000Z",      "scores": [        {          "parameterId": "6949369f-5c53-4c5e-951a-9520bdfb8921",          "result": "PASS",          "score": 1,          "reason": "Customer asked to be called next week.",          "evidenceSegmentIds": [            "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8e"          ],          "evidenceStartMs": 1200,          "evidenceEndMs": 1200        }      ],      "notes": "Asked for a callback after 6 pm."    }  ],  "coaching": [    {      "id": "cee8464d-52ad-4eb2-9781-98981f82f865",      "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "title": "Follow up on the solar quote",      "note": "Asked for a callback after 6 pm.",      "dueAt": "2026-12-02T06:30:00.000Z",      "state": "OPEN",      "revision": 4,      "startMs": 1200,      "endMs": 1200,      "createdAt": "2026-11-28T09:15:00.000Z"    }  ],  "manifest": null,  "canReview": false,  "canManage": false,  "wrapUp": null}

Publish a scorecard

POST/v1/tenants/{tenantSlug}/qms/scorecards

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Publishes a new scorecard version for a campaign. Each parameter has a unique id, the instruction reviewers (and automatic scoring) follow, the evidence source and a maximum score. A failed critical parameter flags the whole review as a critical failure.

Scorecards are immutable: publishing again creates the next version. A new version is not used until you point the campaign at it with Save quality settings for a campaign (its id is the settings' scorecardId). Needs a quality manager with scorecard management access.

requestId is a UUID you generate per submission. Retrying with the same requestId and the same body returns the current review without saving twice; the same requestId with a different body returns 409.

Request body (application/json)

  • requestIdstring (uuid)required

    A UUID you create for this submission. Resend the same one to retry safely; a new submission needs a new one.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • titlestringrequired

    Title shown in the LMS.

    1–160 characters

  • parametersarray of objectrequired

    Parameters on the scorecard, in order.

    up to 50 items

Responses

The published scorecard.

  • idstring (uuid)required

    ID of the scorecard.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • titlestringrequired

    Title shown in the LMS.

  • versionnumberrequired

    Version number.

  • parametersarray of objectrequired

    Parameters on the scorecard, in order.

  • createdAtstringrequired

    When it was created (ISO 8601).

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 409 ConflictThe change conflicts with the record's current state or a workflow rule; error.code names it.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl -X POST "$BASE/qms/scorecards" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "requestId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "title": "Solar sales call quality",    "parameters": [      {        "id": "greeting",        "name": "Greeting and introduction",        "instruction": "Greets; names self and company.",        "source": "TRANSCRIPT",        "maxScore": 10      },      {        "id": "recording_disclosure",        "name": "Recording disclosure",        "instruction": "Says that the call is recorded.",        "source": "TRANSCRIPT",        "maxScore": 20,        "critical": true      },      {        "id": "needs_discovery",        "name": "Needs discovery",        "instruction": "Asks bill, roof type and area.",        "source": "TRANSCRIPT",        "maxScore": 30      }    ]  }'
Example response (201 Created) (201 Created)
{  "id": "3ca281a4-fa44-4dc8-8e8f-db5de9470c25",  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "title": "Follow up on the solar quote",  "version": 1,  "parameters": [    {      "id": "ce7b976a_465a_42fc_b5e4_978b2b361db1",      "name": "Asha Verma",      "instruction": "Greets the customer by name and says who is calling.",      "source": "TRANSCRIPT",      "maxScore": 1,      "critical": false    }  ],  "createdAt": "2026-11-28T09:15:00.000Z"}

Save quality settings for a campaign

PUT/v1/tenants/{tenantSlug}/qms/settings

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Turns quality review on or off for a campaign, picks the scorecard version (which must belong to the same campaign, otherwise 400), whether new calls are analysed automatically, and the default reviewer.

Send the settings' current revision (0 the first time; see settings in List quality reviews) as expectedRevision; a stale revision returns 409. Enabling review returns 503 while quality evidence encryption is not configured.

The response is { campaignId, revision } with the new revision.

Request body (application/json)

  • campaignIdstring (uuid)required

    ID of the campaign.

  • expectedRevisionintegerrequired

    The revision from your last read. If the record changed since, the request fails with 409 and nothing is saved.

    at least 0

    One of two concurrency tokens. Conventions

  • enabledbooleanrequired

    Whether it is turned on.

  • autoAnalyzebooleanrequired

    Analyse new recordings automatically.

  • scorecardIdstring (uuid)required

    ID of the scorecard.

  • defaultReviewerIdstring (uuid) or nullrequired

    ID of the default reviewer; null if none.

Responses

The settings were saved: { campaignId, revision }.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • revisionintegerrequired

    The settings' new revision.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 409 ConflictThe change conflicts with the record's current state or a workflow rule; error.code names it.
  • 503 Service UnavailableA service this operation depends on is temporarily unavailable; retry with backoff.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl -X PUT "$BASE/qms/settings" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "expectedRevision": 0,    "enabled": true,    "autoAnalyze": true,    "scorecardId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",    "defaultReviewerId": "d4c3b2a1-f6e5-4d7c-9b8a-1f2e3d4c5b6a"  }'
Example response (200 OK) (200 OK)
{  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "revision": 1}

Get sales quality for a campaign

GET/v1/tenants/{tenantSlug}/lms/sales/{campaignId}

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.read

Returns the campaign's sales funnel from human calling (calls, contacted, qualified, appointment and converted leads), the sales policy that maps call dispositions to funnel stages, and open escalations for overdue follow-ups. Needs calling management permission.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

Sales quality.

  • dispositionsarray of objectrequired

    Campaign dispositions.

  • managersarray of objectrequired

    Sales managers.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • policyobjectrequired

    Sales stage policy.

  • callsnumberrequired

    Calls in the period.

  • contactedLeadsnumberrequired

    Leads reached.

  • qualifiedLeadsnumberrequired

    Leads that reached a qualified disposition.

  • appointmentLeadsnumberrequired

    Leads with an appointment disposition.

  • convertedLeadsnumberrequired

    Leads converted.

  • escalationsarray of objectrequired

    Escalations raised.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundCAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"curl "$BASE/lms/sales/$CAMPAIGN_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "dispositions": [    {      "key": "roof_type",      "label": "Work"    }  ],  "managers": [    {      "id": "375e4b76-c5ec-42e4-b1d9-94d3bdd54721",      "name": "Asha Verma"    }  ],  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "policy": {    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "expectedRevision": 4,    "overdueMinutes": 30,    "escalationOwnerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",    "stages": [      {        "dispositionKey": "interested",        "stage": "QUALIFIED"      }    ]  },  "calls": 1,  "contactedLeads": 1,  "qualifiedLeads": 1,  "appointmentLeads": 1,  "convertedLeads": 1,  "escalations": [    {      "id": "d0c27f92-6c92-49ba-adb7-1bfffbd9bc39",      "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "leadName": "Asha Verma",      "ownerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "ownerName": "Rahul Mehta",      "dueAt": "2026-12-02T06:30:00.000Z",      "status": "ACTIVE",      "revision": 4    }  ]}

Save a campaign's sales policy

PUT/v1/tenants/{tenantSlug}/lms/sales/policy

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Maps the campaign's active call dispositions to funnel stages (QUALIFIED, APPOINTMENT, CONVERTED), each disposition at most once, and sets when an open follow-up counts as overdue and who receives the escalation (an active member with calling management permission, or null).

Inactive or unknown dispositions, or an ineligible owner, return 400. Send the policy's current revision (policy.expectedRevision from Get sales quality for a campaign, 0 the first time) as expectedRevision; a stale revision returns 409. Campaigns without calling configured return 404.

Request body (application/json)

  • campaignIdstring (uuid)required

    ID of the campaign.

  • expectedRevisionintegerrequired

    The revision from your last read. If the record changed since, the request fails with 409 and nothing is saved.

    at least 0

    One of two concurrency tokens. Conventions

  • overdueMinutesintegerrequired

    Overdue, in minutes.

    1–43200

  • escalationOwnerIdstring (uuid) or nullrequired

    ID of the escalation owner; null if none.

  • stagesarray of objectrequired

    Lead stage to set for each disposition.

    up to 100 items

Responses

Sales quality after the change.

  • dispositionsarray of objectrequired

    Campaign dispositions.

  • managersarray of objectrequired

    Sales managers.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • policyobjectrequired

    Sales stage policy.

  • callsnumberrequired

    Calls in the period.

  • contactedLeadsnumberrequired

    Leads reached.

  • qualifiedLeadsnumberrequired

    Leads that reached a qualified disposition.

  • appointmentLeadsnumberrequired

    Leads with an appointment disposition.

  • convertedLeadsnumberrequired

    Leads converted.

  • escalationsarray of objectrequired

    Escalations raised.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 409 ConflictThe change conflicts with the record's current state or a workflow rule; error.code names it.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl -X PUT "$BASE/lms/sales/policy" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "expectedRevision": 1,    "overdueMinutes": 120,    "escalationOwnerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",    "stages": [      {        "dispositionKey": "INTERESTED",        "stage": "QUALIFIED"      },      {        "dispositionKey": "SITE_VISIT_BOOKED",        "stage": "APPOINTMENT"      },      {        "dispositionKey": "ORDER_CONFIRMED",        "stage": "CONVERTED"      }    ]  }'
Example response (200 OK) (200 OK)
{  "dispositions": [    {      "key": "roof_type",      "label": "Work"    }  ],  "managers": [    {      "id": "375e4b76-c5ec-42e4-b1d9-94d3bdd54721",      "name": "Asha Verma"    }  ],  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "policy": {    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "expectedRevision": 4,    "overdueMinutes": 30,    "escalationOwnerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",    "stages": [      {        "dispositionKey": "interested",        "stage": "QUALIFIED"      }    ]  },  "calls": 1,  "contactedLeads": 1,  "qualifiedLeads": 1,  "appointmentLeads": 1,  "convertedLeads": 1,  "escalations": [    {      "id": "d0c27f92-6c92-49ba-adb7-1bfffbd9bc39",      "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "leadName": "Asha Verma",      "ownerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "ownerName": "Rahul Mehta",      "dueAt": "2026-12-02T06:30:00.000Z",      "status": "ACTIVE",      "revision": 4    }  ]}

Acknowledge a follow-up escalation

POST/v1/tenants/{tenantSlug}/lms/sales/escalations/{id}/acknowledge

{tenantSlug} is your workspace slug, the first part of your LMS web address.

Scope quality.write

Marks an open escalation for an overdue follow-up as acknowledged. Send the escalation's current revision as expectedRevision; a stale revision, or an escalation that is no longer open, returns 409. The response is { id }.

Path parameters

  • idstring (uuid)required

    Escalation ID.

Request body (application/json)

  • expectedRevisionintegerrequired

    The revision from your last read. If the record changed since, the request fails with 409 and nothing is saved.

    at least 0

    One of two concurrency tokens. Conventions

Responses

The escalation was acknowledged: { id }.

  • idstring (uuid)required

    ID of the escalation.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the quality.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 409 ConflictThe change conflicts with the record's current state or a workflow rule; error.code names it.

Also, like every operation: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"ESCALATION_ID="c8d9e0f1-a2b3-4c4d-9e5f-6a7b8c9d0e1f"curl -X POST "$BASE/lms/sales/escalations/$ESCALATION_ID/acknowledge" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 0  }'
Example response (200 OK) (200 OK)
{  "id": "c8d9e0f1-a2b3-4c4d-9e5f-6a7b8c9d0e1f"}
    Quality API · IoTIndia developers