Quick Start
This guide gets you from zero to your first event: create an API key, report an event through the API, and look it up again.
-
Sign in
Section titled “Sign in”Sign in to the Dashboard with Google or your email.
-
Create an API key
Section titled “Create an API key”Open Settings, find API Keys, enter a key name and click Create key. Copy the key right away: it is shown only once.
-
Report your first event
Section titled “Report your first event”Terminal window curl -X POST "https://api.messagerouter.dev/v1/events" \-H "Content-Type: application/json" \-H "Authorization: Bearer <API_KEY>" \-d '{"source_event_id": "ext-001","type": "message.link","actor": { "source_user_id": "u001", "display_name": "demo" },"payload": {"text": "Recommended reading https://example.com/article/1","url": "https://example.com/article/1","title": "Example Article"}}'The first report returns
created: true(HTTP 201). Sending the samesource_event_idagain returnscreated: false(HTTP 200). -
Query events
Section titled “Query events”Terminal window curl "https://api.messagerouter.dev/v1/events?limit=20" \-H "Authorization: Bearer <API_KEY>"