Skip to main content

Change feed

Pull the same events webhooks deliver, in commit order, with a cursor.

List event types

GET/v1/integrations/event-types

Scope none (any valid key)

Lists every public event type with its version, group, a one-line summary and an example data payload. The same catalogue drives webhook subscriptions and the change feed's types filter. Any valid credential may read it; events.read is needed only for the change feed itself.

Responses

The public event catalogue.

  • itemsarray of objectrequired

    Every event type the credential can receive.

Errors

Only the errors every operation shares: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/integrations"curl "$BASE/event-types" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "items": [    {      "type": "lead.created",      "version": 1,      "group": "Leads",      "summary": "A new lead was created from any source.",      "example": {        "lead": {          "id": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",          "contact": {            "name": "Asha Verma",            "phone": "+919812345678",            "email": "asha@example.com"          },          "company": "Verma Traders",          "city": "Pune",          "state": "Maharashtra",          "country": "India",          "productInterest": "Rooftop solar, 5 kW",          "priority": 2,          "stage": {            "id": "8c7b6a59-4d3e-4f2a-9b1c-0d9e8f7a6b5c",            "name": "New",            "category": "new"          },          "process": {            "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",            "name": "Solar sales"          },          "campaign": {            "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",            "name": "Pune rooftop launch"          },          "owner": {            "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",            "team": {              "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",              "name": "West inside sales"            }          },          "source": {            "id": "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b",            "name": "Meta Lead Ads",            "channel": "META"          },          "receivedAt": "2026-12-01T09:58:12.000Z",          "createdAt": "2026-12-01T09:58:13.000Z",          "updatedAt": "2026-12-01T10:00:00.000Z"        }      }    },    {      "type": "lead.updated",      "version": 1,      "group": "Leads",      "summary": "A lead's profile, contacts, campaign or priority changed.",      "example": {        "changes": [          "profile"        ],        "lead": {          "id": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",          "contact": {            "name": "Asha Verma",            "phone": "+919812345678",            "email": "asha@example.com"          },          "company": "Verma Traders",          "city": "Pune",          "state": "Maharashtra",          "country": "India",          "productInterest": "Rooftop solar, 5 kW",          "priority": 2,          "stage": {            "id": "5d1f2e3a-9b8c-4d7e-a6f5-1c2b3a4d5e6f",            "name": "Qualified",            "category": "qualified"          },          "process": {            "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",            "name": "Solar sales"          },          "campaign": {            "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",            "name": "Pune rooftop launch"          },          "owner": {            "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",            "team": {              "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",              "name": "West inside sales"            }          },          "source": {            "id": "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b",            "name": "Meta Lead Ads",            "channel": "META"          },          "receivedAt": "2026-12-01T09:58:12.000Z",          "createdAt": "2026-12-01T09:58:13.000Z",          "updatedAt": "2026-12-01T10:00:00.000Z"        }      }    }  ]}

Returns the same events that webhooks deliver, in the order they were committed, so you can poll instead of (or as well as) receiving webhooks. Needs the events.read scope.

Paging. Start without a cursor (from the oldest retained event) or with since. Every response carries nextCursor; pass it on the next call. When hasMore is false you have caught up; poll again later with the same cursor. An empty page still returns a cursor that keeps your position.

Delivery is at least once: store the cursor only after you have processed the page, and de-duplicate on the event id.

Retention is 30 days. A cursor older than that returns 410 CURSOR_EXPIRED: take a fresh cursor with since, then re-read the records you mirror, because events from the gap are gone. The steps are in Pagination → Retention and recovery.

Query parameters

  • sincestring (date-time)optional

    Without a cursor: start at events at or after this time (ISO 8601). Ignored with a cursor.

  • typesstringoptional

    Comma-separated event types to include, for example lead.created,lead.stage_changed. All types by default.

    up to 1000 characters

  • cursorstringoptional

    The nextCursor you saved from the previous page. Leave out to start from since or the oldest retained event.

    up to 200 characters

  • limitintegeroptional

    Events per page (1–500).

    1–500 · default 100

Responses

One page of events.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_SCOPE_FORBIDDENThe key lacks the events.read scope.
  • 410 GoneCURSOR_EXPIREDThe cursor is older than the 30-day retention. Take a fresh cursor and reconcile mirrored records: Retention and recovery.

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

Request
BASE="https://lms.iotindia.ai/v1/integrations"curl -G "$BASE/events" \  --data-urlencode "limit=100" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "data": [    {      "id": "0f7e6d5c-4b3a-4291-8f7e-000000000001",      "type": "lead.created",      "version": 1,      "timestamp": "2026-12-01T10:00:00.000Z",      "workspace": "your-workspace",      "data": {        "lead": {          "id": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",          "contact": {            "name": "Asha Verma",            "phone": "+919812345678",            "email": "asha@example.com"          },          "company": "Verma Traders",          "city": "Pune",          "state": "Maharashtra",          "country": "India",          "productInterest": "Rooftop solar, 5 kW",          "priority": 2,          "stage": {            "id": "8c7b6a59-4d3e-4f2a-9b1c-0d9e8f7a6b5c",            "name": "New",            "category": "new"          },          "process": {            "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",            "name": "Solar sales"          },          "campaign": {            "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",            "name": "Pune rooftop launch"          },          "owner": {            "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",            "team": {              "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",              "name": "West inside sales"            }          },          "source": {            "id": "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b",            "name": "Meta Lead Ads",            "channel": "META"          },          "receivedAt": "2026-12-01T09:58:12.000Z",          "createdAt": "2026-12-01T09:58:13.000Z",          "updatedAt": "2026-12-01T10:00:00.000Z"        }      }    },    {      "id": "0f7e6d5c-4b3a-4291-8f7e-000000000003",      "type": "lead.stage_changed",      "version": 1,      "timestamp": "2026-12-01T10:00:00.000Z",      "workspace": "your-workspace",      "data": {        "previousStage": {          "id": "8c7b6a59-4d3e-4f2a-9b1c-0d9e8f7a6b5c",          "name": "New",          "category": "new"        },        "stage": {          "id": "5d1f2e3a-9b8c-4d7e-a6f5-1c2b3a4d5e6f",          "name": "Qualified",          "category": "qualified"        },        "changedAt": "2026-12-01T10:00:00.000Z",        "lead": {          "id": "0b6c7a52-4f0e-4c1a-9d43-3f2a7c1e9b10",          "contact": {            "name": "Asha Verma",            "phone": "+919812345678",            "email": "asha@example.com"          },          "company": "Verma Traders",          "city": "Pune",          "state": "Maharashtra",          "country": "India",          "productInterest": "Rooftop solar, 5 kW",          "priority": 2,          "stage": {            "id": "5d1f2e3a-9b8c-4d7e-a6f5-1c2b3a4d5e6f",            "name": "Qualified",            "category": "qualified"          },          "process": {            "id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",            "name": "Solar sales"          },          "campaign": {            "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",            "name": "Pune rooftop launch"          },          "owner": {            "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a",            "team": {              "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",              "name": "West inside sales"            }          },          "source": {            "id": "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b",            "name": "Meta Lead Ads",            "channel": "META"          },          "receivedAt": "2026-12-01T09:58:12.000Z",          "createdAt": "2026-12-01T09:58:13.000Z",          "updatedAt": "2026-12-01T10:00:00.000Z"        }      }    }  ],  "nextCursor": "eyJzIjo0MjEsInQiOjE3OTY4MTg0MDAwMDB9",  "hasMore": false}
    Change feed API · IoTIndia developers