Skip to main content
GET
/
v2
/
usage
/
tags
List Usage by Tag
curl --request GET \
  --url https://api.mezmo.com/v2/usage/tags \
  --header 'Authorization: <api-key>'
{
  "from": "<string>",
  "to": "<string>",
  "results": [
    {
      "name": "<string>",
      "total_bytes": 123
    }
  ]
}

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.

limit
integer

Maximum amount of tags to retrieve.

retention
string

Limit report to tags that contribute to a variable retention pool. Value must be a string indicating the retention pool duration, e.g. 7d for a seven day retention pool.

Response

OK

from
string

The calculated starting time (exclusive) used internally.

to
string

The calculated ending time (exclusive) used internally.

results
object[]