> ## Documentation Index
> Fetch the complete documentation index at: https://docs.permutive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Cohorts

**Tool name** `search_cohorts`

> [!NOTE]
>
> Read-only · Idempotent

Searches for cohorts matching a natural language query across one or more workspaces.

## Example prompt

> Find cohorts of high-income readers interested in luxury cars and premium lifestyle content.

## Parameters

**limit** `integer (int32)`

Maximum number of cohorts to return. Defaults to 20, and is capped at 200.

**max\_users** `integer (int64)`

Only include cohorts with at most this many users. Omit for no upper bound.

**min\_users** `integer (int64)`

Only include cohorts with at least this many users. Omit for no lower bound.

**query** `string` *required*

The keywords, persona or campaign description to match.

**workspace\_ids** `string[]` *required*

Workspaces to search across. min 1 item.

## Returns

**cohorts** `CohortSearchResult[]`

Cohorts matching the query, ranked by relevance (most relevant first).

**CohortSearchResult**

**available\_in\_workspaces** `string[]` *required*

Which of the requested workspaces this cohort can be used from. Pass any of these to follow-up tools. min 1 item.

**cohort\_type** `enum` *required*

Cohort type one of: `custom`, `lookalike`, `contextual`, `standard`, `classificationModel`, `advertiser`, `curated`.

**created\_at** `string (date-time)`

When the cohort was created (ISO-8601). Absent for cohort types that don't record a creation time (e.g. standard cohorts).

**name** `string` *required*

Human-readable cohort name.

**owning\_workspace** `string (uuid)`

Workspace where this cohort was originally defined.

**short\_id** `string` *required*

Short cohort identifier. Pass to get\_cohort\_detail, and as the cohort reference in measure\_audiences expressions.

**state** `string` *required*

Whether the cohort is enabled or disabled.

**subject\_entity** `enum` *required*

What the cohort targets: a user, a group of users (ie. a household), or a piece of content. one of: `user`, `user_group`, `content`.

**summary** `string`

A summary of how users are targeted in this cohort. May be absent for newly created cohorts.

**tags** `string[]`

Tags applied to the cohort. Empty when the cohort has none.

**users** `integer (int64)` *required*

Estimated unique users in the last 30 days, across the requested workspaces.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.