Skip to content
Events View
Region
Sign inCreate event

Copy-paste guides

Your event page has a Website and widget tab that fills in the snippet for you.

The ticket widget

<div data-ev-event="your-event-address" data-ev-mode="popup" data-ev-label="Buy tickets"></div>
<script src="https://YOUR-EVENTS-VIEW-ADDRESS/v1/widget.js" async></script>

Options: data-ev-mode (inline, popup, button), data-ev-label, data-ev-color, data-ev-partner (which site sold the ticket), data-ev-height. When a sale completes your page receives an evwidget:order-complete event, for your own analytics.

Showing our events on your site

Ask the site admin for a website key, list your website on it, then call GET /api/v1/public/events with the x-api-key header. The reference lists every option.

Checking a webhook (Node)

// Node: check a webhook really came from us. Header: X-EventsView-Signature: t=<unix>,v1=<hex>
import { createHmac, timingSafeEqual } from 'node:crypto';
const ok = (rawBody, header, secret) => {
  const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const mine = createHmac('sha256', secret).update(t + '.' + rawBody).digest('hex');
  return Math.abs(Date.now() / 1000 - Number(t)) < 300 && mine.length === v1.length && timingSafeEqual(Buffer.from(mine), Buffer.from(v1));
};

The retry schedule and topics are in the CRM guide (docs/CRM-API.md).