Skip to content

API Key Metrics

This page provides routes for retrieving API key metrics.

Get User API Keys Metrics

This endpoint retrieves metrics for all API keys owned by the authenticated user.

GET https://nft-platform.azurewebsites.net/api/v1/api-keys/metrics/api-key-metrics

INFO

Authentication: Requires token for authentication. Permissions: Requires api_key_management and read permissions.

json
{
  "readRequestCount": 3,
  "writeRequestCount": 2
}

:::

HTTP Response Codes

Status CodeTextDescription
200OKWith an array of apikey objects and
400Bad RequestThe request was invalid or cannot be processed.
401UnauthorizedAuthentication is required or has failed.
403ForbiddenThe authenticated user is not authorized to perform the requested action.
404Not FoundThe requested resource could not be found.
500Internal Server ErrorAn unexpected error occurred.

Get API Key Metrics By ID

This endpoint retrieves metrics for a specific API key.

GET https://nft-platform.azurewebsites.net/api/v1/api-keys/metrics/api-key-metrics/{apiKeyId}

INFO

Authentication: Requires token for authentication. Permissions: Requires api_key_management and read permissions.

Parameters

ParameterTypeRequiredDescription
apiKeyIdstringYesThe ID of the api key to get
json
{
  "readRequestCount": 3,
  "writeRequestCount": 2
}

:::

HTTP Response Codes

Status CodeTextDescription
200OKWith an array of apikey objects and
400Bad RequestThe request was invalid or cannot be processed.
401UnauthorizedAuthentication is required or has failed.
403ForbiddenThe authenticated user is not authorized to perform the requested action.
404Not FoundThe requested resource could not be found.
500Internal Server ErrorAn unexpected error occurred.

API Documentation created with ❤️ by TrackGenesis