api_keys

API key metrics

Period-bound counts of the team's keys: by status, plus how many were minted and how many expired inside the window (created_in_period, expired_in_period). period {from, to} is required; filter narrows the set. The status split always rides aggregated.counts.groups.status: group_by is accepted and builds no groups[]. Counts key rows, not the traffic made with them.

Contract:

  • MCP tool get_api_keys_metrics, registry package mcp.id/api_keys, mount id.access.
  • Operation metrics, response envelope metrics.
  • Flags: read only.
post/api/api-keys/metrics

Request

  • Base URL
    https://beta.getsales.io/id/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Request body

group_by'status' nullable

Accepted for the shared contract and not split on: the status split always rides aggregated.counts.groups.status; no groups[] is built.

Response

metrics success envelope.

successtrue required
operation'metrics' required
applied_filtersobject

Changes

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