Docs API reference

Certificates

Issued certificates, PDFs and public verification.

Certificates are issued automatically when a course with a template is completed. Anyone can verify one from its code, with no sign-in. See Certificates.

5 endpoints · base path /api/v1

GET/api/v1/certificates#

List certificates

AccessAdmin, or an API key with the read or write scope.

Lists issued certificates, newest first. Filter by userId, courseId and status (VALID, EXPIRED, REVOKED).

Parameters

NameInTypeNotes
userIdquerystring (uuid)—
courseIdquerystring (uuid)—
statusquerystringmatches VALID|EXPIRED|REVOKED

Responses

200OK· list of CertificateView
Example response
[
  {
    "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
    "courseTitle": "Workplace Safety Essentials",
    "enrollmentId": "8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8",
    "expiresAt": "2026-11-25T14:03:11Z",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "issuedAt": "2026-11-25T14:03:11Z",
    "learnerName": "Maya Chen",
    "revokedAt": "2026-11-25T14:03:11Z",
    "revokedReason": "string",
    "serial": "NBL-K7PQ-2X9M",
    "status": "ACTIVE",
    "userId": "11f967df-4272-482f-ac0b-7bea76dd8093",
    "verificationCode": "q8sV2k…",
    "verificationUrl": "https://learn.example.com/verify/q8sV2k…"
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.

Errors use RFC 9457 problem details.

curl -X GET "$LMS_URL/api/v1/certificates?userId=11f967df-4272-482f-ac0b-7bea76dd8093&courseId=ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/certificates/{id}#

Get a certificate

AccessAdmin, or an API key with the read or write scope.

Returns one certificate with its serial, verification code and public verification link.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

Example response
{
  "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
  "courseTitle": "Workplace Safety Essentials",
  "enrollmentId": "8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8",
  "expiresAt": "2026-11-25T14:03:11Z",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "issuedAt": "2026-11-25T14:03:11Z",
  "learnerName": "Maya Chen",
  "revokedAt": "2026-11-25T14:03:11Z",
  "revokedReason": "string",
  "serial": "NBL-K7PQ-2X9M",
  "status": "ACTIVE",
  "userId": "11f967df-4272-482f-ac0b-7bea76dd8093",
  "verificationCode": "q8sV2k…",
  "verificationUrl": "https://learn.example.com/verify/q8sV2k…"
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

CERTIFICATE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/certificates/$CERTIFICATE_ID" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/certificates/{id}/pdf#

Download a certificate PDF

AccessAdmin, or an API key with the read or write scope.

Renders the certificate from its issued snapshot, so it looks exactly as it did when issued even if the design has changed since. Staff can download revoked certificates too.

PDFs are set in an embedded Inter font: Latin (including accented and Vietnamese), Greek and Cyrillic work; Chinese, Japanese, Korean, Arabic, Hebrew and Thai print as ?.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

200OK
Example response
"string"

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

CERTIFICATE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/certificates/$CERTIFICATE_ID/pdf" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/certificates/{id}/revoke#

Revoke a certificate

AccessAdmin, or an API key with the write scope.

Marks the certificate revoked with a reason. Verification then reports REVOKED, and the learner can no longer download it. Emits certificate.revoked.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Request body application/json · Revoke

FieldTypeNotes
reasonrequiredstringmin length 1
Example request body
{
  "reason": "Issued in error"
}

Responses

Example response
{
  "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
  "courseTitle": "Workplace Safety Essentials",
  "enrollmentId": "8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8",
  "expiresAt": "2026-11-25T14:03:11Z",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "issuedAt": "2026-11-25T14:03:11Z",
  "learnerName": "Maya Chen",
  "revokedAt": "2026-11-25T14:03:11Z",
  "revokedReason": "string",
  "serial": "NBL-K7PQ-2X9M",
  "status": "ACTIVE",
  "userId": "11f967df-4272-482f-ac0b-7bea76dd8093",
  "verificationCode": "q8sV2k…",
  "verificationUrl": "https://learn.example.com/verify/q8sV2k…"
}

Errors

StatusWhen
400The request was malformed or failed validation. errors lists each field.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409It is already revoked.

Errors use RFC 9457 problem details.

CERTIFICATE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/certificates/$CERTIFICATE_ID/revoke" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Issued in error"
}'
GET/api/v1/public/certificates/{code}#

Verify a certificate

AccessPublic. No credentials needed.

Public, no sign-in. Anyone with a certificate's verification code can check it. The response reveals only what a verifier needs: validity, status, serial, learner name, course, issuer and dates. It never includes an email address or internal ids.

Parameters

NameInTypeNotes
coderequiredpathstringThe id from a previous response.

Responses

200OK· Verification
Example response
{
  "courseTitle": "Workplace Safety Essentials",
  "expiresAt": "2026-11-25T14:03:11Z",
  "issuedAt": "2026-11-25T14:03:11Z",
  "issuedBy": "string",
  "learnerName": "Maya Chen",
  "serial": "NBL-K7PQ-2X9M",
  "status": "ACTIVE",
  "valid": true
}

Errors

StatusWhen
404No certificate has that code.

Errors use RFC 9457 problem details.

CODE=string
curl -X GET "$LMS_URL/api/v1/public/certificates/$CODE"

Type to search guides and every endpoint.