GET
/
statistics
/
bar-chart
curl --request GET \
  --url https://api.gleap.io/v3/statistics/bar-chart \
  --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 chart data to retrieve (e.g., NEW_TICKETS_COUNT, MEDIAN_FIRST_RESPONSE_TIME)
Available options:
NEW_TICKETS_COUNT,
TICKET_CLOSE_COUNT,
REPLIES_COUNT,
MEDIAN_FIRST_RESPONSE_TIME,
MEDIAN_TIME_TO_CLOSE,
MEDIAN_REPLY_TIME,
MEDIAN_CONVERSATION_RATING,
MEDIAN_REASSIGNMENT_COUNT,
MEDIAN_TIME_TO_FIRST_ASSIGNMENT,
HELP_CENTER_ARTICLE_VIEW_COUNT,
NEWS_VIEW_COUNT,
KAI_INVOLVED,
MESSAGE_COUNT,
AI_QUESTIONS_ASKED_COUNT,
CUSTOMER_SUPPORT_REQUESTED,
SLA_BREACHES_COUNT,
SLA_STARTED_COUNT,
TICKET_CREATION_GROUPED_BY_DATE_AND_TAGS,
AI_RATING_GROUPED_BY_DATE
timezone
string
  • Timezone for date calculations (e.g., "America/New_York")
groupInterval
enum<string>
  • Grouping interval ("day", "month", "year")
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.