Skip to main content
POST
get usage

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Body of the request for the get usage

range
enum<string>
required

The range of the usage, last hour, day, week or month

Available options:
24h,
7d,
30d,
90d
Example:

"24h"

customer_id
string

The customer ID if you want to get the usage for a specific customer

Example:

"cus_1H7KQFLr7RepUyQBKdnvY"

project_id
string

The project ID (optional, only available for main projects)

Example:

"project_1H7KQFLr7RepUyQBKdnvY"

Response

The result of the get usage

usage
object[]
required