Skip to main content
The API Metrics endpoint returns a record of every API request made under your merchant account. Each entry captures the endpoint called, the HTTP method, the response status code, and how long the request took. This data is useful for monitoring integration health, identifying slow endpoints, and auditing usage patterns over time.
This endpoint requires the analytics:read permission on your API key.

Request

Headers

string
required
Bearer token using your API key. Format: Bearer cs_live_your_key

Query parameters

integer
default:"50"
Number of metric records to return per page. Maximum 100.
string
Pagination cursor returned by the previous response. Pass this value to retrieve the next page of results.

Response

200 — success

array
List of API request metric records.
integer
Number of metric records returned in this page.
boolean
true if additional pages of results are available.
string
Pagination cursor to pass as lastEvaluatedKey in your next request. null when you have reached the last page.

401 — unauthorized

Returned when your API key is missing, invalid, or lacks the analytics:read permission.

Example

Sample response (200)
Use lastEvaluatedKey from each response as the lastEvaluatedKey query parameter in your next request to paginate through all metric records. See the pagination guide for a full walkthrough.