Gets project's usage api requests count
get
/v1/projects/{ref}/analytics/endpoints/usage.api-requests-countThe fine-grained token must include the following permissions to access this endpoint:
- analytics_usage_read
Path parameters
- refRequiredstring
Project ref
Response codes
- 200
- 401
- 403
- 429
- 500
Response (200)
{ "result": [ { "count": 42 } ], "error": "lorem"}{ "type": "object", "properties": { "result": { "type": "array", "items": { "type": "object", "properties": { "count": { "type": "number" } }, "required": [ "count" ] } }, "error": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "code": { "type": "number" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "domain": { "type": "string" }, "location": { "type": "string" }, "locationType": { "type": "string" }, "message": { "type": "string" }, "reason": { "type": "string" } }, "required": [ "domain", "location", "locationType", "message", "reason" ] } }, "message": { "type": "string" }, "status": { "type": "string" } }, "required": [ "code", "errors", "message", "status" ] } ] } }}