Analytics
GET /public/v1/campaigns/{campaignId}/analytics
Get time-series and breakdown analytics for a single campaign. Workspace admins and owners can access analytics for workspace members.
Request
- Base URLhttps://api.joinvalley.co
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
campaignIdstring required
The campaign ID to fetch analytics for.
Query parameters
startDatestring required
Start of the date range in YYYY-MM-DD format (e.g. 2026-01-01).
endDatestring required
End of the date range in YYYY-MM-DD format (e.g. 2026-01-31). Must be on or after startDate.
granularity'day' | 'week'
Time bucket size for the time series. Defaults to day.
Response
Default Response
Changes
No recorded changes to this operation across all 9 revisions of this API.