CertSeal.com API (1.0.0)
Issue, verify, and manage certificates programmatically.
The CertSeal.com REST API lets you issue certificates and look them up from your own backend, LMS, or any other system. Every request is authenticated with a per-workspace API key, created from the API Keys page in the CertSeal.com web app.
Send your key in the Authorization header as a bearer token:
Authorization: Bearer csk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The key is bound to a single workspace; you don't need to pass a workspace id separately. Tokens are shown exactly once when you create them — store them in a secrets manager and rotate them by revoking + recreating.
All non-2xx responses use a single envelope:
{ "error": "QUOTA_EXCEEDED", "message": "...", "detail": { ... } }
The error code is stable and machine-readable; the message is safe to surface to end users; the optional detail object carries structured context (e.g. remaining quota for QUOTA_EXCEEDED).
Each API key is limited to 120 requests per minute by default. Exceeding the limit returns 429 RATE_LIMITED with a Retry-After header (in seconds). Standard RateLimit-* headers are returned on every authenticated response so clients can self-throttle.
Issuing a certificate consumes one unit of your workspace owner's plan quota. Lookup, list, and update endpoints are free. Plan limits (e.g. maxBatches) also apply to API-driven actions exactly as they do in the web app.
Instead of polling our list endpoints, register a WebhookSubscription and CertSeal.com will POST signed JSON to your URL when events happen in your workspace.
certificate.issued— a new recipient was created (POST /batches/{id}/recipients, the bulk variant, or a CSV import in the web app). The payload'sdatais the standardRecipientshape.certificate.sent— the email worker successfully handed the certificate to Resend. Payload is the sameRecipientshape withemailStatus = "sent".certificate.failed— the certificate email wasn't sent: Resend rejected it, the content rules blocked it, or temporary errors outlasted the automatic retries (about an hour). Payload adds anerrorstring with the reason.certificate.viewed— someone opened the public viewer URL for the first time. Fires at most once per recipient. Payload adds aviewersub-object withuserAgent,referer,ip, andviewedAt.certificate.revoked— a certificate was revoked (in the web app or withPOST .../revoke). Payload is theRecipientshape withrevokedAtandrevokedReasonset.certificate.reinstated— a revoked certificate was reinstated. Payload is theRecipientshape withrevokedAtback tonull.
Subscribe and Zapier/Make-style unsubscribe both use the regular REST API:
# Create a subscription (returns the signing secret ONCE)
curl -X POST https://services.certseal.com/api/v1/webhooks/subscriptions \
-H "Authorization: Bearer csk_live_..." \
-H "Content-Type: application/json" \
-d '{ "url": "https://hooks.zapier.com/...", "events": ["certificate.issued"] }'
# Delete a subscription (also used by Zapier/Make on Zap-deleted)
curl -X DELETE https://services.certseal.com/api/v1/webhooks/subscriptions/{id} \
-H "Authorization: Bearer csk_live_..."
Every delivery carries an X-CertSeal-Signature header in the Stripe-style t=<unixSeconds>,v1=<hexHmacSha256> format. The HMAC is computed over ${t}.${rawRequestBody} using the subscription's signing secret. Reject requests where |now - t| > 300 seconds to defeat replay attacks.
Node.js verifier (paste into a Zapier code step or your own handler):
const crypto = require("node:crypto");
function verify(rawBody, signatureHeader, secret) {
const parts = Object.fromEntries(
signatureHeader.split(",").map((p) => p.split("=")),
);
const expected = crypto
.createHmac("sha256", secret)
.update(`${parts.t}.${rawBody}`)
.digest("hex");
const ok = crypto.timingSafeEqual(
Buffer.from(expected, "hex"),
Buffer.from(parts.v1, "hex"),
);
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
return ok && fresh;
}
- Deliveries are at-least-once. Use
X-CertSeal-Delivery(the delivery id) as your idempotency key. - On non-2xx or timeout we retry with backoff: 1m, 5m, 30m, 2h, 12h, 24h. After the 7th failed attempt the delivery is marked
failed. - HTTP
410 Goneis treated as the RESTHooks "unsubscribe" signal: we hard-delete the subscription so you can re-subscribe the same URL. - After 20 consecutive failures on any subscription we auto-
suspendedit. Re-activate from the Automations page in the web app after fixing your endpoint.