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

Get Team Spend Per Hit

This API is used to get team spending per hit data as JSON

post
Authorizations
AuthorizationstringRequired

Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."

Body
end_datestringRequired
project_idstringRequired
report_typestring · enumRequiredPossible values:
start_datestringRequired
team_idstringRequired
team_namestringRequired
Responses
200

Successful Response

application/json
codeintegerOptionalExample: 200
messagestringOptionalExample: Success
post/core/dekallm/usage/get/per-hit
POST /core/dekallm/usage/get/per-hit HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 119

{
  "end_date": "text",
  "project_id": "text",
  "report_type": "per_hit",
  "start_date": "text",
  "team_id": "text",
  "team_name": "text"
}
{
  "code": 200,
  "data": {
    "end_date": "text",
    "spend_logs": [
      {
        "call_type": "text",
        "completion_tokens": 1,
        "endTime": "text",
        "latency": 1,
        "model_group": "text",
        "prompt_tokens": 1,
        "request_id": "text",
        "spend": 1,
        "startTime": "text",
        "token_per_second": 1,
        "total_tokens": 1,
        "ttft": 1,
        "user_api_key_alias": "text"
      }
    ],
    "start_date": "text",
    "team_id": "text"
  },
  "message": "Success"
}

Last updated