GET https://api.veriko.mx/v1/api/usage/export

Export API usage

Audience
public
Auth
API key
Permission
validations:read
How-to guide →

Downloads a file with the API request audit log for the authenticated user. The format parameter selects between CSV (default) and XLSX. Supports date range filtering. CSV is streamed with a UTF-8 BOM.

Parameters
Parameter In Type Required Description
date_from query string (date) optional

Start date (inclusive) of the range to export, in ISO 8601 format (YYYY-MM-DD).

date_to query string (date) optional

End date (inclusive) of the range to export, in ISO 8601 format (YYYY-MM-DD).

format query string optional

File format: `csv` (default) or `xlsx`.

Default: csv

limit query integer optional

Maximum number of rows to export. Unlimited when omitted.

Request
curl -X GET 'https://api.veriko.mx/v1/api/usage/export' \
  -H 'Authorization: Bearer mxcep_••••'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codes GET /v1/api/usage/export
Status Class Description Body
200 2xx CSV file (with UTF-8 BOM) or XLSX based on `format`. No body
401 4xx Authentication is required or the provided credentials are invalid. ErrorResponse
Response headers 200
Header Type Description
Content-Disposition string
Errors from GET /v1/api/usage/export
Status Code Detail
401 unauthorized

Invalid or missing authentication credentials.

Envelope
meta.request_id
c4d5e6f7a8b9