Skip to main content

Administration

Audit log and stored media.

List audit events

GET/v1/tenants/{tenantSlug}/audit

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

Scope audit.readPaging cursor (items, nextCursor)

Lists the workspace's audit log, newest first: who did what to which record, with before and after values. Filter by action (for example campaign.created), resourceType and resourceId. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Query parameters

  • actionstringoptional

    Only events with exactly this action, written area.record.verb: for example lms.lead.created, lms.lead.stage_changed, lms.lead.assignment_changed, campaign.updated or integration.api_key.rotated. Copy the value from an event's action.

    1–120 characters

  • resourceIdstringoptional

    Only events about this record, usually its ID.

    1–200 characters

  • resourceTypestringoptional

    Only events about this kind of record, matched exactly: for example lead, lead_contact, campaign, process, tenant_team, tenant_member, human_call, source_connection or integration_api_key.

    1–100 characters

  • cursorstringoptional

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

    1–1000 characters

  • limitintegeroptional

    Maximum number of records to return in one page.

    1–100 · default 50

Responses

One page of audit events, newest first, and nextCursor.

  • itemsarray of objectrequired

    Audit events, newest first.

  • 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 audit.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 -G "$BASE/audit" \  --data-urlencode "limit=50" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "id": "d9e0f1a2-b3c4-4d5e-8f6a-7b8c9d0e1f2a",      "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",      "occurredAt": "2026-12-01T10:00:00.000Z",      "actorType": "USER",      "actorId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",      "action": "campaign.updated",      "resourceType": "campaign",      "resourceId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "requestId": "7d0c2f4e-3b1a-4f5e-9c8d-2a1b0c9d8e7f",      "correlationId": "8e1d3f5a-4c2b-4a6f-9d8e-3b2c1d0e9f8a",      "before": {        "name": "Rooftop solar"      },      "after": {        "name": "Rooftop solar · Pune"      },      "metadata": {        "via": "api_key"      }    }  ],  "nextCursor": "eyJpZCI6ImQ5ZTBmMWEyLWIzYzQtNGQ1ZS04ZjZhLTdiOGM5ZDBlMWYyYSIsIm9jY3VycmVkQXQiOiIyMDI2LTEyLTAxVDEwOjAwOjAwLjAwMFoifQ"}

Get a media download link

GET/v1/tenants/{tenantSlug}/media/{mediaId}/download

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

Scope media.read

Returns a short-lived signed URL for a stored media file, such as a Voicebot call recording or transcript listed in an attempt's media. Fetch the file from downloadUrl within expiresIn seconds without sending your API key; request a new link after it expires.

Path parameters

  • mediaIdstring (uuid)required

    Media file ID.

Responses

A signed download link.

  • downloadUrlstring (uri)required

    Signed URL to download the file; it works for expiresIn seconds.

  • expiresInintegerrequired

    Seconds until downloadUrl stops working.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the media.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundMEDIA_OBJECT_NOT_FOUNDThe media file 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"MEDIA_ID="f1a2b3c4-d5e6-4f7a-8b9c-0d1e2f3a4b5d"# 1. Ask for a signed link (needs jq).LINK=$(curl "$BASE/media/$MEDIA_ID/download" \    -H "Authorization: Bearer $LMS_API_KEY" \  | jq -r .downloadUrl)# 2. Fetch the file before the link expires, without your API key.curl --fail -o recording.wav "$LINK"
Example response (200 OK) (200 OK)
{  "downloadUrl": "https://media.iotindia.example/recordings/8f9a0b1c.wav?X-Amz-Expires=300&X-Amz-Signature=3f1d9c",  "expiresIn": 300}
    Administration API · IoTIndia developers