The API
One endpoint to send events, one to read counts. Keys come from the dashboard; each key posts into one group.
Keys and groups
A key belongs to one group or to all of the account's groups; the dashboard's API keys tab chooses. A type lives inside a group, so the same name in two groups is two types.
- With a group key,
POST /api/v1/event/new_userlands in that group. A prefix for another group is refused with 403. - With an all-groups key, name the group in the path:
POST /api/v1/event/eulerpad:new_user. The group is matched by name, case-insensitively, or by id. Without a prefix the relay uses the account's only group, or the only group that has a defined type of that name; when several fit it answers 400{"error":"group_required","groups":[…]}with the names to choose from. An unknown prefix is 404group_not_found. - Stats and recent events through an all-groups key cover the whole account; through a group key, that group.
Send an event
POST https://geteventbar.com/api/v1/event/{type}
Authorization: Bearer eb_live_…
Content-Type: application/json
{"uid": "u_8d2", "platform": "ios", "time": "2026-10-10T17:02:11Z"}
{type}isa-z 0-9 _ . -, up to 64 characters, starting with a letter or digit. Examples:new_user,order.paid.- The body is a JSON object of up to 16 KB, or empty. Plain text becomes
{"message": "…"}. - Defined types (you gave them a template in the dashboard) render
{field}placeholders from the body, plus{_type},{_group}and{_time}. A missing field renders empty. - Undefined types work too. The title is the name made readable (
new_user→ "New user"); the body ismessageif present, else the first six fields askey: value. A group keeps counts for up to 20 undefined names at a time. time, if present as ISO 8601 or epoch seconds or milliseconds, is the event's displayed time. Counts always use arrival time.- Icon and sound. A defined type can carry an icon (an emoji, or an https image URL) and a sound from the Mac's set. Without a type icon, an
iconfield in the body with an emoji or https image URL is used. Each device can override the sound per type. - Links. A defined type can carry a link template such as
https://admin.example.com/users/{uid}; fields are URL-encoded into it and clicking the notification opens the result. Without a template, aurlfield in the body that starts withhttps://is used. - An
Idempotency-Keyheader, or anidfield in the body, makes a repeat within 24 hours free: the first answer comes back and nothing is counted twice.
Answers
| Status | Body | Meaning |
|---|---|---|
| 202 | {"ok":true,"id":"01J…","defined":true} | Counted and delivered. duplicate: true when the idempotency key matched. |
| 202 | {"ok":true,"delivered":false,"reason":"plan"} | The group or type is paused by the plan (after a downgrade). Nothing counted. |
| 400 | {"error":"type"} | The type name is not allowed. |
| 401 | {"error":"unauthorized"} | Unknown or revoked key. |
| 413 | {"error":"too_large"} | Body over 16 KB. |
| 429 | {"error":"rate"} | More than 60 requests a minute on this key. Retry after a moment. |
| 429 | {"error":"quota","resetsAt":"…"} | The month's events are used up. Counting resumes on the first. |
| 503 | {"error":"unavailable"} | Our side. Retry with backoff. |
Read counts
GET https://geteventbar.com/api/v1/stats Authorization: Bearer eb_live_…
Returns the group the key belongs to and every type in it with hour, day, week, month and all counts, plus the month's usage. Hour and day are to the minute; week and month are UTC days including today. Signed-in apps call the same endpoint with their device token and see the whole account.
{
"plan": "plus",
"groups": [{"id": "01J…", "name": "EulerPad", "paused": false}],
"types": [{"group": "01J…", "groupName": "EulerPad", "type": "new_user", "defined": true, "label": "New user",
"paused": false, "hour": 3, "day": 41, "week": 212, "month": 890, "all": 4120,
"firstAt": 1759000000000, "lastAt": 1760100000000}],
"usage": {"month": "202610", "events": 1320, "limit": 5000, "resetsAt": "2026-11-01T00:00:00.000Z"}
}
Webhook URLs
For services you don't control, which can post JSON to a URL but can't set a header. Create one in the dashboard's Webhooks tab and paste it into the other service:
https://geteventbar.com/in/<24 random characters>
The URL is the credential; rotate it from the dashboard if it leaks. Deliveries land in the hook's group, one EventBar type per provider event type, so each gets its own switch, count and template. Templates reach nested payloads with dotted paths: {data.object.amount_total}, {data.customer.email}, {items.0.name}.
| Preset | Type comes from | Duplicate deliveries | Signature |
|---|---|---|---|
| Polar | type (order.paid, subscription.active…) | webhook-id header | Standard Webhooks, with the endpoint secret |
| Stripe | type (checkout.session.completed…) | id | Stripe-Signature, with the signing secret, 5-minute tolerance |
| GitHub | X-GitHub-Event plus action (pull_request.opened, push) | X-GitHub-Delivery | X-Hub-Signature-256, with the webhook secret |
| Standard Webhooks (Resend, Clerk, Svix) | type (email.delivered, user.created…) | webhook-id or svix-id header | Standard Webhooks, with the endpoint secret; webhook-* or svix-* headers |
| Paddle | event_type (transaction.completed…) | event_id | Paddle-Signature (ts and h1), 5-minute tolerance |
| Lemon Squeezy | meta.event_name | event name plus data.id | X-Signature HMAC-SHA256 |
| Shopify | X-Shopify-Topic header, orders/create → orders.create | X-Shopify-Webhook-Id | X-Shopify-Hmac-Sha256 |
| GitLab | object_kind plus object_attributes.action (merge_request.open) | X-Gitlab-Event-UUID | X-Gitlab-Token equals the secret |
| Bitbucket Cloud | X-Event-Key header, pullrequest:created → pullrequest.created | X-Request-UUID | X-Hub-Signature (sha256= HMAC-SHA256), with the webhook secret |
| Linear | type plus action (issue.create) | Linear-Delivery | Linear-Signature HMAC-SHA256, 60-second timestamp window |
| Sentry | Sentry-Hook-Resource plus action (issue.created) | Request-ID | Sentry-Hook-Signature HMAC-SHA256 with the client secret |
| Vercel | type (deployment.succeeded…) | id | x-vercel-signature HMAC-SHA1 |
| Typeform | event_type (form_response) | event_id | Typeform-Signature (sha256= base64 HMAC-SHA256), with the webhook secret |
| Square | type (payment.created…) | event_id | x-square-hmacsha256-signature (base64 HMAC-SHA256 of the hook URL followed by the body), with the subscription's signature key |
| Intercom | topic (conversation.user.created…) | id (notif_…) | X-Hub-Signature (sha1= hex HMAC-SHA1 of the body), with the app's client secret |
| Zendesk | type without the zen:event-type: prefix (ticket.created…) | id for Zendesk events, else X-Zendesk-Webhook-Invocation-Id | X-Zendesk-Webhook-Signature (base64 HMAC-SHA256 of X-Zendesk-Webhook-Signature-Timestamp followed by the body), with the webhook's signing secret |
| PagerDuty | event.event_type (incident.triggered…) | X-Webhook-Id, else event.id | X-PagerDuty-Signature (v1= hex HMAC-SHA256 of the body, comma separated during a secret rotation), with the webhook's signing secret |
| Mux | type (video.asset.ready…) | id | Mux-Signature (t= timestamp and v1= hex HMAC-SHA256 of the timestamp, a . and the body), with the webhook's signing secret; a timestamp more than five minutes off is refused |
| Slack | event.type (app_mention, team_join…), with . and event.subtype added when there is one (message.bot_message); type for app_rate_limited | event_id | X-Slack-Signature (v0= hex HMAC-SHA256 of v0:, the X-Slack-Request-Timestamp value, a : and the body), with the app's signing secret; a timestamp more than five minutes off is refused. The signed url_verification challenge is answered with {"challenge": …} and not counted |
| Razorpay | event (payment.captured, order.paid…) | X-Razorpay-Event-Id | X-Razorpay-Signature (hex HMAC-SHA256 of the body), with the secret entered when the webhook was set up |
| Gumroad | resource_name (sale, refund, cancellation…), sale when absent; a test (test=true) adds .test | resource_name and sale_id; for subscription events, with cancelled_at or ended_at; tests never | X-Gumroad-Signature (t= timestamp and v1= hex HMAC-SHA256 of the timestamp, a . and the body), with the Ping signing secret; a timestamp more than five minutes off is refused. license_key, card and retry_count are not kept |
| Generic JSON | the field you name (a dotted path), else the hook's default type | Idempotency-Key header or an id field | none; the URL is the secret |
Type names are lower-cased and anything outside a-z 0-9 _ . - becomes _. Bodies up to 256 KB are accepted; the rendered title, body and link plus 2 KB of fields are kept. A form-encoded body (application/x-www-form-urlencoded) is read as fields, with card[type] nesting as card.type; any other non-JSON body becomes a message. A GET answers {"ok":true,"ready":true} for services that probe first.
Answers. A processed delivery is always 200, with ok: false and a reason (quota, too_large, reason: "plan") when it was not counted, because providers retry anything else for days. An unknown URL is 404; a delivery that fails the signature check is 401. The per-URL rate limit is 60 a minute.
Plans. Free includes one generic webhook URL. Plus has 10 and Pro 100, with every provider preset and signature verification. A preset hook with no secret saved is accepted unverified, so you can create the URL first and add the secret once the provider shows it.
Read recent events
GET https://geteventbar.com/api/v1/recent?limit=50 Authorization: Bearer eb_live_…
The events the relay still holds for offline devices, newest first, with the rendered title and body, the stored fields, the link, icon and time. Free plans buffer nothing, so the list is empty there; Plus holds 250 events for 10 days, Pro 1,000 for 30. A key sees its group; a signed-in app sees the account.
Examples
Python
import requests
requests.post("https://geteventbar.com/api/v1/event/new_user",
headers={"Authorization": f"Bearer {EVENTBAR_KEY}"},
json={"uid": user.id, "platform": "ios"}, timeout=5)
Node
await fetch("https://geteventbar.com/api/v1/event/order.paid", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.EVENTBAR_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ id: order.id, amount: order.total, message: `${order.total} from ${order.country}` }),
});
Shell, from a cron job
curl -sS -X POST https://geteventbar.com/api/v1/event/backup_done \ -H "Authorization: Bearer $EVENTBAR_KEY" -d "message=$(du -sh /backups | cut -f1) backed up"
Fire and forget: a failed post should never break your app. Use a short timeout and ignore errors.
Limits
| Free | Plus | Pro | |
|---|---|---|---|
| Event types (defined) | 3 | 25 | 250 |
| Events a month | 100 | 5,000 | 100,000 |
| Groups | 1 | 20 | 100 |
| Offline buffer per device | none | 10 days / 250 | 30 days / 1,000 |
| Devices | 2 | 5 | 10 |
| API keys | 1 | 10 | 50 |
| Webhook URLs | 1 (generic) | 10 | 100 |
Every key: 60 requests a minute, 16 KB a body. Months are calendar months in UTC.