v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBRum Audience Management
Query accounts
Query accounts with flexible filtering by account properties
post/api/v2/product-analytics/accounts/query
Request body
Example request
{
"data": {
"attributes": {
"limit": 20,
"query": "plan_type:enterprise AND user_count:>100 AND subscription_status:active",
"select_columns": [
"account_id",
"account_name",
"user_count",
"plan_type",
"subscription_status",
"created_at",
"mrr",
"industry"
],
"sort": {
"field": "user_count",
"order": "DESC"
},
"wildcard_search_term": "tech"
},
"id": "query_account_request",
"type": "query_account_request"
}
}Response
Successful response with account data
Example response
{
"data": {
"attributes": {
"hits": [
{
"first_browser_name": "Chrome",
"first_city": "San Francisco",
"first_country_code": "US",
"first_device_type": "Desktop",
"last_seen": "2025-08-14T06:45:12.142Z",
"session_count": 47,
"user_created": "2024-12-15T08:42:33.287Z",
"user_email": "john.smith@techcorp.com",
"user_id": "150847",
"user_name": "John Smith",
"user_org_id": "5001"
},
{
"first_browser_name": "Chrome",
"first_city": "Austin",
"first_country_code": "US",
"first_device_type": "Desktop",
"last_seen": "2025-08-14T05:22:08.951Z",
"session_count": 89,
"user_created": "2024-11-28T14:17:45.634Z",
"user_email": "john.williams@techcorp.com",
"user_id": "150848",
"user_name": "John Williams",
"user_org_id": "5001"
},
{
"first_browser_name": "Chrome",
"first_city": "Seattle",
"first_country_code": "US",
"first_device_type": "Desktop",
"last_seen": "2025-08-14T04:18:34.726Z",
"session_count": 23,
"user_created": "2025-01-03T16:33:21.445Z",
"user_email": "john.jones@techcorp.com",
"user_id": "150849",
"user_name": "John Jones",
"user_org_id": "5001"
}
],
"total": 147
},
"id": "query_response",
"type": "query_response"
}
}