Skip to main content
GET
/
public-api
/
performance
/
chat
/
by-user
Per-user chat cost + usage for a date window
curl --request GET \
  --url https://api.neoagent.io/public-api/performance/chat/by-user \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "credits_consumed": 123,
      "display_name": "<string>",
      "email": "<string>",
      "total_sessions": 123,
      "total_turns": 123,
      "user_key": "<string>"
    }
  ],
  "meta": {
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "timings_ms": {},
    "pagination": {
      "has_more": true,
      "next_cursor": "<string>"
    },
    "warnings": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Query Parameters

from
string
required

ISO-8601 window start (inclusive).

to
string
required

ISO-8601 window end (exclusive).

audience
string

Optional: msp (internal chat agents, default) or end-user (white-label end-user bot).

Response

Success.

data
ChatUserPerformance · object[]
required
meta
object
required