Skip to content
Certnest
REST APINative
  • API

Issue credentials from your own software

Issue, track and revoke credentials from your own software.

When REST API

Your app marks a learner as passed

Then Certnest

POST /issues sends the certificate

Every credential is signed and can be checked by anyone

Guide

How REST API works with Certnest

A clean JSON API on every plan. Issue up to 1,000 people per call with an idempotency key, follow each send, revoke with a reason and verify any credential. Errors come back in plain words you can show to people.

Who it is for

  • Developers adding credentials to their own product, LMS or HR system
  • Teams that want full control and safe retries

What you need

  • A Certnest key with the right permissions
  • The ID of the credential to send
  • Any language that can send HTTPS
Connection
Native
How it connects
REST API
Set-up time
About 20 minutes
Category
Developer
Starts on
POST /issues and more
Plans
Every plan, including free
  1. Step 1: Create an API key

    In Certnest, open Settings, API keys, New API key. Name it after where it will be used, such as "your code", and make sure Issue is ticked (Read is on already). Then choose Create key.

    Give each tool its own key. You can revoke one without touching the others.

    The New API key window in Certnest. 1: the key's name. 2: the Issue permission, ticked. 3: the Create key button.
    In Certnest. The New API key window in Certnest. 1: the key's name. 2: the Issue permission, ticked. 3: the Create key button. View full size
  2. Step 2: Copy the key now

    Certnest shows the key one time only and keeps just a fingerprint of it. Copy it into a password manager. If it is ever lost, rotate it in the same place and paste the new one.

    The window that shows a new API key once. 1: the Copy button.
    In Certnest. The window that shows a new API key once. 1: the Copy button. View full size
  3. Step 3: Add an HTTPS request

    In your code, add an HTTPS request that sends a POST to https://certnest.co/api/v1/issues with two headers: Authorization: Bearer and your key, and Idempotency-Key with an ID that is the same each time for the same person and course.

    an HTTPS requestPOST https://certnest.co/api/v1/issuesAuthorization: Bearer <your key>Idempotency-Key: course-5-F-8810Content-Type: application/json
    Drawing, not a screenshot. A drawing of the request: POST to the Certnest issues address with the Authorization and Idempotency-Key headers.
  4. Step 4: Send the person

    The body names the credential and up to 1,000 people, each with a name, an email and your own ID. Set send email to true to email each person their link.

    Body{ "credential_id": "cr_sql", "recipients": [{ "name": "Felipe Costa", "email": "felipe.costa@example.com", "external_id": "F-8810" }], "send": { "email": true }}
    Drawing, not a screenshot. A drawing of the JSON body with credential_id, one recipient and send email set to true.
  5. Step 5: Read the answer

    A 202 answer lists each person with their credential link. A person who already holds it comes back with duplicate set to true and is not emailed again. Retry only on 429 or 5xx answers, with the same Idempotency-Key.

  6. Step 6: Follow the send

    GET /sends/{send_id} returns counts for queued, sent, delivered, opened, viewed, downloaded, added to LinkedIn, bounced and revoked. GET /issues/{id} returns one person's credential.

  7. Step 7: Revoke with a reason

    POST /issues/{id}/revoke with a reason. Revoking twice returns the same record, so it is safe to retry. The verify page shows it as revoked at once.

  8. Step 8: Add a webhook endpoint in Certnest

    In Settings, Webhooks, choose Add endpoint. Paste the address of your service, pick the events you want and save. Copy the signing secret: it is shown once.

    The Add an endpoint window. 1: the endpoint address. 2: the Credential issued event, ticked. 3: the save button.
    In Certnest. The Add an endpoint window. 1: the endpoint address. 2: the Credential issued event, ticked. 3: the save button. View full size
  9. Step 9: Check each signature

    Every delivery has a Certnest-Signature header: t, a time, and v1, an HMAC-SHA256 of the time, a dot and the raw body, made with your secret. Compare it, and refuse anything older than five minutes.

    Check the signaturesig = header Certnest-Signature # t=...,v1=...expected = hmac_sha256(secret, t + "." + raw_body)if expected != v1 or now - t > 300: refuseelse: handle event.type
    Drawing, not a screenshot. A drawing of the signature check: build the expected HMAC from the time and raw body, compare, refuse old deliveries.
  10. Step 10: Check the first one

    Every API send appears in the app too. In Certnest, People and sends shows it with its status as it moves from sent to opened, downloaded and added to LinkedIn.

    A send in Certnest. 1: the counts for sent, opened, downloaded and added to LinkedIn.
    In Certnest. A send in Certnest. 1: the counts for sent, opened, downloaded and added to LinkedIn. View full size

What happens next

What the person receives

Whatever starts it, everyone gets the same signed credential, ready to share.

  1. 1 of 4

    An email arrives

    Within moments the person gets an email from your organisation with a button to their credential. You set the sender, the words and your logo in Settings, Email.

    Brightpath Data Academyto daniel.okafor@example.comYour certificate is readyWell done, Daniel. You completed SQL for Analysts.View your certificateYou got this email because you completed a course with Brightpath.
    Drawing, not a screenshot. A drawing of the email a person receives: the organisation's name, a short note and a View your certificate button.
  2. 2 of 4

    Their own credential page

    The button opens the credential page: the design with their name, a PDF to download and one click to add it to LinkedIn. No account is needed.

    A credential page on a phone. 1: Download PDF. 2: Add to LinkedIn.
    In Certnest. A credential page on a phone. 1: Download PDF. 2: Add to LinkedIn.
  3. 3 of 4

    On their profile in one click

    Add to LinkedIn fills in the credential name, your organisation, the date and the link, so it shows under licences and certifications.

    DODaniel OkaforData analystLicences and certificationsSQL for AnalystsBrightpath Data AcademyIssued Nov 2026Show credential
    Drawing, not a screenshot. A drawing of a profile section listing the new certificate, with the issuer and a Show credential link.
  4. 4 of 4

    Anyone can check it is real

    An employer opens the link or scans the QR code. Certnest checks the signature, that it was not revoked and that it has not expired.

    The verify page. 1: the result, a valid credential with the issuer named.
    In Certnest. The verify page. 1: the result, a valid credential with the issuer named. View full size

Want to watch it happen? Try the interactive demo.

Ideas

What you can automate with REST API

A clean JSON API on every plan. Issue up to 1,000 people per call with an idempotency key, follow each send, revoke with a reason and verify any credential. Errors come back in plain words you can show to people.

  • When REST API

    Your app marks a learner as passed

    Then Certnest

    POST /issues sends the certificate

  • When REST API

    Your support tool needs a status

    Then Certnest

    GET /issues shows delivered, opened or bounced

  • When REST API

    A member leaves your association

    Then Certnest

    POST /issues/{id}/revoke with a reason

Troubleshooting

If something does not work

The run log and People and sends show what happened to each person. These are the usual fixes.

  • 429 Too many requests

    Wait for the Retry-After seconds, then send again with the same Idempotency-Key.

  • 401 Unauthorized

    Send Authorization: Bearer and the key. Check it has the permission the call needs.

  • Someone did not get an email

    Open People and sends and find them. A bounced address shows as Bounced: fix it and send again. If Delivery is set to Issue only, nothing is emailed by design.

  • The same person came through twice

    They still hold one credential. A person who already has a live copy gets the same one back and is not emailed again. Send a stable ID with each person to make this exact.

REST API questions

Is the REST API integration built by Certnest?

Yes. We built and tested it ourselves.

Does the REST API integration cost extra?

Integrations, the API and webhooks are on every Certnest plan, including the free plan with 1,000 credentials a year. Zapier or Make may charge for their own plans.

Can it issue the same person twice by mistake?

No. Every call carries an ID or a retry key. Someone who already holds a live copy of the credential gets the same one back, and is not emailed again.

Start issuing from REST API

Free for your first 1,000 credentials a year. No card needed.