API Reference

All endpoints are relative to your Reev instance URL. Authenticated endpoints require a valid session cookie.

Events

The tracker sends batched events to this endpoint. It is public (no session required) but rate-limited to 60 requests/minute per IP.

POST/api/eventsPublic

Ingest a batch of tracker events.

ParamTypeDescription
sessionId*stringUnique session ID generated by the tracker.
projectId*stringYour project ID.
events*arrayArray of event objects (max 50 per batch).

Valid event types: pageview, click, scroll, form, error, vitals, page_leave, ux_issue, ux_feedback, suggestion_clicked, suggestion_dismissed

Returns 204 on success. Max payload: 512 KB.

Reports

UX feedback reports collected from popover responses.

GET/api/reportsAuth required

List feedback reports for a project.

ParamTypeDescription
projectId*stringProject ID.
statusstring"open" (default), "resolved", or "all".
issueTypestringFilter by issue type (rage_click, dead_link, etc.).
searchstringSearch in message and page URL.
limitnumberPage size (default 20).
offsetnumberPagination offset.
PATCH/api/reportsAuth required

Update a report's status.

ParamTypeDescription
id*numberReport ID.
status*string"open" or "resolved".

Patterns

Automatically detected recurring UX issue patterns.

GET/api/patternsAuth required

List detected patterns for a project.

ParamTypeDescription
projectId*stringProject ID.
statusstring"open" (default), "resolved", or "all".
issueTypestringFilter by issue type.
limitnumberPage size (default 20).
offsetnumberPagination offset.
PATCH/api/patternsAuth required

Update a pattern's status. Also bulk-updates linked reports.

ParamTypeDescription
id*numberPattern ID.
status*string"open" or "resolved".

Flow Suggestions

Manage navigation suggestions shown in the on-site widget.

GET/api/flowsAuth required

List all flow suggestions for a project.

ParamTypeDescription
projectId*stringProject ID.
sourcestringFilter by source: "manual", "auto", or "sitemap".
POST/api/flowsAuth required

Create a flow suggestion.

ParamTypeDescription
projectId*stringProject ID.
sourceUrlPattern*stringURL pattern where the suggestion appears.
targetUrl*stringURL the suggestion links to.
targetLabel*stringDisplay label for the suggestion.
prioritynumberSort priority (default 10).
PUT/api/flowsAuth required

Update a flow suggestion.

ParamTypeDescription
id*numberSuggestion ID.
targetLabelstringNew label.
prioritynumberNew priority.
isActivebooleanEnable or disable.
DELETE/api/flows?id={id}Auth required

Delete a flow suggestion.

ParamTypeDescription
id*numberSuggestion ID (query param).

Flow Config

GET/api/flows/configAuth required

Get the flow widget configuration for a project.

ParamTypeDescription
projectId*stringProject ID.
PUT/api/flows/configAuth required

Update flow widget configuration.

ParamTypeDescription
projectId*stringProject ID.
enabledbooleanEnable or disable the widget.
displayModestring"frustration" or "always".
maxSuggestionsnumberMax suggestions to show.
widgetPositionstring"bottom-right" or "bottom-left".
widgetThemestring"dark" or "light".
autoDiscoverbooleanAuto-generate suggestions from navigation patterns.

Suggest (Tracker)

Public endpoint called by the on-site widget to fetch suggestions for the current page.

GET/api/flows/suggestPublic

Get active suggestions for a page. Rate-limited to 30 req/min per IP.

ParamTypeDescription
projectId*stringProject ID.
url*stringCurrent page URL.

Returns all active suggestions sorted by relevance to the current path. Excludes the current page from results.

Bulk Import

POST/api/flows/bulkAuth required

Create multiple flow suggestions in one request (max 50).

ParamTypeDescription
projectId*stringProject ID.
suggestions*arrayArray of { sourceUrlPattern, targetUrl, targetLabel, priority? }.
GET/api/flows/sitemapAuth required

Fetch and parse the project's sitemap.xml into a tree structure.

ParamTypeDescription
projectId*stringProject ID. The project must have a website_url configured.