Skip to content
TrueSealed
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

id string
The public reference, the same one in the QR code and the verification address.
status string
What a verifier sees: valid, expired or revoked. A document is valid through the whole of its expiry date.
type string
generated, made from a template, or uploaded, a PDF your organization uploaded with a QR code added.
title string
For example the course or the letter's subject.
recipient_name string
Who the document is for.
recipient_email string or null
Where the holder was emailed, if anywhere.
fields object
Extra values printed through your template's placeholders. Empty when there are none.
issued_at date
YYYY-MM-DD.
expires_at date or null
YYYY-MM-DD, or null if it never expires.
revoked_at date-time or null
When it was revoked.
revoked_reason string or null
Shown on the verification page.
template_id string or null
The template it was made from. null for uploaded PDFs.
replaces string or null
The id of the document this one corrects.
verification_url string
The public page anyone can open to check it.
file_sha256 string
The SHA-256 fingerprint of the exact PDF. The verification page compares uploads against it.
created_at date-time
When it was recorded.
The document object
{
    "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

These requests are real and act on your organization.

Request

curl 'https://truesealed.com/api/v1/templates' \
  -H "Authorization: Bearer $SEALCHECK_API_KEY" \
  -H 'Accept: application/json'
Response · 200 OK
{
    "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

status string Optional
Only documents with this status: valid, expired or revoked.
search string Optional
Matches the recipient's name or email, the title, or the reference. Up to 100 characters.
per_page integer Optional
How many on each page, 1 to 100. Default 25.
page integer Optional
Which page. Default 1.
Try it

These requests are real and act on your organization.

Request

curl 'https://truesealed.com/api/v1/documents?status=valid&per_page=10' \
  -H "Authorization: Bearer $SEALCHECK_API_KEY" \
  -H 'Accept: application/json'
Response · 200 OK
{
    "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
Response · 422 Bad filter
{
    "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-Key string Optional
Unique per document you mean to issue, such as your own record id. 1 to 255 characters.

Body

recipient_name string Required
Who the document is for. Up to 255 characters.
title string Required
For example the course or the letter's subject. Up to 255 characters.
recipient_email string Optional
If given, the holder is emailed their document.
template_id string Optional
From List templates. Defaults to your oldest template.
issued_at date Optional
YYYY-MM-DD. Defaults to today.
expires_at date Optional
YYYY-MM-DD, on or after issued_at. Leave out for no expiry.
fields object 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

This request changes your data: issuing emails the holder, and revoking cannot be undone.

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"
      }
  }'
Response · 201 Issued
{
    "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
Response · 422 Needs fixing
{
    "message": "The recipient name field is required.",
    "errors": {
        "recipient_name": [
            "The recipient name field is required."
        ]
    }
}
Response · 403 Cannot issue yet
{
    "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

id string Required
The document's public reference, as printed in its QR code. 32 characters.
Try it

These requests are real and act on your organization.

Request

curl 'https://truesealed.com/api/v1/documents/rut4qvhw55lxp5zjzeduxv3qhkqkdqi2' \
  -H "Authorization: Bearer $SEALCHECK_API_KEY" \
  -H 'Accept: application/json'
Response · 200 OK
{
    "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
Response · 404 Not found
{
    "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

id string Required
The document's public reference, as printed in its QR code. 32 characters.

Body

reason string Required
Shown on the verification page. Up to 1,000 characters.
Try it

This request changes your data: issuing emails the holder, and revoking cannot be undone.

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"
  }'
Response · 200 Revoked
{
    "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
Response · 422 Already revoked
{
    "message": "This document has already been revoked.",
    "errors": {
        "reason": [
            "This document has already been revoked."
        ]
    }
}