Skip to main content
https://.thoughtindustries.com

Clients

Returns a paginated list of clients, including each client's courses, learning paths, licenses, appearance settings, and feature flags

Returns a paginated list of clients, including each client's courses, learning paths, licenses, appearance settings, and feature flags.

GEThttps://example.thoughtindustries.com/incoming/v2/clients

Example request

curl "https://example.thoughtindustries.com/incoming/v2/clients" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
querystringNoqueryFilters clients by a search string matched against client name or other indexed fields.
sortstringNoqueryField by which to sort the results, such as name or createdAt.
cursorstringNoqueryOpaque cursor for the next page of results. Omit to fetch the first page.

Example response

{
  "pageInfo": {
    "total": 0,
    "hasMore": true,
    "cursor": "string"
  },
  "clients": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "slug": "string",
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z",
      "tags": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "label": "string"
        }
      ],
      "sku": "string",
      "disabled": true
    }
  ]
}

Response fields

FieldTypeDescription
pageInfoobjectCursor-based pagination metadata for the result set.
pageInfo.totalintegerTotal number of records matching the query.
pageInfo.hasMorebooleanWhether additional pages of results are available.
pageInfo.cursorstringOpaque cursor to pass on the next request. Present when hasMore is true.
clientsobject[]Array of client objects for the current page.
clients.iduuidIdentifier of the client.
clients.namestringName of the client.
clients.slugstringURL slug of the client.
clients.createdAtISO 8601 timestampTimestamp when the client was created.
clients.updatedAtISO 8601 timestampTimestamp when the client was last updated.
clients.tagsobject[]Tags applied to the client.
clients.tags.iduuidIdentifier of the tag.
clients.tags.labelstringDisplay label of the tag.
clients.skustringSKU of the client.
clients.disabledbooleanWhether the client is disabled.