Get an activity report
The activity report returns the organization’s metrics per time period (overview report) or user (comparison report).
Every report accepts the following parameters:
datetime_range: a time range to fetch data for. Either this field orrelative_rangeneeds to be specified.relative_range: a relative time range to fetch data for. The allowed values are:today,this-week,this-month,this-quarter,this-year,yesterday,last-week,last-month,last-quarter,last-year, andall-time. Either this field ordatetime_rangeneeds to be specified.query: a query to apply to the report to filter out data. The value of the field is a dictionary with the keytypeand any type-specific keys. For now only the typesaved_searchis allowed which takes the extra keysaved_search_idto specify the ID of a saved search. This parameter is optional.users: a list of user IDs to limit the report results to. This parameter is optional.type: the type of the report. The available values areoverviewandcomparison. This parameter is mandatory.metrics: a list of metrics (see List Activity Metrics) to fetch for the report. This parameter is mandatory.
The report can be requested either in a JSON format or in a CSV file. The format can be specified with the accept header.
Authentication
AuthorizationBasic
Use your API key as the username and leave the password empty.
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects any.
Response
Successful response
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error