Metrics
Get Projects Dashboard Data
Authorization
apiKeyAuth x-api-key<token>
FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
projectIds*array<string>
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v0/metrics/projects-dashboard" \ -H "Content-Type: application/json" \ -d '{ "projectIds": [ "string" ] }'{
"stats": {
"property1": {
"events": 0,
"eventsPrevious": 0,
"eventsChange": 0,
"users": 0,
"usersPrevious": 0,
"usersChange": 0,
"errors": 0,
"errorsPrevious": 0,
"errorsChange": 0,
"lastActivity": "string"
},
"property2": {
"events": 0,
"eventsPrevious": 0,
"eventsChange": 0,
"users": 0,
"usersPrevious": 0,
"usersChange": 0,
"errors": 0,
"errorsPrevious": 0,
"errorsChange": 0,
"lastActivity": "string"
}
}
}{
"_tag": "UnauthorizedError",
"message": "string"
}{
"_tag": "ForbiddenError",
"message": "string",
"code": "string"
}{
"_tag": "NotFoundError",
"message": "string"
}{
"_tag": "InternalServerError",
"message": "string"
}