GET
/
v1
/
projects
/
statistics
/
chart
curl --request GET \
  --url https://api.tryhamsa.com/v1/projects/statistics/chart \
  --header 'Authorization: <api-key>'
{
  "success": false,
  "message": "success",
  "data": {
    "cost": [
      {
        "date": "2023-11-07T05:31:56Z",
        "value": 123,
        "unit": "<string>"
      }
    ],
    "requests": [
      {
        "date": "2023-11-07T05:31:56Z",
        "value": 123,
        "unit": "<string>"
      }
    ],
    "transcription": [
      {
        "date": "2023-11-07T05:31:56Z",
        "value": 123,
        "unit": "<string>"
      }
    ],
    "tokens": [
      {
        "date": "2023-11-07T05:31:56Z",
        "value": 123,
        "unit": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token <api-key>'

Query Parameters

startPeriod
string
required
endPeriod
string
required
projectId
string
required

Response

200
application/json
Successful response
success
boolean
default:false
message
string
default:success
data
object