Docs API reference

Certificate designs

Templates for certificates.

A template is a declarative layout of text and image elements with merge fields. Editing a template never changes certificates already issued. See Certificates.

7 endpoints · base path /api/v1

GET/api/v1/certificate-templates#

List certificate designs

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

Lists templates, including archived ones.

Responses

200OK· list of TemplateView
Example response
[
  {
    "backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "layout": {},
    "name": "Acme Company",
    "orientation": "LANDSCAPE",
    "pageSize": "A4",
    "status": "ACTIVE",
    "updatedAt": "2026-11-25T14:03:11Z"
  }
]

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/certificate-templates" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/certificate-templates#

Create a certificate design

AccessAdmin, or an API key with the write scope.

A design is a page size and orientation, an optional background image, and a layout made of elements. Positions and sizes are fractions of the page (0 to 1), so a design works at any page size.

  • TEXT elements: x, y, width, text, and optionally fontSize (6 to 200), align (LEFT, CENTER, RIGHT), bold, color (#rrggbb). Text may contain merge fields such as {{learner.full_name}}.
  • IMAGE elements: x, y, width, height, and assetId of an uploaded image.

Unknown merge fields are rejected, so a typo can never be printed on a certificate. GET /certificate-templates/merge-fields lists the allowed ones.

Request body application/json · TemplateInput

FieldTypeNotes
backgroundAssetIdstring (uuid)—
layoutrequiredJsonNode—
namerequiredstringmin length 1
orientationstringmatches LANDSCAPE|PORTRAIT
pageSizestringmatches A4|LETTER
Example request body
{
  "name": "Classic certificate",
  "pageSize": "A4",
  "orientation": "LANDSCAPE",
  "layout": {
    "elements": [
      {
        "type": "TEXT",
        "x": 0.1,
        "y": 0.3,
        "width": 0.8,
        "text": "{{learner.full_name}}",
        "fontSize": 32,
        "align": "CENTER",
        "bold": true
      },
      {
        "type": "TEXT",
        "x": 0.1,
        "y": 0.5,
        "width": 0.8,
        "text": "completed {{course.title}} on {{issued_on}}",
        "align": "CENTER"
      }
    ]
  }
}

Responses

201Created· TemplateView
Example response
{
  "backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "layout": {},
  "name": "Acme Company",
  "orientation": "LANDSCAPE",
  "pageSize": "A4",
  "status": "ACTIVE",
  "updatedAt": "2026-11-25T14:03:11Z"
}

Errors

StatusWhen
400An unknown merge field, a position outside 0 to 1, a bad colour, or an image that isn't one of your uploaded images.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
409A design with that name already exists.

Errors use RFC 9457 problem details.

curl -X POST "$LMS_URL/api/v1/certificate-templates" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Classic certificate",
  "pageSize": "A4",
  "orientation": "LANDSCAPE",
  "layout": {
    "elements": [
      {
        "type": "TEXT",
        "x": 0.1,
        "y": 0.3,
        "width": 0.8,
        "text": "{{learner.full_name}}",
        "fontSize": 32,
        "align": "CENTER",
        "bold": true
      },
      {
        "type": "TEXT",
        "x": 0.1,
        "y": 0.5,
        "width": 0.8,
        "text": "completed {{course.title}} on {{issued_on}}",
        "align": "CENTER"
      }
    ]
  }
}'
GET/api/v1/certificate-templates/merge-fields#

List merge fields

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

Returns the fields you may use inside {{ }} in certificate text.

Responses

200OK
Example response
[
  "string"
]

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/certificate-templates/merge-fields" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/certificate-templates/{id}#

Get a certificate design

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

Returns one design with its layout.

Parameters

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

Responses

200OK· TemplateView
Example response
{
  "backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "layout": {},
  "name": "Acme Company",
  "orientation": "LANDSCAPE",
  "pageSize": "A4",
  "status": "ACTIVE",
  "updatedAt": "2026-11-25T14:03:11Z"
}

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_TEMPLATE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/certificate-templates/$CERTIFICATE_TEMPLATE_ID" \
  -H "X-API-Key: $LMS_KEY"
PUT/api/v1/certificate-templates/{id}#

Update a certificate design

AccessAdmin, or an API key with the write scope.

Replaces the design. Certificates already issued are not affected: each one snapshots the layout it was issued with.

Parameters

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

Request body application/json · TemplateInput

FieldTypeNotes
backgroundAssetIdstring (uuid)—
layoutrequiredJsonNode—
namerequiredstringmin length 1
orientationstringmatches LANDSCAPE|PORTRAIT
pageSizestringmatches A4|LETTER
Example request body
{
  "backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
  "layout": {},
  "name": "Acme Company",
  "orientation": "LANDSCAPE",
  "pageSize": "A4"
}

Responses

200OK· TemplateView
Example response
{
  "backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "layout": {},
  "name": "Acme Company",
  "orientation": "LANDSCAPE",
  "pageSize": "A4",
  "status": "ACTIVE",
  "updatedAt": "2026-11-25T14:03:11Z"
}

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).

Errors use RFC 9457 problem details.

CERTIFICATE_TEMPLATE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X PUT "$LMS_URL/api/v1/certificate-templates/$CERTIFICATE_TEMPLATE_ID" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
  "layout": {},
  "name": "Acme Company",
  "orientation": "LANDSCAPE",
  "pageSize": "A4"
}'
POST/api/v1/certificate-templates/{id}/archive#

Archive a certificate design

AccessAdmin, or an API key with the write scope.

Archived designs can't be newly chosen for a course. A course whose draft still points at one can't be published until you pick another.

Parameters

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

Responses

200OK· TemplateView
Example response
{
  "backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "layout": {},
  "name": "Acme Company",
  "orientation": "LANDSCAPE",
  "pageSize": "A4",
  "status": "ACTIVE",
  "updatedAt": "2026-11-25T14:03:11Z"
}

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_TEMPLATE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/certificate-templates/$CERTIFICATE_TEMPLATE_ID/archive" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/certificate-templates/{id}/restore#

Restore a certificate design

AccessAdmin, or an API key with the write scope.

Makes an archived design active again.

Parameters

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

Responses

200OK· TemplateView
Example response
{
  "backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "layout": {},
  "name": "Acme Company",
  "orientation": "LANDSCAPE",
  "pageSize": "A4",
  "status": "ACTIVE",
  "updatedAt": "2026-11-25T14:03:11Z"
}

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_TEMPLATE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/certificate-templates/$CERTIFICATE_TEMPLATE_ID/restore" \
  -H "X-API-Key: $LMS_KEY"

Type to search guides and every endpoint.