AI usage
GET
/api/billing/usage
const url = 'https://met.cards/api/billing/usage?by=feature';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://met.cards/api/billing/usage?by=feature' \ --header 'Authorization: Bearer <token>'Calls, tokens and what was charged in one AI period, by feature or by member (with each member’s limit). Defaults to the current period.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”by
required
string
period
string
Any day (YYYY-MM-DD) inside the AI period to show. Defaults to the current period.
Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}