S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

API Reference

Email Management

Conversation Management

Configuration

Create API KeyGet API KeyGet API Key ActivityGet API Key StatsList API KeysRemove API KeyRotate API KeyUpdate API Key

Analytics & Operations

OpenAPI Specification
API ReferenceApiKeys

Get API Key Stats

GET
/api-keys/:id/stats

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Query Parameters

apiKeyId*string

API key ID

Formatuuid
period?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
    }
  ]
}

Get API Key Activity

Previous Page

List API Keys

Next Page

curl -X GET "https://samva.app/api/v1/api-keys/:id/stats?apiKeyId=497f6eca-6276-4993-bfeb-53cbbbba6f08"