Widget Events REST API
Send custom events to any connected overlay using a simple HTTP POST.Endpoint
Authentication
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
event | string | Yes | Event name (must start with custom:) |
data | object | No | Arbitrary payload delivered to widgets |
Response
delivered_to indicates how many overlay instances received the event. If the overlay is offline, events are dropped (not queued).
Rate Limits
| Limit | Value |
|---|---|
| Requests per minute | 60 |
429 Too Many Requests.
Error Codes
| Status | Meaning |
|---|---|
401 | Invalid or missing token |
404 | Channel not found |
422 | Invalid request body (missing event field, bad format) |
429 | Rate limited |
cURL Examples
Python Example
Node.js Example
Receiving in Widgets
Events arrive through the standard event bus prefixed withwidget:event::