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

Certify

Manually certifies a user against a course, learning path, or other supported resource, returning the resulting certificate record

Manually certifies a user against a course, learning path, or other supported resource, returning the resulting certificate record.

POSThttps://example.thoughtindustries.com/incoming/v2/users/:id/certify

Example request

curl -X POST "https://example.thoughtindustries.com/incoming/v2/users/:id/certify" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "resourceType": "string",
  "resourceId": "00000000-0000-0000-0000-000000000000",
  "expirationDate": "string"
}'

Parameters

NameTypeRequiredLocationDescription
iduuidYespathUnique identifier of the user to certify.
resourceTypeCertificateResourceTypeYesbodyThe type of resource the certificate is issued against (e.g., course, learning path).
resourceIduuidYesbodyUnique identifier of the resource the certificate is issued against.
expirationDateISO 8601 timestampNobodyDate and time at which the certificate expires, as an ISO 8601 timestamp.
sendEmailbooleanNobodyWhen true, sends a certificate notification email to the user.
issuedAtISO 8601 timestampNobodyDate and time the certificate was issued, as an ISO 8601 timestamp. Defaults to the current time if omitted.
recertificationDateISO 8601 timestampNobodyDate and time by which the user must recertify, as an ISO 8601 timestamp.

Example response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "issuedAt": "2024-01-01T00:00:00.000Z",
  "url": "https://example.com/path",
  "resourceId": "00000000-0000-0000-0000-000000000000",
  "resourceType": "string",
  "expirationDate": "2024-01-01T00:00:00.000Z",
  "recertificationDate": "2024-01-01T00:00:00.000Z",
  "pdfAsset": "https://example.com/path",
  "user": {
    "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": "00000000-0000-0000-0000-000000000000",
    "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 certificate record.
issuedAtISO 8601 timestampDate and time the certificate was issued.
urlstringURL where the certificate can be viewed.
resourceIduuidUnique identifier of the resource the certificate was issued against.
resourceTypeCertificateResourceTypeType of resource the certificate was issued against.
expirationDateISO 8601 timestampDate and time at which the certificate expires.
recertificationDateISO 8601 timestampDate and time by which the user must recertify.
pdfAssetstringURL of the certificate's PDF asset.
userUserThe certified user.
user.iduuidUnique identifier of the user.
user.learnerUserIduuidIdentifier of the learner-facing user record, if distinct from the admin/manager record.
user.managerUserIduuidIdentifier of the user's manager, if any.
user.clientIduuidIdentifier of the client the user belongs to.
user.createdAtISO 8601 timestampDate and time the user was created.
user.disabledbooleanIndicates whether the user account is disabled.
user.sfAccountIduuidAssociated Salesforce account identifier.
user.sfContactIduuidAssociated Salesforce contact identifier.
user.roleKeystringThe user's role.
user.address1stringFirst line of the user's address.
user.address2stringSecond line of the user's address.
user.citystringCity of the user's address.
user.statestringState or region of the user's address.
user.zipCodestringPostal code of the user's address.
user.telephonestringThe user's telephone number.
user.countrystringCountry of the user's address.
user.stripeCustomerIduuidAssociated Stripe customer identifier.
user.externalCustomerIduuidExternal customer identifier associated with the user.
user.shippingNamestringName used for shipping physical goods to the user.
user.assetstringURL of the user's profile image.
user.emailstringEmail address of the user.
user.firstNamestringFirst name of the user.
user.lastNamestringLast name of the user.
user.lastActiveAtISO 8601 timestampDate and time the user was last active.
user.ref1stringCustom reference field 1 associated with the user.
user.ref2stringCustom reference field 2 associated with the user.
user.ref3stringCustom reference field 3 associated with the user.
user.ref4stringCustom reference field 4 associated with the user.
user.ref5stringCustom reference field 5 associated with the user.
user.ref6stringCustom reference field 6 associated with the user.
user.ref7stringCustom reference field 7 associated with the user.
user.ref8stringCustom reference field 8 associated with the user.
user.ref9stringCustom reference field 9 associated with the user.
user.ref10stringCustom reference field 10 associated with the user.
user.languagestringThe user's preferred language.
user.customFieldsobjectKey-value map of custom fields defined for the user.
user.purchasedBundlesobject[]Bundles the user has purchased.
user.purchasedBundles.bundleIduuidIdentifier of the purchased bundle.
user.allocatedLicensesobject[]Licenses allocated to the user.
user.allocatedLicenses.licenseIduuidIdentifier of the allocated license.
user.allocatedLearningPathsobject[]Learning paths allocated to the user.
user.allocatedLearningPaths.learningPathIduuidIdentifier of the allocated learning path.
user.allocatedLearningPaths.statusstringThe user's status on the allocated learning path.
user.purchasedCoursesobject[]Courses the user has purchased.
user.purchasedCourses.courseIduuidIdentifier of the purchased course.
user.purchasedCourses.statusstringThe user's status on the purchased course.
user.waitlistedCoursesobject[]Courses the user is waitlisted for.
user.waitlistedCourses.courseIduuidIdentifier of the waitlisted course.
user.balanceintegerThe user's current account balance.
user.preferredCurrencystringThe user's preferred currency.