mcp

GET /api/v1/projects/{project_pk}/segments/

Changed on

Retrieves all user segments defined for audience targeting within the project.

Request

  • Base URL
    https://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

countinteger required
nextstring uri nullable
previousstring uri nullable

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_by response property oneOf list for the response status

    • info

      removed from the results/items/managed_by response property oneOf list for the response status

    • info

      added the optional property results/items/has_overrides to the response with the status