Schedule Report

Schedule a report, as the Automations tab of the Report extracts page does: from starts_at, then at every frequency, a new report is generated over the last date_range_days whole days before the run. The reports are listed by GET /reports. Each report type takes the filters, date range types and features described for POST /reports.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≤ 200

The report name, as eDesk lists it. Up to 200 characters.

string
enum
required

The report type.

string
enum
required

How often a report is generated.

Allowed:
string

When the first report is generated (UTC), as YYYY-MM-DD HH:MM:SS. Now when not sent. The schedule then runs at every frequency from that first report.

integer
enum
Defaults to 1

Each report covers this many whole days, up to the day before it is generated: 1 (yesterday), 7, 30 or 90.

Allowed:
string
enum
Defaults to created_at

What the date range applies to: when the tickets (orders for order_custom_fields, conversations for chatbot_qa, sessions for agent_sessions...) were created, when tickets were resolved (closed_at), or when orders were shipped or cancelled (order_custom_fields only). Which types offer which: see POST /reports.

Allowed:
channel_ids
array of int64s

Only these channels (GET /channels).

channel_ids
brand_ids
array of int64s

Only the channels of these brands; 0 for the channels that belong to no brand. With channel_ids too, only the channels in both.

brand_ids
ticket_types
array of strings

Only tickets of these types.

ticket_types
ticket_statuses
array of strings

Only tickets with these statuses (Locked: closed tickets that can no longer be reopened).

ticket_statuses
Allowed:
user_ids
array of int64s

Only tickets owned by these users (GET /users). For user_log, one user: by created_at, the actions of that user; by closed_at, the actions on the resolved tickets that user owns.

user_ids
tag_ids
array of int64s

Only tickets with these tags (GET /tags).

tag_ids
languages
array of strings

Only tickets in these languages, as language tags, e.g. en, de, en-US.

languages
custom_field_ids
array of int64s

The custom fields to report (GET /custom-fields): ticket fields for ticket_custom_fields, order fields for order_custom_fields. All of them without the parameter.

custom_field_ids
boolean

Only tickets that received a CSAT answer (true) or that didn't (false).

agent_ids
array of int64s

Only the sessions of these users (GET /users).

agent_ids
automation_types
array of strings

Only these automations: handsfree, chatbot or ai_agent.

automation_types
Allowed:
boolean

Only the automations that resolved the ticket (true) or that didn't (false).

string
enum

Only the orders whose feedback request was sent, or not sent.

Allowed:
fulfillment_types
array of strings

Only orders with these fulfillment types.

fulfillment_types
order_statuses
array of strings

Only orders with these statuses.

order_statuses
boolean
Defaults to false

Also email the account's admin user when the report is ready.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json