Skip to main content

Team

Teams, rosters, members and roles.

Choose a team endpoint

  1. Every team at once, not paged: for small workspaces.

    GETList teams

  2. Search teams by name, a page at a time.

    GETList team summaries

  3. Names for team IDs you already have (QUERY for long ID lists).

    GETLook up teams by IDQUERYLook up teams by ID (query)

  4. Add members: find who can join, then add them.

    GETList members who can join a teamPOSTAdd a team member

List teams

GET/v1/tenants/{tenantSlug}/teams

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

Scope team.readPaging Not paged

Returns every team with its active member count, optionally only active or archived teams. Not paged; for large workspaces, or to search by name, use List team summaries.

Query parameters

  • statusenumoptional

    Current status of the team.

    One ofACTIVEARCHIVED

Responses

All matching teams.

An array, not paged. Each item:

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstring or nullrequired

    Free-text description.

  • idstring (uuid)required

    ID of the team.

  • namestringrequired

    Name of the team, as shown in the LMS.

  • statusenumrequired

    Current status of the team.

    One ofACTIVEARCHIVED

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

  • memberCountintegerrequired

    Number of member records.

    at least 0

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.

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

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl "$BASE/teams" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
[  {    "createdAt": "2026-11-28T09:15:00.000Z",    "description": "Leads from the IndiaMART enquiry inbox.",    "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",    "name": "West inside sales",    "status": "ACTIVE",    "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",    "updatedAt": "2026-12-01T10:00:00.000Z",    "memberCount": 13  }]

List team summaries

GET/v1/tenants/{tenantSlug}/teams/summaries

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

Scope team.readPaging cursor (items, nextCursor)

Searches teams by name and status, with member counts and the total number of matches. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Query parameters

  • qstringoptional

    Free-text search; matches names and other visible text, case-insensitively.

    1–100 characters

  • statusenumoptional

    Current status of the team summary.

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

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

  • totalintegerrequired

    Teams matching the filters, across all pages.

    at least 0

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.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/teams/summaries" \  --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": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",      "name": "West inside sales",      "status": "ACTIVE",      "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",      "updatedAt": "2026-12-01T10:00:00.000Z",      "memberCount": 13    }  ],  "total": 128}

Get a team

GET/v1/tenants/{tenantSlug}/teams/{teamId}

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

Scope team.read

Path parameters

  • teamIdstring (uuid)required

    Team ID.

Responses

The team.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstring or nullrequired

    Free-text description.

  • idstring (uuid)required

    ID of the team.

  • namestringrequired

    Name of the team, as shown in the LMS.

  • statusenumrequired

    Current status of the team.

    One ofACTIVEARCHIVED

  • 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 team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"curl "$BASE/teams/$TEAM_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "createdAt": "2026-12-01T10:00:00.000Z",  "description": "Handles inbound solar enquiries for Pune.",  "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",  "name": "Pune Inside Sales",  "status": "ACTIVE",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Create a team

POST/v1/tenants/{tenantSlug}/teams

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

Scope team.write

Creates an active team. Team names are unique in the workspace (409 otherwise).

Request body (application/json)

  • descriptionstring or nulloptional

    Free-text description.

    up to 500 characters

  • namestringrequired

    Name of the team, as shown in the LMS.

    1–120 characters

Responses

The new team.

Headers

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

    When it was created (ISO 8601).

  • descriptionstring or nullrequired

    Free-text description.

  • idstring (uuid)required

    ID of the team.

  • namestringrequired

    Name of the team, as shown in the LMS.

  • statusenumrequired

    Current status of the team.

    One ofACTIVEARCHIVED

  • 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 team.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 409 ConflictTEAM_NAME_CONFLICTAnother team 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/teams" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "name": "Pune Inside Sales",    "description": "Handles inbound solar enquiries for Pune."  }'
Example response (201 Created) (201 Created)
{  "createdAt": "2026-12-01T10:00:00.000Z",  "description": "Handles inbound solar enquiries for Pune.",  "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",  "name": "Pune Inside Sales",  "status": "ACTIVE",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Update a team

PATCH/v1/tenants/{tenantSlug}/teams/{teamId}

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

Scope team.write

Renames a team or changes its description (null clears it). Send at least one field. Archived teams, and names already in use, return 409.

Path parameters

  • teamIdstring (uuid)required

    Team ID.

Request body (application/json)

  • descriptionstring or nulloptional

    Free-text description.

    up to 500 characters

  • namestringoptional

    Name of the team, as shown in the LMS.

    1–120 characters

Responses

The updated team.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstring or nullrequired

    Free-text description.

  • idstring (uuid)required

    ID of the team.

  • namestringrequired

    Name of the team, as shown in the LMS.

  • statusenumrequired

    Current status of the team.

    One ofACTIVEARCHIVED

  • 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 team.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team does not exist or the key cannot see it.
  • 409 ConflictTEAM_NAME_CONFLICTAnother team 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"curl -X PATCH "$BASE/teams/$TEAM_ID" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "name": "Pune and PCMC Inside Sales"  }'
Example response (200 OK) (200 OK)
{  "createdAt": "2026-11-28T09:15:00.000Z",  "description": "Leads from the IndiaMART enquiry inbox.",  "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",  "name": "West inside sales",  "status": "ACTIVE",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "updatedAt": "2026-12-01T10:00:00.000Z"}

Archive a team

POST/v1/tenants/{tenantSlug}/teams/{teamId}/archive

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

Scope team.write

Archives a team. Archiving never cascades: if a published allocation ruleset references the team or leads are still assigned to it, the request fails with 409 (TEAM_IN_USE) and error.details.conflicts lists what to change first. Archiving an archived team succeeds without changes.

Path parameters

  • teamIdstring (uuid)required

    Team ID.

Responses

The archived team.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstring or nullrequired

    Free-text description.

  • idstring (uuid)required

    ID of the team.

  • namestringrequired

    Name of the team, as shown in the LMS.

  • statusenumrequired

    Current status of the team.

    One ofACTIVEARCHIVED

  • 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 team.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"curl -X POST "$BASE/teams/$TEAM_ID/archive" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "createdAt": "2026-11-28T09:15:00.000Z",  "description": "Leads from the IndiaMART enquiry inbox.",  "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",  "name": "West inside sales",  "status": "ACTIVE",  "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",  "updatedAt": "2026-12-01T10:00:00.000Z"}

List a team's members

GET/v1/tenants/{tenantSlug}/teams/{teamId}/members

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

Scope team.readPaging Not paged

Returns all of the team's members, active and inactive, in one list. For long rosters use List a team's active members or List a team's membership history, which are paged.

Path parameters

  • teamIdstring (uuid)required

    Team ID.

Responses

The team's members.

An array, not paged. Each item:

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • displayNamestringrequired

    Name shown in the LMS.

  • statusenumrequired

    Current status of the team member.

    One ofACTIVEINACTIVE

  • teamIdstring (uuid)required

    ID of the team.

  • updatedAtstring (date-time)required

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

  • userIdstring (uuid)required

    ID of the user.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"curl "$BASE/teams/$TEAM_ID/members" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
[  {    "createdAt": "2026-11-28T09:15:00.000Z",    "displayName": "Rahul Mehta",    "status": "ACTIVE",    "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",    "updatedAt": "2026-12-01T10:00:00.000Z",    "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"  }]

List a team's active members

GET/v1/tenants/{tenantSlug}/teams/{teamId}/active-members

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

Scope team.readPaging cursor (items, nextCursor)

Lists the team's active members, sorted by name: the people leads can be assigned to in this team. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Path parameters

  • teamIdstring (uuid)required

    Team ID.

Query parameters

  • 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 active members.

  • 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 team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"curl -G "$BASE/teams/$TEAM_ID/active-members" \  --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",      "displayName": "Rahul Mehta",      "status": "ACTIVE",      "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",      "updatedAt": "2026-12-01T10:00:00.000Z",      "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"    }  ]}

List a team's membership history

GET/v1/tenants/{tenantSlug}/teams/{teamId}/member-history

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

Scope team.readPaging cursor (items, nextCursor)

Lists everyone who has been a member of the team, active and inactive. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Path parameters

  • teamIdstring (uuid)required

    Team ID.

Query parameters

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

  • 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 team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"curl -G "$BASE/teams/$TEAM_ID/member-history" \  --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",      "displayName": "Rahul Mehta",      "status": "ACTIVE",      "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",      "updatedAt": "2026-12-01T10:00:00.000Z",      "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"    }  ]}

List members who can join a team

GET/v1/tenants/{tenantSlug}/teams/{teamId}/available-members

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

Scope team.readPaging cursor (items, nextCursor)

Lists active workspace members who are not active members of this team, sorted by name. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Path parameters

  • teamIdstring (uuid)required

    Team ID.

Query parameters

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

  • 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 team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"curl -G "$BASE/teams/$TEAM_ID/available-members" \  --data-urlencode "limit=50" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextCursor": "eyJpZCI6IjBiNmM3YTUyIiwidCI6MTc5NjgxODQwMH0",  "items": [    {      "displayName": "Rahul Mehta",      "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"    }  ]}

Add a team member

POST/v1/tenants/{tenantSlug}/teams/{teamId}/members

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

Scope team.write

Adds an active workspace member to the team, or reactivates a former member. The team must be active; users outside the workspace and members who are already active return 409.

Path parameters

  • teamIdstring (uuid)required

    Team ID.

Request body (application/json)

  • userIdstring (uuid)required

    ID of the user.

Responses

The membership.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • displayNamestringrequired

    Name shown in the LMS.

  • statusenumrequired

    Current status of the team member.

    One ofACTIVEINACTIVE

  • teamIdstring (uuid)required

    ID of the team.

  • updatedAtstring (date-time)required

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

  • userIdstring (uuid)required

    ID of the user.

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 team.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"curl -X POST "$BASE/teams/$TEAM_ID/members" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"  }'
Example response (201 Created) (201 Created)
{  "createdAt": "2026-12-01T10:05:00.000Z",  "displayName": "Rohan Kulkarni",  "status": "ACTIVE",  "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",  "updatedAt": "2026-12-01T10:05:00.000Z",  "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"}

Remove a team member

POST/v1/tenants/{tenantSlug}/teams/{teamId}/members/{userId}/deactivate

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

Scope team.write

Deactivates a membership. The record is kept, so assignment history still resolves. If a published allocation ruleset pins the member as a fixed agent, or the member still owns leads in this team, the request fails with 409 (TEAM_MEMBER_IN_USE) and error.details.conflicts lists what to change first. Deactivating an inactive member succeeds without changes.

Path parameters

  • teamIdstring (uuid)required

    Team ID.

  • userIdstring (uuid)required

    User ID of the member.

Responses

The inactive membership.

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • displayNamestringrequired

    Name shown in the LMS.

  • statusenumrequired

    Current status of the team member.

    One ofACTIVEINACTIVE

  • teamIdstring (uuid)required

    ID of the team.

  • updatedAtstring (date-time)required

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

  • userIdstring (uuid)required

    ID of the user.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.write scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 404 Not FoundTEAM_NOT_FOUNDThe team does not exist or the key cannot see it.
  • 404 Not FoundMEMBER_NOT_FOUNDThe member 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"TEAM_ID="4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"USER_ID="9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"curl -X POST "$BASE/teams/$TEAM_ID/members/$USER_ID/deactivate" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "createdAt": "2026-12-01T10:05:00.000Z",  "displayName": "Rohan Kulkarni",  "status": "INACTIVE",  "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",  "updatedAt": "2026-12-02T09:00:00.000Z",  "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"}

Look up teams by ID

GET/v1/tenants/{tenantSlug}/teams/lookup

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

Scope team.readPaging Not paged

Returns the teams with the given IDs, for example to label team IDs from lead records. Pass each ID as a repeated teamId query parameter (?teamId=…&teamId=…), 1 to 100 of them. Unknown IDs are omitted. For long lists use the QUERY form.

Responses

The matching teams.

An array, not paged. Each item:

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstring or nullrequired

    Free-text description.

  • idstring (uuid)required

    ID of the team.

  • namestringrequired

    Name of the team, as shown in the LMS.

  • statusenumrequired

    Current status of the team.

    One ofACTIVEARCHIVED

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

  • memberCountintegerrequired

    Number of member records.

    at least 0

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.

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

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl "$BASE/teams/lookup" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
[  {    "createdAt": "2026-11-28T09:15:00.000Z",    "description": "Leads from the IndiaMART enquiry inbox.",    "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",    "name": "West inside sales",    "status": "ACTIVE",    "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",    "updatedAt": "2026-12-01T10:00:00.000Z",    "memberCount": 13  }]

Look up teams by ID (query)

QUERY/v1/tenants/{tenantSlug}/teams/lookup

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

Scope team.readPaging Not paged

Same as Look up teams by ID, with up to 100 IDs in the body. Uses the HTTP QUERY method with a JSON body (safe and idempotent, like GET). Send Content-Type: application/json.

Request body (application/json)

  • teamIdsarray of string (uuid)required

    IDs of the team records.

    up to 100 items

Responses

The matching teams.

An array, not paged. Each item:

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • descriptionstring or nullrequired

    Free-text description.

  • idstring (uuid)required

    ID of the team.

  • namestringrequired

    Name of the team, as shown in the LMS.

  • statusenumrequired

    Current status of the team.

    One ofACTIVEARCHIVED

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

  • memberCountintegerrequired

    Number of member records.

    at least 0

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 415 Unsupported Media TypeQUERY_CONTENT_TYPE_UNSUPPORTEDThe QUERY request has no Content-Type: application/json body.
  • 422 Unprocessable ContentQUERY_VALIDATION_FAILEDThe QUERY body is JSON but does not match the request fields.

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 QUERY "$BASE/teams/lookup" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "teamIds": [      "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d"    ]  }'
Example response (200 OK) (200 OK)
[  {    "createdAt": "2026-11-28T09:15:00.000Z",    "description": "Leads from the IndiaMART enquiry inbox.",    "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",    "name": "West inside sales",    "status": "ACTIVE",    "tenantId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",    "updatedAt": "2026-12-01T10:00:00.000Z",    "memberCount": 13  }]

Look up member names by user ID

GET/v1/tenants/{tenantSlug}/teams/members

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

Scope team.readPaging Not paged

Returns display names for the given user IDs, including former members, so historical owners still get a label. Pass each ID as a repeated userId query parameter (?userId=…&userId=…), 1 to 100 of them. Unknown IDs are omitted. For long lists use the QUERY form.

Responses

Names of the matching members.

An array, not paged. Each item:

  • displayNamestringrequired

    Name shown in the LMS.

    1–160 characters

  • userIdstring (uuid)required

    ID of the user.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.

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

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl "$BASE/teams/members" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
[  {    "displayName": "Rahul Mehta",    "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"  }]

Look up member names by user ID (query)

QUERY/v1/tenants/{tenantSlug}/teams/members

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

Scope team.readPaging Not paged

Same as Look up member names by user ID, with up to 100 IDs in the body. Uses the HTTP QUERY method with a JSON body (safe and idempotent, like GET). Send Content-Type: application/json.

Request body (application/json)

  • userIdsarray of string (uuid)required

    IDs of the user records.

    up to 100 items

Responses

Names of the matching members.

An array, not paged. Each item:

  • displayNamestringrequired

    Name shown in the LMS.

    1–160 characters

  • userIdstring (uuid)required

    ID of the user.

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 team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 415 Unsupported Media TypeQUERY_CONTENT_TYPE_UNSUPPORTEDThe QUERY request has no Content-Type: application/json body.
  • 422 Unprocessable ContentQUERY_VALIDATION_FAILEDThe QUERY body is JSON but does not match the request fields.

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 QUERY "$BASE/teams/members" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "userIds": [      "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"    ]  }'
Example response (200 OK) (200 OK)
[  {    "displayName": "Rohan Kulkarni",    "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"  }]

Check team memberships

GET/v1/tenants/{tenantSlug}/teams/membership-lookup

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

Scope team.readPaging Not paged

Returns the active memberships among the given team and user pairs, for example to check that a lead's owner still belongs to its team. Pass repeated teamId and userId query parameters; they are paired by position, so send the same number of each (1 to 100). Pairs without an active membership are omitted. For long lists use the QUERY form.

Responses

Active memberships among the pairs.

An array, not paged. Each item:

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • displayNamestringrequired

    Name shown in the LMS.

  • statusenumrequired

    Current status of the team member.

    One ofACTIVEINACTIVE

  • teamIdstring (uuid)required

    ID of the team.

  • updatedAtstring (date-time)required

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

  • userIdstring (uuid)required

    ID of the user.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.

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

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl "$BASE/teams/membership-lookup" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
[  {    "createdAt": "2026-11-28T09:15:00.000Z",    "displayName": "Rahul Mehta",    "status": "ACTIVE",    "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",    "updatedAt": "2026-12-01T10:00:00.000Z",    "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"  }]

Check team memberships (query)

QUERY/v1/tenants/{tenantSlug}/teams/membership-lookup

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

Scope team.readPaging Not paged

Same as Check team memberships, with up to 100 team and user pairs in the body. Uses the HTTP QUERY method with a JSON body (safe and idempotent, like GET). Send Content-Type: application/json.

Request body (application/json)

  • membershipsarray of objectrequired

    Team and member pairs to look up.

    up to 100 items

Responses

Active memberships among the pairs.

An array, not paged. Each item:

  • createdAtstring (date-time)required

    When it was created (ISO 8601).

  • displayNamestringrequired

    Name shown in the LMS.

  • statusenumrequired

    Current status of the team member.

    One ofACTIVEINACTIVE

  • teamIdstring (uuid)required

    ID of the team.

  • updatedAtstring (date-time)required

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

  • userIdstring (uuid)required

    ID of the user.

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 team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.
  • 415 Unsupported Media TypeQUERY_CONTENT_TYPE_UNSUPPORTEDThe QUERY request has no Content-Type: application/json body.
  • 422 Unprocessable ContentQUERY_VALIDATION_FAILEDThe QUERY body is JSON but does not match the request fields.

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 QUERY "$BASE/teams/membership-lookup" \  -H "Authorization: Bearer $LMS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "memberships": [      {        "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",        "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"      }    ]  }'
Example response (200 OK) (200 OK)
[  {    "createdAt": "2026-12-01T10:05:00.000Z",    "displayName": "Rohan Kulkarni",    "status": "ACTIVE",    "teamId": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",    "updatedAt": "2026-12-01T10:05:00.000Z",    "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"  }]

List the member directory

GET/v1/tenants/{tenantSlug}/teams/directory

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

Scope team.readPaging cursor (items, nextCursor)

Lists active workspace members by display name, for choosing people without handling contact details. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Query parameters

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

  • 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 team.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/teams/directory" \  --data-urlencode "limit=50" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "nextCursor": "eyJpZCI6IjBiNmM3YTUyIiwidCI6MTc5NjgxODQwMH0",  "items": [    {      "displayName": "Rahul Mehta",      "userId": "9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a"    }  ]}

List workspace members

GET/v1/tenants/{tenantSlug}/members

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

Scope team.readPaging cursor (items, nextCursor)

Lists workspace members and pending invitations with their roles and teams, optionally filtered by status or searched by name or email. The acting member needs permission to manage members. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.

Query parameters

  • searchstringoptional

    Free-text search; matches names and other visible text, case-insensitively.

    1–160 characters

  • statusenumoptional

    Current status of the member.

    One ofINVITEDACTIVESUSPENDED

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

  • nextCursorstring or nullrequired

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

  • itemsarray of one of 2 shapesrequired

    The records in this response, in the documented order.

Errors

  • 400 Bad RequestVALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).
  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.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/members" \  --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",      "displayName": "Rahul Mehta",      "email": "asha@example.com",      "roles": [        {          "id": null,          "key": null,          "name": null        }      ],      "teams": [        {          "id": null,          "name": null,          "status": null        }      ],      "updatedAt": "2026-12-01T10:00:00.000Z",      "invitationId": "38495211-4a71-4cb2-ae78-52e856fb8221",      "membershipId": null,      "recordId": "0c5ad263-f9ac-48ca-b8c3-013e08ea7865",      "recordKind": "INVITATION",      "status": "INVITED",      "userId": null    }  ]}

Get a workspace member

GET/v1/tenants/{tenantSlug}/members/{recordId}

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

Scope team.read

Returns one member or pending invitation by its recordId (from List workspace members). recordKind tells which it is. The acting member needs permission to manage members.

Path parameters

  • recordIdstring (uuid)required

    Member record ID.

Responses

The member.

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.read 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.

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"RECORD_ID="0c5ad263-f9ac-48ca-b8c3-013e08ea7865"curl "$BASE/members/$RECORD_ID" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "createdAt": "2026-11-28T09:15:00.000Z",  "displayName": "Rahul Mehta",  "email": "asha@example.com",  "roles": [    {      "id": "d3d6578b-96c7-403a-af94-61366ecb93ed",      "key": "roof_type",      "name": "Asha Verma"    }  ],  "teams": [    {      "id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",      "name": "West inside sales",      "status": "ACTIVE"    }  ],  "updatedAt": "2026-12-01T10:00:00.000Z",  "invitationId": "38495211-4a71-4cb2-ae78-52e856fb8221",  "membershipId": null,  "recordId": "0c5ad263-f9ac-48ca-b8c3-013e08ea7865",  "recordKind": "INVITATION",  "status": "INVITED",  "userId": null}

List assignable roles

GET/v1/tenants/{tenantSlug}/members/roles

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

Scope team.readPaging Not paged

Lists the roles that can be given to workspace members. The acting member needs permission to manage members.

Responses

Assignable roles.

An array, not paged. Each item:

  • idstring (uuid)required

    ID of the role.

  • keystringrequired

    Stable machine key. Unlike the label, it never changes.

    1–120 characters

  • namestringrequired

    Name of the role, as shown in the LMS.

    1–160 characters

Errors

  • 403 ForbiddenPARTNER_OPERATION_FORBIDDENThe key lacks the team.read scope.
  • 403 ForbiddenPERMISSION_DENIEDThe key's acting member lacks the permission or data access.

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

Request
BASE="https://lms.iotindia.ai/v1/tenants/your-workspace"curl "$BASE/members/roles" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
[  {    "id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",    "key": "agent",    "name": "Agent"  },  {    "id": "1b2c3d4e-5f6a-4b7c-9d8e-0f1a2b3c4d5e",    "key": "team_lead",    "name": "Team lead"  }]
    Team API · IoTIndia developers