API ReferenceApiKeys
Get API Key Stats
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Query Parameters
apiKeyId*string
API key ID
Format
uuidperiod?unknown
Default
"30d"Value in
"7d" | "30d" | "90d"Response Body
application/json
curl -X GET "https://samva.app/api/v1/api-keys/:id/stats?apiKeyId=497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"totalRequests": 0,
"successfulRequests": 0,
"failedRequests": 0,
"avgLatency": 0,
"dailyVolume": [
{
"date": "string",
"requests": 0
}
],
"topEndpoints": [
{
"method": "string",
"path": "string",
"count": 0
}
]
}