brl_read_ and needs the scopes your integration uses. Read keys expire after 90 days by default and can have a lifetime of 1 to 365 days.
Set
BRELLO_READ_KEY to a key with spend:read. If you run Brello yourself, substitute your deployment’s origin in the example.
Filters and pagination
Spend and end-user queries intersect all filters. Supplyfrom and to as UTC dates in YYYY-MM-DD format. The start is inclusive and the end is exclusive, with a maximum span of 366 days. By default, to is the next UTC midnight and from is 30 days before to. The default environment=all includes live and test events.
For spend, groupBy defaults to day. Use key to group by Brello ingestion key or providerKey to group by the provider credential’s SHA-256 fingerprint. Missing fingerprints form a null group. Model groups use provider:model. The endUserId filter takes a Brello UUID. Use externalId in end-user results to identify the corresponding application user.
Use limit from 1 to 100 (default 50) and offset from 0 to 10,000 (default 0). When pagination.hasMore is true, advance offset by limit within that range. The report archive accepts only these pagination parameters.
Cost estimates
Costs come from SDK usage and are expressed as decimal strings in micro-USD. One USD equals 1,000,000 micro-USD. Request counts are also decimal strings. UseknownEstimatedCostMicros for the priced subset. If any request is unpriced, estimatedCostMicros is null and unpricedRequestCount records how many requests lack a price.
Weekly reports
Reports are immutable snapshots for completed Monday-to-Monday UTC weeks, based on live SDK usage. The latest report returns404 until a snapshot exists. The report and its PDF use the same stored snapshot. Send a read key with reports:read when following a report URL or downloading its PDF.
Errors and retries
A401 means the key cannot authenticate. A 403 means the key lacks the required scope. Reads allow 120 requests per minute per key per server process. For 429 and 503, use Retry-After in seconds and bound your retries. Responses use Cache-Control: no-store. Error responses include a request ID.