Skip to contentSkip to navigationSkip to topbar

List cohort definitions


(new)

Beta

Twilio Cohorts is currently available as a Private Beta product and the information contained in this document is subject to change. You acknowledge and agree that your use of Twilio Cohorts is subject to the terms of the Services in Private Beta(link takes you to an external page). This means that some features are not yet implemented and others may be changed before the product is declared as Generally Available. Private Beta products are not covered by the Twilio Support Terms or Twilio Service Level Agreement.

(warning)

Not a HIPAA Eligible Service or PCI Compliant

Twilio Cohorts is not a HIPAA Eligible Service or PCI compliant and should not be enabled in workflows that are subject to HIPAA or PCI.

GET/preview/Cohorts

Base url: https://audiences.twilio.com (base url)

Retrieves a list of cohort definitions with optional filtering.


Filtering

filtering page anchor

All filters are optional and combine with AND logic.

By Tags

by-tags page anchor

Use tags to filter by one or many tags. Format: key1:value1,key2:value2

Use storeType and storeId together to filter cohorts by their profile store.


Results are ordered by creation time, newest first (CREATED_AT, descending).


Token-based pagination via pageSize and pageToken (see meta.nextToken).


Property nameTypeRequiredDescription
tagsstring

Optional

Match resources by one or many tags. If more than one tag is specified in the query, the search returns resources that have all the tags (AND logic).

Format: key1:value1,key2:value2

Example: tags=environment:production,campaign:q1-2026

Filter character set: tag keys and values must match [a-zA-Z0-9._~-]+ (URL-safe unreserved characters). This is the same character set enforced when tags are written, so every tag that can be stored on a resource can also be filtered on here.

Reserved (twilio__) tag keys are rejected; filter on those through their dedicated query parameters (e.g. storeType/storeId) instead.

Pattern: ^[a-zA-Z0-9._~-]+:[a-zA-Z0-9._~-]+(,[a-zA-Z0-9._~-]+:[a-zA-Z0-9._~-]+)*$

storeTypeenum<string>

Optional

Filter by profile store type. Must be used together with storeId.

Example: TWILIOPossible values:
TWILIO

storeIdstring

Optional

Filter by profile store ID. Must be used together with storeType.

Example: mem_store_01h9d8r0vte3hz8tykdj329t7rPattern: ^mem_store_[a-zA-Z0-9]{26}$Min length: 36Max length: 36

pageSizeinteger

Optional

Maximum number of items to return in a single response. Must be between 1 and 100. Defaults to 20 when omitted.

Default: 20Minimum: 1Maximum: 100

pageTokenstring

Optional

An opaque, URL-safe cursor identifying the page of results to return. Pass back the meta.nextToken value from the previous response. If omitted, the API returns the first page of results.

The token's encoding and contents are an implementation detail and may change without notice, so do not decode, construct or modify one -- a malformed token is rejected. Carry it through unchanged.

Max length: 500

200400401403429500

OK - List of cohort definitions

Schema
Property nameTypeRequiredDescriptionChild properties
cohortsarray[object]

Optional

List of cohort definitions

Max items: 100

metaobject

Optional

Pagination metadata for list responses

List cohort definitionsLink to code sample: List cohort definitions
1
curl -X GET "https://audiences.twilio.com/preview/Cohorts?PageSize=20" \
2
-u $TWILIO_API_KEY:$TWILIO_API_SECRET

Response

Note about this response
1
{
2
"cohorts": [
3
{
4
"id": "cmp_cohort_01h9d8r0vte3hz8tykdj329t7r",
5
"displayName": "Active US Adults",
6
"description": "US-based adults aged 18 and older who have an email address",
7
"storeId": "mem_store_01h9d8r0vte3hz8tykdj329t7r",
8
"storeType": "TWILIO",
9
"criteria": "profile.trait.Contact.age >= 18 && profile.trait.Contact.country == \"US\" && has(profile.address.email)",
10
"tags": {
11
"environment": "production",
12
"campaign": "q1-2026"
13
},
14
"createdAt": "2026-01-15T10:00:00Z",
15
"updatedAt": "2026-01-15T10:00:00Z"
16
}
17
],
18
"meta": {
19
"key": "cohorts",
20
"pageSize": 1,
21
"previousToken": "previousToken",
22
"nextToken": "nextToken"
23
}
24
}