QRdx
HelpGuidesDevelopersReact librarySelf-hosting

Get sample events

Sample payloads of an event, shaped exactly like real deliveries.

Zapier's “perform list”: up to three payloads built from the workspace's recent data, newest first, or a fixed example when it has none. Use it to map fields while building a Zap.

Scope: codes:read or codes:write, for API keys and OAuth tokens alike.

GET
/hooks/sample

Authorization

headerAuthorizationBearer <qrdx_ followed by 40 letters and digits>

An API key, sent as Authorization: Bearer qrdx_…. Create one in Settings → API keys & apps: it is shown once. A key acts on the workspace it was created in as its creator, with their current role there, and only within its scopes, the same scopes as OAuth (each operation names the one it needs). API keys.

Query Parameters

event*string

The event to sample

Value in"scan.created""scan.milestone""code.created""code.updated""form.submitted"

Response Body

Sample payloads (a bare array)

application/json
  1. response

Payloads shaped exactly like real deliveries, newest first: recent data from the workspace, or a fixed example when it has none

[index: integer]?
Example Request
curl -X GET 'https://api.qrdx.dev/v1/hooks/sample?event=scan.created'
Example Response
[  {    "id": "evt_sample",    "type": "scan.created",    "created_at": "2026-01-05T09:30:00.000Z",    "data": {      "window_started_at": "2026-01-05T09:30:00.000Z",      "window_seconds": 60,      "count": 1,      "scans": [        {          "scan_id": "cm0sample0scan0000000000",          "code": {            "id": "cm0sample0code0000000000",            "slug": "aB3dE5f",            "title": "Spring menu"          },          "scanned_at": "2026-01-05T09:30:00.000Z",          "country": "DE",          "region": "BE",          "city": "Berlin",          "device_type": "mobile",          "os": "iOS",          "browser": "Safari",          "referer": null,          "source": "qr"        }      ]    }  }]

Last updated on