Segments

Get a segment

Returns a single segment. The segment must belong to the active project.

GET /api/v1/segments/{segment}

Path parameters

Name Type Required Description
segment integer Required

The numeric ID of the segment.

Query parameters

Name Type Required Description
include string Optional

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

Response

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.