cURL
curl --request GET \ --url https://api.tokenterminal.com/v2/projects/{project_id}/metric-aggregations \ --header 'Authorization: Bearer <token>'
{ "data": [ { "project_name": "<string>", "project_id": "<string>", "metric_id": "<string>", "metric_aggregation_name": "<string>", "value": "<string>" } ] }
Use this endpoint to retrieve metric aggregation data for one project.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the project
Allows you to select one of the projects available.
OK
Show child attributes
Returns the project name used on the web application.
Returns the project ID used on the web application.
Returns the chosen metric for the project(s).
Returns the chosen metric metric aggregation for the project(s).
Returns the value of the chosen metric aggregation.