GET
https://api.veriko.mx/v1/usage/historyMonthly usage history
How-to guide →Returns the authenticated user's monthly validation usage for up to months months with usage, most recent first. Months without usage are omitted.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
months | query | integer | optional | Number of months to include in the history (counting back from the moment of the query). Default: 6 |
curl -X GET 'https://api.veriko.mx/v1/usage/history' \
-H 'Authorization: Bearer veriko_••••'Python example — coming soon.
JavaScript example — coming soon.
PHP example — coming soon.
| Field | Type | Description |
|---|---|---|
data | object | Response body, in the JSON:API envelope. |
type | string | JSON:API resource type. Always usage_history |
attributes | object | History data: the month count and the per-month usage. |
months | integer | Number of months the returned history covers. e.g.6 |
history | array | One entry per month, most recent first. |
| Status | Class | Description | Body |
|---|---|---|---|
| 200 | 2xx | Monthly usage history ordered from most to least recent. | GetUsageHistoryAttributes |
| 401 | 4xx | Authentication is required or the provided credentials are invalid. | ErrorResponse |
| 403 | 4xx | Insufficient permissions. | ErrorResponse |
| Status | Code | Example |
|---|---|---|
| 401 | unauthorized | Invalid or missing authentication credentials. Envelope
|
| 403 | permission_denied | You do not have permission to access this resource. Envelope
|