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
List certificate designs
AccessAdmin, or an API key with the read or write scope.
Lists templates, including archived ones.
Responses
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
| Status | When |
|---|---|
| 401 | Missing, invalid or expired credentials. |
| 403 | Your 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"const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
res = requests.get(f"{LMS_URL}/api/v1/certificate-templates", headers=HEADERS, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/certificate-templates"))
.header("X-API-Key", lmsKey)
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
uri = URI("#{lms_url}/api/v1/certificate-templates")
request = Net::HTTP::Get.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"))
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$ch = curl_init("$lmsUrl/api/v1/certificate-templates");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY')],
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", os.Getenv("LMS_URL") + "/api/v1/certificate-templates", nil)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}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.
TEXTelements:x,y,width,text, and optionallyfontSize(6 to 200),align(LEFT,CENTER,RIGHT),bold,color(#rrggbb). Text may contain merge fields such as{{learner.full_name}}.IMAGEelements:x,y,width,height, andassetIdof 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
| Field | Type | Notes |
|---|---|---|
| backgroundAssetId | string (uuid) | — |
| layoutrequired | JsonNode | — |
| namerequired | string | min length 1 |
| orientation | string | matches LANDSCAPE|PORTRAIT |
| pageSize | string | matches 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
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
| Status | When |
|---|---|
| 400 | An unknown merge field, a position outside 0 to 1, a bad colour, or an image that isn't one of your uploaded images. |
| 401 | Missing, invalid or expired credentials. |
| 403 | Your credential is valid but isn't allowed to do this. |
| 409 | A 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"
}
]
}
}'const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates`, {
method: 'POST',
headers: { "X-API-Key": LMS_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"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"
}
]
}
}),
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates`, {
method: 'POST',
headers: { "X-API-Key": LMS_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"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"
}
]
}
}),
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
res = requests.post(f"{LMS_URL}/api/v1/certificate-templates", headers=HEADERS, json={
"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",
},
],
},
}, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
String 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"
}
]
}
}
""";
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/certificate-templates"))
.header("X-API-Key", lmsKey)
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
uri = URI("#{lms_url}/api/v1/certificate-templates")
request = Net::HTTP::Post.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"), "Content-Type" => "application/json")
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",
},
],
},
}.to_json
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$ch = curl_init("$lmsUrl/api/v1/certificate-templates");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
"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",
],
],
],
]),
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{
"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"
}
]
}
}`)
req, _ := http.NewRequest("POST", os.Getenv("LMS_URL") + "/api/v1/certificate-templates", body)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}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
Example response
[
"string"
]Errors
| Status | When |
|---|---|
| 401 | Missing, invalid or expired credentials. |
| 403 | Your 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"const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/merge-fields`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/merge-fields`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
res = requests.get(f"{LMS_URL}/api/v1/certificate-templates/merge-fields", headers=HEADERS, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/certificate-templates/merge-fields"))
.header("X-API-Key", lmsKey)
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
uri = URI("#{lms_url}/api/v1/certificate-templates/merge-fields")
request = Net::HTTP::Get.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"))
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$ch = curl_init("$lmsUrl/api/v1/certificate-templates/merge-fields");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY')],
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", os.Getenv("LMS_URL") + "/api/v1/certificate-templates/merge-fields", nil)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}Get a certificate design
AccessAdmin, or an API key with the read or write scope.
Returns one design with its layout.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
| idrequired | path | string (uuid) | The id from a previous response. |
Responses
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
| Status | When |
|---|---|
| 401 | Missing, invalid or expired credentials. |
| 403 | Your credential is valid but isn't allowed to do this. |
| 404 | It 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"const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/${certificateTemplateId}`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/${certificateTemplateId}`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
certificate_template_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
res = requests.get(f"{LMS_URL}/api/v1/certificate-templates/{certificate_template_id}", headers=HEADERS, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
String certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560";
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/certificate-templates/" + certificateTemplateId))
.header("X-API-Key", lmsKey)
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
certificate_template_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
uri = URI("#{lms_url}/api/v1/certificate-templates/#{certificate_template_id}")
request = Net::HTTP::Get.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"))
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560";
$ch = curl_init("$lmsUrl/api/v1/certificate-templates/{$certificateTemplateId}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY')],
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
certificateTemplateId := "37386ae0-0ea5-44e0-a02e-161f807af560"
req, _ := http.NewRequest("GET", os.Getenv("LMS_URL") + "/api/v1/certificate-templates/" + certificateTemplateId, nil)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}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
| Name | In | Type | Notes |
|---|---|---|---|
| idrequired | path | string (uuid) | The id from a previous response. |
Request body application/json · TemplateInput
| Field | Type | Notes |
|---|---|---|
| backgroundAssetId | string (uuid) | — |
| layoutrequired | JsonNode | — |
| namerequired | string | min length 1 |
| orientation | string | matches LANDSCAPE|PORTRAIT |
| pageSize | string | matches A4|LETTER |
Example request body
{
"backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
"layout": {},
"name": "Acme Company",
"orientation": "LANDSCAPE",
"pageSize": "A4"
}Responses
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
| Status | When |
|---|---|
| 400 | The request was malformed or failed validation. errors lists each field. |
| 401 | Missing, invalid or expired credentials. |
| 403 | Your credential is valid but isn't allowed to do this. |
| 404 | It 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"
}'const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/${certificateTemplateId}`, {
method: 'PUT',
headers: { "X-API-Key": LMS_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
"layout": {},
"name": "Acme Company",
"orientation": "LANDSCAPE",
"pageSize": "A4"
}),
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/${certificateTemplateId}`, {
method: 'PUT',
headers: { "X-API-Key": LMS_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
"layout": {},
"name": "Acme Company",
"orientation": "LANDSCAPE",
"pageSize": "A4"
}),
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
certificate_template_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
res = requests.put(f"{LMS_URL}/api/v1/certificate-templates/{certificate_template_id}", headers=HEADERS, json={
"backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
"layout": {},
"name": "Acme Company",
"orientation": "LANDSCAPE",
"pageSize": "A4",
}, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
String certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560";
String body = """
{
"backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
"layout": {},
"name": "Acme Company",
"orientation": "LANDSCAPE",
"pageSize": "A4"
}
""";
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/certificate-templates/" + certificateTemplateId))
.header("X-API-Key", lmsKey)
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString(body))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
certificate_template_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
uri = URI("#{lms_url}/api/v1/certificate-templates/#{certificate_template_id}")
request = Net::HTTP::Put.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"), "Content-Type" => "application/json")
request.body = {
"backgroundAssetId" => "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
"layout" => {},
"name" => "Acme Company",
"orientation" => "LANDSCAPE",
"pageSize" => "A4",
}.to_json
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560";
$ch = curl_init("$lmsUrl/api/v1/certificate-templates/{$certificateTemplateId}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
"backgroundAssetId" => "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
"layout" => [],
"name" => "Acme Company",
"orientation" => "LANDSCAPE",
"pageSize" => "A4",
]),
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
certificateTemplateId := "37386ae0-0ea5-44e0-a02e-161f807af560"
body := strings.NewReader(`{
"backgroundAssetId": "8ecbc9ce-8c8a-456e-ab33-5b917c3e0ff6",
"layout": {},
"name": "Acme Company",
"orientation": "LANDSCAPE",
"pageSize": "A4"
}`)
req, _ := http.NewRequest("PUT", os.Getenv("LMS_URL") + "/api/v1/certificate-templates/" + certificateTemplateId, body)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}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
| Name | In | Type | Notes |
|---|---|---|---|
| idrequired | path | string (uuid) | The id from a previous response. |
Responses
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
| Status | When |
|---|---|
| 401 | Missing, invalid or expired credentials. |
| 403 | Your credential is valid but isn't allowed to do this. |
| 404 | It 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"const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/${certificateTemplateId}/archive`, {
method: 'POST',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/${certificateTemplateId}/archive`, {
method: 'POST',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
certificate_template_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
res = requests.post(f"{LMS_URL}/api/v1/certificate-templates/{certificate_template_id}/archive", headers=HEADERS, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
String certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560";
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/certificate-templates/" + certificateTemplateId + "/archive"))
.header("X-API-Key", lmsKey)
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
certificate_template_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
uri = URI("#{lms_url}/api/v1/certificate-templates/#{certificate_template_id}/archive")
request = Net::HTTP::Post.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"))
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560";
$ch = curl_init("$lmsUrl/api/v1/certificate-templates/{$certificateTemplateId}/archive");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY')],
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
certificateTemplateId := "37386ae0-0ea5-44e0-a02e-161f807af560"
req, _ := http.NewRequest("POST", os.Getenv("LMS_URL") + "/api/v1/certificate-templates/" + certificateTemplateId + "/archive", nil)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}Restore a certificate design
AccessAdmin, or an API key with the write scope.
Makes an archived design active again.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
| idrequired | path | string (uuid) | The id from a previous response. |
Responses
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
| Status | When |
|---|---|
| 401 | Missing, invalid or expired credentials. |
| 403 | Your credential is valid but isn't allowed to do this. |
| 404 | It 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"const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/${certificateTemplateId}/restore`, {
method: 'POST',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/certificate-templates/${certificateTemplateId}/restore`, {
method: 'POST',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
certificate_template_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
res = requests.post(f"{LMS_URL}/api/v1/certificate-templates/{certificate_template_id}/restore", headers=HEADERS, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
String certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560";
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/certificate-templates/" + certificateTemplateId + "/restore"))
.header("X-API-Key", lmsKey)
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
certificate_template_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
uri = URI("#{lms_url}/api/v1/certificate-templates/#{certificate_template_id}/restore")
request = Net::HTTP::Post.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"))
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$certificateTemplateId = "37386ae0-0ea5-44e0-a02e-161f807af560";
$ch = curl_init("$lmsUrl/api/v1/certificate-templates/{$certificateTemplateId}/restore");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY')],
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
certificateTemplateId := "37386ae0-0ea5-44e0-a02e-161f807af560"
req, _ := http.NewRequest("POST", os.Getenv("LMS_URL") + "/api/v1/certificate-templates/" + certificateTemplateId + "/restore", nil)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}