Request Report Generation

Request generation of a CRM report for your organisation.

Supported report types:

TypeDescription
CHATAll chats with filters for assignees, labels, priority, bot status, date range, etc.
CONTACTContact records with filters for search, channels, creation date, custom fields
TICKETTickets with filters for resolution status, priority, assignees, date range
CALL_LOGCall logs with filters for direction, status, agents, duration, date range
GOALGoal events with filters for date range, goal IDs, channels, tracker values

Required steps before calling:

  1. Obtain a JWT via POST /api/wp-crm/token
  2. Choose a reportType and optionally add filter fields to narrow the report scope

Security:

  • The organisationId in the URL path must match the organisation your JWT was issued for. The token is cryptographically bound to a specific organisation — requests targeting a different organisation will fail with 401 Unauthorized.
  • Only users with CRM_ADMIN or ACCOUNT_OWNER role in the organisation can request reports. Other roles will receive a 403 Forbidden.

Rate limiting: Only one report per type per organisation can be generated every 5 minutes. If a report is already being generated or was recently completed, you'll receive a 409 Conflict.

Returns a report record with status PENDING. Poll GET /api/wp-crm/reports/:organisationId to check when it completes, then use the download endpoint.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Your organisation UUID (returned as org from the /token endpoint)

Body Params
string
enum
required

Type of report to generate

Allowed:
boolean

Filter by archived status

boolean

Filter by resolved/closed status. Omitted/false = only open chats; true = only resolved/closed chats.

boolean

Filter by high priority status

boolean

Filter chats handled by bot (autopilot OR active bot journey)

boolean

Filter unanswered chats (last message from guest)

boolean

Filter by assignee presence (true=assigned, false=unassigned)

boolean

Filter chats with active agent-transferred bot session

boolean

Filter chats with closed/completed bot session

assignedToUserIds
array of strings

Filter chats assigned to specific user IDs

assignedToUserIds
assignedToTeamIds
array of strings

Filter chats assigned to specific team IDs

assignedToTeamIds
boolean

Filter by primary assignee status

boolean

Filter chats with no primary assignee

boolean

Filter chats that have contacts attached

string

Search contacts by name or phone

stateMachineIds
array of strings

Filter by specific state machine IDs

stateMachineIds
currentStateIds
array of strings

Filter by current state IDs

currentStateIds
boolean

Filter chats that have state machines attached

string

Fuzzy search across chat names, external items, and contact names

string

Filter by chat type

channelIds
array of strings

Filter by specific channel IDs

channelIds
string

Filter chats updated after this date (ISO string)

string

Filter chats updated before this date (ISO string)

labelIds
array of strings

Filter chats that have any of these label IDs (OR logic)

labelIds
boolean

Filter chats that have labels attached

allLabelIds
array of strings

Filter chats that have ALL of these label IDs (AND logic)

allLabelIds
string

Search contacts by name, phone, or email (CONTACT report)

contactChannelIds
array of strings

Filter contacts by channel IDs (CONTACT report)

contactChannelIds
boolean

Filter contacts that have linked chats (CONTACT report)

string

Filter contacts created after this date (CONTACT report)

string

Filter contacts created before this date (CONTACT report)

contactCreatedByUserIds
array of strings

Filter contacts created by specific user IDs (CONTACT report)

contactCreatedByUserIds
string

JSON-encoded array of custom field filter rules for CONTACT reports. Each rule: { field, operator, value }.

boolean

Filter tickets by resolution status (TICKET report)

ticketPriorityLevels
array of strings

Filter tickets by priority levels (TICKET report)

ticketPriorityLevels
ticketAssignedToUserIds
array of strings

Filter tickets by assigned user IDs (TICKET report)

ticketAssignedToUserIds
ticketCreatedByUserIds
array of strings

Filter tickets by creator user IDs (TICKET report)

ticketCreatedByUserIds
ticketMachineIds
array of strings

Filter tickets by ticketing machine IDs (TICKET report)

ticketMachineIds
string

Filter tickets created after this date (TICKET report)

string

Filter tickets created before this date (TICKET report)

string

Search tickets by remarks, chat name, or issue names (TICKET report)

string

Filter calls by direction: INBOUND or OUTBOUND (CALL_LOG report)

callStatuses
array of strings

Filter calls by statuses (CALL_LOG report)

callStatuses
callAgentUserIds
array of strings

Filter calls by agent user IDs (CALL_LOG report)

callAgentUserIds
string

Filter calls by calling account ID (CALL_LOG report)

string

Filter calls initiated after this date (CALL_LOG report)

string

Filter calls initiated before this date (CALL_LOG report)

string

Search calls by phone number — matches callerNumber, calledNumber, and linked chat wpChatId (CALL_LOG report)

boolean

Filter calls linked to a chat (true) or not linked (false) (CALL_LOG report)

boolean

Filter calls that have a recording available (true) or not (false) (CALL_LOG report)

number

Minimum talk duration in seconds (CALL_LOG report)

number

Maximum talk duration in seconds (CALL_LOG report)

string

Search calls by hangup cause (CALL_LOG report)

string

Search by contact name, phone, or email via linked chat (CALL_LOG report)

string

Filter goal events recorded after this date (GOAL report)

string

Filter goal events recorded before this date (GOAL report)

goalIds
array of strings

Filter by specific goal IDs (GOAL report)

goalIds
goalChannelIds
array of strings

Filter by specific channel IDs (GOAL report)

goalChannelIds
string

JSON-encoded array of tracker value filter rules for GOAL reports. Each rule: { field, operator, value }.

Responses

401

Unauthorized — invalid/expired JWT or organisation ID does not match the token

403

Forbidden — user does not have CRM_ADMIN or ACCOUNT_OWNER role

409

A report of this type is already being generated or was recently completed. Wait 5 minutes between requests of the same type.

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