Developers
Verify Certnest credentials on your own site
Employers, job boards, universities and HR systems can check any Certnest certificate or badge without leaving their own page. Paste a link, drop the file or scan the QR code, and see the answer at once.
- One script tag
- 14 KB, no dependencies
- No key needed
- Open Badges 3.0
Four ways in
Pick what fits your site
Web component
One script tag and one element. Works in plain HTML, React, Vue, Angular, WordPress and any site builder that allows a script.
Verify API
Public JSON endpoints for systems: by ID, by credential JSON or by file. No key, open CORS, stable error codes, ETag caching.
Offline library
An open-source TypeScript package that checks the signature in the browser or in Node, with no call to our servers.
Iframe fallback
For sites that cannot run scripts: one iframe that shows the same check, sized for a sidebar or a page.
Web component
Add it in a minute
- 1
Add the script
Load the widget from our domain. The integrity hash makes sure the browser runs exactly the file we published.
- 2
Place the element
Put <certnest-verify> where the box should appear. It fits its container and follows your page language.
- 3
Listen for results
Your page receives a certnest:verified event with the answer, ready for your own records or next step.
<script type="module" src="https://certnest.co/widget/verify/1.0.0/certnest-verify.js"
integrity="sha384-szbc0Xf1nj2+MJCsbqzzbbkjJA36qOICxGOz5qlpUb/8uGplg9Ap/sdCP007pusi"
crossorigin="anonymous"></script>
<certnest-verify></certnest-verify>Version 1.0.0, 13.7 KB gzipped. Integrity hash for every version: sri.json.
Playground
Try the widget
These are sample credentials, checked by the real widget on this page. Change the language and theme to see how it looks on your site.
Options
Attributes, events and theming
| Attribute | What it does |
|---|---|
| credential | A credential ID or link. The widget checks it at once and shows only the result. |
| modes | Which ways in to show: any of "id file scan" (default all three). |
| lang | en, hi, ta, es, fr, de, pt, ar (right to left) or id. Default: the page language. |
| theme | auto (default, follows the visitor), light or dark. |
| compact | A smaller box with the status line only. |
| heading | Your own title text instead of “Verify a credential”. |
| api | Only for testing against another server. Default https://certnest.co. |
| Event | When it fires |
|---|---|
| certnest:start | A check begins (detail.source is id or file). |
| certnest:verified | Every finished check, with the full result in detail. |
| certnest:valid | The credential is valid. |
| certnest:invalid | Expired, revoked, not found, changed or not confirmed. |
| certnest:error | The check could not run (offline, rate limit, no credential in the file). |
Theme with CSS
certnest-verify {
--certnest-accent: #1d4ed8; /* buttons, links, focus ring */
--certnest-on-accent: #ffffff;
--certnest-bg: #ffffff;
--certnest-fg: #111827;
--certnest-muted: #4b5563;
--certnest-border: #d1d5db;
--certnest-valid: #047857;
--certnest-warn: #92400e;
--certnest-danger: #b91c1c;
--certnest-radius: 8px;
--certnest-font: "Inter", system-ui, sans-serif;
--certnest-max-width: 640px;
}event.detail
{
"valid": true,
"status": "valid", // valid | expired | revoked | under_review | not_found | tampered | unknown_issuer | invalid
"id": "BDA-2026-0142",
"title": "SQL for Analysts",
"recipientName": "Daniel Okafor",
"issuer": { "name": "Brightpath Data Academy", "domain": "brightpath.example", "verified": true },
"issuedAt": "2026-03-14T10:00:00Z",
"expiresAt": null,
"checkedAt": "2026-11-27T09:30:00Z",
"source": "id"
}REST
Verify API for systems
Public endpoints, no key and no cookies. CORS is open to every origin for these routes only, answers carry an ETag and a short cache time, and errors always have the same shape.
Base URL https://certnest.co/api/v1. OpenAPI 3.1 spec
| Endpoint | What it does | Rate limit |
|---|---|---|
| GET /public/verify/{id} | Live status of a credential by its ID. 404 with status not_found when there is none. | 1,800 a minute per IP, bursts of 300 |
| POST /public/verify/file | Send a PDF, PNG, SVG or JSON file as the body. The credential inside is taken out and checked; nothing is stored. | 20 at once, then one every 2 seconds per IP; 4 MB |
| POST /public/verify | Send the credential JSON as {credential: ...}. | 20 at once, then one every 2 seconds per IP; 256 KB |
| GET /i/{org}/did.json | The issuer's did:web document with every public key it ever used. | 120 a minute per IP |
| GET /public/issuers/{org}/status/{list} | The signed Bitstring Status List (revocations). | 120 a minute per IP |
# By ID
curl -s https://certnest.co/api/v1/public/verify/BDA-2026-0142
# By file (PDF, PNG, SVG or JSON)
curl -s -X POST https://certnest.co/api/v1/public/verify/file \
-H "Content-Type: application/pdf" \
--data-binary @certificate.pdf
# Cheap re-check: send the ETag you got last time
curl -s -i https://certnest.co/api/v1/public/verify/BDA-2026-0142 -H 'If-None-Match: W/"5f2c..."'Error codes
Every error is {"error": {"code", "message"}}. The code never changes; the message is plain words, safe to show.
| Code | HTTP | Meaning |
|---|---|---|
| not_found | 404 | No credential has this ID. |
| no_credential_found | 422 | The file holds no credential. |
| unsupported_format | 422 | A VC-JWT or an Open Badges 2.0 assertion. |
| unsupported_file | 415 | Not a PDF, PNG, SVG or JSON file. |
| empty_file | 400 | The request body is empty. |
| payload_too_large | 413 | Over the size limit. |
| rate_limited | 429 | Too many requests; wait for the Retry-After seconds. |
Open source
Check signatures with no call to us
@certnest/verify is a TypeScript package (ES module and CommonJS, typed, no dependencies) that verifies Open Badges 3.0 and W3C Verifiable Credentials 2.0 secured with eddsa-rdfc-2022. It reads the issuer key from did:web and revocations from the Bitstring Status List, both cached, or works fully offline with keys and lists you pass in.
- JSON-LD contexts are bundled, so a check never fetches a context
- Spots changed files, keys from another issuer and forged status lists
- Takes the credential out of PDF, PNG and SVG files
- Runs in Node 20+ and every current browser
TypeScript
import { verifyCredential } from "@certnest/verify";
const r = await verifyCredential(credentialJson);
// r.status: valid | expired | revoked | suspended | not_yet_valid | tampered | invalid | unknown
// r.checks: { signature, issuer, status, dates }
// r.reasons: plain-English lines for anything that is not fine
// Fully offline: keys and status lists you already hold
await verifyCredential(credentialJson, {
keys: { "did:web:certnest.co:i:65f0...#key-1": "z6Mk..." },
status: "skip",
});Private by design
- The widget sets no cookies and stores nothing in the browser.
- For a file, only the credential inside it is sent; the PDF or picture stays on the device.
- Checks are not logged with names or addresses. The issuer sees only a count of verifications.
- Shadow DOM keeps our styles away from yours, and yours away from ours.
Safe on strict sites
- Pin a version with its Subresource Integrity hash. Every version is listed at https://certnest.co/widget/verify/sri.json.
- Works under a strict Content Security Policy: no eval, no inline scripts, styles through constructed stylesheets inside the shadow root.
- CSP for your page: script-src https://certnest.co; connect-src https://certnest.co.
- Versioned files never change. The v1 address always serves the latest 1.x release if you prefer updates.
Questions and answers
Do I need an account or an API key?
No. Verification is free and public for everyone, on every plan.
Which browsers are supported?
Every current browser on phones and computers. QR scanning uses the browser's built-in reader where it exists (Chrome, Edge and Android); elsewhere the widget suggests opening the link with the phone camera.
Can it check credentials from other platforms?
The widget and API check credentials issued with Certnest. The offline library checks any Open Badges 3.0 or VC 2.0 credential signed with eddsa-rdfc-2022.
How fresh is the answer?
A check by ID reads the live record, cached for at most a minute. A revoked credential shows as revoked on the next check after that.
Does it work with right to left languages?
Yes. With lang=“ar” the layout mirrors, and the widget follows the language of your page by default.
Checking candidates every day?
Send this short guide to your HR team: three ways to check a certificate and what each answer means.

