curl --request GET \
--url http://localhost:3000/api/audience{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"name": "VIP Customers",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"contactCount": 150,
"description": "High-value customers for priority campaigns"
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 150,
"totalPages": 8,
"hasNextPage": true,
"hasPreviousPage": false
}
}curl --request GET \
--url http://localhost:3000/api/audience{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"name": "VIP Customers",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"contactCount": 150,
"description": "High-value customers for priority campaigns"
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 150,
"totalPages": 8,
"hasNextPage": true,
"hasPreviousPage": false
}
}Page number (1-based)
x >= 11
Number of items per page
1 <= x <= 10020
Search term to filter results
100"john"
Field to sort by
"createdAt"
Sort order
asc, desc "desc"