Download OpenAPI specification:Download
This endpoint requires the following permission(s): audiences:audiences:read. This endpoint belongs to the Audiences domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
{- "object": "list",
- "items": [
- {
- "object": "audience",
- "id": "aud1a2b3c4d5e6f7g8",
- "project_id": "proj1ab2c3d4",
- "customer_list_id": "list1a2b3c4d",
- "name": "Active subscribers",
- "rules": {
- "groups": [
- {
- "conditions": [
- {
- "field": "status",
- "operator": "is",
- "value": "active"
}
]
}
]
}, - "created_at": 1658399423658,
- "updated_at": 1658399423658,
- "stats": {
- "total_customers": 6436,
- "active_subscriptions": 4120,
- "active_trials": 10,
- "total_revenue": 2630746.46,
- "currency": "USD",
- "is_approximate": false
}, - "customer_sample": [
- {
- "object": "audience_member",
- "app_user_id": "stub_user_1",
- "app_uuid": "00000000-0000-0000-0000-000000000001",
- "email": "stub1@example.com",
- "first_seen_at": 1704067200000,
- "last_seen_at": 1704153600000,
- "status": "active",
- "total_spent": 129.97,
- "currency": "USD",
- "latest_product_name": "Pro Annual"
}
], - "used_by": {
- "object": "audience_used_by",
- "targeting_rules": [
- {
- "object": "targeting_rule_reference",
- "id": "a1b2c3d4e5",
- "display_name": "US iOS users",
- "state": "active"
}
], - "experiments": [
- {
- "object": "experiment_reference",
- "id": "exp1a2b3c4d5e6f7",
- "display_name": "Paywall price test",
- "status": "running"
}
]
}
}
], - "next_page": null,
- "url": "/v2/projects/proj1ab2c3d4/audiences"
}This endpoint requires the following permission(s): audiences:audiences:read_write. This endpoint belongs to the Audiences domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| name required | string [ 1 .. 256 ] characters The name of the audience | ||||||||||||||||
required | object (AudienceRules) The audience membership rules. A subscriber matches the audience when any group matches (groups are combined with OR); within a group all conditions must match (conditions are combined with AND). | ||||||||||||||||
| |||||||||||||||||
{- "name": "Active subscribers",
- "rules": {
- "groups": [
- {
- "conditions": [
- {
- "field": "status",
- "operator": "is",
- "value": "active"
}
]
}
]
}
}{- "object": "audience",
- "id": "aud1a2b3c4d5e6f7g8",
- "project_id": "proj1ab2c3d4",
- "customer_list_id": "list1a2b3c4d",
- "name": "Active subscribers",
- "rules": {
- "groups": [
- {
- "conditions": [
- {
- "field": "status",
- "operator": "is",
- "value": "active"
}
]
}
]
}, - "created_at": 1658399423658,
- "updated_at": 1658399423658,
- "stats": {
- "total_customers": 6436,
- "active_subscriptions": 4120,
- "active_trials": 10,
- "total_revenue": 2630746.46,
- "currency": "USD",
- "is_approximate": false
}, - "customer_sample": [
- {
- "object": "audience_member",
- "app_user_id": "stub_user_1",
- "app_uuid": "00000000-0000-0000-0000-000000000001",
- "email": "stub1@example.com",
- "first_seen_at": 1704067200000,
- "last_seen_at": 1704153600000,
- "status": "active",
- "total_spent": 129.97,
- "currency": "USD",
- "latest_product_name": "Pro Annual"
}
], - "used_by": {
- "object": "audience_used_by",
- "targeting_rules": [
- {
- "object": "targeting_rule_reference",
- "id": "a1b2c3d4e5",
- "display_name": "US iOS users",
- "state": "active"
}
], - "experiments": [
- {
- "object": "experiment_reference",
- "id": "exp1a2b3c4d5e6f7",
- "display_name": "Paywall price test",
- "status": "running"
}
]
}
}This endpoint requires the following permission(s): audiences:audiences:read. This endpoint belongs to the Audiences domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| audience_uuid required | string UUID of the saved audience. |
{- "audience_uuid": "abc12345"
}{- "object": "audience_preview",
- "stats": {
- "total_customers": 6436,
- "active_subscriptions": 4120,
- "active_trials": 10,
- "total_revenue": 2630746.46,
- "currency": "USD",
- "is_approximate": false
}, - "customer_sample": [
- {
- "object": "audience_member",
- "app_user_id": "stub_user_1",
- "app_uuid": "00000000-0000-0000-0000-000000000001",
- "email": "stub1@example.com",
- "first_seen_at": 1704067200000,
- "last_seen_at": 1704153600000,
- "status": "active",
- "total_spent": 129.97,
- "currency": "USD",
- "latest_product_name": "Pro Annual"
}
]
}Returns the known values for audience rule condition fields whose options are derived from the project's data (attribution fields, price experiments, and custom attributes). Custom attributes are returned as dynamic fields using the format customAttribute:<key>; requesting customAttribute expands to every known custom attribute. Fields with a fixed set of values (e.g. country, platform, status) are not served by this endpoint. This endpoint requires the following permission(s): audiences:audiences:read. This endpoint belongs to the Audiences domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
required | Array of strings or strings non-empty Example: fields=mediaSource Audience condition fields to load options for. Custom attributes use the field format |
{- "object": "list",
- "items": [
- {
- "object": "audience_filter_field_options",
- "field": "mediaSource",
- "options": [
- {
- "object": "audience_filter_option",
- "id": "Facebook Ads",
- "display_name": "Facebook Ads"
}
], - "cardinality_exceeded": false
}
], - "next_page": null,
- "url": "/v2/projects/proj1ab2c3d4/audiences/filter_options"
}This endpoint requires the following permission(s): audiences:audiences:read. This endpoint belongs to the Audiences domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| audience_id required | string [ 1 .. 255 ] characters Example: aud1a2b3c4d5e6f7g8 ID of the audience |
| expand | Array of strings[ items [ 1 .. 5000 ] characters ] Items Enum: "stats" "customer_sample" "used_by" Example: expand=stats Specifies which fields in the response should be expanded.
Accepted values are: |
{- "object": "audience",
- "id": "aud1a2b3c4d5e6f7g8",
- "project_id": "proj1ab2c3d4",
- "customer_list_id": "list1a2b3c4d",
- "name": "Active subscribers",
- "rules": {
- "groups": [
- {
- "conditions": [
- {
- "field": "status",
- "operator": "is",
- "value": "active"
}
]
}
]
}, - "created_at": 1658399423658,
- "updated_at": 1658399423658,
- "stats": {
- "total_customers": 6436,
- "active_subscriptions": 4120,
- "active_trials": 10,
- "total_revenue": 2630746.46,
- "currency": "USD",
- "is_approximate": false
}, - "customer_sample": [
- {
- "object": "audience_member",
- "app_user_id": "stub_user_1",
- "app_uuid": "00000000-0000-0000-0000-000000000001",
- "email": "stub1@example.com",
- "first_seen_at": 1704067200000,
- "last_seen_at": 1704153600000,
- "status": "active",
- "total_spent": 129.97,
- "currency": "USD",
- "latest_product_name": "Pro Annual"
}
], - "used_by": {
- "object": "audience_used_by",
- "targeting_rules": [
- {
- "object": "targeting_rule_reference",
- "id": "a1b2c3d4e5",
- "display_name": "US iOS users",
- "state": "active"
}
], - "experiments": [
- {
- "object": "experiment_reference",
- "id": "exp1a2b3c4d5e6f7",
- "display_name": "Paywall price test",
- "status": "running"
}
]
}
}This endpoint requires the following permission(s): audiences:audiences:read_write. This endpoint belongs to the Audiences domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| audience_id required | string [ 1 .. 255 ] characters Example: aud1a2b3c4d5e6f7g8 ID of the audience |
| name | string [ 1 .. 256 ] characters The name of the audience | ||||||||||||||||
object (AudienceRules) The audience membership rules. A subscriber matches the audience when any group matches (groups are combined with OR); within a group all conditions must match (conditions are combined with AND). | |||||||||||||||||
| |||||||||||||||||
{- "name": "Active subscribers",
- "rules": {
- "groups": [
- {
- "conditions": [
- {
- "field": "status",
- "operator": "is",
- "value": "active"
}
]
}
]
}
}{- "object": "audience",
- "id": "aud1a2b3c4d5e6f7g8",
- "project_id": "proj1ab2c3d4",
- "customer_list_id": "list1a2b3c4d",
- "name": "Active subscribers",
- "rules": {
- "groups": [
- {
- "conditions": [
- {
- "field": "status",
- "operator": "is",
- "value": "active"
}
]
}
]
}, - "created_at": 1658399423658,
- "updated_at": 1658399423658,
- "stats": {
- "total_customers": 6436,
- "active_subscriptions": 4120,
- "active_trials": 10,
- "total_revenue": 2630746.46,
- "currency": "USD",
- "is_approximate": false
}, - "customer_sample": [
- {
- "object": "audience_member",
- "app_user_id": "stub_user_1",
- "app_uuid": "00000000-0000-0000-0000-000000000001",
- "email": "stub1@example.com",
- "first_seen_at": 1704067200000,
- "last_seen_at": 1704153600000,
- "status": "active",
- "total_spent": 129.97,
- "currency": "USD",
- "latest_product_name": "Pro Annual"
}
], - "used_by": {
- "object": "audience_used_by",
- "targeting_rules": [
- {
- "object": "targeting_rule_reference",
- "id": "a1b2c3d4e5",
- "display_name": "US iOS users",
- "state": "active"
}
], - "experiments": [
- {
- "object": "experiment_reference",
- "id": "exp1a2b3c4d5e6f7",
- "display_name": "Paywall price test",
- "status": "running"
}
]
}
}