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

Show Licenses

Returns a paginated list of licenses associated with a client

Returns a paginated list of licenses associated with a client.

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

Example request

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

Parameters

NameTypeRequiredLocationDescription
idstringYespathThe id identifier.
clientIduuidYesqueryThe UUID of the client whose licenses to retrieve.
cursorstringNoqueryOpaque cursor for the next page of results. Omit to fetch the first page.

Example response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "sku": "string",
  "pageInfo": {
    "total": 0,
    "hasMore": true,
    "cursor": "string"
  },
  "licenses": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "sku": "string",
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z",
      "accessDays": 0,
      "expirationDate": "2024-01-01T00:00:00.000Z",
      "seatsLimit": 0,
      "learningPathIds": [
        "00000000-0000-0000-0000-000000000000"
      ],
      "courseIds": [
        "00000000-0000-0000-0000-000000000000"
      ],
      "courseTags": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "label": "string"
        }
      ],
      "parentLicenseId": "00000000-0000-0000-0000-000000000000",
      "ref1": "string",
      "ref2": "string",
      "ref3": "string",
      "ref4": "string",
      "ref5": "string",
      "ref6": "string",
      "ref7": "string",
      "ref8": "string",
      "ref9": "string",
      "ref10": "string"
    }
  ]
}

Response fields

FieldTypeDescription
iduuidIdentifier of the client whose licenses are returned.
namestringName of the client.
skustringSKU of the client.
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.
licensesobject[]Array of license objects for the current page.
licenses.iduuidIdentifier of the license.
licenses.namestringName of the license.
licenses.skustringSKU of the license.
licenses.createdAtISO 8601 timestampTimestamp when the license was created.
licenses.updatedAtISO 8601 timestampTimestamp when the license was last updated.
licenses.accessDaysintegerNumber of access days granted by the license.
licenses.expirationDateISO 8601 timestampExpiration date of the license.
licenses.seatsLimitintegerMaximum number of seats on the license.
licenses.learningPathIdsuuid[]Identifiers of learning paths granted by the license.
licenses.courseIdsuuid[]Identifiers of courses granted by the license.
licenses.courseTagsobject[]Course tags granted by the license.
licenses.courseTags.iduuidIdentifier of the tag.
licenses.courseTags.labelstringDisplay label of the tag.
licenses.parentLicenseIduuidIdentifier of the parent license, when nested.
licenses.ref1stringCustom reference field 1 on the license.
licenses.ref2stringCustom reference field 2 on the license.
licenses.ref3stringCustom reference field 3 on the license.
licenses.ref4stringCustom reference field 4 on the license.
licenses.ref5stringCustom reference field 5 on the license.
licenses.ref6stringCustom reference field 6 on the license.
licenses.ref7stringCustom reference field 7 on the license.
licenses.ref8stringCustom reference field 8 on the license.
licenses.ref9stringCustom reference field 9 on the license.
licenses.ref10stringCustom reference field 10 on the license.