Segments

GETList segments

List reusable segments configured for a FlagForge project

GET/v1/projects/{projectId}/segments
List segments
curl --request GET \
  --url 'http://localhost:4000/v1/projects/{projectId}/segments' \
  --header 'Authorization: Bearer <token>'
200
application/json
{}

List segments

Use this endpoint to retrieve the reusable segments configured for a project. Call it when an operator or management tool needs to inspect the project’s segment keys, names, descriptions, and condition sets.

The result is wrapped in a data array, with each segment including its project association and creation and update timestamps. This endpoint only reads segment data and does not modify the project or its segments.

Authentication

Authorizationbearerrequired

Server API key (srv_). See Authentication.

Path Parameters

projectIdstringrequired

Project ID