VerifycateDeveloper Docs

Webhooks

Receive, verify, and reliably process workspace events

Webhooks notify your application when something changes in Verifycate. Instead of repeatedly polling the API, your server receives an HTTPS request shortly after a certificate, recipient, request, correction, or engagement event.

Use webhooks to update an internal learner record, trigger a downstream workflow, build an audit trail, or measure recipient engagement. Webhooks are available on every plan.

How it works

  1. Configure one or more HTTPS endpoints in Settings → Webhooks or with Create a webhook.
  2. Choose individual event types, or subscribe to * to receive every event.
  3. Verify the signature of every request before parsing or acting on it.
  4. Process the event idempotently and return any HTTP 2xx status promptly.
  5. Use List deliveries to investigate retries and failures.

Verifycate sends requests with these headers:

HeaderValue
Content-Typeapplication/json
User-AgentVerifycate-Webhook/1.0
X-Verifycate-SignatureHex-encoded HMAC-SHA256 signature

Payload

Every delivery is a JSON POST:

certificate_id?string
Certificate the event relates to, when applicable Example: 3f2c1b7a-9d4e-4c1a-9b2e-7f8e1d2c3b4a
data*object
Event-specific payload; its keys depend on event_type
event_type*string
Event type Example: certificate.issued
id*string
Unique event id Example: 0f2b4c1a-8d3e-4a5b-9c6d-1e2f3a4b5c6d
issue_id?string
Certificate issue the event relates to, when applicable Example: 7c1f0a5e-0f2b-4a1c-9f4d-2b3c4d5e6f70
occurred_at*string
When the event occurred (RFC3339) Example: 2026-02-01T12:00:00Z
workspace_id*string
Workspace the event belongs to Example: 7c9e6679-7425-40de-944b-e07fc1f90ae7

data is event-specific. Certificate lifecycle events carry a stable identity shape: recipient name and email, certificate name and type, the public credential id and URL, timestamps and recipient attributes.

For certificate.issued:

attributes*object
Recipient attribute values keyed by the certificate's attribute keys Example: {"course_hours":"40"}
certificate_name*string
Certificate name at the time it was issued Example: Leadership Programme
certificate_type*string
Certificate presentation type; empty when unset Example: course
expires_at*string
When the credential expires; null when it does not expire Example: 2027-02-01T12:00:00Z
issue_date*string
Calendar date the credential states (YYYY-MM-DD); empty while it is still pending Example: 2026-01-20
issued_at*string
Deprecated: when the credential became active (a system timestamp), not the date it states. Use issue_date for display. Example: 2026-02-01T12:00:00Z
public_id*string
Opaque public credential id used in the verification URL Example: 9a8b7c6d5e4f
public_url*string
Canonical public credential page URL Example: https://verifycate.com/c/9a8b7c6d5e4f
recipient_email*string
Recipient email address Example: ada@example.com
recipient_name*string
Recipient display name; empty when unknown Example: Ada Lovelace
replaced_issue_id?string
Issue that this credential replaced, when it was issued after a revocation Example: 7c1f0a5e-0f2b-4a1c-9f4d-2b3c4d5e6f70

For certificate.revoked, the same identity fields are present, plus the revocation time, public note and bulk flag. The internal revocation reason is never included:

attributes*object
Recipient attribute values keyed by the certificate's attribute keys Example: {"course_hours":"40"}
bulk*boolean
True when the revocation was part of a bulk action Example: false
certificate_name*string
Certificate name at the time it was revoked Example: Leadership Programme
certificate_type*string
Certificate presentation type; empty when unset Example: course
public_id*string
Opaque public credential id used in the verification URL Example: 9a8b7c6d5e4f
public_note*string
Public note shown to verifiers; empty when none was supplied Example: This credential was superseded by a corrected issue.
public_url*string
Canonical public credential page URL Example: https://verifycate.com/c/9a8b7c6d5e4f
recipient_email*string
Recipient email address Example: ada@example.com
recipient_name*string
Recipient display name; empty when unknown Example: Ada Lovelace
revoked_at*string
When the credential was revoked Example: 2026-03-01T12:00:00Z

Do not assume deliveries arrive in order. A retry for an older event can arrive after a newer event.

Test deliveries

Send one signed sample event before relying on production traffic:

POST /api/v1/workspaces/{slug}/webhooks/{webhookID}/test
Authorization: Bearer vc_...
Content-Type: application/json

{ "event_type": "certificate.issued" }

The event uses the same envelope and data shape as production, is signed with the endpoint secret, and carries X-Verifycate-Test: true. The call is synchronous and returns the endpoint's HTTP status, response body and duration. Test deliveries bypass filters, are not retried, do not create workspace events or analytics, and appear in the delivery log with is_test: true.

Use this when a receiving platform needs a sample before it can map fields — for example, Pabbly's Capture Response step. Start listening in the receiving platform first, then send the test.

Verify the signature

Each endpoint has a secret returned when it is created. Store the secret in a secret manager; do not commit it or expose it to browser code.

Calculate HMAC-SHA256 over the exact raw request bytes using the endpoint secret, hex-encode the digest, and compare it with X-Verifycate-Signature using a constant-time comparison. Verify the signature before decoding JSON—the parsed and re-serialized body may not have the same bytes.

import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyVerifycateWebhook(rawBody, receivedSignature, secret) {
  const expected = createHmac("sha256", secret).update(rawBody).digest("hex");
  const expectedBytes = Buffer.from(expected, "hex");
  const receivedBytes = Buffer.from(receivedSignature ?? "", "hex");

  return (
    expectedBytes.length === receivedBytes.length && timingSafeEqual(expectedBytes, receivedBytes)
  );
}

Reject missing or invalid signatures with an HTTP 400 or 401 response.

Acknowledge deliveries

Return a 2xx response only after your application has durably accepted the event. If processing is slow, write the verified event to your own queue and respond immediately; the delivery request has a 10-second timeout.

Redirects and non-2xx responses are treated as failures. Verifycate stores at most the first 2 KB of a failure response for troubleshooting.

Retries

Failed deliveries are retried with this backoff schedule:

RetryDelay after failure
130 seconds
22 minutes
315 minutes
41 hour
54 hours
612 hours
724 hours

After the initial attempt and seven unsuccessful retries, the delivery is marked as permanently failed. Network errors, timeouts, and every non-2xx status follow the same retry policy.

Because a response can be lost after your server processes an event, the same event may be delivered more than once. Put a unique constraint on the payload id, or record processed IDs before applying side effects.

Event types

Certificate lifecycle

recipient.enrolled, certificate.issued, certificate.bulk_sent, certificate.reissued, certificate.amended, certificate.revoked, certificate.deleted, certificate.created, certificate.updated, certificate.archived, template.published

Requests and corrections

request.submitted, request.approved, request.rejected, request.reopened, correction.submitted, correction.approved, correction.rejected

Recipient engagement

email.opened, email.clicked, certificate.opened_from_email, certificate.downloaded, share.linkedin_add, share.linkedin, share.x, share.facebook, share.whatsapp, share.telegram, share.email, share.link_copied, certificate.verified

Forms

form_invite.sent, request_form.opened, request_form.submitted

Subscribe only to the events your application handles. Use * when forwarding events to a general-purpose queue or data warehouse.

Operational checklist

  • Serve the endpoint over HTTPS and keep it reachable from the public internet.
  • Verify signatures against the raw body before parsing JSON.
  • Deduplicate by event id and make handlers safe to retry.
  • Return 2xx quickly; move slow work to a queue.
  • Log the event ID and type, but avoid logging unnecessary recipient data.
  • Monitor delivery history for permanent failures.
  • Update subscriptions with Update a webhook when your application starts or stops handling an event.

Webhook operations