API reference

Replays

Find the recordings you want, then load short-lived URLs to play them in your own player.

  1. POST /replays/list
  2. Pick a sessionId
  3. POST /replays/events
  4. Fetch the chunk URLs
  5. Play with rrweb
curl https://api.databuddy.cc/replays/list \
  -H "x-api-key: $DATABUDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "websiteId": "'"$DATABUDDY_WEBSITE_ID"'",
    "email": "jane@databuddy.cc",
    "traits": [{ "key": "role", "value": "editor" }],
    "event": "report_exported",
    "startedAfter": "2026-11-28T00:00:00Z",
    "limit": 50
  }'

The key needs read:data and access to the website, and the website needs session replay turned on. Keep the key on your server.

Find recordings

POST /replays/list returns recordings newest first. Every filter you send must match.

FieldMatches
websiteIdRequired
personPart of an identified user's email, name or profile ID, any case
emailAn identified user's exact email, any case
profileIdThe user ID you sent when identifying them
traitsUp to 10 { "key", "value" } pairs on the user's current profile; send numbers and booleans as text
startedAfter, startedBeforeRecording start, as an ISO timestamp with a timezone; after is inclusive, before is not
eventA custom event that fired in the session
segmentall (default), identified, long, frustrated or worth_watching
categorybrowsing, evaluating, signing_up, using, buying, support or other
issueAn issue key from /replays/issues
limit1 to 200, default 50

Each entry in sessions has sessionId, the user's profileId, email, displayName and traits, start and end times in milliseconds, entry page, device, browser, country, custom events and friction.

FlagMeansDo
hasMoreMore recordings match than limitRaise limit or narrow the filters
truncatedThe search stopped early and may have missed someNarrow the user or date filters

There's no page cursor for this list.

Load a recording

curl https://api.databuddy.cc/replays/events \
  -H "x-api-key: $DATABUDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "websiteId": "'"$DATABUDDY_WEBSITE_ID"'", "sessionId": "SESSION_ID", "allParts": true }'
Request fieldMeaning
allPartsPage through the whole recording. Without it, a page covers one part.
partIdThe part to load, from parts
cursorThe previous page's nextCursor
limitChunks per page, 1 to 1,000 (default)
metadataOnlyReturn status without download URLs
Response fieldHolds
chunksDownload URLs for gzip-compressed rrweb event chunks, in playback order
chunkPartsThe part each chunk belongs to, in the same order
partsEach part's id, startedAt, endedAt, expandedBytes and the reason it ended (null while recording)
sessionThe visit's details; only on the first page with allParts
customEvents{ "at", "name" } entries in milliseconds; only on the first page with allParts
cutoffReasonWhy recording stopped, such as session_limit, or null
nextCursorSend as cursor for the next page; null on the last one
urlTtlSecondsHow long the URLs work: 300 seconds

A new part starts when the visitor opens another page. Request the same page again for fresh URLs, which you can hand to your player without exposing your key. A session with no recording returns 404.

Check for new footage and issues

EndpointSendReturns
POST /replays/statuswebsiteId, sessionIdparts and cutoffReason; reload when a part is added or grows
POST /replays/recordedwebsiteId, up to 200 sessionIdsThe IDs that have a recording, so you can link to them
POST /replays/issueswebsiteIdUnanswered clicks from the last week, grouped by page and element

Fix errors

StatusMeans
400A filter or cursor is wrong
401No valid key
402Session replay isn't available for this website
403The key lacks read:data or access to this website
404No recording for that session
429Wait Retry-After seconds; see rate limits

How is this guide?