capabilities.work

Create a cohort and its managed segment

One step with Flagsmith. We can help you get access.

Get something done

Create a cohort and its managed segment

Works with AI assistants

Use Flagsmith: its Flagsmith Environments API lets you create a cohort and its managed segment in a single step (POST /api/v1/environments/{environment_api_key}/cohorts/). Flagsmith also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I create a cohort that flags can target as a segment?
  • Does creating a cohort also create a segment for it?
Say it to your AI assistant
  • Create cohort {name} in environment {environment_api_key}.
  • Add a cohort called {name} to {environment_api_key} described as {description}.
For your developer

POST /api/v1/environments/{environment_api_key}/cohorts/ in Flagsmith Environments API. Full spec on APIs.io.