Skip to main content

Calling

Human calling: calls, outcomes, follow-ups, pacing, cohorts and permissions.

An agent's call, step by step

  1. Read the agent's state and whether a call is live.

    GETGet my calling status

  2. Follow the live call; end it if needed.

    GETGet a callPOSTHang up a call

  3. Record the result in wrap-up.

    GETGet the wrap-up form for a callPOSTSave a call's outcome

  4. Work the follow-ups it created.

    GETList my call follow-upsPUTReschedule, complete or cancel a follow-up

Get my calling status

GET/v1/tenants/{tenantSlug}/lms/calling/agent

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

Scope calling.read

Returns the calling state of the acting member: the campaigns they are assigned to, their calling session (ready, paused, on a call or in wrap-up, with any break reason), whether they can take calls right now and why not, and the call in progress, if any. It acts as the API key's acting member, so it returns that member's own data, as an agent would see it in the calling workspace.

Designed for the agent workspace. Poll it to mirror an agent's state; it never changes anything.

What to do next, by session.state:

  • READY or PAUSED: no call is live (currentCall is null); available and reason say whether calls can arrive.
  • ON_CALL: read the live call from currentCall or with Get a call; end it with Hang up a call.
  • WRAP_UP: the call has ended; record the result with Save a call's outcome.

Responses

The acting member's calling status.

  • campaignsarray of objectrequired

    Campaigns the member can call in.

    default []

  • assignmentobject or nullrequired

    The campaign the member is assigned to dial now; null if none.

  • sessionobject or nullrequired

    The member's calling session; null when signed out of calling.

  • availablebooleanrequired

    Whether the member can take calls now.

  • deviceTypeenum or nullrequired

    BROWSER or SIP_PHONE; null without a device.

    One ofBROWSERSIP_PHONE

  • browserSessionIdstring (uuid) or nullrequired

    Browser phone session, when using the browser.

  • browserRegisteredbooleanrequired

    Whether the browser phone is registered and can ring.

    default false

  • reasonstring or nullrequired

    Why the member cannot call, in plain language; null when they can.

  • endpointLabelstring or nullrequired

    Name of the phone the member uses.

  • streamHealthybooleanrequired

    Whether live telephony updates are flowing; when false, states may lag.

  • currentCallobject or nullrequired

    The live call; null when not on a call.

  • controlCallobject or nullrequired

    A transfer or supervisor call in progress; null if none.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.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/lms/calling/agent" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "campaigns": [    {      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "campaignName": "Pune rooftop launch",      "running": true    }  ],  "assignment": {    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "campaignName": "Pune rooftop launch",    "mode": "PROGRESSIVE",    "running": true  },  "session": {    "id": "a4b5c6d7-e8f9-4a0b-9c1d-2e3f4a5b6c7d",    "state": "READY",    "availability": "READY",    "mode": "PROGRESSIVE",    "strategy": "PAIRED",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "nextCallAt": "2026-12-01T10:02:30.000Z",    "expiresAt": "2026-12-01T10:05:00.000Z",    "intervalSeconds": 30,    "revision": 7,    "pauseReason": null,    "breakReasonKey": null,    "breakReasonLabel": null  },  "available": true,  "deviceType": "BROWSER",  "browserSessionId": "b5c6d7e8-f9a0-4b1c-8d2e-3f4a5b6c7d8e",  "browserRegistered": true,  "reason": null,  "endpointLabel": "Browser phone",  "streamHealthy": true,  "currentCall": null,  "controlCall": null}

Get my call statistics for today

GET/v1/tenants/{tenantSlug}/lms/calling/daily-stats

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

Scope calling.read

Counts the acting member's calls since midnight today: customers dialed, conversations connected, calls with a saved outcome, and total talk time in seconds. "Today" follows the time zone of the campaign the member is assigned to (India Standard Time when unassigned), returned as timezone. It acts as the API key's acting member, so it returns that member's own data, as an agent would see it in the calling workspace.

Responses

Today's totals.

  • timezonestringrequired

    Time zone the day is counted in.

  • attemptsnumberrequired

    Calls placed today.

  • connectednumberrequired

    Calls answered today.

  • completednumberrequired

    Calls with a saved outcome today.

  • talkSecondsnumberrequired

    Total talk time today, in seconds.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.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/lms/calling/daily-stats" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "timezone": "Asia/Kolkata",  "attempts": 42,  "connected": 18,  "completed": 40,  "talkSeconds": 3725}

List break reasons

GET/v1/tenants/{tenantSlug}/lms/calling/break-reasons

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

Scope calling.read

Returns the workspace's break reasons, the choices an agent picks from when they pause calling (for example MEAL or COACHING), with the settings revision. Inactive reasons are kept so past breaks still report under their label.

Responses

Break reasons.

  • revisionintegerrequired

    Revision; send it as expectedRevision when saving.

    at least 0

  • reasonsarray of objectrequired

    Break reasons, in display order.

    up to 30 items

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.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/lms/calling/break-reasons" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "revision": 2,  "reasons": [    {      "key": "GENERAL",      "label": "General break",      "active": true    },    {      "key": "MEAL",      "label": "Lunch",      "active": true    },    {      "key": "COACHING",      "label": "Coaching",      "active": true    },    {      "key": "TRAINING",      "label": "Product training",      "active": false    }  ]}

Save break reasons

PUT/v1/tenants/{tenantSlug}/lms/calling/break-reasons

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

Scope calling.write

Replaces the workspace's list of break reasons (up to 30). Keys are upper-case codes and must be unique, and at least one reason must stay active. Retire a reason with active: false instead of removing it, so reports keep its label. Needs calling management permission. Send the current revision as expectedRevision; if someone saved in the meantime the request fails with 409.

Request body (application/json)

  • expectedRevisionintegerrequired

    The revision from your last read; 409 if it changed since.

    at least 0

    One of two concurrency tokens. Conventions

  • reasonsarray of objectrequired

    The complete new list (1–30).

    up to 30 items

Responses

The saved break reasons.

  • revisionintegerrequired

    Revision; send it as expectedRevision when saving.

    at least 0

  • reasonsarray of objectrequired

    Break reasons, in display order.

    up to 30 items

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 calling.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.

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/calling/break-reasons" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 2,    "reasons": [      {        "key": "GENERAL",        "label": "General break",        "active": true      },      {        "key": "MEAL",        "label": "Lunch",        "active": true      },      {        "key": "COACHING",        "label": "Coaching",        "active": true      },      {        "key": "TRAINING",        "label": "Product training",        "active": true      }    ]  }'
Example response (200 OK) (200 OK)
{  "revision": 4,  "reasons": [    {      "key": "ROOF_TYPE",      "label": "Work",      "active": true    }  ]}

List a lead's calls

GET/v1/tenants/{tenantSlug}/lms/leads/{leadId}/human-calls

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

Scope calling.read

Returns the 50 most recent agent calls with the lead, newest first, each with its state, timings, outcome and recording state. Members with calling management permission see every call; other members see only the calls they handled.

Path parameters

  • leadIdstring (uuid)required

    Lead ID.

Responses

The lead's calls.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundLEAD_NOT_FOUNDThe lead 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"LEAD_ID="0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10"curl "$BASE/lms/leads/$LEAD_ID/human-calls" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "id": "8ef34f34-44ab-4b30-9775-c5153eb8e33d",      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "contactId": "3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d",      "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "externalCallId": "fb037741-5fb4-42ca-9f34-9e54a1f9453d",      "execution": {        "attemptId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",        "revision": 4,        "code": "NORMAL_CLEARING",        "customerDialed": "UNKNOWN"      },      "state": "REQUESTED",      "businessState": "OPEN",      "classification": "HUMAN",      "createdAt": "2026-11-28T09:15:00.000Z",      "connectedAt": "2026-12-01T10:00:00.000Z",      "endedAt": "2026-12-01T09:45:22.000Z",      "outcome": "CONNECTED",      "dispositionKey": "interested",      "dispositionLabel": "Interested",      "note": "Asked for a callback after 6 pm.",      "followUpScheduledAt": "2026-12-01T10:00:00.000Z",      "errorCode": "error",      "revision": 4,      "recordingState": "NOT_AVAILABLE",      "hangupPending": false,      "wrapUpAutoClosed": false,      "earlyMedia": false,      "answeringMachine": "HUNG_UP",      "callerNumber": "+918040001234",      "direction": "OUTBOUND"    }  ]}

Get a call

GET/v1/tenants/{tenantSlug}/lms/human-calls/{callId}

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

Scope calling.read

Returns one agent call. Members with calling management permission see every call; other members see only the calls they handled.

state follows the telephony progress (QUEUED → RINGING → BRIDGED → COMPLETED, or FAILED / CANCELLED). businessState is what matters for follow-up work: OPEN while the call is live, WRAP_UP once it ended and is waiting for an outcome, DONE when the outcome is saved. recordingState becomes AVAILABLE when the recording can be downloaded. Use revision as expectedRevision when you save the outcome.

Path parameters

  • callIdstring (uuid)required

    Call ID.

Responses

The call.

  • idstring (uuid)required

    ID of the human call.

  • leadIdstring (uuid)required

    Lead the call is about.

  • campaignIdstring (uuid)required

    Campaign the call belongs to.

  • contactIdstring (uuid)required

    Phone contact that was dialled.

  • agentIdstring (uuid) or nullrequired

    Agent on the call; null if none.

  • externalCallIdstring (uuid) or nullrequired

    Telephony provider's call ID.

  • executionobject or nullrequired

    Telephony execution of the call; null before it was placed.

  • stateenumrequired

    Current state of the human call.

    REQUESTED
    Asked for; not yet queued for dialling.
    QUEUED
    Waiting for an agent or a line.
    DISPATCHED
    Handed to telephony.
    AGENT_CONNECTING
    Ringing the agent's phone first.
    CUSTOMER_DIALING
    Dialling the customer.
    RINGING
    The customer's phone is ringing.
    MEDIA_ANSWERED
    Telephony answered; not yet known to be a person.
    SCREENING
    Checking whether a person or a machine answered.
    HUMAN_CONFIRMED
    A person answered.
    BRIDGED
    Agent and customer are talking.
    ENDING
    Hanging up.
    COMPLETED
    Ended normally.
    FAILED
    Could not be placed or dropped with an error.
    CANCELLED
    Stopped before it connected.
    UNCERTAIN
    Telephony did not report how it ended; being reconciled.
  • businessStateenumrequired

    Where the call is in the agent's work: OPEN (in progress), WRAP_UP (outcome not saved yet) or DONE.

    One ofOPENWRAP_UPDONE

  • classificationstringrequired

    Telephony classification of how the call ended, for example ANSWERED or NO_ANSWER.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • connectedAtstring (date-time) or nullrequired

    When the customer answered; null if never.

  • endedAtstring (date-time) or nullrequired

    When the call ended; null while live.

  • outcomeenum or nullrequired

    Outcome the agent saved; null until wrap-up.

    CONNECTED
    Spoke with the customer.
    NO_ANSWER
    Rang out without an answer.
    BUSY
    The line was busy.
    INVALID_CONTACT
    Wrong or unreachable number.
    LEFT_MESSAGE
    Left a voicemail or message.
    FOLLOW_UP_SCHEDULED
    Booked a follow-up.
    OTHER
    Anything else; add a note.
    DO_NOT_CALL
    The customer asked not to be called again.
  • dispositionKeystring or nullrequired

    Key of the campaign disposition the agent chose; null until wrap-up.

  • dispositionLabelstring or nullrequired

    Name of that disposition, as agents see it.

  • notestring or nullrequired

    Agent's note from wrap-up.

  • followUpScheduledAtstring (date-time) or nullrequired

    When a follow-up was booked for; null if none.

  • errorCodestring or nullrequired

    Machine-readable reason the call failed; null unless it failed.

  • revisionintegerrequired

    Revision number, increased on every change. Send it back as expectedRevision when you update.

    at least 0

  • recordingStateenumrequired

    NOT_AVAILABLE, PROCESSING, AVAILABLE (download with Recordings) or FAILED.

    One ofNOT_AVAILABLEPROCESSINGAVAILABLEFAILED

  • hangupPendingbooleanrequired

    true while a hang-up request is being carried out.

  • wrapUpAutoClosedbooleanrequired

    true when LMS closed an abandoned wrap-up with the campaign's fallback outcome.

    default false

  • earlyMediabooleanrequired

    true when the agent's phone joined first and heard ringback before the customer answered.

    default false

  • answeringMachineenum or nullrequired

    Answering-machine detection: HUNG_UP (ended automatically), CONNECTED (put through anyway) or DETECTED; null if none.

    One ofHUNG_UPCONNECTEDDETECTED

  • callerNumberstring or nullrequired

    Caller ID shown to the customer, masked unless the full number is known.

  • directionenumrequired

    OUTBOUND (agent called) or INBOUND (customer called the IVR).

    One ofOUTBOUNDINBOUND

    default "OUTBOUND"

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundCALL_NOT_FOUNDThe call 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"CALL_ID="6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f"curl "$BASE/lms/human-calls/$CALL_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",  "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "contactId": "3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d",  "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",  "externalCallId": "c0ffee00-1234-4abc-8def-0123456789ab",  "execution": {    "attemptId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",    "revision": 4,    "code": "ANSWERED",    "customerDialed": "CONFIRMED"  },  "state": "COMPLETED",  "businessState": "WRAP_UP",  "classification": "HUMAN",  "createdAt": "2026-12-01T05:12:04.000Z",  "connectedAt": "2026-12-01T05:12:19.000Z",  "endedAt": "2026-12-01T05:18:42.000Z",  "outcome": null,  "dispositionKey": null,  "dispositionLabel": null,  "note": null,  "followUpScheduledAt": null,  "errorCode": null,  "revision": 7,  "recordingState": "PROCESSING",  "hangupPending": false,  "wrapUpAutoClosed": false,  "earlyMedia": false,  "answeringMachine": null,  "callerNumber": "+9180XXXX4521",  "direction": "OUTBOUND"}

Hang up a call

POST/v1/tenants/{tenantSlug}/lms/human-calls/{callId}/hangup

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

Scope calling.write

Asks telephony to end a live call. The request is queued and the call ends shortly after; the response shows the call as it is now, with hangupPending: true until the hang-up is confirmed. Repeating the request is safe, and a call that has already ended is returned unchanged. Needs call control permission and access to the call.

Path parameters

  • callIdstring (uuid)required

    Call ID.

Responses

The hang-up was accepted; the call as it is now.

  • idstring (uuid)required

    ID of the human call.

  • leadIdstring (uuid)required

    Lead the call is about.

  • campaignIdstring (uuid)required

    Campaign the call belongs to.

  • contactIdstring (uuid)required

    Phone contact that was dialled.

  • agentIdstring (uuid) or nullrequired

    Agent on the call; null if none.

  • externalCallIdstring (uuid) or nullrequired

    Telephony provider's call ID.

  • executionobject or nullrequired

    Telephony execution of the call; null before it was placed.

  • stateenumrequired

    Current state of the human call.

    REQUESTED
    Asked for; not yet queued for dialling.
    QUEUED
    Waiting for an agent or a line.
    DISPATCHED
    Handed to telephony.
    AGENT_CONNECTING
    Ringing the agent's phone first.
    CUSTOMER_DIALING
    Dialling the customer.
    RINGING
    The customer's phone is ringing.
    MEDIA_ANSWERED
    Telephony answered; not yet known to be a person.
    SCREENING
    Checking whether a person or a machine answered.
    HUMAN_CONFIRMED
    A person answered.
    BRIDGED
    Agent and customer are talking.
    ENDING
    Hanging up.
    COMPLETED
    Ended normally.
    FAILED
    Could not be placed or dropped with an error.
    CANCELLED
    Stopped before it connected.
    UNCERTAIN
    Telephony did not report how it ended; being reconciled.
  • businessStateenumrequired

    Where the call is in the agent's work: OPEN (in progress), WRAP_UP (outcome not saved yet) or DONE.

    One ofOPENWRAP_UPDONE

  • classificationstringrequired

    Telephony classification of how the call ended, for example ANSWERED or NO_ANSWER.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • connectedAtstring (date-time) or nullrequired

    When the customer answered; null if never.

  • endedAtstring (date-time) or nullrequired

    When the call ended; null while live.

  • outcomeenum or nullrequired

    Outcome the agent saved; null until wrap-up.

    CONNECTED
    Spoke with the customer.
    NO_ANSWER
    Rang out without an answer.
    BUSY
    The line was busy.
    INVALID_CONTACT
    Wrong or unreachable number.
    LEFT_MESSAGE
    Left a voicemail or message.
    FOLLOW_UP_SCHEDULED
    Booked a follow-up.
    OTHER
    Anything else; add a note.
    DO_NOT_CALL
    The customer asked not to be called again.
  • dispositionKeystring or nullrequired

    Key of the campaign disposition the agent chose; null until wrap-up.

  • dispositionLabelstring or nullrequired

    Name of that disposition, as agents see it.

  • notestring or nullrequired

    Agent's note from wrap-up.

  • followUpScheduledAtstring (date-time) or nullrequired

    When a follow-up was booked for; null if none.

  • errorCodestring or nullrequired

    Machine-readable reason the call failed; null unless it failed.

  • revisionintegerrequired

    Revision number, increased on every change. Send it back as expectedRevision when you update.

    at least 0

  • recordingStateenumrequired

    NOT_AVAILABLE, PROCESSING, AVAILABLE (download with Recordings) or FAILED.

    One ofNOT_AVAILABLEPROCESSINGAVAILABLEFAILED

  • hangupPendingbooleanrequired

    true while a hang-up request is being carried out.

  • wrapUpAutoClosedbooleanrequired

    true when LMS closed an abandoned wrap-up with the campaign's fallback outcome.

    default false

  • earlyMediabooleanrequired

    true when the agent's phone joined first and heard ringback before the customer answered.

    default false

  • answeringMachineenum or nullrequired

    Answering-machine detection: HUNG_UP (ended automatically), CONNECTED (put through anyway) or DETECTED; null if none.

    One ofHUNG_UPCONNECTEDDETECTED

  • callerNumberstring or nullrequired

    Caller ID shown to the customer, masked unless the full number is known.

  • directionenumrequired

    OUTBOUND (agent called) or INBOUND (customer called the IVR).

    One ofOUTBOUNDINBOUND

    default "OUTBOUND"

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundCALL_NOT_FOUNDThe call 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"CALL_ID="6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f"curl -X POST "$BASE/lms/human-calls/$CALL_ID/hangup" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (202 Accepted) (202 Accepted)
{  "id": "8ef34f34-44ab-4b30-9775-c5153eb8e33d",  "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "contactId": "3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d",  "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",  "externalCallId": "fb037741-5fb4-42ca-9f34-9e54a1f9453d",  "execution": {    "attemptId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",    "revision": 4,    "code": "NORMAL_CLEARING",    "customerDialed": "UNKNOWN"  },  "state": "REQUESTED",  "businessState": "OPEN",  "classification": "HUMAN",  "createdAt": "2026-11-28T09:15:00.000Z",  "connectedAt": "2026-12-01T10:00:00.000Z",  "endedAt": "2026-12-01T09:45:22.000Z",  "outcome": "CONNECTED",  "dispositionKey": "interested",  "dispositionLabel": "Interested",  "note": "Asked for a callback after 6 pm.",  "followUpScheduledAt": "2026-12-01T10:00:00.000Z",  "errorCode": "error",  "revision": 4,  "recordingState": "NOT_AVAILABLE",  "hangupPending": false,  "wrapUpAutoClosed": false,  "earlyMedia": false,  "answeringMachine": "HUNG_UP",  "callerNumber": "+918040001234",  "direction": "OUTBOUND"}

Save a call's outcome

POST/v1/tenants/{tenantSlug}/lms/human-calls/{callId}/outcome

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

Scope calling.write

Records how a finished call went and closes its wrap-up. The call must have ended (businessState: WRAP_UP); send its current revision as expectedRevision.

  • outcome is the reporting category. dispositionKey picks one of the campaign's dispositions with that outcome (leave it out to use the disposition whose key equals the outcome). When you send dispositionKey, also send the campaign's calling settings revision as dispositionRevision.
  • Some dispositions require a note or specific customer fields; send those fields in customerFields (this needs lead edit permission).
  • CONNECTED is accepted only when telephony confirmed a conversation.
  • FOLLOW_UP_SCHEDULED requires followUpDueAt (in the future) and callback with a reason and the customer's time zone. It creates a follow-up owned by the call's agent and a follow-up activity on the lead, which publishes followup.created and callback.scheduled. Any other outcome must leave both out.
  • DO_NOT_CALL marks the phone number as do-not-call across all campaigns and records the opt-out as withdrawn calling permission.

Saving the outcome publishes call.dispositioned. call.completed is published when the call ends and recording.available when its recording can be downloaded, independently of the outcome.

The call is logged on the lead's timeline, and a call that settles an earlier callback to the same number completes that callback. Retrying with the same body returns the saved call; a different body after the outcome is saved fails with 409.

Other 409 causes: the call has not ended yet, its revision changed, the campaign's dispositions changed (reload the calling settings), or the lead moved to another campaign.

Path parameters

  • callIdstring (uuid)required

    Call ID.

Request body (application/json)

  • expectedRevisionintegerrequired

    The call's revision from your last read; 409 if it changed since.

    at least 0

    One of two concurrency tokens. Conventions

  • outcomeenumrequired

    Overall outcome of the call.

    CONNECTED
    Spoke with the customer.
    NO_ANSWER
    Rang out without an answer.
    BUSY
    The line was busy.
    INVALID_CONTACT
    Wrong or unreachable number.
    LEFT_MESSAGE
    Left a voicemail or message.
    FOLLOW_UP_SCHEDULED
    Booked a follow-up.
    OTHER
    Anything else; add a note.
    DO_NOT_CALL
    The customer asked not to be called again.
  • dispositionKeystringoptional

    Key of the campaign disposition (the detailed outcome agents pick).

    pattern ^[a-zA-Z][a-zA-Z0-9_]{0,63}$

  • dispositionRevisionintegeroptional

    Revision of the campaign's disposition list you chose from; 409 if it changed.

    at least 0

  • customerFieldsobjectoptional

    Customer field values captured during the call.

  • notestringoptional

    Wrap-up note (up to 5,000 characters).

    up to 5000 characters

  • followUpDueAtstring (date-time)optional

    When to call back. Required when outcome is FOLLOW_UP_SCHEDULED, refused otherwise.

  • callbackobjectoptional

    Callback reason and time zone. Required with FOLLOW_UP_SCHEDULED, refused otherwise.

Responses

The call with its saved outcome.

  • idstring (uuid)required

    ID of the human call.

  • leadIdstring (uuid)required

    Lead the call is about.

  • campaignIdstring (uuid)required

    Campaign the call belongs to.

  • contactIdstring (uuid)required

    Phone contact that was dialled.

  • agentIdstring (uuid) or nullrequired

    Agent on the call; null if none.

  • externalCallIdstring (uuid) or nullrequired

    Telephony provider's call ID.

  • executionobject or nullrequired

    Telephony execution of the call; null before it was placed.

  • stateenumrequired

    Current state of the human call.

    REQUESTED
    Asked for; not yet queued for dialling.
    QUEUED
    Waiting for an agent or a line.
    DISPATCHED
    Handed to telephony.
    AGENT_CONNECTING
    Ringing the agent's phone first.
    CUSTOMER_DIALING
    Dialling the customer.
    RINGING
    The customer's phone is ringing.
    MEDIA_ANSWERED
    Telephony answered; not yet known to be a person.
    SCREENING
    Checking whether a person or a machine answered.
    HUMAN_CONFIRMED
    A person answered.
    BRIDGED
    Agent and customer are talking.
    ENDING
    Hanging up.
    COMPLETED
    Ended normally.
    FAILED
    Could not be placed or dropped with an error.
    CANCELLED
    Stopped before it connected.
    UNCERTAIN
    Telephony did not report how it ended; being reconciled.
  • businessStateenumrequired

    Where the call is in the agent's work: OPEN (in progress), WRAP_UP (outcome not saved yet) or DONE.

    One ofOPENWRAP_UPDONE

  • classificationstringrequired

    Telephony classification of how the call ended, for example ANSWERED or NO_ANSWER.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • connectedAtstring (date-time) or nullrequired

    When the customer answered; null if never.

  • endedAtstring (date-time) or nullrequired

    When the call ended; null while live.

  • outcomeenum or nullrequired

    Outcome the agent saved; null until wrap-up.

    CONNECTED
    Spoke with the customer.
    NO_ANSWER
    Rang out without an answer.
    BUSY
    The line was busy.
    INVALID_CONTACT
    Wrong or unreachable number.
    LEFT_MESSAGE
    Left a voicemail or message.
    FOLLOW_UP_SCHEDULED
    Booked a follow-up.
    OTHER
    Anything else; add a note.
    DO_NOT_CALL
    The customer asked not to be called again.
  • dispositionKeystring or nullrequired

    Key of the campaign disposition the agent chose; null until wrap-up.

  • dispositionLabelstring or nullrequired

    Name of that disposition, as agents see it.

  • notestring or nullrequired

    Agent's note from wrap-up.

  • followUpScheduledAtstring (date-time) or nullrequired

    When a follow-up was booked for; null if none.

  • errorCodestring or nullrequired

    Machine-readable reason the call failed; null unless it failed.

  • revisionintegerrequired

    Revision number, increased on every change. Send it back as expectedRevision when you update.

    at least 0

  • recordingStateenumrequired

    NOT_AVAILABLE, PROCESSING, AVAILABLE (download with Recordings) or FAILED.

    One ofNOT_AVAILABLEPROCESSINGAVAILABLEFAILED

  • hangupPendingbooleanrequired

    true while a hang-up request is being carried out.

  • wrapUpAutoClosedbooleanrequired

    true when LMS closed an abandoned wrap-up with the campaign's fallback outcome.

    default false

  • earlyMediabooleanrequired

    true when the agent's phone joined first and heard ringback before the customer answered.

    default false

  • answeringMachineenum or nullrequired

    Answering-machine detection: HUNG_UP (ended automatically), CONNECTED (put through anyway) or DETECTED; null if none.

    One ofHUNG_UPCONNECTEDDETECTED

  • callerNumberstring or nullrequired

    Caller ID shown to the customer, masked unless the full number is known.

  • directionenumrequired

    OUTBOUND (agent called) or INBOUND (customer called the IVR).

    One ofOUTBOUNDINBOUND

    default "OUTBOUND"

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 calling.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundCALL_NOT_FOUNDThe call does not exist or the key cannot see it.
  • 409 ConflictOUTCOME_CONFLICTA different outcome was already saved for this call.

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"CALL_ID="6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f"curl -X POST "$BASE/lms/human-calls/$CALL_ID/outcome" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 7,    "outcome": "FOLLOW_UP_SCHEDULED",    "dispositionKey": "FOLLOW_UP_SCHEDULED",    "dispositionRevision": 3,    "note": "Wants to discuss EMI options next week.",    "followUpDueAt": "2026-12-03T06:30:00.000Z",    "callback": {      "reason": "Discuss EMI options for the 5 kW system",      "timezone": "Asia/Kolkata"    }  }'
Example response (200 OK) (200 OK)
{  "id": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",  "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "contactId": "3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d",  "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",  "externalCallId": "c0ffee00-1234-4abc-8def-0123456789ab",  "execution": {    "attemptId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",    "revision": 4,    "code": "ANSWERED",    "customerDialed": "CONFIRMED"  },  "state": "COMPLETED",  "businessState": "DONE",  "classification": "HUMAN",  "createdAt": "2026-12-01T05:12:04.000Z",  "connectedAt": "2026-12-01T05:12:19.000Z",  "endedAt": "2026-12-01T05:18:42.000Z",  "outcome": "FOLLOW_UP_SCHEDULED",  "dispositionKey": "FOLLOW_UP_SCHEDULED",  "dispositionLabel": "Follow-up agreed",  "note": "Wants to discuss EMI options next week.",  "followUpScheduledAt": "2026-12-03T06:30:00.000Z",  "errorCode": null,  "revision": 8,  "recordingState": "AVAILABLE",  "hangupPending": false,  "wrapUpAutoClosed": false,  "earlyMedia": false,  "answeringMachine": null,  "callerNumber": "+9180XXXX4521",  "direction": "OUTBOUND"}

Get a call's saved wrap-up

GET/v1/tenants/{tenantSlug}/lms/human-calls/{callId}/wrap-up

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

Scope calling.read

Returns exactly what was saved with the call's outcome: the disposition path, the customer form and values as they were at the time, the note and any callback. snapshot is null until the outcome is saved. autoClosed: true means the agent never saved an outcome and the campaign's fallback outcome was applied. Members with calling management permission see every call; other members see only the calls they handled.

Path parameters

  • callIdstring (uuid)required

    Call ID.

Responses

The saved wrap-up.

  • callIdstring (uuid)required

    ID of the call.

  • snapshotobject or nullrequired

    Saved wrap-up; null for calls without one.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundCALL_NOT_FOUNDThe call 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"CALL_ID="6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f"curl "$BASE/lms/human-calls/$CALL_ID/wrap-up" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",  "snapshot": {    "version": 1,    "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",    "completedAt": "2026-12-01T09:45:22.000Z",    "completedBy": "263d0009-4460-488a-afb2-0b96681362f5",    "dispositionRevision": 1,    "dispositionPath": [      {        "key": "roof_type",        "label": "Work",        "outcome": null,        "active": true,        "requiresNote": false,        "parentKey": null,        "requiredFieldKeys": [          null        ]      }    ],    "customer": {      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "leadName": "Asha Verma",      "maskedFields": [],      "form": {        "campaignId": null,        "revision": null,        "fields": null,        "updatedAt": null      },      "values": {        "roofType": "Flat RCC roof"      },      "updatedAt": "2026-12-01T10:00:00.000Z"    },    "note": "Asked for a callback after 6 pm.",    "callback": {      "reason": "Customer asked to be called next week.",      "timezone": "Asia/Kolkata",      "dueAt": "2026-12-02T06:30:00.000Z",      "contactId": "3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d",      "ownerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"    },    "autoClosed": false  }}

Get the wrap-up form for a call

GET/v1/tenants/{tenantSlug}/lms/calls/{callId}/customer-form

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

Scope calling.read

Returns what an agent needs to wrap up a call: the lead's customer form and current values (masked fields are listed in maskedFields and their values left out) and the campaign's calling settings, including its dispositions and their revision. Needs call control permission and access to the call. Returns 409 once the outcome is saved or when the lead moved to another campaign.

Path parameters

  • callIdstring (uuid)required

    Call ID.

Responses

The wrap-up form.

  • customerobjectrequired

    Customer fields and values for the call's lead.

  • settingsobjectrequired

    Calling settings of the campaign.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundCALL_NOT_FOUNDThe call 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"CALL_ID="6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f"curl "$BASE/lms/calls/$CALL_ID/customer-form" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "customer": {    "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",    "leadName": "Asha Verma",    "maskedFields": [],    "form": {      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "revision": 4,      "fields": [        null      ],      "updatedAt": "2026-12-01T10:00:00.000Z"    },    "values": {      "roofType": "Flat RCC roof"    },    "updatedAt": "2026-12-01T10:00:00.000Z"  },  "settings": {    "contactPolicy": {      "automaticRetries": false,      "allowManualRedial": true,      "requireConsent": false,      "maxAttempts": 3,      "maxAttemptsPer24Hours": 1,      "busyDelayMinutes": 30,      "noAnswerDelayMinutes": 30,      "technicalDelayMinutes": 30,      "maxTechnicalRetriesPer24Hours": 1    },    "dispositions": [      {        "key": "roof_type",        "label": "Work",        "outcome": null,        "active": true,        "requiresNote": false,        "parentKey": null,        "requiredFieldKeys": [          null        ]      }    ],    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "enabled": true,    "purpose": "SERVICE_TRANSACTIONAL",    "revision": 4  }}

List my call follow-ups

GET/v1/tenants/{tenantSlug}/lms/calling/follow-ups

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

Scope calling.readPaging offset (nextOffset)

Lists open follow-ups (agreed callbacks) owned by the acting member, earliest due first, 20 per page. Paged with offset: pass nextOffset back as offset until it is null. Returns an empty list when the acting member cannot read leads. It acts as the API key's acting member, so it returns that member's own data, as an agent would see it in the calling workspace.

Query parameters

  • offsetintegeroptional

    Items to skip. Pass the previous page's nextOffset.

    0–100000 · default 0

Responses

One page of open follow-ups.

  • itemsarray of objectrequired

    Follow-ups on this page, soonest first.

  • nextOffsetinteger or nullrequired

    Pass as offset for the next page; null on the last page.

    at least 0

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 calling.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/lms/calling/follow-ups" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextOffset": 25,  "items": [    {      "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "leadName": "Asha Verma",      "note": "Asked for a callback after 6 pm.",      "dueAt": "2026-12-02T06:30:00.000Z",      "status": "OPEN",      "revision": 4    }  ]}

Reschedule, complete or cancel a follow-up

PUT/v1/tenants/{tenantSlug}/lms/calling/follow-ups/{callId}

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

Scope calling.write

Changes the follow-up created when the call identified by callId was saved with a callback. Only the follow-up's owner can change it; for anyone else it returns 404.

  • status: OPEN with a new dueAt reschedules it and publishes callback.scheduled again with the same callback ID. dueAt must be in the future.
  • status: DONE marks it completed; status: CANCELLED drops it. Leave out dueAt for both.

Each change is noted on the lead's timeline. Send the follow-up's current revision as expectedRevision; if it changed in the meantime the request fails with 409. Repeating a change that was already applied returns the follow-up unchanged.

Path parameters

  • callIdstring (uuid)required

    Call 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

  • statusenumrequired

    Current status of the human follow up.

    One ofOPENDONECANCELLED

  • dueAtstring (date-time)optional

    When it is due (ISO 8601).

Responses

The updated follow-up.

  • callIdstring (uuid)required

    Call the follow-up came from.

  • leadIdstring (uuid)required

    Lead to follow up.

  • leadNamestring or nullrequired

    Lead's name.

  • notestring or nullrequired

    Agent's note.

  • dueAtstring (date-time)required

    When it is due (ISO 8601).

  • statusenumrequired

    OPEN, DONE or CANCELLED.

    One ofOPENDONECANCELLED

  • revisionintegerrequired

    Revision; send it as expectedRevision to change the follow-up.

    at least 0

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 calling.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundCALL_NOT_FOUNDThe call 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"CALL_ID="6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f"curl -X PUT "$BASE/lms/calling/follow-ups/$CALL_ID" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 1,    "status": "OPEN",    "dueAt": "2026-12-04T09:00:00.000Z"  }'
Example response (200 OK) (200 OK)
{  "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",  "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",  "leadName": "Asha Verma",  "note": "Asked for a callback after 6 pm.",  "dueAt": "2026-12-02T06:30:00.000Z",  "status": "OPEN",  "revision": 4}

List calling work that needs attention

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-work-queue

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

Scope calling.readPaging offset (nextOffset)

Returns one of two supervisor queues, 50 items per page. OVERDUE_CALLBACKS lists open callbacks past their due time, oldest first, with owner and reason. RETRY_EXHAUSTED lists phone numbers that reached the campaign's attempt or technical retry limit and will not be dialed again automatically. Paged with offset: pass nextOffset back as offset until it is null. Needs calling management permission.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Query parameters

  • viewenumoptional

    OVERDUE_CALLBACKS (callbacks past due) or RETRY_EXHAUSTED (leads that used up their call attempts).

    One ofOVERDUE_CALLBACKSRETRY_EXHAUSTED

    default "OVERDUE_CALLBACKS"

  • offsetintegeroptional

    Rows to skip, for paging (use nextOffset).

    0–100000 · default 0

Responses

One page of the queue.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

  • nextOffsetinteger or nullrequired

    Pass as offset to fetch the next page; null on the last page.

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 calling.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/campaigns/$CAMPAIGN_ID/calling-work-queue" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextOffset": 25,  "items": [    {      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "leadName": "Asha Verma",      "contactId": "3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d",      "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",      "ownerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "ownerName": "Rahul Mehta",      "dueAt": "2026-12-02T06:30:00.000Z",      "revision": 4,      "reason": "Customer asked to be called next week.",      "attempts": 2    }  ]}

List agents who can take over callbacks

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-reassignment-options

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

Scope calling.read

Lists the team and member pairs that can take over a lead's callbacks: active agents assigned to the campaign, with calling permission and an enabled phone, in each active team they belong to. Use a pair with Reassign a callback. Needs calling management permission.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

Possible new owners.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.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/campaigns/$CAMPAIGN_ID/calling-reassignment-options" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",      "teamName": "West inside sales",      "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "name": "Asha Verma"    }  ]}

Reassign a callback

PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-work-owner

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

Scope calling.write

Hands an open callback, identified by its call, to another agent. The lead is assigned to the chosen team and member (publishing lead.assigned) and every open callback for the lead moves to that member.

Needs calling management and lead edit permissions. Send the callback's current revision (from the work queue) as expectedRevision. Returns 409 when the callback changed, the agent is not an option for this campaign and team, or the lead has a call still open.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Request body (application/json)

  • callIdstring (uuid)required

    ID of the call.

  • 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

  • teamIdstring (uuid)required

    ID of the team.

  • userIdstring (uuid)required

    ID of the user.

Responses

The callback was reassigned.

  • savedalways truerequired

    Always true: the change was saved.

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 calling.write 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.
  • 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"curl -X PUT "$BASE/lms/campaigns/$CAMPAIGN_ID/calling-work-owner" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",    "expectedRevision": 2,    "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",    "userId": "5e4d3c2b-1a09-4876-b543-210fedcba987"  }'
Example response (200 OK) (200 OK)
{  "saved": true}

Check whether a lead's numbers can be called

GET/v1/tenants/{tenantSlug}/lms/leads/{leadId}/call-eligibility

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

Scope calling.read

Evaluates every phone contact of the lead against the calling rules and returns, for each, whether it can be called now and if not, why and from when.

Rules checked include: do-not-call suppression (across all campaigns), recorded calling permission when the campaign requires consent, the campaign's calling hours and whether calling is running, paused cohorts, attempt limits per number and per 24 hours, retry delays after busy or unanswered calls, open calls, and agreed callbacks. eligibleAt is set when the number becomes callable at a known time.

Path parameters

  • leadIdstring (uuid)required

    Lead ID.

Responses

Eligibility per phone contact.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundLEAD_NOT_FOUNDThe lead 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"LEAD_ID="0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10"curl "$BASE/lms/leads/$LEAD_ID/call-eligibility" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "contactId": "3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d",      "reason": "RETRY_COOLDOWN",      "message": "Wait until the retry time before calling again.",      "eligibleAt": "2026-12-01T07:12:00.000Z",      "attempts": 2,      "attemptsIn24Hours": 2,      "consent": "UNKNOWN"    }  ]}

Get a number's calling permission

GET/v1/tenants/{tenantSlug}/lms/leads/{leadId}/contacts/{contactId}/calling-permission

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

Scope calling.read

Returns the calling permission recorded for the contact's phone number: UNKNOWN (nothing recorded), GRANTED or WITHDRAWN, with the evidence and revision. Permission belongs to the number, so it applies to every lead with the same number. Needs calling management permission.

Path parameters

  • leadIdstring (uuid)required

    Lead ID.

  • contactIdstring (uuid)required

    Contact ID.

Responses

The calling permission.

  • statusenumrequired

    Current status of the contact permission.

    One ofUNKNOWNGRANTEDWITHDRAWN

  • evidencestring or nullrequired

    How the permission was recorded.

  • revisionintegerrequired

    Revision number, increased on every change. Send it back as expectedRevision when you update.

    at least 0

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundLEAD_NOT_FOUNDThe lead does not exist or the key cannot see it.
  • 404 Not FoundCONTACT_NOT_FOUNDThe contact 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"LEAD_ID="0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10"CONTACT_ID="3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d"curl \  "$BASE/lms/leads/$LEAD_ID/contacts/$CONTACT_ID/calling-permission" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "status": "UNKNOWN",  "evidence": null,  "revision": 0}

Record a number's calling permission

PUT/v1/tenants/{tenantSlug}/lms/leads/{leadId}/contacts/{contactId}/calling-permission

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

Scope calling.write

Records that the customer granted or withdrew permission to be called on this number, with evidence of at least 10 characters (where and when consent was given or withdrawn). Permission belongs to the number and applies to every lead with it.

  • WITHDRAWN marks the number as do-not-call across all campaigns; it is no longer dialed.
  • GRANTED lifts a do-not-call mark recorded by an agent, and satisfies campaigns that require consent before calling.

Needs calling management permission. Send the current revision as expectedRevision (0 when nothing is recorded); if it changed in the meantime the request fails with 409.

Path parameters

  • leadIdstring (uuid)required

    Lead ID.

  • contactIdstring (uuid)required

    Contact ID.

Request body (application/json)

  • statusenumrequired

    Current status of the contact permission.

    One ofGRANTEDWITHDRAWN

  • evidencestringrequired

    How the permission was recorded.

    10–2000 characters

  • 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 saved calling permission.

  • statusenumrequired

    Current status of the contact permission.

    One ofUNKNOWNGRANTEDWITHDRAWN

  • evidencestring or nullrequired

    How the permission was recorded.

  • revisionintegerrequired

    Revision number, increased on every change. Send it back as expectedRevision when you update.

    at least 0

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 calling.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundLEAD_NOT_FOUNDThe lead does not exist or the key cannot see it.
  • 404 Not FoundCONTACT_NOT_FOUNDThe contact does not exist or the key cannot see it.
  • 409 ConflictSTALE_REVISIONThe record changed after your read (expectedRevision); read it again and resend.

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"LEAD_ID="0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10"CONTACT_ID="3a9b8c7d-6e5f-4a1b-9c2d-8e7f6a5b4c3d"curl -X PUT \  "$BASE/lms/leads/$LEAD_ID/contacts/$CONTACT_ID/calling-permission" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "status": "GRANTED",    "evidence": "Agreed on the recorded call of 28 Nov 2026.",    "expectedRevision": 0  }'
Example response (200 OK) (200 OK)
{  "status": "GRANTED",  "evidence": "Agreed on the recorded call of 28 Nov 2026.",  "revision": 1}

Get a campaign's calling settings

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling

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

Scope calling.read

Returns whether agent calling is enabled for the campaign, its purpose (service/transactional or promotional), its contact policy (consent requirement, attempt limits and retry delays) and its dispositions: the outcomes agents choose from, optionally nested up to four levels, with the customer fields each one requires. Use revision as dispositionRevision when saving a call outcome.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

The campaign's calling settings.

  • contactPolicyobjectrequired

    How often and when leads may be called.

  • dispositionsarray of objectrequired

    Outcomes agents pick from at wrap-up.

    up to 61 items

  • campaignIdstring (uuid)required

    Campaign ID.

  • enabledbooleanrequired

    Whether human calling is on for the campaign.

  • purposeenumrequired

    SERVICE_TRANSACTIONAL or PROMOTIONAL; promotional calls follow stricter consent rules.

    One ofSERVICE_TRANSACTIONALPROMOTIONAL

  • revisionintegerrequired

    Revision; send it as expectedRevision when saving.

    at least 0

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.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/campaigns/$CAMPAIGN_ID/calling" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "contactPolicy": {    "automaticRetries": false,    "allowManualRedial": true,    "requireConsent": false,    "maxAttempts": 3,    "maxAttemptsPer24Hours": 1,    "busyDelayMinutes": 30,    "noAnswerDelayMinutes": 30,    "technicalDelayMinutes": 30,    "maxTechnicalRetriesPer24Hours": 1  },  "dispositions": [    {      "key": "roof_type",      "label": "Work",      "outcome": "CONNECTED",      "active": true,      "requiresNote": false,      "parentKey": "parent",      "requiredFieldKeys": [        "required_field"      ]    }  ],  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "enabled": true,  "purpose": "SERVICE_TRANSACTIONAL",  "revision": 4}

Save a campaign's calling settings

PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling

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

Scope calling.write

Enables or disables agent calling for the campaign and sets its purpose, contact policy and dispositions. Leave out contactPolicy or dispositions to keep the current ones.

Dispositions follow these rules: keys are unique; at least one active disposition must record a call without a conversation; an active do-not-call disposition must remain so agents can record opt-outs; existing dispositions cannot be removed or moved to another outcome (retire them with active: false); required customer fields must be active and visible to agents.

Needs calling or campaign management permission. Send the current revision as expectedRevision; a stale revision or a broken disposition rule returns 409.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Request body (application/json)

  • contactPolicyobjectoptional

    How often and when leads may be called.

  • dispositionsarray of objectoptional

    Outcomes agents pick from at wrap-up.

    up to 61 items

  • enabledbooleanrequired

    Whether it is turned on.

  • purposeenumrequired

    SERVICE_TRANSACTIONAL or PROMOTIONAL; promotional calls follow stricter consent rules.

    One ofSERVICE_TRANSACTIONALPROMOTIONAL

  • 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 saved calling settings.

  • contactPolicyobjectrequired

    How often and when leads may be called.

  • dispositionsarray of objectrequired

    Outcomes agents pick from at wrap-up.

    up to 61 items

  • campaignIdstring (uuid)required

    Campaign ID.

  • enabledbooleanrequired

    Whether human calling is on for the campaign.

  • purposeenumrequired

    SERVICE_TRANSACTIONAL or PROMOTIONAL; promotional calls follow stricter consent rules.

    One ofSERVICE_TRANSACTIONALPROMOTIONAL

  • revisionintegerrequired

    Revision; send it as expectedRevision when saving.

    at least 0

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 calling.write 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.
  • 409 ConflictCALL_SETTINGS_STALEThe settings changed after you read them; read them again and resend.

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 -X PUT "$BASE/lms/campaigns/$CAMPAIGN_ID/calling" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "enabled": true,    "purpose": "SERVICE_TRANSACTIONAL",    "expectedRevision": 3,    "contactPolicy": {      "automaticRetries": true,      "allowManualRedial": true,      "requireConsent": false,      "maxAttempts": 6,      "maxAttemptsPer24Hours": 2,      "busyDelayMinutes": 30,      "noAnswerDelayMinutes": 120    }  }'
Example response (200 OK) (200 OK)
{  "contactPolicy": {    "automaticRetries": false,    "allowManualRedial": true,    "requireConsent": false,    "maxAttempts": 3,    "maxAttemptsPer24Hours": 1,    "busyDelayMinutes": 30,    "noAnswerDelayMinutes": 30,    "technicalDelayMinutes": 30,    "maxTechnicalRetriesPer24Hours": 1  },  "dispositions": [    {      "key": "roof_type",      "label": "Work",      "outcome": "CONNECTED",      "active": true,      "requiresNote": false,      "parentKey": "parent",      "requiredFieldKeys": [        "required_field"      ]    }  ],  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "enabled": true,  "purpose": "SERVICE_TRANSACTIONAL",  "revision": 4}

Get a campaign's pacing

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/pacing

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

Scope calling.read

Returns the campaign's dialing policy and the latest pacing decision.

The policy covers the assigned agents, whether agents dial manually or receive calls automatically (agentMode), whether calling is running, calling hours (timezone, days with 0 = Sunday, and startMinute/endMinute in minutes after midnight, or weeklyWindows), and the pace: calls started per second (cps), calls per available agent (dialRatio) and the limit of calls in progress. mode controls pacing automation: OBSERVE only measures, RECOMMEND suggests values, AUTOMATIC adjusts the pace itself.

decision holds the latest measurement (answer rate, talk and wrap-up times, recommended pace and telephony capacity); it is null until pacing has run.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

The pacing policy and latest decision.

  • campaignIdstring (uuid)required

    Campaign ID.

  • revisionintegerrequired

    Policy revision; send it as expectedRevision when saving.

    at least 0

  • policyobjectrequired

    Current dialler policy.

  • decisionobject or nullrequired

    Latest pacing decision; null before the first one.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.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/campaigns/$CAMPAIGN_ID/pacing" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "revision": 4,  "policy": {    "agentIds": [      "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "5e4d3c2b-1a09-4876-b543-210fedcba987"    ],    "agentMode": "PROGRESSIVE",    "intervalSeconds": 10,    "poolId": null,    "edgeGroup": null,    "running": true,    "mode": "RECOMMEND",    "cps": 2,    "dialRatio": 1,    "outstandingLimit": 20,    "priority": 1,    "waitingLimit": 0,    "maxWaitSeconds": 10,    "timezone": "Asia/Kolkata",    "days": [      1,      2,      3,      4,      5,      6    ],    "startMinute": 570,    "endMinute": 1140  },  "decision": null}

Save a campaign's pacing

PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/pacing

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

Scope calling.write

Replaces the campaign's dialing policy: assigned agents, agent mode, calling hours, pace and automation mode (see Get a campaign's pacing). Set running: false to pause new calls at once; calls already in progress continue.

Every newly assigned agent must be an active member with calling permission and an enabled phone. AUTOMATIC mode can only be turned on after the campaign has run in RECOMMEND mode.

Needs calling or campaign management permission. Send the current revision as expectedRevision. Returns 409 when the revision is stale, an agent cannot take calls, the automation step is skipped, or a customer-first pool is changed or already used by another campaign.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Request body (application/json)

  • expectedRevisionintegerrequired

    The revision from your last read; 409 if it changed since.

    at least 0

    One of two concurrency tokens. Conventions

  • policyobjectrequired

    The complete new policy.

Responses

The saved pacing policy.

  • campaignIdstring (uuid)required

    Campaign ID.

  • revisionintegerrequired

    Policy revision; send it as expectedRevision when saving.

    at least 0

  • policyobjectrequired

    Current dialler policy.

  • decisionobject or nullrequired

    Latest pacing decision; null before the first one.

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 calling.write 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.
  • 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"curl -X PUT "$BASE/lms/campaigns/$CAMPAIGN_ID/pacing" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 4,    "policy": {      "agentIds": [        "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",        "5e4d3c2b-1a09-4876-b543-210fedcba987"      ],      "agentMode": "PROGRESSIVE",      "intervalSeconds": 10,      "running": true,      "mode": "RECOMMEND",      "cps": 2,      "dialRatio": 1.5,      "outstandingLimit": 20,      "timezone": "Asia/Kolkata",      "days": [        1,        2,        3,        4,        5,        6      ],      "startMinute": 570,      "endMinute": 1140    }  }'
Example response (200 OK) (200 OK)
{  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "revision": 4,  "policy": {    "agentIds": [],    "agentMode": "MANUAL",    "intervalSeconds": 10,    "poolId": "a10708e4-e634-4392-a61f-23f53190ca2d",    "edgeGroup": "ap-south-1",    "running": false,    "mode": "OBSERVE",    "cps": 1,    "dialRatio": 1,    "outstandingLimit": 10,    "priority": 1,    "waitingLimit": 0,    "maxWaitSeconds": 10,    "timezone": "Asia/Kolkata",    "days": [      1,      2,      3,      4,      5,      6    ],    "startMinute": 540,    "endMinute": 1080,    "weeklyWindows": [      {        "day": 1,        "startMinute": 30,        "endMinute": 30      }    ]  },  "decision": {    "at": "2026-12-01T10:00:00.000Z",    "reason": "Customer asked to be called next week.",    "slots": 1,    "effectiveCps": 1,    "recommendedCps": 1,    "recommendedRatio": 0.42,    "sampleSize": 1,    "answerRate": 0.42,    "meanAnswerSeconds": 184,    "meanTalkSeconds": 184,    "meanWrapSeconds": 184,    "meanWaitSeconds": 184,    "waitingFailures": 1,    "scoredPredictions": 0,    "predictionError": 1,    "baselineError": 1,    "calibrationError": 1,    "qualified": false,    "capacity": {      "observedAt": "2026-12-01T10:00:00.000Z",      "channelsInUse": 1,      "channelLimit": 1,      "startsAvailable": 1,      "healthyRoutes": 1,      "totalRoutes": 1,      "connectionName": "IndiaMART · Pune"    }  }}

List calling cohorts

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-cohorts

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

Scope calling.read

Lists the campaign's calling cohorts. A cohort is a named group of leads, either one import batch or a hand-picked list, that you can pause and resume together: leads in a disabled cohort are not dialed. Each cohort shows its current lead count. Needs calling management permission.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

The campaign's cohorts.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.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/campaigns/$CAMPAIGN_ID/calling-cohorts" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "id": "26f843d8-e75c-4654-84a1-99d983605265",      "name": "Asha Verma",      "enabled": true,      "batchId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",      "leadIds": [        "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10"      ],      "revision": 4,      "leadCount": 29    }  ]}

List leads and batches for calling cohorts

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-cohort-options

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

Scope calling.readPaging offset (nextOffset)

Lists what a cohort can be built from: the campaign's leads (newest first, 100 per page) and the 100 most recent import batches that contain the campaign's leads. Paged with offset: pass nextOffset back as offset until it is null. The offset pages the leads only. Needs calling management permission.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Query parameters

  • offsetintegeroptional

    Items to skip. Pass the previous page's nextOffset.

    0–100000 · default 0

Responses

Leads and batches.

  • leadsarray of objectrequired

    Leads you can pick from.

  • batchesarray of objectrequired

    Import batches you can pick from.

  • nextOffsetinteger or nullrequired

    Pass as offset to fetch the next page; null on the last page.

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 calling.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/campaigns/$CAMPAIGN_ID/calling-cohort-options" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextOffset": 25,  "leads": [    {      "id": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "name": "Asha Verma"    }  ],  "batches": [    {      "id": "13e28d10-2cee-4972-9aea-9f89798e80cd",      "name": "Asha Verma",      "receivedAt": "2026-11-28T09:14:52.000Z"    }  ]}

Create or update a calling cohort

PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-cohorts/{cohortId}

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

Scope calling.write

Creates the cohort with the ID you choose (a new UUID, with expectedRevision: 0) or updates it. Give either a batchId or up to 1,000 leadIds from the campaign, not both. enabled: false pauses calling for its leads. A campaign can have up to 100 cohorts. Needs calling management permission. A stale expectedRevision or the cohort limit returns 409.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

  • cohortIdstring (uuid)required

    Calling cohort 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

  • namestringrequired

    Name of the calling cohort, as shown in the LMS.

    1–100 characters

  • enabledbooleanrequired

    Whether it is turned on.

  • batchIdstring (uuid) or nullrequired

    ID of the batch; null if none.

  • leadIdsarray of string (uuid)required

    IDs of the lead records.

    up to 1000 items

Responses

All of the campaign's cohorts after the change.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

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 calling.write 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.
  • 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"COHORT_ID="a2b3c4d5-e6f7-4a8b-9c0d-1e2f3a4b5c6e"curl -X PUT \  "$BASE/lms/campaigns/$CAMPAIGN_ID/calling-cohorts/$COHORT_ID" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 0,    "name": "Pune solar expo walk-ins",    "enabled": false,    "batchId": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",    "leadIds": []  }'
Example response (200 OK) (200 OK)
{  "items": [    {      "id": "26f843d8-e75c-4654-84a1-99d983605265",      "name": "Asha Verma",      "enabled": true,      "batchId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",      "leadIds": [        "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10"      ],      "revision": 4,      "leadCount": 29    }  ]}

List members who can be assigned to a campaign

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/agent-options

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

Scope calling.read

Lists active members with calling permission and an enabled phone, the people you can put in the pacing policy's agentIds. Agents already assigned to this campaign come first and are always included; search filters the others by name. Returns up to 500 members. Needs calling or campaign management permission.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Query parameters

  • searchstringoptional

    Part of a member's name. Empty returns every eligible member.

    up to 100 characters · default ""

Responses

Assignable members.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

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 calling.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/campaigns/$CAMPAIGN_ID/agent-options" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "name": "Asha Verma",      "assignedCampaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "assignedCampaignName": "Pune rooftop launch"    }  ]}

Get live agent states for a campaign

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/agents

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

Scope calling.read

Returns every agent assigned to the campaign with their live state (ON_CALL, WRAP_UP, IDLE, BREAK, OFFLINE or UNAVAILABLE), since when, the current call and lead, and the break or unavailability reason, plus a count per state. streamHealthy: false means live updates from telephony are delayed, so states may be stale. Needs calling or campaign management permission.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

Live agent states.

  • campaignIdstring (uuid)required

    Campaign ID.

  • observedAtstring (date-time)required

    When these states were read (ISO 8601).

  • streamHealthybooleanrequired

    Whether live telephony updates are flowing; when false, states may lag.

  • countsobjectrequired

    Number of agents in each state.

  • agentsarray of objectrequired

    One row per agent.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the calling.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/campaigns/$CAMPAIGN_ID/agents" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "observedAt": "2026-12-01T10:00:00.000Z",  "streamHealthy": false,  "counts": {    "ON_CALL": 1,    "BREAK": 1,    "IDLE": 1,    "WRAP_UP": 1,    "OFFLINE": 1,    "UNAVAILABLE": 1  },  "agents": [    {      "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "name": "Rahul Mehta",      "state": "ON_CALL",      "connected": false,      "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",      "leadName": "Asha Verma",      "since": "2026-11-01T00:00:00.000Z",      "reason": "Customer asked to be called next week."    }  ]}

Get an agent activity report

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-report

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

Scope calling.readPaging offset (nextOffset)

Reports how each agent in the campaign spent a period of up to 31 days: a timeline of states (ready, ringing, talking, wrap-up, break, offline), seconds per state, and counts of attempts, conversations, retries and callbacks scheduled, completed and overdue. Filter to one agent with userId. Agents are paged with offset; pass nextOffset back until it is null. Needs calling management permission.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Query parameters

  • fromstring (date-time)required

    Start of the report period (ISO 8601).

  • tostring (date-time)required

    End of the report period (ISO 8601).

  • userIdstring (uuid)optional

    Only this agent.

  • offsetintegeroptional

    Agents to skip, for paging (use nextOffset).

    0–100000 · default 0

Responses

The activity report.

  • fromstring (date-time)required

    Start of the report period.

  • tostring (date-time)required

    End of the report period.

  • observedAtstring (date-time)required

    When the report was computed.

  • campaignIdstring (uuid)required

    Campaign ID.

  • nextOffsetinteger or nullrequired

    Pass as offset for more agents; null on the last page.

  • agentsarray of objectrequired

    One row per agent.

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 calling.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 -G "$BASE/lms/campaigns/$CAMPAIGN_ID/calling-report" \  --data-urlencode "from=2026-11-01T00:00:00.000Z" \  --data-urlencode "to=2026-11-30T23:59:59.000Z" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextOffset": 25,  "from": "2026-11-01T00:00:00.000Z",  "to": "2026-11-30T23:59:59.000Z",  "observedAt": "2026-12-01T10:00:00.000Z",  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "agents": [    {      "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "name": "Rahul Mehta",      "intervals": [        {          "from": "2026-11-01T00:00:00.000Z",          "to": "2026-11-30T23:59:59.000Z",          "state": "READY",          "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",          "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",          "breakReason": "Lunch"        }      ],      "seconds": {        "READY": 1,        "RINGING": 1,        "TALKING": 1,        "WRAP_UP": 1,        "BREAK": 1,        "OFFLINE": 1,        "UNKNOWN": 1      },      "attempts": 2,      "contacts": 1,      "retries": 1,      "callbacksScheduled": 1,      "callbacksCompleted": 1,      "callbacksOverdue": 1,      "unresolved": 1,      "evidenceTalkSeconds": 184,      "medianFirstContactMinutes": 30,      "medianReplyMinutes": 30    }  ]}
    Calling API · IoTIndia developers