List audiences
GET /audiences
Returns the active audiences (contact segments and lists) covering one
shop (shop_id) or any of your shops, sorted by creation date
descending, with their current contact count.
Audiences are defined at the group level: an audience may cover every
shop of its group (all_shops, including shops added later) or a
subset of them (shop_ids).
Requires the audiences:read scope.
Returns a data array of up to limit audiences and a
pagination object. Fetch the next page by passing
pagination.next_cursor back as cursor, until has_more is
false. data is empty when nothing matches the filters.
contact_count is the size at the last recomputation, whose time is
given by last_computed_at.
Example request
curl "https://api.dokaa.app/v1/audiences" \
-H "Authorization: Bearer dk_live_..."Query parameters
shop_id(string) – Restrict to the audiences covering this shop (omit to query all your shops)type(string) (one of: segment, list) – Filter by audience typecursor(string) – Opaque cursor from the previous response’spagination.next_cursorlimit(integer) (default: 25; min: 1; max: 100) – Number of items per page
Responses
200 – Paginated list of audiences
{
"data": [
{
"id": "66f6a7b8c9d0e1f2a3b4c5d6",
"shop_id": "64f1a2b3c4d5e6f7a8b9c0d1",
"group_id": "64f0a1b2c3d4e5f6a7b8c9d0",
"all_shops": true,
"shop_ids": [
"64f1a2b3c4d5e6f7a8b9c0d1",
"64f1a2b3c4d5e6f7a8b9c0d2"
],
"name": "Clients fidèles",
"type": "segment",
"contact_count": 480,
"last_computed_at": "2026-08-06T03:00:00Z",
"created_at": "2026-02-10T10:00:00Z"
}
],
"pagination": {
"next_cursor": null,
"has_more": false
}
}401 – Missing, invalid, or revoked API key
403 – The API key does not grant access to this resource
422 – Invalid request parameters
Errors are application/problem+json (RFC 9457) with type, title, status and detail fields.