[ DEVELOPER INTEGRATION GUIDE ]
API Reference
The Haxnation API allows organizations and developers to integrate event discovery, attendee eligibility verification, and dynamic certificate generation into third-party portals, LMS platforms, or custom web apps.
Standardized Base URL
All API requests must be sent over HTTPS to our primary API domain:
/events/api/events
Events, attendee eligibility, and event-based certificate issuance.
/events/api/v1
Headless custom template rendering with credit deduction.
Authentication & API Key Types
All incoming requests from external domains or backend servers must include your API Key in the X-API-KEY header.
API Key Types & Permissions
Designed for frontend browser applications, SPAs, and public integration widgets. Restricted strictly to read-only operations (such as listing public events, retrieving event details, checking email eligibility, and verifying certificates).
Designed exclusively for confidential server-to-server backend integrations. Grants access to all endpoints, including high-privilege operations like attendee certificate issuance and B2B template rendering with credit deduction.
Endpoint API Key Compatibility Matrix
| Endpoint | Method | Path | Supported Key | Usage Context |
|---|---|---|---|---|
| List Events | GET | /events/api/events | PUBLIC PRIVATE | Client widget or backend |
| Get Event Details | GET | /events/api/events/{id} | PUBLIC PRIVATE | Client widget or backend |
| Check Eligibility | GET | /events/api/events/eligibility | PUBLIC PRIVATE | Frontend lookup widgets |
| Event Cert by Email | POST | /events/api/events/{id}/certificate-by-email | PRIVATE ONLY | Backend server only |
| Event Cert Download (credits) | POST | /events/api/events/{id}/certificate/download | PUBLIC PRIVATE | Same route for site + third parties (1 credit/cert, idempotent) |
| B2B Template Cert | POST | /events/api/v1/certificates/generate | PRIVATE ONLY | Backend server only (1 credit/cert) |
| Verify Certificate | GET | /events/api/events/certificate/verify/{certId} | PUBLIC PRIVATE | Public verification page or backend |
| Redirect to Cert | GET | /events/api/events/certificate/redirect/{certId} | PUBLIC PRIVATE | QR code scan & browser redirect |
Required Request Headers
For GET requests:
For POST / PUT requests:
Important Note on POST Requests
When making POST requests from your backend server, compute the SHA256 hex digest of the raw JSON body and include it in the x-amz-content-sha256 header to satisfy API Gateway edge validation.
List Events
Retrieves public events hosted by the community associated with your API Key.
Example cURL
Response (200 OK)
Get Event Details
Retrieves metadata, scheduling, and registration configuration for a specific event by ID or custom URL slug.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| id REQ | string | The unique Event ID (UUID) or custom slug. |
Response (200 OK)
Check Attendee Eligibility
Checks an attendee's email address against the community's events to find which certificates they are eligible to claim or download. Ideal for client-side search widgets.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| email REQ | string | The attendee's registered email address (URL encoded). |
Example cURL
Response (200 OK)
Generate Event Certificate by Email
Issues or retrieves the generated certificate for a registered attendee by Event ID and email address. Generates official certificates valid for 2 years.
Validity & Retention Policy
All certificates generated on Haxnation are valid and stored for 2 years from date of issuance.
Request Body
Node.js Server Implementation
Response (200 OK)
B2B Headless Template Certificate
Renders a high-resolution certificate based on your community's active default template using dynamic variable substitution. Deducts 1 credit from your account per generation. Generated certificates are valid and stored for 2 years from date of issue.
Request Body
Pass template variables in the data map matching the placeholder keys configured in your certificate designer:
Example cURL
Deduction is idempotent: send Idempotency-Key (or idempotencyKey in the body) to make retries safe — replays never deduct twice. Without one, identical payloads from the same key collapse into a single deduction.
Response (200 OK)
Event Certificate Download (Pay with Credits)
Settles a paid event certificate with 1 community credit instead of a fiat payment order, on the existing download endpoint — no new path, same enforcement for the main site and third parties. Prerequisites: the event opts in via certificateSettings.allowCredits=true, the community account holds credits, and the caller's API key belongs to the event's community. Already-issued certificates return the existing certificate without charging.
Request Body
Send either orderId (fiat) or payWithCredits — sending both returns HTTP 400. Pass the key via the Idempotency-Key header or the idempotencyKey field; when omitted it defaults to credits-{eventId}-{userId}.
Example cURL
Idempotency (no double-deduct)
Retrying with the same key never deducts twice: a completed key replays the stored transactionId (CREDITS_<key>), a concurrent duplicate returns HTTP 409, an empty balance returns HTTP 402 and generation failures auto-refund the credit.
Response (200 OK)
Verify Certificate
Validates the authenticity and issuance metadata of any certificate issued by Haxnation using its unique Certificate ID or hash. Certificates are valid for 2 years from date of issue; expired certificates return HTTP 403 Forbidden.
Response (200 OK)
Redirect Certificate URL
Direct HTTP 302 redirect endpoint embedded in QR codes on certificates to route visitors directly to the certificate's public verification page.
Returns an HTTP 302 Found with a Location header directing to the live validation web interface.