API reference
API usage
Request volume, error rate and latency for your own API traffic.
1 operationBase URL https://packetexchange.io/api/v1Postman collection
BrowseAPI usage
Get API usage for your account or one key
GET/
- Access
- API key. Scoped keys need
account:read. - Rate limit
- 100 requests per second (the default)
Request volume, error rate, p95 latency, per-day counts and top endpoints over a trailing window (default 7 days, max 90). Pass keyId to see one API key; omit it for all traffic including dashboard sessions.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
days | query | integer | Trailing window in days (1-90)Default 7 |
keyId | query | string (uuid) | Only requests made with this API key (one of yours) |
Response 200
| Field | Type | Description |
|---|---|---|
datarequired | object | - |
totalRequestsrequireddata.totalRequests | integer | - |
errorRaterequireddata.errorRate | number | Fraction of requests answered 4xx/5xx, 0 to 1 |
p95LatencyMsrequireddata.p95LatencyMs | integer | - |
byDayrequireddata.byDay | object[] | - |
daterequireddata.byDay[].date | string | YYYY-MM-DD (UTC) |
countrequireddata.byDay[].count | integer | - |
errorsrequireddata.byDay[].errors | integer | - |
topEndpointsrequireddata.topEndpoints | object[] | - |
pathrequireddata.topEndpoints[].path | string | Route pattern, e.g. /api/v1/routes/:id |
countrequireddata.topEndpoints[].count | integer | - |
keyIdrequireddata.keyId | string (uuid) | null | The key the figures are filtered to, or null for all traffic |
Errors
- 400
VALIDATION_ERROR,INVALID_INPUTorBAD_REQUEST. ForVALIDATION_ERROR,error.detailsis an array of{ path, message }. - 401
UNAUTHORIZED: missing, invalid, expired or revoked credential. - 403
FORBIDDEN: not allowed - a scoped key lacks the scope, or the endpoint is session-only. - 429
RATE_LIMITED: slow down and retry after theRetry-Afterseconds. - 500
INTERNAL_ERROR: unexpected failure. QuoteX-Request-Idto support.