Skip to contentSkip to navigationSkip to topbar

List cohort snapshots


(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/CohortSnapshots

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

Retrieves a paginated list of cohort snapshots.


Filtering

filtering page anchor
  • Use labels to filter by labels (format: key1:value1,key2:value2)
  • Use cohortId to filter COHORT-sourced snapshots for a specific cohort
  • Use storeId to filter STORE-sourced snapshots for a specific store

Use orderBy (CREATED_AT or COMPLETED_AT) and orderDirection (ASC or DESC). Default: CREATED_AT DESC.


Token-based pagination via pageSize and pageToken.


Authentication

authentication page anchor
Property nameTypeRequiredDescription
labelsstring

Optional

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

Format: key1:value1,key2:value2

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

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

Reserved (twilio__) label 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._~-]+)*$

storeIdstring

Optional

Filter to cohort snapshots for a specific store (STORE-sourced only)

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

cohortIdstring

Optional

Filter to cohort snapshots for a specific cohort (COHORT-sourced only)

Example: cmp_cohort_01h9d8r0vte3hz8tykdj329t7rPattern: ^cmp_cohort_[a-zA-Z0-9]{26}$Max length: 100

orderByenum<string>

Optional

Field to order results by

Default: CREATED_ATPossible values:
CREATED_ATCOMPLETED_AT

orderDirectionenum<string>

Optional

Sort direction for results

Default: DESCPossible values:
ASCDESC

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

200400401403404429500

OK - List of cohort snapshots

SchemaExample
Property nameTypeRequiredDescriptionChild properties
cohortSnapshotsarray[object]

Optional

List of cohort snapshots

Max items: 100

metaobject

Optional

Pagination metadata for list responses

List cohort snapshotsLink to code sample: List cohort snapshots
1
curl -X GET "https://audiences.twilio.com/preview/CohortSnapshots?orderBy=CREATED_AT&orderDirection=DESC&PageSize=20" \
2
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Response

Note about this response
1
{
2
"cohortSnapshots": [
3
{
4
"cohortSnapshotId": "cmp_cohortsnapshot_01h9d8r0vte3hz8tykdj329t7r",
5
"source": {
6
"cohortId": "cmp_cohort_01h9d8r0vte3hz8tykdj329t7r"
7
},
8
"profileCount": 15420,
9
"partitionCount": 4,
10
"variables": [
11
{
12
"expression": "profile.address.email",
13
"displayName": "email"
14
},
15
{
16
"expression": "profile.trait.Contact.firstName",
17
"displayName": "first_name"
18
}
19
],
20
"labels": {
21
"environment": "production"
22
},
23
"createdAt": "2026-01-15T10:00:00Z",
24
"completedAt": "2026-01-15T10:03:45Z",
25
"profilesExpiresAt": "2026-01-22T10:00:00Z"
26
}
27
],
28
"meta": {
29
"key": "cohortSnapshots",
30
"pageSize": 1
31
}
32
}