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.

GET
/hooks/sample

Authorization

oauth2 codes:read
headerAuthorizationBearer <token>

An OAuth 2.0 access token, sent as Authorization: Bearer <token>. Register an app in Settings → Developers, send the user through authorization (PKCE S256), then exchange the code for a token. Access tokens last 1 hour; refresh tokens 30 days. Step by step.

Scope: codes:read

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        }      ]    }  }]

Last updated on