Skip to main content
GET
/
v2
/
usage
Retrieve account usage totals
curl --request GET \
  --url https://api.mezmo.com/v2/usage \
  --header 'Authorization: <api-key>'
{
  "from": "2022-12-31T23:59:59.999Z",
  "to": "2023-02-01T00:00:00.000Z",
  "results": {
    "plan_bytes": 123000,
    "restored_bytes": 1000,
    "7d_vr_bytes": 1000
  }
}

Documentation Index

Fetch the complete documentation index at: https://mezmo-9a59581a-mintlify-926f893d.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

This key is used for all apis with the exception of ingest. You can obtain it following these instructions and placing the key in the header of your call in the format of Authorization: Token {accesstoken} For example:

curl -H 'Authorization: Token <ACCESS TOKEN>'

Query Parameters

from
string
required

Start time. A date-time string as defined by the ISO 8601 date format. This date-time will be used to calculate the starting day; the exact time will not be used.

to
string
required

End time. A date-time string as defined by the ISO 8601 date format. This date-time will be used to calculate the ending day; the exact time will not be used.

Response

OK

from
string

The calculated starting time (exclusive) used internally.

to
string

The calculated ending time (exclusive) used internally.

results
object