Skip to main content
GET
/
metrics
/
api-usage
API request volume, error rate, and latency percentiles
curl --request GET \
  --url https://api-sandbox.ledgersyncappv2.com/v3/metrics/api-usage \
  --header 'Authorization: Bearer <token>'
{
  "total_requests": 1,
  "success_count": 1,
  "error_count": 1,
  "p50_latency_ms": 1,
  "p95_latency_ms": 1,
  "top_endpoints": [
    {
      "path": "<string>",
      "count": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

Pass your secret key in the Authorization header as a Bearer token: Authorization: Bearer sk_test_... (sandbox) or Bearer sk_live_... (production).

Keys are created in the developer portal and the plaintext secret is shown exactly once at creation. Treat them like passwords — never embed them in mobile apps or front-end code.

Query Parameters

from
string<date-time>

Inclusive lower bound (ISO-8601 timestamp). Defaults to now - 30 days when omitted.

to
string<date-time>

Exclusive upper bound (ISO-8601 timestamp). Defaults to now when omitted.

Response

Aggregated request stats.

total_requests
integer<int64>
required
Required range: x >= 0
success_count
integer<int64>
required

Requests with status < 400.

Required range: x >= 0
error_count
integer<int64>
required

Requests with status >= 400.

Required range: x >= 0
p50_latency_ms
number
required
Required range: x >= 0
p95_latency_ms
number
required
Required range: x >= 0
top_endpoints
object[]
required