Skip to main content

Campaigns

Campaigns, campaign modules, processes and customer forms.

Set up a campaign

  1. Choose or create the process it follows; its id is the campaign's processId.

    GETList processesPOSTCreate a process

  2. Create the campaign.

    POSTCreate a campaign

  3. Turn on the modules it uses and set its customer form.

    PUTEnable or disable a campaign modulePUTSave a campaign's customer form

List campaigns

GET/v1/tenants/{tenantSlug}/campaigns

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

Scope campaigns.readPaging cursor (items, nextCursor)

Lists campaigns, optionally filtered by process and status. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Query parameters

  • processIdstring (uuid)optional

    ID of the process.

  • statusenumoptional

    Current status of the campaign.

    One ofDRAFTACTIVEPAUSEDARCHIVED

  • 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 campaigns.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

  • 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 campaigns.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/campaigns" \  --data-urlencode "limit=50" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextCursor": "eyJpZCI6IjBiNmM3YTUyIiwidCI6MTc5NjgxODQwMH0",  "items": [    {      "createdAt": "2026-11-28T09:15:00.000Z",      "description": "Leads from the IndiaMART enquiry inbox.",      "endsAt": "2026-12-01T10:00:00.000Z",      "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",      "name": "Pune rooftop launch",      "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",      "startsAt": "2026-12-01T10:00:00.000Z",      "status": "DRAFT",      "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",      "timezone": "Asia/Kolkata",      "updatedAt": "2026-12-01T10:00:00.000Z"    }  ]}

Create a campaign

POST/v1/tenants/{tenantSlug}/campaigns

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

Scope campaigns.write

Creates a campaign in a process. New campaigns start in DRAFT; enable at least one module with Enable or disable a campaign module, then set status to ACTIVE with Update a campaign.

startsAt must be before endsAt when both are set. Names are unique among the process's non-archived campaigns (409 otherwise). An unknown processId returns 404.

Request body (application/json)

  • descriptionstringoptional

    Free-text description.

    up to 1000 characters · default ""

  • endsAtstring (date-time) or nulloptional

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

  • namestringrequired

    Name of the campaign, as shown in the LMS.

    2–120 characters

  • processIdstring (uuid)required

    ID of the process.

  • startsAtstring (date-time) or nulloptional

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

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

    1–100 characters

Responses

The new campaign.

Headers

  • Location URL of the new campaign.
  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstringrequired

    Free-text description.

  • endsAtstring (date-time) or nullrequired

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

  • idstring (uuid)required

    ID of the campaign.

  • namestringrequired

    Name of the campaign, as shown in the LMS.

  • processIdstring (uuid)required

    ID of the process.

  • startsAtstring (date-time) or nullrequired

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

  • statusenumrequired

    Current status of the campaign.

    One ofDRAFTACTIVEPAUSEDARCHIVED

  • tenantIdstring (uuid)required

    ID of the workspace.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • updatedAtstring (date-time)required

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

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 campaigns.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundThe record does not exist or the key cannot see it.
  • 409 ConflictCAMPAIGN_NAME_CONFLICTAnother campaign already has this name.

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

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl -X POST "$BASE/campaigns" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "name": "Rooftop Solar Pune Q1",    "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",    "description": "Rooftop solar enquiries from Pune.",    "timezone": "Asia/Kolkata",    "startsAt": "2027-01-01T00:00:00+05:30",    "endsAt": "2027-03-31T23:59:59+05:30"  }'
Example response (201 Created) (201 Created)
{  "createdAt": "2026-12-01T10:00:00.000Z",  "description": "Rooftop solar enquiries from Pune.",  "endsAt": "2027-03-31T23:59:59+05:30",  "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "name": "Rooftop Solar Pune Q1",  "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "startsAt": "2027-01-01T00:00:00+05:30",  "status": "DRAFT",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "timezone": "Asia/Kolkata",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Get a campaign

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

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

Scope campaigns.read

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

The campaign.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstringrequired

    Free-text description.

  • endsAtstring (date-time) or nullrequired

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

  • idstring (uuid)required

    ID of the campaign.

  • namestringrequired

    Name of the campaign, as shown in the LMS.

  • processIdstring (uuid)required

    ID of the process.

  • startsAtstring (date-time) or nullrequired

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

  • statusenumrequired

    Current status of the campaign.

    One ofDRAFTACTIVEPAUSEDARCHIVED

  • tenantIdstring (uuid)required

    ID of the workspace.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • updatedAtstring (date-time)required

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

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the campaigns.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/campaigns/$CAMPAIGN_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "createdAt": "2026-12-01T10:00:00.000Z",  "description": "Rooftop solar enquiries from Pune.",  "endsAt": "2027-03-31T23:59:59+05:30",  "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "name": "Rooftop Solar Pune Q1",  "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "startsAt": "2027-01-01T00:00:00+05:30",  "status": "DRAFT",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "timezone": "Asia/Kolkata",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Update a campaign

PATCH/v1/tenants/{tenantSlug}/campaigns/{campaignId}

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

Scope campaigns.write

Changes campaign fields or moves it through its lifecycle. Send only the fields to change.

Allowed status changes: DRAFT → ACTIVE or ARCHIVED; ACTIVE ↔ PAUSED; any → ARCHIVED. An ACTIVE campaign needs at least one enabled module. Archived campaigns cannot be changed. These rules, and a duplicate name, return 409.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Request body (application/json)

  • descriptionstringoptional

    Free-text description.

    up to 1000 characters

  • endsAtstring (date-time) or nulloptional

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

  • namestringoptional

    Name of the campaign, as shown in the LMS.

    2–120 characters

  • startsAtstring (date-time) or nulloptional

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

  • statusenumoptional

    Current status of the campaign.

    One ofDRAFTACTIVEPAUSEDARCHIVED

  • timezonestringoptional

    IANA time zone, for example Asia/Kolkata.

    1–100 characters

Responses

The updated campaign.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstringrequired

    Free-text description.

  • endsAtstring (date-time) or nullrequired

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

  • idstring (uuid)required

    ID of the campaign.

  • namestringrequired

    Name of the campaign, as shown in the LMS.

  • processIdstring (uuid)required

    ID of the process.

  • startsAtstring (date-time) or nullrequired

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

  • statusenumrequired

    Current status of the campaign.

    One ofDRAFTACTIVEPAUSEDARCHIVED

  • tenantIdstring (uuid)required

    ID of the workspace.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • updatedAtstring (date-time)required

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

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 campaigns.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 ConflictCAMPAIGN_NAME_CONFLICTAnother campaign already has this name.

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 PATCH "$BASE/campaigns/$CAMPAIGN_ID" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "status": "ACTIVE"  }'
Example response (200 OK) (200 OK)
{  "createdAt": "2026-11-28T09:15:00.000Z",  "description": "Leads from the IndiaMART enquiry inbox.",  "endsAt": "2026-12-01T10:00:00.000Z",  "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "name": "Pune rooftop launch",  "processId": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "startsAt": "2026-12-01T10:00:00.000Z",  "status": "DRAFT",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "timezone": "Asia/Kolkata",  "updatedAt": "2026-12-01T10:00:00.000Z"}

List a campaign's modules

GET/v1/tenants/{tenantSlug}/campaigns/{campaignId}/modules

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

Scope campaigns.readPaging Not paged

Shows which modules (LMS, DIALER, QMS, IVR, VOICEBOT) are enabled for the campaign. Features such as Voicebot calling only work for a campaign whose module is enabled.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

The campaign's modules.

An array, not paged. Each item:

  • campaignIdstring (uuid)required

    ID of the campaign.

  • enabledbooleanrequired

    Whether it is turned on.

  • moduleenumrequired

    Campaign module key.

    LMS
    Lead management: pipeline, assignment and SLAs.
    DIALER
    Human calling by agents.
    QMS
    Quality reviews of recorded calls.
    IVR
    Inbound call menus and queues.
    VOICEBOT
    Automated calls by a voicebot.
  • tenantIdstring (uuid)required

    ID of the workspace.

  • updatedAtstring (date-time)required

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

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the campaigns.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/campaigns/$CAMPAIGN_ID/modules" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
[  {    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "enabled": true,    "module": "LMS",    "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",    "updatedAt": "2026-12-01T10:05:00.000Z"  },  {    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "enabled": true,    "module": "VOICEBOT",    "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",    "updatedAt": "2026-12-01T10:05:00.000Z"  },  {    "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",    "enabled": false,    "module": "QMS",    "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",    "updatedAt": "2026-12-01T10:05:00.000Z"  }]

Enable or disable a campaign module

PUT/v1/tenants/{tenantSlug}/campaigns/{campaignId}/modules/{module}

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

Scope campaigns.write

Turns one module on or off for the campaign. Enabling a module the workspace's plan does not include returns 403 with WORKSPACE_NOT_ENTITLED. Disabling the last enabled module of an ACTIVE campaign, or changing an archived campaign, returns 409. Setting a module to its current state changes nothing.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

  • moduleenumrequired

    Campaign module.

    LMS
    Lead management: pipeline, assignment and SLAs.
    DIALER
    Human calling by agents.
    QMS
    Quality reviews of recorded calls.
    IVR
    Inbound call menus and queues.
    VOICEBOT
    Automated calls by a voicebot.

Request body (application/json)

  • enabledbooleanrequired

    Whether it is turned on.

Responses

The module's new state.

  • campaignIdstring (uuid)required

    ID of the campaign.

  • enabledbooleanrequired

    Whether it is turned on.

  • moduleenumrequired

    Campaign module key.

    LMS
    Lead management: pipeline, assignment and SLAs.
    DIALER
    Human calling by agents.
    QMS
    Quality reviews of recorded calls.
    IVR
    Inbound call menus and queues.
    VOICEBOT
    Automated calls by a voicebot.
  • tenantIdstring (uuid)required

    ID of the workspace.

  • updatedAtstring (date-time)required

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

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 campaigns.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"MODULE="LMS"curl -X PUT "$BASE/campaigns/$CAMPAIGN_ID/modules/$MODULE" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "enabled": true  }'
Example response (200 OK) (200 OK)
{  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "enabled": true,  "module": "LMS",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Get a campaign's customer form

GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/customer-form

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

Scope campaigns.read

Returns the customer form: the extra fields captured for each lead of the campaign, in display order. A campaign without a form returns an empty field list at revision 0. Lead values are read and saved with Get a lead's customer fields and Save a lead's customer fields.

Path parameters

  • campaignIdstring (uuid)required

    Campaign ID.

Responses

The customer form.

  • campaignIdstring (uuid)required

    Campaign the form belongs to.

  • revisionintegerrequired

    Form revision, increased on every change. Send it as formRevision when saving values.

    at least 0

  • fieldsarray of objectrequired

    The fields, in display order.

    up to 60 items

  • updatedAtstring (date-time) or nullrequired

    When the form last changed; null if never saved.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the campaigns.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/customer-form" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "revision": 4,  "fields": [    {      "key": "roof_type",      "label": "Work",      "type": "TEXT",      "section": "Customer details",      "helpText": "",      "placeholder": "",      "required": false,      "editable": true,      "masked": false,      "active": true,      "options": []    }  ],  "updatedAt": "2026-12-01T10:00:00.000Z"}

Save a campaign's customer form

PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/customer-form

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

Scope campaigns.write

Replaces the form's field list (up to 60 fields with unique keys). SELECT and MULTI_SELECT fields need at least one option; other types take none. To retire a field without losing saved values, set active: false rather than removing it. Send the form's current revision as expectedRevision; a stale revision returns 409.

Path parameters

  • campaignIdstring (uuid)required

    Campaign 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

  • fieldsarray of objectrequired

    The fields, in display order.

    up to 60 items

Responses

The saved form.

  • campaignIdstring (uuid)required

    Campaign the form belongs to.

  • revisionintegerrequired

    Form revision, increased on every change. Send it as formRevision when saving values.

    at least 0

  • fieldsarray of objectrequired

    The fields, in display order.

    up to 60 items

  • updatedAtstring (date-time) or nullrequired

    When the form last changed; null if never 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 campaigns.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 ConflictCUSTOMER_FORM_STALEThe form changed after you read it; 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"CAMPAIGN_ID="2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"curl -X PUT "$BASE/lms/campaigns/$CAMPAIGN_ID/customer-form" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 3,    "fields": [      {        "key": "monthly_bill",        "label": "Average monthly electricity bill (INR)",        "type": "NUMBER",        "required": true      },      {        "key": "roof_type",        "label": "Roof type",        "type": "SELECT",        "options": [          {            "value": "rcc",            "label": "RCC slab"          },          {            "value": "tin",            "label": "Tin sheet"          }        ]      },      {        "key": "site_visit_date",        "label": "Preferred site visit date",        "type": "DATE"      }    ]  }'
Example response (200 OK) (200 OK)
{  "campaignId": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",  "revision": 4,  "fields": [    {      "key": "roof_type",      "label": "Work",      "type": "TEXT",      "section": "Customer details",      "helpText": "",      "placeholder": "",      "required": false,      "editable": true,      "masked": false,      "active": true,      "options": []    }  ],  "updatedAt": "2026-12-01T10:00:00.000Z"}

List processes

GET/v1/tenants/{tenantSlug}/processes

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

Scope campaigns.readPaging cursor (items, nextCursor)

Lists the workspace's processes, optionally only active or archived ones. A process holds the pipeline stages, identity rules and campaigns of one line of business. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Query parameters

  • statusenumoptional

    Current status of the process.

    One ofACTIVEARCHIVED

  • 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 processes.

  • itemsarray of objectrequired

    The records in this response, in the documented order.

  • 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 campaigns.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/processes" \  --data-urlencode "limit=50" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextCursor": "eyJpZCI6IjBiNmM3YTUyIiwidCI6MTc5NjgxODQwMH0",  "items": [    {      "createdAt": "2026-11-28T09:15:00.000Z",      "description": "Leads from the IndiaMART enquiry inbox.",      "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",      "name": "Solar sales",      "status": "ACTIVE",      "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",      "timezone": "Asia/Kolkata",      "updatedAt": "2026-12-01T10:00:00.000Z"    }  ]}

Create a process

POST/v1/tenants/{tenantSlug}/processes

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

Scope campaigns.write

Creates an active process. Names are unique among active processes (409 otherwise). The workspace's plan caps the number of active processes; at the cap the request fails with 409 and error.details carries the current count and limit.

Request body (application/json)

  • descriptionstringoptional

    Free-text description.

    up to 1000 characters · default ""

  • namestringrequired

    Name of the process, as shown in the LMS.

    2–120 characters

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

    1–100 characters

Responses

The new process.

Headers

  • Location URL of the new process.
  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstringrequired

    Free-text description.

  • idstring (uuid)required

    ID of the process.

  • namestringrequired

    Name of the process, as shown in the LMS.

  • statusenumrequired

    Current status of the process.

    One ofACTIVEARCHIVED

  • tenantIdstring (uuid)required

    ID of the workspace.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • updatedAtstring (date-time)required

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

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 campaigns.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 409 ConflictPROCESS_NAME_CONFLICTAnother process already has this name.
  • 409 ConflictPROCESS_LIMIT_REACHEDThe workspace has reached its plan's process limit.

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

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl -X POST "$BASE/processes" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "name": "Solar Sales",    "description": "Home solar, from enquiry to install.",    "timezone": "Asia/Kolkata"  }'
Example response (201 Created) (201 Created)
{  "createdAt": "2026-12-01T10:00:00.000Z",  "description": "Home solar, from enquiry to install.",  "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "name": "Solar Sales",  "status": "ACTIVE",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "timezone": "Asia/Kolkata",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Get a process

GET/v1/tenants/{tenantSlug}/processes/{processId}

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

Scope campaigns.read

Path parameters

  • processIdstring (uuid)required

    Process ID.

Responses

The process.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstringrequired

    Free-text description.

  • idstring (uuid)required

    ID of the process.

  • namestringrequired

    Name of the process, as shown in the LMS.

  • statusenumrequired

    Current status of the process.

    One ofACTIVEARCHIVED

  • tenantIdstring (uuid)required

    ID of the workspace.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • updatedAtstring (date-time)required

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

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the campaigns.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundPROCESS_NOT_FOUNDThe process 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"PROCESS_ID="3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d"curl "$BASE/processes/$PROCESS_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "createdAt": "2026-12-01T10:00:00.000Z",  "description": "Home solar, from enquiry to install.",  "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "name": "Solar Sales",  "status": "ACTIVE",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "timezone": "Asia/Kolkata",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Update a process

PATCH/v1/tenants/{tenantSlug}/processes/{processId}

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

Scope campaigns.write

Changes a process's name, description or time zone. Send only the fields to change. Archived processes cannot be changed (409).

Path parameters

  • processIdstring (uuid)required

    Process ID.

Request body (application/json)

  • descriptionstringoptional

    Free-text description.

    up to 1000 characters

  • namestringoptional

    Name of the process, as shown in the LMS.

    2–120 characters

  • timezonestringoptional

    IANA time zone, for example Asia/Kolkata.

    1–100 characters

Responses

The updated process.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstringrequired

    Free-text description.

  • idstring (uuid)required

    ID of the process.

  • namestringrequired

    Name of the process, as shown in the LMS.

  • statusenumrequired

    Current status of the process.

    One ofACTIVEARCHIVED

  • tenantIdstring (uuid)required

    ID of the workspace.

  • timezonestringrequired

    IANA time zone, for example Asia/Kolkata.

  • updatedAtstring (date-time)required

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

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 campaigns.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundPROCESS_NOT_FOUNDThe process does not exist or the key cannot see it.
  • 409 ConflictPROCESS_NAME_CONFLICTAnother process already has this name.
  • 409 ConflictPROCESS_ARCHIVEDArchived processes cannot be changed.

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"PROCESS_ID="3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d"curl -X PATCH "$BASE/processes/$PROCESS_ID" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "description": "Residential and small-business solar sales."  }'
Example response (200 OK) (200 OK)
{  "createdAt": "2026-11-28T09:15:00.000Z",  "description": "Leads from the IndiaMART enquiry inbox.",  "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",  "name": "Solar sales",  "status": "ACTIVE",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "timezone": "Asia/Kolkata",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Archive a process

DELETE/v1/tenants/{tenantSlug}/processes/{processId}

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

Scope campaigns.write

Archives the process. Nothing is deleted: the process and its history remain readable, but it can no longer be changed. Archiving an archived process succeeds without changes.

Path parameters

  • processIdstring (uuid)required

    Process ID.

Responses

The process is archived.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the campaigns.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundPROCESS_NOT_FOUNDThe process 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"PROCESS_ID="3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d"curl -X DELETE "$BASE/processes/$PROCESS_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
    Campaigns API · IoTIndia developers