Skip to main content

Reports

Call detail records, summaries, saved templates and exports.

Live view or file

  1. See which fields a call record has.

    GETList report fields

  2. Read records live, a page at a time.

    GETList call detail records

  3. Or build a fixed file and download it when it is ready.

    POSTCreate a report exportGETGet a report exportGETDownload a report export

List call detail records

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

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

Scope reports.readPaging cursor (items, nextCursor)

Returns one row per call in the campaign for a reporting period, with every field of the campaign's report catalogue (see List report fields) as a cell. Each cell has a status: only VALUE cells carry a value; masked customer fields come back as MASKED.

from and to are ISO 8601 timestamps with an offset; the period must have started and may span at most 31 days. timeBasis chooses whether a call counts by when it was requested, when it ended, or whether it was active at any point in the period. Filter by call state, agent, lead, disposition or whether the wrap-up is recorded. Pages of up to 100 rows use an opaque cursor: pass nextCursor back as cursor with the same filters until it is null.

This is a live view: rows can change while a call is in progress or telephony data catches up (telephonySync). For a fixed file, create an export. A very broad query can time out with 503; narrow the period or filters and retry. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Query parameters · 11

Required

  • fromstring (date-time)required

    Start of the period (ISO 8601).

  • tostring (date-time)required

    End of the period (ISO 8601).

Dates

  • timeBasisenumoptional

    Which call time the period filters on: when the call was created, when it ended, or any time it was active.

    One ofCALL_CREATEDCALL_ENDEDACTIVE_DURING

    default "CALL_CREATED"

Other filters

  • stateenumoptional

    Current state of the call detail record.

    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.
  • agentIdstring (uuid)optional

    ID of the agent.

  • leadIdstring (uuid)optional

    ID of the lead.

  • wrapUpenumoptional

    ALL, RECORDED (wrap-up saved) or AWAITING (wrap-up still due).

    One ofALLRECORDEDAWAITING

    default "ALL"

  • dispositionKeystringoptional

    Only calls with this disposition key.

    1–100 characters

Sorting

  • orderenumoptional

    Sort direction.

    One ofNEWESTOLDEST

    default "NEWEST"

    Sorting differs between lists. Conventions

Paging

  • limitintegeroptional

    Maximum number of records to return in one page.

    1–100 · default 50

  • cursorstringoptional

    Opaque cursor from the previous page's nextCursor. Leave it out to start at the first page.

    1–1500 characters · pattern ^[A-Za-z0-9_-]+$

Responses

One page of call records.

  • versionalways 1required

    Version number.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • processIdstring (uuid)required

    ID of the process.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • fromstring (date-time)required

    Start of the period (ISO 8601), inclusive.

  • tostring (date-time)required

    End of the period (ISO 8601), inclusive.

  • timeBasisenumrequired

    Which call time the period filters on: when the call was created, when it ended, or any time it was active.

    One ofCALL_CREATEDCALL_ENDEDACTIVE_DURING

    default "CALL_CREATED"

  • observedAtstring (date-time)required

    When it was observed (ISO 8601).

  • consistencyalways "LIVE_PAGE"required

    How current the data is: LIVE_PAGE means read live when the page was built.

  • lastTelephonySyncAtstring (date-time) or nullrequired

    When it was last telephony sync (ISO 8601); null if not yet.

  • telephonySyncenumrequired

    How current telephony data is: FRESH, STALE (behind) or UNAVAILABLE.

    One ofFRESHSTALEUNAVAILABLE

  • itemsarray of objectrequired

    The records in this response, in the documented order.

    up to 100 items

  • nextCursorstring or nullrequired

    Pass as cursor 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 reports.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.
  • 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"curl -G "$BASE/lms/campaigns/$CAMPAIGN_ID/cdr" \  --data-urlencode "from=2026-11-01T00:00:00.000Z" \  --data-urlencode "to=2026-11-30T23:59:59.000Z" \  --data-urlencode "limit=50" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextCursor": "eyJpZCI6IjBiNmM3YTUyIiwidCI6MTc5NjgxODQwMH0",  "version": 1,  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "timezone": "Asia/Kolkata",  "from": "2026-11-01T00:00:00.000Z",  "to": "2026-11-30T23:59:59.000Z",  "timeBasis": "CALL_CREATED",  "observedAt": "2026-12-01T10:00:00.000Z",  "consistency": "LIVE_PAGE",  "lastTelephonySyncAt": "2026-12-01T10:00:00.000Z",  "telephonySync": "FRESH",  "items": [    {      "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "attemptId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",      "phase": "PENDING",      "state": "REQUESTED",      "wrapUpStatus": "PENDING",      "customerDialed": "UNKNOWN",      "revision": 4,      "executionRevision": 1,      "fields": {        "city": {          "value": null,          "status": "VALUE",          "provisional": false,          "sourceLabel": "Lead",          "sourceType": null,          "displayValue": null,          "formRevision": 1        }      }    }  ]}

List report fields

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/fields

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

Scope reports.read

Returns the campaign's report catalogue: every field a call record, template or export can contain (call facts, timings, disposition, callback and the campaign's customer fields), with its type, group and whether it is masked or only available for older calls. Use the field IDs as column keys in templates and exports. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

The report catalogue.

  • versionalways 1required

    Version number.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • processIdstring (uuid)required

    ID of the process.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • fieldsarray of objectrequired

    The fields, in display order.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the reports.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/cdr/fields" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "version": 1,  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "timezone": "Asia/Kolkata",  "fields": [    {      "id": "1a1490f5-58ae-4272-a872-cfc2fc1945c5",      "label": "Work",      "group": "IDENTITY",      "type": "TEXT",      "temporal": "CALL_FACT",      "description": "Leads from the IndiaMART enquiry inbox.",      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "customerFieldKey": "customer_field",      "historicalOnly": false,      "masked": false    }  ]}

Summarise calls by lead or account

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/summary

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

Scope reports.readPaging cursor (items, nextCursor)

Groups the campaign's calls for a reporting period by lead, or by account using a customer field you choose (groupBy: ACCOUNT with accountFieldKey), with totals per group and overall: requests, ended, open, uncertain and failed calls, wrap-ups recorded and awaited, and open and overdue callbacks.

from and to are ISO 8601 timestamps with an offset; the period must have started and may span at most 31 days. timeBasis chooses whether a call counts by when it was requested, when it ended, or whether it was active at any point in the period. Groups are paged with cursor / nextCursor. A summary covering more than 10,000 leads is refused with 400; narrow the period or filters. If the data changes while you page, the next page returns 409; start again from the first page. A very broad query can time out with 503; narrow the period or filters and retry. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Query parameters · 13

Required

  • fromstring (date-time)required

    Start of the period (ISO 8601).

  • tostring (date-time)required

    End of the period (ISO 8601).

Dates

  • timeBasisenumoptional

    Which call time the period filters on: when the call was created, when it ended, or any time it was active.

    One ofCALL_CREATEDCALL_ENDEDACTIVE_DURING

    default "CALL_CREATED"

Other filters

  • stateenumoptional

    Current state of the call detail record.

    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.
  • agentIdstring (uuid)optional

    ID of the agent.

  • leadIdstring (uuid)optional

    ID of the lead.

  • wrapUpenumoptional

    ALL, RECORDED (wrap-up saved) or AWAITING (wrap-up still due).

    One ofALLRECORDEDAWAITING

    default "ALL"

  • dispositionKeystringoptional

    Only calls with this disposition key.

    1–100 characters

  • groupByenumoptional

    LEAD or ACCOUNT (grouped by a customer field).

    One ofLEADACCOUNT

    default "LEAD"

  • accountFieldKeystringoptional

    Customer field to group by; required when groupBy is ACCOUNT, refused otherwise.

    pattern ^[a-z][a-z0-9_]{0,63}$

Sorting

  • orderenumoptional

    Sort direction.

    One ofNEWESTOLDEST

    default "NEWEST"

    Sorting differs between lists. Conventions

Paging

  • limitintegeroptional

    Maximum number of records to return in one page.

    1–100 · default 50

  • cursorstringoptional

    Opaque cursor from the previous page's nextCursor. Leave it out to start at the first page.

    1–1500 characters · pattern ^[A-Za-z0-9_-]+$

Responses

One page of the summary.

  • versionalways 1required

    Version number.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • observedAtstring (date-time)required

    When it was observed (ISO 8601).

  • consistencyalways "LIVE_PAGE"required

    How current the data is: LIVE_PAGE means read live when the page was built.

  • groupByenumrequired

    LEAD or ACCOUNT (grouped by a customer field).

    One ofLEADACCOUNT

  • accountFieldKeystring or nullrequired

    Customer field to group by when groupBy is ACCOUNT.

  • fromstring (date-time)required

    Start of the period (ISO 8601), inclusive.

  • tostring (date-time)required

    End of the period (ISO 8601), inclusive.

  • timeBasisenumrequired

    Which call time the period filters on: when the call was created, when it ended, or any time it was active.

    One ofCALL_CREATEDCALL_ENDEDACTIVE_DURING

    default "CALL_CREATED"

  • matchedLeadsintegerrequired

    Leads matched to a group.

    at least 0

  • totalGroupsintegerrequired

    Groups in the summary, across all pages.

    at least 0

  • unmatchedLeadsintegerrequired

    Leads without a value in the grouping field.

    at least 0

  • totalsobjectrequired

    Totals across all groups.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

    up to 100 items

  • nextCursorstring or nullrequired

    Pass as cursor 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 reports.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.
  • 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"curl -G "$BASE/lms/campaigns/$CAMPAIGN_ID/cdr/summary" \  --data-urlencode "from=2026-11-01T00:00:00.000Z" \  --data-urlencode "to=2026-11-30T23:59:59.000Z" \  --data-urlencode "limit=50" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextCursor": "eyJpZCI6IjBiNmM3YTUyIiwidCI6MTc5NjgxODQwMH0",  "version": 1,  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "timezone": "Asia/Kolkata",  "observedAt": "2026-12-01T10:00:00.000Z",  "consistency": "LIVE_PAGE",  "groupBy": "LEAD",  "accountFieldKey": "company_gstin",  "from": "2026-11-01T00:00:00.000Z",  "to": "2026-11-30T23:59:59.000Z",  "timeBasis": "CALL_CREATED",  "matchedLeads": 1,  "totalGroups": 1,  "unmatchedLeads": 1,  "totals": {    "requests": 1,    "ended": 1,    "open": 1,    "uncertain": 1,    "failed": 1,    "wrapUpRecords": 1,    "awaitingWrapUp": 1,    "openCallbacks": 1,    "overdueCallbacks": 1  },  "items": [    {      "key": "roof_type",      "identity": {        "value": null,        "status": "VALUE",        "provisional": false,        "sourceLabel": "Lead",        "sourceType": "TEXT",        "displayValue": "+91 98123 45678",        "formRevision": 1      },      "leadCount": 29,      "counts": {        "requests": 1,        "ended": 1,        "open": 1,        "uncertain": 1,        "failed": 1,        "wrapUpRecords": 1,        "awaitingWrapUp": 1,        "openCallbacks": 1,        "overdueCallbacks": 1      },      "firstRequestedAt": "2026-12-01T10:00:00.000Z",      "lastRequestedAt": "2026-12-01T10:00:00.000Z",      "latestCallId": "e20e8cd5-e22b-42b2-9a1c-7b2c76555689",      "latestLeadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10"    }  ]}

Get earlier calls with the same lead

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/calls/{callId}/history

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

Scope reports.readPaging cursor (items, nextCursor)

Returns the record of one call (anchor) followed by the lead's earlier calls in the same campaign, newest first, so you can compare what changed between wrap-ups. Paged with cursor / nextCursor, up to 50 per page. A very broad query can time out with 503; narrow the period or filters and retry. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

  • callIdstring (uuid)required

    Call ID.

Query parameters

  • limitintegeroptional

    Maximum number of records to return in one page.

    1–50 · default 20

  • cursorstringoptional

    Opaque cursor from the previous page's nextCursor. Leave it out to start at the first page.

    1–1500 characters · pattern ^[A-Za-z0-9_-]+$

Responses

The call and earlier calls.

  • versionalways 1required

    Version number.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • leadIdstring (uuid)required

    ID of the lead.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • observedAtstring (date-time)required

    When it was observed (ISO 8601).

  • consistencyalways "LIVE_PAGE"required

    How current the data is: LIVE_PAGE means read live when the page was built.

  • anchorobjectrequired

    The call the history is centred on.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

    up to 50 items

  • nextCursorstring or nullrequired

    Pass as cursor 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 reports.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.
  • 404 Not FoundCALL_NOT_FOUNDThe call 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"CALL_ID="6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f"curl -G "$BASE/lms/campaigns/$CAMPAIGN_ID/cdr/calls/$CALL_ID/history" \  --data-urlencode "limit=20" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextCursor": "eyJpZCI6IjBiNmM3YTUyIiwidCI6MTc5NjgxODQwMH0",  "version": 1,  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",  "timezone": "Asia/Kolkata",  "observedAt": "2026-12-01T10:00:00.000Z",  "consistency": "LIVE_PAGE",  "anchor": {    "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",    "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "attemptId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",    "phase": "PENDING",    "state": "REQUESTED",    "wrapUpStatus": "PENDING",    "customerDialed": "UNKNOWN",    "revision": 4,    "executionRevision": 1,    "fields": {      "city": {        "value": null,        "status": "VALUE",        "provisional": false,        "sourceLabel": "Lead",        "sourceType": "TEXT",        "displayValue": "+91 98123 45678",        "formRevision": 1      }    }  },  "items": [    {      "callId": "6f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f",      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "attemptId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",      "phase": "PENDING",      "state": "REQUESTED",      "wrapUpStatus": "PENDING",      "customerDialed": "UNKNOWN",      "revision": 4,      "executionRevision": 1,      "fields": {        "city": {          "value": null,          "status": "VALUE",          "provisional": false,          "sourceLabel": "Lead",          "sourceType": null,          "displayValue": null,          "formRevision": 1        }      }    }  ]}

List report templates

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/templates

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

Scope reports.read

Lists saved report layouts for the campaign's process: your own templates and those shared with the process. canEdit is true for templates the acting member owns. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

Report templates.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

    up to 200 items

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the reports.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/cdr/templates" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "id": "73a9b0f0-e88a-4abc-8731-cba1f6c71505",      "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",      "ownerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "name": "Asha Verma",      "visibility": "PRIVATE",      "revision": 4,      "definition": {        "version": 1,        "columns": [          null        ],        "primaryKey": "primary",        "timeBasis": "CALL_CREATED",        "selection": {          "order": null,          "state": null,          "agentId": null,          "leadId": null,          "wrapUp": null,          "dispositionKey": null        }      },      "updatedAt": "2026-12-01T10:00:00.000Z",      "canEdit": false    }  ]}

Create or update a report template

PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/templates

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

Scope reports.write

Saves a report layout: the columns (field IDs from List report fields, each with a heading), an optional business identifier column, the time basis and default filters. Templates belong to the campaign's process, so they work for every campaign of that process. PRIVATE templates are visible only to their owner; PROCESS templates are shared.

To create, choose a new UUID as id and send expectedRevision: 0; to update, send the template's current revision. Only the owner can update a template. A stale revision, or the limit of 200 templates per process, returns 409. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Request body (application/json)

  • idstring (uuid)required

    ID of the call detail record template.

  • 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 call detail record template, as shown in the LMS.

    1–100 characters

  • visibilityenumrequired

    Who can see it, from the values below.

    One ofPRIVATEPROCESS

  • definitionobjectrequired

    What the report contains: columns, filters and time basis.

Responses

The saved template.

  • idstring (uuid)required

    ID of the call detail record template.

  • processIdstring (uuid)required

    ID of the process.

  • ownerIdstring (uuid)required

    ID of the owner.

  • namestringrequired

    Name of the call detail record template, as shown in the LMS.

  • visibilityenumrequired

    Who can see it, from the values below.

    One ofPRIVATEPROCESS

  • revisionintegerrequired

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

  • definitionobjectrequired

    What the report contains: columns, filters and time basis.

  • updatedAtstring (date-time)required

    When it last changed (ISO 8601). Send it back as expectedUpdatedAt when you update.

  • canEditbooleanrequired

    Whether it can edit.

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 reports.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 ConflictCDR_TEMPLATE_CONFLICTThe template changed after you read it, or its name is taken.

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/cdr/templates" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "id": "1d2c3b4a-5f6e-4d7c-a8b9-c0d1e2f3a4b5",    "expectedRevision": 0,    "name": "Daily agent call log",    "visibility": "PROCESS",    "definition": {      "version": 1,      "columns": [        {          "key": "call.createdAt",          "type": "DATETIME",          "heading": "Call time"        },        {          "key": "call.id",          "type": "TEXT",          "heading": "Call ID"        },        {          "key": "agent.name",          "type": "TEXT",          "heading": "Agent"        },        {          "key": "disposition.key",          "type": "TEXT",          "heading": "Disposition"        },        {          "key": "call.connectionSeconds",          "type": "NUMBER",          "heading": "Talk time (s)"        }      ],      "primaryKey": null,      "timeBasis": "CALL_CREATED",      "selection": {        "order": "NEWEST",        "wrapUp": "RECORDED"      }    }  }'
Example response (200 OK) (200 OK)
{  "id": "73a9b0f0-e88a-4abc-8731-cba1f6c71505",  "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "ownerId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",  "name": "Asha Verma",  "visibility": "PRIVATE",  "revision": 4,  "definition": {    "version": 1,    "columns": [      {        "key": "roof_type",        "type": "TEXT",        "heading": "City"      }    ],    "primaryKey": "primary",    "timeBasis": "CALL_CREATED",    "selection": {      "order": "NEWEST",      "state": "REQUESTED",      "agentId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "leadId": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",      "wrapUp": "ALL",      "dispositionKey": "interested"    }  },  "updatedAt": "2026-12-01T10:00:00.000Z",  "canEdit": false}

Delete a report template

DELETE/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/templates/{templateId}

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

Scope reports.write

Removes a template you own. Send its current revision as expectedRevision; a stale revision, or a template that is not yours or already removed, returns 409. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

  • templateIdstring (uuid)required

    Report template 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.

    One of two concurrency tokens. Conventions

Responses

The template was removed.

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 reports.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.
  • 404 Not FoundTEMPLATE_NOT_FOUNDThe report template does not exist or the key cannot see it.
  • 409 ConflictCDR_TEMPLATE_CONFLICTThe template changed after you read 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"TEMPLATE_ID="1d2c3b4a-5f6e-4d7c-a8b9-c0d1e2f3a4b5"curl -X DELETE \  "$BASE/lms/campaigns/$CAMPAIGN_ID/cdr/templates/$TEMPLATE_ID" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 3  }'

Create a report export

POST/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/exports

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

Scope reports.write

Starts building a CSV or Excel file of the campaign's call records for a period of up to 31 days, laid out by definition (the same shape as a template). view chooses one row per call (CALLS), per lead (LEAD) or per account (ACCOUNT, with accountFieldKey).

The export runs in the background. Poll Get a report export until state is READY (or FAILED), then download it. Files are available for 24 hours after the request, then EXPIRED. Exports hold up to 100,000 rows.

Choose a new UUID as id: it makes the request safe to retry. Repeating the same request returns the existing export; reusing the id with a different request returns 409.

Limits: 2 exports in progress per member, 5 per workspace, and 20 requests per member per day; beyond that the request returns 429. Returns 503 when export storage is not configured. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Request body (application/json)

  • idstring (uuid)required

    ID of the call detail record export.

  • formatenumrequired

    CSV or XLSX.

    One ofCSVXLSX

  • viewenumoptional

    CALLS (one row per call), LEAD (one row per lead) or ACCOUNT (grouped by an account field).

    One ofCALLSLEADACCOUNT

    default "CALLS"

  • accountFieldKeystringoptional

    Customer field that identifies the account, when rows are grouped by account.

    pattern ^[a-z][a-z0-9_]{0,63}$

  • definitionobjectrequired

    What the report contains: columns, filters and time basis.

  • fromstring (date-time)required

    Start of the period (ISO 8601), inclusive.

  • tostring (date-time)required

    End of the period (ISO 8601), inclusive.

Responses

The export was accepted (or already existed).

  • idstring (uuid)required

    ID of the call detail record export.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • formatenumrequired

    CSV or XLSX.

    One ofCSVXLSX

  • viewenumrequired

    CALLS (one row per call), LEAD (one row per lead) or ACCOUNT (grouped by an account field).

    One ofCALLSLEADACCOUNT

  • stateenumrequired

    Current state of the call detail record export.

    QUEUED
    Waiting to start.
    PROCESSING
    Being built.
    READY
    Ready to download.
    FAILED
    Could not be built.
    CANCELLED
    Cancelled before it finished.
    EXPIRED
    Past its download window; create it again.
  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • capturedAtstring (date-time) or nullrequired

    When it was captured (ISO 8601); null if not yet.

  • expiresAtstring (date-time)required

    When it expires (ISO 8601).

  • rowCountinteger or nullrequired

    Number of row records.

    at least 0

  • byteLengthinteger or nullrequired

    File size in bytes; null until ready.

    at least 0

  • sha256string or nullrequired

    SHA-256 checksum of the file, in hex.

    pattern ^[a-f0-9]{64}$

  • errorCodestring or nullrequired

    Why the export failed; null unless it failed.

  • fromstring (date-time)required

    Start of the period (ISO 8601), inclusive.

  • tostring (date-time)required

    End of the period (ISO 8601), inclusive.

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 reports.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.
  • 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"curl -X POST "$BASE/lms/campaigns/$CAMPAIGN_ID/cdr/exports" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "id": "7c6b5a49-3d2e-4f1a-8b9c-0d1e2f3a4b5c",    "format": "CSV",    "view": "CALLS",    "definition": {      "version": 1,      "columns": [        {          "key": "call.createdAt",          "type": "DATETIME",          "heading": "Call time"        },        {          "key": "call.id",          "type": "TEXT",          "heading": "Call ID"        },        {          "key": "agent.name",          "type": "TEXT",          "heading": "Agent"        },        {          "key": "disposition.key",          "type": "TEXT",          "heading": "Disposition"        },        {          "key": "call.connectionSeconds",          "type": "NUMBER",          "heading": "Talk time (s)"        }      ],      "primaryKey": null,      "timeBasis": "CALL_CREATED",      "selection": {        "order": "NEWEST",        "wrapUp": "RECORDED"      }    },    "from": "2026-11-01T00:00:00+05:30",    "to": "2026-12-01T00:00:00+05:30"  }'
Example response (202 Accepted) (202 Accepted)
{  "id": "7c6b5a49-3d2e-4f1a-8b9c-0d1e2f3a4b5c",  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "format": "CSV",  "view": "CALLS",  "state": "QUEUED",  "createdAt": "2026-12-01T10:00:00.000Z",  "capturedAt": null,  "expiresAt": "2026-12-02T10:00:00.000Z",  "rowCount": null,  "byteLength": null,  "sha256": null,  "errorCode": null,  "from": "2026-11-01T00:00:00+05:30",  "to": "2026-12-01T00:00:00+05:30"}

List report exports

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/exports

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

Scope reports.read

Lists the acting member's 50 most recent exports for the campaign, newest first, with their state. enabled: false means export storage is not configured, so new exports cannot be created. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

Recent exports.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

    up to 50 items

  • enabledbooleanrequired

    Whether it is turned on.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the reports.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/cdr/exports" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "id": "42254c1c-1667-4c20-8b4c-8e1523b643e5",      "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "format": "CSV",      "view": "CALLS",      "state": "QUEUED",      "createdAt": "2026-11-28T09:15:00.000Z",      "capturedAt": "2026-12-01T10:00:00.000Z",      "expiresAt": "2026-12-31T23:59:59.000Z",      "rowCount": 22,      "byteLength": 1,      "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",      "errorCode": "error",      "from": "2026-11-01T00:00:00.000Z",      "to": "2026-11-30T23:59:59.000Z"    }  ],  "enabled": true}

Get a report export

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/exports/{exportId}

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

Scope reports.read

Returns one of the acting member's exports. state moves from QUEUED to PROCESSING to READY, or ends as FAILED (see errorCode), CANCELLED or EXPIRED. When READY, rowCount, byteLength and sha256 describe the file. Poll every few seconds while it is queued or processing. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

  • exportIdstring (uuid)required

    Export ID.

Responses

The export.

  • idstring (uuid)required

    ID of the call detail record export.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • formatenumrequired

    CSV or XLSX.

    One ofCSVXLSX

  • viewenumrequired

    CALLS (one row per call), LEAD (one row per lead) or ACCOUNT (grouped by an account field).

    One ofCALLSLEADACCOUNT

  • stateenumrequired

    Current state of the call detail record export.

    QUEUED
    Waiting to start.
    PROCESSING
    Being built.
    READY
    Ready to download.
    FAILED
    Could not be built.
    CANCELLED
    Cancelled before it finished.
    EXPIRED
    Past its download window; create it again.
  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • capturedAtstring (date-time) or nullrequired

    When it was captured (ISO 8601); null if not yet.

  • expiresAtstring (date-time)required

    When it expires (ISO 8601).

  • rowCountinteger or nullrequired

    Number of row records.

    at least 0

  • byteLengthinteger or nullrequired

    File size in bytes; null until ready.

    at least 0

  • sha256string or nullrequired

    SHA-256 checksum of the file, in hex.

    pattern ^[a-f0-9]{64}$

  • errorCodestring or nullrequired

    Why the export failed; null unless it failed.

  • fromstring (date-time)required

    Start of the period (ISO 8601), inclusive.

  • tostring (date-time)required

    End of the period (ISO 8601), inclusive.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the reports.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.
  • 404 Not FoundCDR_EXPORT_NOT_FOUNDThe export 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"EXPORT_ID="7c6b5a49-3d2e-4f1a-8b9c-0d1e2f3a4b5c"curl "$BASE/lms/campaigns/$CAMPAIGN_ID/cdr/exports/$EXPORT_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "id": "7c6b5a49-3d2e-4f1a-8b9c-0d1e2f3a4b5c",  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "format": "CSV",  "view": "CALLS",  "state": "READY",  "createdAt": "2026-12-01T10:00:00.000Z",  "capturedAt": "2026-12-01T10:00:07.000Z",  "expiresAt": "2026-12-02T10:00:00.000Z",  "rowCount": 1842,  "byteLength": 412311,  "sha256": "9f2c4e1a7b3d5f6e8a0c2b4d6f8e1a3c5b7d9f0e2a4c6b8d0f1e3a5c7b9d2f4e",  "errorCode": null,  "from": "2026-11-01T00:00:00+05:30",  "to": "2026-12-01T00:00:00+05:30"}

Cancel or discard a report export

DELETE/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/exports/{exportId}

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

Scope reports.write

Cancels an export that is still running, or discards a finished one so it can no longer be downloaded. Cancelling an export that is already cancelled or expired succeeds without change. The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

  • exportIdstring (uuid)required

    Export ID.

Responses

The export was cancelled.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the reports.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.
  • 404 Not FoundCDR_EXPORT_NOT_FOUNDThe export 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"EXPORT_ID="7c6b5a49-3d2e-4f1a-8b9c-0d1e2f3a4b5c"curl -X DELETE \  "$BASE/lms/campaigns/$CAMPAIGN_ID/cdr/exports/$EXPORT_ID" \  -H "Authorization: Bearer $LMS_API_KEY"

Download a report export

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/cdr/exports/{exportId}/download

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

Scope reports.read

Streams the finished file as an attachment: text/csv; charset=utf-8 for CSV exports, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for Excel exports. Compare X-Report-SHA256 with the export's sha256 to verify it. Returns 409 while the export is not READY, or when the workspace's customer field masking changed since it was built (create a new export); 410 once it has expired; 503 when the file cannot be read from storage (retry later). The acting member needs both calling management and lead read permissions.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

  • exportIdstring (uuid)required

    Export ID.

Responses

The export file.

Headers

  • Content-Disposition Always attachment; filename="cdr-<exportId>.<csv|xlsx>".
  • Content-Length File size in bytes.
  • X-Report-SHA256 SHA-256 of the file, as lowercase hex.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the reports.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.
  • 404 Not FoundCDR_EXPORT_NOT_FOUNDThe export 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.
  • 410 GoneCURSOR_EXPIREDThe cursor is older than the 30-day retention. Take a fresh cursor and reconcile mirrored records: Retention and recovery.
  • 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"EXPORT_ID="7c6b5a49-3d2e-4f1a-8b9c-0d1e2f3a4b5c"curl \  "$BASE/lms/campaigns/$CAMPAIGN_ID/cdr/exports/$EXPORT_ID/download" \  -H "Authorization: Bearer $LMS_API_KEY" \  --fail -o calls.csv
    Reports API · IoTIndia developers