API Keys

Get Api Key Usage

Get usage statistics and rate limits for an API key.

Args: key_id: The API key ID user_id: Authenticated user ID (from JWT) db: Database client

Returns: Current usage statistics and limits

get/api/v1/keys/{key_id}/usage

Request

  • Base URL: https://api.seoproai.co
  • URL: https://api.seoproai.co/api/v1/keys/{key_id}/usage
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/authorize, token URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/token)

Path parameters

key_idstring required

Headers

X-User-Idstring nullable
X-Organization-Idstring nullable
Authorizationstring nullable

Response

Successful Response

hourlyobject required
dailyobject required
monthlyobject required
allowedboolean required
limit_exceededstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.