Relaybase docs
Everything you need to send events from your app in under 10 minutes.
Quickstart
Install the SDK and send your first event.
npm install @relaybase/sdk
Authentication
Use a secret key from your dashboard. Never ship it to the browser.
const rb = new Relaybase({ key: process.env.RB_KEY })
Send an event
await rb.events.send({
name: 'order.created',
data: { id: 'ord_123', total: 42 }
})
Webhooks
We sign every request with a timestamped HMAC header.
Errors
400
Invalid payload.
401
Missing or bad key.
429
Rate limited, retry with backoff.