Skip to main content
Manage the saved filter segments on one of the current team’s sites. A segment is a named snapshot of dashboard filters (name + filters) any workspace member can create, apply, update, or delete. Filters are the same allowlisted keys as reporting endpoints (see Filters); they are normalized through ResolveFilters on write, so unknown keys are dropped and visit_count must use an operator prefix (is:1 / gte:2 / lte:5). A site is addressed by {siteKey} (UUID or domain). All endpoints require Authorization: Bearer {token}. See Conventions for the base URL, headers, and error conventions shared by every endpoint.

List segments

List a site’s saved segments, ordered by name. Path parameters Response — flat JSON array of: Status: 200 OK.

Create a segment

Save the current filter stack as a named segment. At least one allowlisted filter must remain after normalization, otherwise the request returns 422. Body parameters Response — the created segment (same fields as the list). Status: 201 Created.

Update a segment

Rename a segment and/or replace its filters. Either field may be omitted; when filters is sent it must still contain at least one allowlisted key after normalization. A foreign/unknown segment id (not on this site) returns 404 Not Found. Path parameters Body parameters Response — the updated segment. Status: 200 OK.

Delete a segment

Remove a saved segment. Cannot be undone. A foreign/unknown segment id returns 404 Not Found. Path parameters Status: 204 No Content.