Skip to main content
POST
Query reports

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

An aggregation over reports of one type.

aggregate
object
required

The value computed for each group.

group_by
string[]
required

Fields of the report data to group by, such as data.symptom. Enums, numbers, booleans and strings of at most 255 characters can be grouped by. A report without a field groups under null.

Required array length: 1 - 3 elements
Pattern: ^data(\.[A-Za-z0-9_]+)+$
Example:
occurred_after
string<date-time>
required

Include reports that occurred at or after this time.

occurred_before
string<date-time>
required

Include reports that occurred before this time. At most 30 days after occurred_after.

type
string
required

Report type to query.

Required string length: 1 - 128
Example:

"bot_detection.observation"

filters
object

Exact matches on fields of the report data, keyed by field, such as {"data.site":"booking.com"}. Reports without the field do not match.

limit
integer
default:100

Maximum number of groups to return, largest value first.

Required range: 1 <= x <= 1000
schema_version
integer

Schema version to query. Fields are checked against this version's schema and only reports submitted with it are included. Defaults to the type's latest version.

Required range: x >= 1
task_filter
object

Only include reports whose task matches every filter given.

Response

Groups, largest value first

groups
object[]
required