Generate Report

Request a report, with the options of the Create report form of the Report extracts page. The report is generated in the background: the response returns it with the status waiting or queued. Read it with GET /reports/:reportId until its status is success, then download it from its download_url. With send_email, the account's admin user is also emailed when it is ready.

Parameters by report type. Each type takes the filters below, which are the ones its report applies. A filter the type doesn't take is refused with error code 4030, and so is a date_range_type it doesn't offer:
| Type | Filters | | --- | --- | | tickets | channel_ids, brand_ids, ticket_types, ticket_statuses, user_ids, tag_ids, languages, csat_received | | presales, channels, brands, tags, languages | channel_ids, brand_ids, ticket_types, ticket_statuses, user_ids, tag_ids, languages | | handsfree | channel_ids, brand_ids | | chats | channel_ids, brand_ids, user_ids, tag_ids, languages | | sla_breaches | channel_ids, brand_ids, ticket_types, user_ids | | ticket_custom_fields | channel_ids, brand_ids, ticket_types, user_ids, custom_field_ids (ticket fields) | | order_custom_fields | channel_ids, brand_ids, custom_field_ids (order fields), fulfillment_types, order_statuses | | user_log | channel_ids, brand_ids, user_ids (one user), tag_ids | | feedback | channel_ids, brand_ids, feedback_request_status | | agent_sessions | agent_ids | | billable_automations | automation_types, resolved | | agents, chatbot_qa, ebay_cases, templates | none |

date_range_type is created_at for every type. closed_at (tickets resolved in the period) is also offered for tickets, presales, channels, brands, tags, languages and user_log, and shipped_at and cancelled_at for order_custom_fields.

Types and plans. presales, handsfree, chatbot_qa, billable_automations, ebay_cases and feedback need the matching feature on the account; without it the type is refused with 4004.

Ids. A channel, brand, user, tag or custom field id that isn't the account's is refused with 4002, and so is a custom field of the other kind (an order field for ticket_custom_fields). The user log takes one user: more are refused with 4025.

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

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

string
enum
required

The report type.

date
required

First day of the period to report, as YYYY-MM-DD, from 00:00:00 in the time zone of the account's admin user.

date
required

Last day of the period to report, as YYYY-MM-DD, to 23:59:59. Not before date_from.

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