mcp
GET /api/v1/projects/{project_pk}/segments/
Changed onRetrieves all user segments defined for audience targeting within the project.
Request
- Base URLhttps://api.flagsmith.com
- Auth
- API key in header Authorization
- or API key in header Authorization
Path parameters
project_pkinteger required
Query parameters
identitystring
Optionally provide the id of an identity to get only the segments they match
include_feature_specificboolean
pageinteger
A page number within the paginated result set.
page_sizeinteger
Number of results to return per page.
qstring
Search term to find segment with given term in their name
Response
Example response
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Changes
- breaking
added to the
results/items/managed_byresponse propertyoneOflist for the response status - info
removed from the
results/items/managed_byresponse propertyoneOflist for the response status
- breaking
- info
added the optional property
results/items/has_overridesto the response with the status
- info