GET
/
statistics
/
facts
curl --request GET \
  --url https://api.gleap.io/v3/statistics/facts \
  --header 'Authorization: Bearer <token>'
"<any>"

Authorizations

Authorization
string
header
required

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

Query Parameters

chartType
enum<string>
required
  • Type of fact data to retrieve (e.g., NEW_TICKETS_COUNT, MEDIAN_TIME_TO_CLOSE)
Available options:
MEDIAN_FIRST_RESPONSE_TIME,
MEDIAN_TIME_TO_CLOSE,
TICKET_CLOSE_COUNT,
MEDIAN_CONVERSATION_RATING,
TICKET_MEDIAN_REPLY_TIME,
MEDIAN_FIRST_ASSIGNMENT_TIME,
NEW_TICKETS_COUNT,
TICKET_COUNT_BY_QUERY,
TICKET_REPLIES_COUNT,
TICKET_WORKED_ON_COUNT,
TICKETS_WITH_OTHER_STATUS_THEN_OPEN_OR_CLOSED_COUNT,
HELP_CENTER_ARTICLE_VIEW_COUNT,
NEWS_VIEW_COUNT,
KAI_ANSWERED_COUNT,
KAI_NO_ANSWER_COUNT,
KAI_ROUTED_TO_AGENT_RATE_COUNT,
KAI_DEFLECTION_RATE,
KAI_ROUTED_TO_AGENT_RATE,
KAI_POSITIVE_FEEDBACK_RATE,
KAI_NEGATIVE_FEEDBACK_RATE,
KAI_POSITIVE_FEEDBACK_PERCENTAGE,
SNAPSHOT_AGENTS_ONLINE_COUNT,
SNAPSHOT_OPEN_TICKETS,
MESSAGE_COUNT,
AI_QUESTIONS_ASKED_COUNT,
SLA_BREACHES_COUNT,
SLA_COMPLIANCE,
SLA_NOT_COMPLIANCE,
SLA_BREACHES_COUNT,
SLA_NO_BREACHES_COUNT,
TICKETS_WITHOUT_COMMENTS_RATE,
KAI_DEFLECTION_COUNT,
KAI_ROUTED_TO_AGENT_COUNT
timezone
string
  • Timezone for date calculations
groupInterval
enum<string>
Available options:
day,
month,
year
skip
number
limit
number
groupedBy
string
aggsType
string
  • Aggregation type ("MEDIAN", "AVERAGE")
startDate
string
  • Start date for filtering (ISO format)
endDate
string
  • End date for filtering (ISO format)
createdAt
string
updatedAt
string

Response

200 - application/json

Ok

The response is of type any.