Guide menu · API reference
API guide
API reference
Every request, with examples you can try.
Each request below shows its parameters, the request in four languages and the answer you get back. Open Try it to send it with your own key: the key stays in this browser tab and goes only to this site.
The document
#Requests about documents answer with this object, and so do the document webhooks. Every field is always present; some may be null.
Fields
-
idstring - The public reference, the same one in the QR code and the verification address.
-
statusstring - What a verifier sees: valid, expired or revoked. A document is valid through the whole of its expiry date.
-
typestring - generated, made from a template, or uploaded, a PDF your organization uploaded with a QR code added.
-
titlestring - For example the course or the letter's subject.
-
recipient_namestring - Who the document is for.
-
recipient_emailstring or null - Where the holder was emailed, if anywhere.
-
fieldsobject - Extra values printed through your template's placeholders. Empty when there are none.
-
issued_atdate - YYYY-MM-DD.
-
expires_atdate or null - YYYY-MM-DD, or null if it never expires.
-
revoked_atdate-time or null - When it was revoked.
-
revoked_reasonstring or null - Shown on the verification page.
-
template_idstring or null - The template it was made from. null for uploaded PDFs.
-
replacesstring or null - The id of the document this one corrects.
-
verification_urlstring - The public page anyone can open to check it.
-
file_sha256string - The SHA-256 fingerprint of the exact PDF. The verification page compares uploads against it.
-
created_atdate-time - When it was recorded.
{
"id": "rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"object": "document",
"type": "generated",
"status": "valid",
"title": "Certificate in First Aid",
"recipient_name": "Ada Lovelace",
"recipient_email": "[email protected]",
"fields": {
"grade": "Distinction"
},
"issued_at": "2026-03-01",
"expires_at": "2028-03-01",
"revoked_at": null,
"revoked_reason": null,
"template_id": "01m7p0nr39388waqvbw0radjxa",
"replaces": null,
"verification_url": "https://truesealed.com/v/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"file_sha256": "3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b",
"created_at": "2026-03-01T09:30:00+00:00"
}
Templates
List templates
#
GET
/api/v1/templates
The templates your organization can issue from, sorted by name. Pass an id as template_id when you issue a document.
Try it
Request
curl 'https://truesealed.com/api/v1/templates' \
-H "Authorization: Bearer $SEALCHECK_API_KEY" \
-H 'Accept: application/json'
<?php
require 'vendor/autoload.php'; // composer require guzzlehttp/guzzle
$client = new GuzzleHttp\Client([
'base_uri' => 'https://truesealed.com/api/v1/',
'headers' => [
'Authorization' => 'Bearer '.getenv('SEALCHECK_API_KEY'),
'Accept' => 'application/json',
],
]);
$response = $client->get('templates');
$result = json_decode((string) $response->getBody(), true);
// Node.js 18 or later
const response = await fetch('https://truesealed.com/api/v1/templates', {
headers: {
Authorization: `Bearer ${process.env.SEALCHECK_API_KEY}`,
Accept: 'application/json',
},
});
const result = await response.json();
import os
import requests # pip install requests
response = requests.get(
"https://truesealed.com/api/v1/templates",
headers={
"Authorization": f"Bearer {os.environ['SEALCHECK_API_KEY']}",
"Accept": "application/json",
},
)
result = response.json()
{
"data": [
{
"id": "01m7p0nr39388waqvbw0radjxa",
"object": "template",
"name": "Certificate",
"orientation": "landscape"
}
]
}
Documents
List documents
#
GET
/api/v1/documents
Your organization's documents, newest first, one page at a time.
Follow links.next until it is null to read every page.
Query
-
statusstring Optional - Only documents with this status: valid, expired or revoked.
-
searchstring Optional - Matches the recipient's name or email, the title, or the reference. Up to 100 characters.
-
per_pageinteger Optional - How many on each page, 1 to 100. Default 25.
-
pageinteger Optional - Which page. Default 1.
Try it
Request
curl 'https://truesealed.com/api/v1/documents?status=valid&per_page=10' \
-H "Authorization: Bearer $SEALCHECK_API_KEY" \
-H 'Accept: application/json'
<?php
require 'vendor/autoload.php'; // composer require guzzlehttp/guzzle
$client = new GuzzleHttp\Client([
'base_uri' => 'https://truesealed.com/api/v1/',
'headers' => [
'Authorization' => 'Bearer '.getenv('SEALCHECK_API_KEY'),
'Accept' => 'application/json',
],
]);
$response = $client->get('documents', [
'query' => [
'status' => 'valid',
'per_page' => '10',
],
]);
$result = json_decode((string) $response->getBody(), true);
// Node.js 18 or later
const response = await fetch('https://truesealed.com/api/v1/documents?status=valid&per_page=10', {
headers: {
Authorization: `Bearer ${process.env.SEALCHECK_API_KEY}`,
Accept: 'application/json',
},
});
const result = await response.json();
import os
import requests # pip install requests
response = requests.get(
"https://truesealed.com/api/v1/documents",
headers={
"Authorization": f"Bearer {os.environ['SEALCHECK_API_KEY']}",
"Accept": "application/json",
},
params={
"status": "valid",
"per_page": "10",
},
)
result = response.json()
{
"data": [
{
"id": "rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"object": "document",
"type": "generated",
"status": "valid",
"title": "Certificate in First Aid",
"recipient_name": "Ada Lovelace",
"recipient_email": "[email protected]",
"fields": {
"grade": "Distinction"
},
"issued_at": "2026-03-01",
"expires_at": "2028-03-01",
"revoked_at": null,
"revoked_reason": null,
"template_id": "01m7p0nr39388waqvbw0radjxa",
"replaces": null,
"verification_url": "https://truesealed.com/v/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"file_sha256": "3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b",
"created_at": "2026-03-01T09:30:00+00:00"
}
],
"meta": {
"current_page": 1,
"last_page": 6,
"per_page": 1,
"total": 6
},
"links": {
"next": "https://truesealed.com/api/v1/documents?status=valid&per_page=1&page=2",
"prev": null
}
}
Other responses
{
"message": "The selected status is invalid.",
"errors": {
"status": [
"The selected status is invalid."
]
}
}
Issue a document
#
POST
/api/v1/documents
Makes the PDF from a template, with its QR code, stores it and records its fingerprint. If you give an email address, the holder is emailed their document.
Send an Idempotency-Key so that a retried request cannot issue the same document twice. Within 24 hours, the same key with the same details returns the first document with 200 and Idempotent-Replayed: true. The same key with different details is refused.
Your organization must be verified to issue. Until then the answer is 403, with the reason in message.
Headers
-
Idempotency-Keystring Optional - Unique per document you mean to issue, such as your own record id. 1 to 255 characters.
Body
-
recipient_namestring Required - Who the document is for. Up to 255 characters.
-
titlestring Required - For example the course or the letter's subject. Up to 255 characters.
-
recipient_emailstring Optional - If given, the holder is emailed their document.
-
template_idstring Optional - From List templates. Defaults to your oldest template.
-
issued_atdate Optional - YYYY-MM-DD. Defaults to today.
-
expires_atdate Optional - YYYY-MM-DD, on or after issued_at. Leave out for no expiry.
-
fieldsobject Optional - Extra values for your template's placeholders, such as {"grade": "A"} for {{grade}}. Up to 30 text values of up to 500 characters; names up to 60 characters.
Try it
Request
curl -X POST 'https://truesealed.com/api/v1/documents' \
-H "Authorization: Bearer $SEALCHECK_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: enrolment-48213' \
-d '{
"recipient_name": "Ada Lovelace",
"recipient_email": "[email protected]",
"title": "Certificate in First Aid",
"template_id": "01m7p0nr39388waqvbw0radjxa",
"expires_at": "2028-03-01",
"fields": {
"grade": "Distinction"
}
}'
<?php
require 'vendor/autoload.php'; // composer require guzzlehttp/guzzle
$client = new GuzzleHttp\Client([
'base_uri' => 'https://truesealed.com/api/v1/',
'headers' => [
'Authorization' => 'Bearer '.getenv('SEALCHECK_API_KEY'),
'Accept' => 'application/json',
],
]);
$response = $client->post('documents', [
'headers' => [
'Idempotency-Key' => 'enrolment-48213',
],
'json' => [
'recipient_name' => 'Ada Lovelace',
'recipient_email' => '[email protected]',
'title' => 'Certificate in First Aid',
'template_id' => '01m7p0nr39388waqvbw0radjxa',
'expires_at' => '2028-03-01',
'fields' => [
'grade' => 'Distinction',
],
],
]);
$result = json_decode((string) $response->getBody(), true);
// Node.js 18 or later
const response = await fetch('https://truesealed.com/api/v1/documents', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SEALCHECK_API_KEY}`,
Accept: 'application/json',
'Content-Type': 'application/json',
'Idempotency-Key': 'enrolment-48213',
},
body: JSON.stringify({
"recipient_name": "Ada Lovelace",
"recipient_email": "[email protected]",
"title": "Certificate in First Aid",
"template_id": "01m7p0nr39388waqvbw0radjxa",
"expires_at": "2028-03-01",
"fields": {
"grade": "Distinction"
}
}),
});
const result = await response.json();
import os
import requests # pip install requests
response = requests.post(
"https://truesealed.com/api/v1/documents",
headers={
"Authorization": f"Bearer {os.environ['SEALCHECK_API_KEY']}",
"Accept": "application/json",
"Idempotency-Key": "enrolment-48213",
},
json={
"recipient_name": "Ada Lovelace",
"recipient_email": "[email protected]",
"title": "Certificate in First Aid",
"template_id": "01m7p0nr39388waqvbw0radjxa",
"expires_at": "2028-03-01",
"fields": {
"grade": "Distinction",
},
},
)
result = response.json()
{
"data": {
"id": "rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"object": "document",
"type": "generated",
"status": "valid",
"title": "Certificate in First Aid",
"recipient_name": "Ada Lovelace",
"recipient_email": "[email protected]",
"fields": {
"grade": "Distinction"
},
"issued_at": "2026-03-01",
"expires_at": "2028-03-01",
"revoked_at": null,
"revoked_reason": null,
"template_id": "01m7p0nr39388waqvbw0radjxa",
"replaces": null,
"verification_url": "https://truesealed.com/v/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"file_sha256": "3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b",
"created_at": "2026-03-01T09:30:00+00:00"
}
}
Other responses
{
"message": "The recipient name field is required.",
"errors": {
"recipient_name": [
"The recipient name field is required."
]
}
}
{
"message": "Your organization is waiting for verification. You can issue documents once it is verified."
}
Get a document
#
GET
/api/v1/documents/{id}
One document, with a link to download its PDF.
download_url works for a few minutes. Ask again when you need a fresh one.
Path
-
idstring Required - The document's public reference, as printed in its QR code. 32 characters.
Try it
Request
curl 'https://truesealed.com/api/v1/documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2' \
-H "Authorization: Bearer $SEALCHECK_API_KEY" \
-H 'Accept: application/json'
<?php
require 'vendor/autoload.php'; // composer require guzzlehttp/guzzle
$client = new GuzzleHttp\Client([
'base_uri' => 'https://truesealed.com/api/v1/',
'headers' => [
'Authorization' => 'Bearer '.getenv('SEALCHECK_API_KEY'),
'Accept' => 'application/json',
],
]);
$response = $client->get('documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2');
$result = json_decode((string) $response->getBody(), true);
// Node.js 18 or later
const response = await fetch('https://truesealed.com/api/v1/documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2', {
headers: {
Authorization: `Bearer ${process.env.SEALCHECK_API_KEY}`,
Accept: 'application/json',
},
});
const result = await response.json();
import os
import requests # pip install requests
response = requests.get(
"https://truesealed.com/api/v1/documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
headers={
"Authorization": f"Bearer {os.environ['SEALCHECK_API_KEY']}",
"Accept": "application/json",
},
)
result = response.json()
{
"data": {
"id": "rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"object": "document",
"type": "generated",
"status": "valid",
"title": "Certificate in First Aid",
"recipient_name": "Ada Lovelace",
"recipient_email": "[email protected]",
"fields": {
"grade": "Distinction"
},
"issued_at": "2026-03-01",
"expires_at": "2028-03-01",
"revoked_at": null,
"revoked_reason": null,
"template_id": "01m7p0nr39388waqvbw0radjxa",
"replaces": null,
"verification_url": "https://truesealed.com/v/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"file_sha256": "3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b",
"created_at": "2026-03-01T09:30:00+00:00",
"download_url": "https://truesealed.com/storage/organizations/…/documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2.pdf?expires=1795275843&signature=…"
}
}
Other responses
{
"message": "Not Found"
}
Revoke a document
#
POST
/api/v1/documents/{id}/revoke
Withdraws a document for good. Its verification page shows it as revoked, with the date and your reason. Revoking cannot be undone.
To correct a document instead, revoke it and issue a new one.
Path
-
idstring Required - The document's public reference, as printed in its QR code. 32 characters.
Body
-
reasonstring Required - Shown on the verification page. Up to 1,000 characters.
Try it
Request
curl -X POST 'https://truesealed.com/api/v1/documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2/revoke' \
-H "Authorization: Bearer $SEALCHECK_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"reason": "Issued in error"
}'
<?php
require 'vendor/autoload.php'; // composer require guzzlehttp/guzzle
$client = new GuzzleHttp\Client([
'base_uri' => 'https://truesealed.com/api/v1/',
'headers' => [
'Authorization' => 'Bearer '.getenv('SEALCHECK_API_KEY'),
'Accept' => 'application/json',
],
]);
$response = $client->post('documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2/revoke', [
'json' => [
'reason' => 'Issued in error',
],
]);
$result = json_decode((string) $response->getBody(), true);
// Node.js 18 or later
const response = await fetch('https://truesealed.com/api/v1/documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2/revoke', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SEALCHECK_API_KEY}`,
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"reason": "Issued in error"
}),
});
const result = await response.json();
import os
import requests # pip install requests
response = requests.post(
"https://truesealed.com/api/v1/documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2/revoke",
headers={
"Authorization": f"Bearer {os.environ['SEALCHECK_API_KEY']}",
"Accept": "application/json",
},
json={
"reason": "Issued in error",
},
)
result = response.json()
{
"data": {
"id": "rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"object": "document",
"type": "generated",
"status": "revoked",
"title": "Certificate in First Aid",
"recipient_name": "Ada Lovelace",
"recipient_email": "[email protected]",
"fields": {
"grade": "Distinction"
},
"issued_at": "2026-03-01",
"expires_at": "2028-03-01",
"revoked_at": "2026-04-12T14:05:00+00:00",
"revoked_reason": "Issued in error",
"template_id": "01m7p0nr39388waqvbw0radjxa",
"replaces": null,
"verification_url": "https://truesealed.com/v/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2",
"file_sha256": "3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b",
"created_at": "2026-03-01T09:30:00+00:00"
}
}
Other responses
{
"message": "This document has already been revoked.",
"errors": {
"reason": [
"This document has already been revoked."
]
}
}