DevelopersDevelopers

EVENUM API — reference for integrators

Contents
  1. 1. Authentication
  2. 2. Errors
  3. 3. Events
  4. 4. Ticket types
  5. 5. Visuals, orders and tickets
  6. 6. Sales widget
  7. 7. Webhooks

The EVENUM API is the same one the dashboard itself uses: everything you can do in the organizer workspace (create an event, its ticket types, publish it…) can be driven from your own site or application. Only the authentication changes — an API key instead of your session.

  • Base URL: https://evenum.noeon.tech
  • Format: JSON in, JSON out (Content-Type: application/json)
  • Dates: ISO 8601 (e.g. 2026-12-31T20:00:00+01:00); amounts in whole FCFA (no cents)

1. Authentication

Generate a key from Dashboard → Developers, then send it with every request:

Authorization: Bearer evn_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Scope Allows
read List your events, read your ticket types, the tickets of your orders, your webhooks
write (read and write) Everything above + create, edit, publish and archive events and ticket types, apply a visual, manage your webhooks
  • The full key is shown only once, at creation: keep it in a secrets manager.
  • Never in a web page or a distributed mobile app: a key grants access to your account. To sell from your site, use the widget (no key needed).
  • A leaked key can be revoked in one click from the dashboard; it stops working immediately.

2. Errors

Every error returns an HTTP status code and a body shaped like:

{ "error": "invalid_title", "message": "Le titre doit contenir au moins 3 caractères." }
Code Meaning
401 Key missing, invalid or revoked (invalid_api_key)
403 The key doesn't have the required scope (insufficient_scope)
404 Resource doesn't exist — or belongs to another organizer
409 Action not possible in the current state (e.g. publishing without a ticket type: no_ticket_type)
422 Invalid data; message explains what to fix

3. Events

Method Endpoint Scope Description
GET /api/events read Your events
POST /api/events write Create an event (draft)
GET /api/events/{id} read Details (drafts included for your own events; public read with no key once published)
PATCH /api/events/{id} write Edit
POST /api/events/{id}/publish write Publish (at least one ticket type required; payout account must be verified if a ticket type is paid; may result in pending_review, see below)
DELETE /api/events/{id} write Archive (never a hard delete)
GET /api/events/{id}/share-qr?format=svg|png read QR code to the public page, print-ready

The public read (GET /api/events/{id} with no key) also returns organizer_verified: true when the organizer's identity was verified by NotchPay when their payout account was opened (the "Verified organizer" badge on EVENUM).

An event has one of the statuses draft, published, archived, pending_review or suspended. pending_review: a paid event that triggers a review rule (account's first paid event, recent account, high price or capacity, well-known artist or venue name) is not put on sale directly; publish returns 200 with this status, and the EVENUM team either approves it (→ published, event.updated webhook) or rejects it (→ draft). Editing the ticket types of an event that's already published but never reviewed can also send it back to pending_review. suspended is only ever set by the EVENUM team, following a report (terms of service, article 3.3): the event disappears from public reads and sales stop, tickets already issued remain valid. While suspended, publish and DELETE return 409 event_suspended; only the EVENUM team can reinstate it.

Event fields (creation: title and starts_at required):

Field Type Rule
title text 3 to 150 characters
description text 5,000 characters max
location text 200 characters max
starts_at / ends_at ISO date end must be after start
event_type text concert_festival, conference_seminaire, spectacle_culturel, sport, formation_atelier, soiree_clubbing, ceremonie_privee, expo_salon, communautaire_association, autre
fee_payer text organizer (fees deducted from your payout) or buyer (fees added to the price) — cannot be changed after publishing
allow_reentry boolean allow exit/re-entry at the gate
curl -X POST https://evenum.noeon.tech/api/events \
  -H "Authorization: Bearer $EVENUM_KEY" -H "Content-Type: application/json" \
  -d '{"title":"Concert de Noël","starts_at":"2026-12-24T19:00:00+01:00","location":"Douala","event_type":"concert_festival","fee_payer":"buyer"}'

4. Ticket types

Method Endpoint Scope Description
GET /api/events/{id}/ticket-types read The event's ticket types
POST /api/events/{id}/ticket-types write Create a ticket type
PATCH /api/ticket-types/{id} write Edit
DELETE /api/ticket-types/{id} write Delete (impossible once the ticket type has orders)
Field Type Rule
name text required, 80 characters max (e.g. Standard, VIP)
price integer FCFA, 0 for a free ticket
quantity_total integer at least 1
description text 500 characters max
sales_start_at / sales_end_at ISO date optional sales window

5. Visuals, orders and tickets

Method Endpoint Scope Description
POST /api/events/{id}/apply-template write { "level": "account" | "event" | "ticket_type", "template_id": "…" | null, "ticket_type_id"?: "…" }
GET /api/orders/{id}/tickets read Tickets for an order on one of your events (order status, holder, ticket type, each ticket's status)

The order ID reaches you via the ticket.paid webhook (§7).

6. Sales widget

To sell from your site with no key and no server-side code, paste:

<script src="https://evenum.noeon.tech/widget.js" defer></script>
<div data-widget="buy-button" data-event-id="THE_EVENT_ID"></div>

The button opens the sale in a window embedded in your page: ticket selection, buyer details, Mobile Money payment (NotchPay), then tickets delivered by EVENUM. Options: data-label="Book now" (button text), data-color="#1f3a93" (color). The ready-to-paste snippet, with the event's ID already filled in, is on the event's page in the dashboard.

The widget only uses two public endpoints, also directly callable from a browser (open CORS, no cookies):

Method Endpoint Description
GET /api/events/{id} Published event and ticket types on sale (price, add service_fee if fee_payer = buyer, available, on_sale)
POST /api/checkout/initiate { "event_id", "items": [{ "ticket_type_id", "quantity" }], "buyer": { "name", "phone", "email"? } } → authorization_url (payment page) or tickets generated immediately if free

Below the payment button, the widget shows a link to the terms of service and the refund policy. If you call POST /api/checkout/initiate directly from your own form, show the buyer the same notice: the terms-of-service version in force is recorded on every order.

7. Webhooks

EVENUM notifies your server on every important event, with a JSON POST request to the URL you register (https only).

Method Endpoint Scope Description
GET /api/webhook-endpoints read Your webhook URLs
POST /api/webhook-endpoints write { "url": "https://…", "events": ["ticket.paid", …] } → returns secret (once only)
DELETE /api/webhook-endpoints/{id} write Delete

Event types:

Type When data
ticket.paid Order paid (or free), tickets generated — once per order order_id, order_type, event_id, quantity, total_amount, buyer_name, buyer_email, paid_at, tickets[] (id, holder_name, ticket_type)
ticket.scanned Ticket scanned at the gate (entry, exit, or an "already inside" alert) event_id, ticket_id, action, result, ticket_status, scanned_at
event.updated Event edited, published or archived change (updated | published | archived), event
{
  "id": "5b1e…",
  "type": "ticket.paid",
  "created_at": "2026-12-01T10:15:00.000Z",
  "data": { "order_id": "…", "event_id": "…", "quantity": 2, "total_amount": 10800, "tickets": [ … ] }
}

Verifying the signature — essential: anyone can call your URL. Every request carries the header

X-Evenum-Signature: t=1790000000,v1=5f2c…

where v1 = HMAC-SHA256, hex-encoded, of the string "{t}.{raw body}" with your secret (whsec_…). Also reject a t that's too old (more than 5 minutes) to block replay attacks:

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

export function verifyEvenum(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  return expected.length === parts.v1?.length && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Compute the signature over the raw body you received, before any JSON parsing.

Delivery: respond with a 2xx status within 5 seconds (process the rest in the background if needed). Otherwise the delivery is retried with an increasing delay, up to 5 attempts; the dashboard (Developers) shows recent deliveries and lets you resend one or send a test event. The same event may exceptionally arrive twice: deduplicate on id (also sent in the X-Evenum-Delivery header).