Passer au contenu

📋 Get usage summary for a company

Requête

Get a high-level usage summary for a company.

Sécurité
APIKeyHeader
En-têtes
X-PDP-Client-Idstring(X-Pdp-Client-Id)obligatoire

ID of the PDP Client for which the operation is performed

Examples:
Sandbox client
client_abc123
curl -i -X GET \
  https://pdp.seqino.dev/api/usage/summary \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'X-PDP-Client-Id: client_abc123'

Réponses

Successful Response

Corpsapplication/json
company_idstring(Company Id)obligatoire
current_month_callsinteger, >= 0(Current Month Calls)obligatoire

API calls in current month

previous_month_callsinteger, >= 0(Previous Month Calls)obligatoire

API calls in previous month

month_over_month_changenumber(Month Over Month Change)obligatoire

Percentage change from previous month

most_used_endpointstring or null(Most Used Endpoint)obligatoire
Any of:

Most frequently used endpoint

string
least_used_endpointstring or null(Least Used Endpoint)obligatoire
Any of:

Least frequently used endpoint

string
peak_usage_daystring or null(Peak Usage Day)obligatoire
Any of:

Day with highest usage

string (date)
peak_usage_countinteger or null(Peak Usage Count)obligatoire
Any of:

Highest daily usage count

>= 0
integer
Response
{ "company_id": "string", "current_month_calls": 0, "previous_month_calls": 0, "month_over_month_change": 0, "most_used_endpoint": "string", "least_used_endpoint": "string", "peak_usage_day": "2019-08-24", "peak_usage_count": 0 }