Get Daily Credit Usage
Changed onRetrieve daily API and UI credit consumption for your team, by charge date. Set group_by=search_pattern to group each day's credits by search patterns with the same stable filters. Charges without a search pattern appear as Other usage. Filter by types, exact endpoint path, origin, API key or search_pattern_key. Each group includes observed endpoints and origins. Choose exactly one group_by dimension: search_pattern, endpoint or origin. Omit it for daily totals. endpoints and origins are independent multiselect filters (OR within each, AND between them). Unfiltered grouped totals include all credits.
Request
- Base URLhttps://api.theirstack.com
- URLhttps://api.theirstack.com/v0/teams/credits_consumption
- AuthHTTP bearer
Query parameters
Start datetime in ISO format (e.g., 2023-01-01T00:00:00)
End datetime in ISO format (e.g., 2023-01-01T23:59:59)
Only charges associated with this canonical search pattern.
Filter by search type.
Match any exact request URL path; unassigned selects charges without a recorded endpoint. Intersects the singular endpoint filter.
Match any HTTP response status code.
Exact request URL path, e.g. /v1/jobs/search; host and query string are ignored.
IANA timezone, such as Europe/Madrid.
Response
Successful Response
Changes
- breaking
removed the enum value
campaignfrom the propertyanyOf[subschema #1]/of thequeryrequest parametergroup_by - warning
deleted the
queryrequest parametercampaign_key - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added the new optional
queryrequest parametersearch_pattern_key - info
added the enum value
search_patternto the propertyanyOf[subschema #1]/of thequeryrequest parametergroup_by - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking
- info
added the new optional
queryrequest parameterapi_key_id - info
added the new optional
queryrequest parametercampaign_key - info
added the new optional
queryrequest parameterendpoint - info
added the new optional
queryrequest parameterendpoints - info
added the new optional
queryrequest parametergroup_by - info
added the new optional
queryrequest parameteris_origin_app - info
added the new optional
queryrequest parameterorigin - info
added the new optional
queryrequest parameterorigins - info
added the new optional
queryrequest parameterstatus_codes - info
added the new optional
queryrequest parametertypes - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info