For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get AI credit usage

Totals the AI replies, AI credits used, and conversations they were in, for a date range or one conversation. Without date filters, all time is included.

get
Authorizations
api_keystringRequired

Your business's Cekat API key, from Settings → Developers & API in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans.

Query parameters
conversation_idstring · uuidOptional
start_datestring · dateOptional

Only include items created on or after this date (YYYY-MM-DD). Cannot be combined with start_datetime.

Example: 2026-10-01
end_datestring · dateOptional

Only include items created on or before the end of this date (YYYY-MM-DD). Cannot be combined with end_datetime.

Example: 2026-10-31
start_datetimestringOptional

Only include items created at or after this time (YYYY-MM-DDTHH:mm:ss, optional offset such as +07:00 or Z). Cannot be combined with start_date.

Example: 2026-10-01T08:00:00+07:00
end_datetimestringOptional

Only include items created at or before this time (YYYY-MM-DDTHH:mm:ss, optional offset). Cannot be combined with end_date.

Example: 2026-10-31T23:59:59+07:00
Header parameters
X-User-TimezonestringOptional

IANA time zone used to read date filters that have no offset. Defaults to Asia/Jakarta.

Example: Asia/Jakarta
Responses
200

The usage totals.

application/json
successbooleanOptional
get/api/messages/summary/ai_credits
GET /api/messages/summary/ai_credits HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "total_ai_messages": 1834,
    "total_ai_credits_used": 2410,
    "total_conversations": 412
  }
}

Last updated