cURL
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>" } ] } }
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token <api-key>'
Successful response
The response is of type object.
object