session

Get token counts for session

Changed on

Get total token counts for all text and tool-call parts in a session

get/session/{session_id}/token_counts

Request

  • Base URL: /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/session/{session_id}/token_counts
  • Auth: API key in header Authorization

Path parameters

session_idstring uuid required

Session ID

Response

OK

codeinteger
errorstring
msgstring

Changes