Skip to content

Events

Live message.received and message.sent events through Server-Sent Events.

01

Connect#

Use an Authorization header where possible. EventSource clients may use the token query parameter.

Shell
curl -N https://botinbox.dev/v0/events -H "Authorization: Bearer $BOTINBOX_API_KEY"

const stream = new EventSource("https://botinbox.dev/v0/events?token=bi_your_key");

02

Scope#

Events are filtered to inboxes visible to the API key. The first event is ready, followed by message.received or message.sent.