Segments

List segments

Returns every segment belonging to the active project. The response is paginated. Every new project is seeded with a Direct Competitors segment.

GET /api/v1/segments

Query parameters

Name Type Required Description
page integer Optional

The page number to return. Defaults to 1.

per_page integer Optional

The number of items per page. Defaults to 25, maximum 100.

sort_by string Optional

The column to sort by. Defaults to created_at.

sort_order string Optional

The direction to sort by. Each endpoint has its own default.

include string Optional

A comma-separated list of related resources to include in the response. Allowed values: project, project.organization.

Response

Response schema

Field Type Description
data Segment[]
links PaginationLinks
meta PaginationMeta

The segment object

Field Type Description
id integer

The unique ID of the segment.

project_id integer

The ID of the project this segment belongs to.

name string

The display label of the segment.

created_at datetime

When the segment was created.

updated_at datetime

When the segment was last updated.