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

Users

Returns the full profile for a single user, including purchased courses and bundles, license assignments, learning path allocations, meeting attendance, and client configuration

Returns the full profile for a single user, including purchased courses and bundles, license assignments, learning path allocations, meeting attendance, and client configuration.

GEThttps://example.thoughtindustries.com/incoming/v2/users/:id

Example request

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

Parameters

NameTypeRequiredLocationDescription
iduuidYespathUnique identifier of the user to retrieve.

Example response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "learnerUserId": "00000000-0000-0000-0000-000000000000",
  "managerUserId": "00000000-0000-0000-0000-000000000000",
  "clientId": "00000000-0000-0000-0000-000000000000",
  "createdAt": "2024-01-01T00:00:00.000Z",
  "disabled": true,
  "sfAccountId": "00000000-0000-0000-0000-000000000000",
  "sfContactId": "00000000-0000-0000-0000-000000000000",
  "roleKey": "string",
  "address1": "string",
  "address2": "string",
  "city": "string",
  "state": "string",
  "zipCode": "string",
  "telephone": "string",
  "country": "string",
  "stripeCustomerId": "00000000-0000-0000-0000-000000000000",
  "externalCustomerId": "string",
  "shippingName": "string",
  "asset": "string",
  "email": "string",
  "firstName": "string",
  "lastName": "string",
  "lastActiveAt": "2024-01-01T00:00:00.000Z",
  "ref1": "string",
  "ref2": "string",
  "ref3": "string",
  "ref4": "string",
  "ref5": "string",
  "ref6": "string",
  "ref7": "string",
  "ref8": "string",
  "ref9": "string",
  "ref10": "string",
  "language": "string",
  "customFields": {},
  "purchasedBundles": [
    {
      "bundleId": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "allocatedLicenses": [
    {
      "licenseId": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "allocatedLearningPaths": [
    {
      "learningPathId": "00000000-0000-0000-0000-000000000000",
      "status": "string"
    }
  ],
  "purchasedCourses": [
    {
      "courseId": "00000000-0000-0000-0000-000000000000",
      "status": "string"
    }
  ],
  "waitlistedCourses": [
    {
      "courseId": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "balance": 0,
  "preferredCurrency": "string"
}

Response fields

FieldTypeDescription
iduuidUnique identifier of the user.
learnerUserIduuidIdentifier of the associated learner user record, when the user has a dual role.
managerUserIduuidIdentifier of the associated manager user record, when the user has a dual role.
clientIduuidIdentifier of the client (tenant) the user belongs to.
createdAtISO 8601 timestampTimestamp when the user was created.
disabledbooleanWhether the user account is disabled.
sfAccountIduuidSalesforce Account ID associated with the user.
sfContactIduuidSalesforce Contact ID associated with the user.
roleKeystringPlatform role key assigned to the user.
address1stringPrimary street address line.
address2stringSecondary street address line.
citystringCity component of the address.
statestringState or province component of the address.
zipCodestringPostal code component of the address.
telephonestringUser's phone number.
countrystringCountry component of the address.
stripeCustomerIduuidStripe customer identifier for the user.
externalCustomerIdstringIdentifier for the user in an external system.
shippingNamestringName used for shipping physical goods.
assetstringURL of the user's avatar asset.
emailstringUser's email address.
firstNamestringUser's first name.
lastNamestringUser's last name.
lastActiveAtISO 8601 timestampTimestamp of the last recorded user activity.
ref1stringCustom reference field 1 for storing arbitrary external data.
ref2stringCustom reference field 2 for storing arbitrary external data.
ref3stringCustom reference field 3 for storing arbitrary external data.
ref4stringCustom reference field 4 for storing arbitrary external data.
ref5stringCustom reference field 5 for storing arbitrary external data.
ref6stringCustom reference field 6 for storing arbitrary external data.
ref7stringCustom reference field 7 for storing arbitrary external data.
ref8stringCustom reference field 8 for storing arbitrary external data.
ref9stringCustom reference field 9 for storing arbitrary external data.
ref10stringCustom reference field 10 for storing arbitrary external data.
languagestringUser's preferred language (BCP 47 tag). Null for non-learner roles.
customFieldsobjectKey-value pairs for custom profile fields defined on the client.
purchasedBundlesobject[]Bundles the user has purchased.
purchasedBundles.bundleIduuidIdentifier of the purchased bundle.
allocatedLicensesobject[]Licenses allocated to the user.
allocatedLicenses.licenseIduuidIdentifier of the allocated license.
allocatedLearningPathsobject[]Learning paths allocated to the user.
allocatedLearningPaths.learningPathIduuidIdentifier of the allocated learning path.
allocatedLearningPaths.statusstringStatus of the learning path allocation.
purchasedCoursesobject[]Courses the user has purchased.
purchasedCourses.courseIduuidIdentifier of the purchased course.
purchasedCourses.statusstringEnrollment status for the course.
waitlistedCoursesobject[]Courses the user is waitlisted for.
waitlistedCourses.courseIduuidIdentifier of the waitlisted course.
balancenumberUser's current credit balance.
preferredCurrencystringUser's preferred display currency (ISO 4217).