Skip to main content
GET
Read credit usage

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Required for authentication. Learn how to obtain an API key

Headers

x-magnific-team-id
string<uuid>

Personal token only: the team the call acts on (its UUID). The caller must be an active member of it. Without it, the team in the token is used; with neither, the call is team_required (400). Ignored for an API key, which always acts on its own team.

Query Parameters

granularity
enum<string>
default:day
Available options:
day,
week,
month,
year
start_date
string<date>
end_date
string<date>
project_references
string

Only these projects (up to 100). Comma-separated.

api_key_ids
string

Only these API keys (up to 100). Comma-separated.

group_ids
string

Only the members of these groups (up to 100). Comma-separated.

user_emails
string

Only these people (up to 100), case-insensitive. Usage through their API keys is filtered with api_key_ids. Comma-separated.

Response

The usage, one entry per time bucket.

data
object[]
required