# Reports

**URL:** https://furcata.com/en/docs/reports  
**Type:** doc

Reports return aggregated messaging usage and cost. There are two report endpoints, plus a CSV download of the per-account report:

- GET /report/accounts — usage aggregated across every account the authenticated user owns.
- GET /report/account/{account_id} — usage for one account.
- GET /report/account/{account_id}/download — the same per-account data as a CSV file.

Both JSON endpoints accept the same filter parameters and return the same response shape.

### Before you start

- The Authorization header is required and must carry a Furcata access token.
- GET /report/accounts needs no account id — it reports on every account you own.
- The per-account endpoints take the account id in the path.
- All timestamps are ISO-8601 with an explicit UTC offset. The API never infers or converts timezones — convert the caller's local day to UTC before sending.

### Query usage across all accounts

GET /report/accounts returns usage for every account the authenticated user owns. The example below covers one full UTC day using the from and to settlement bounds.

#### Response fields

- timestamp — date-time at which the report was produced.
- eventsByType — object keyed by event type, each value the count for that type.
- total — total number of events in the window.
- inbound — events received.
- outbound — events sent.
- rate — rate applied to the usage in the window.
- credits — credits consumed.
- units — billable units.
- cost — cost for the window.
- raw — CSV data for the same result set.

### Query usage for one account

GET /report/account/{account_id} takes the account id in the path and the same filters, and returns the same response shape as GET /report/accounts.

### Filter parameters

All filter parameters are optional query parameters. The two JSON report endpoints accept the same set.

- from — settlement lower bound, inclusive. ISO-8601 timestamp with an explicit UTC offset (use Z). To cover a whole UTC day, set this to that day's first instant, for example 2026-09-21T00:00:00.000Z.
- to — settlement upper bound, inclusive. To cover a whole UTC day, set this to that day's last instant, for example 2026-09-21T23:59:59.999Z — not the next day's midnight, because this bound is inclusive.
- created — creation window. Either one ISO-8601 timestamp, used as an inclusive lower bound, or two comma-separated timestamps for a half-open [from, to) range. Repeating the parameter is equivalent to the comma form.
- direction — inbound or outbound.
- type — one of message, sms, mms, voice, voicemail, call, whatsapp, action, unsubscribe, post.
- country — two-letter ISO 3166-1 alpha-2 country code, normalized to upper case.
- language — two-letter ISO 639-1 language code, for example en or es.
- sentiment.text — one of clearly_positive, positive, neutral, mixed, negative, clearly_negative, unknown.
- contact — contact document id.
- service — service id.
- filters — an opaque base64 filter payload carrying the same filters as the flat parameters. It is decoded and revalidated against the identical schema, and when present it supersedes any flat copy of a filter it carries. from and to cannot appear inside it and stay top-level. Percent-encode the value: an unencoded + arrives as a space and fails to decode.

## Note

##### Bounds are inclusive and UTC-based

from and to are both inclusive settlement bounds. Set to to the last instant of the day you want (23:59:59.999), not the next day's midnight, or the window will include an extra instant. Convert the caller's local day to UTC before sending, because the API never infers or converts timezones.

### Download a report as CSV

GET /report/account/{account_id}/download produces a text/csv file for one account. It accepts the same filters as the JSON report endpoints.

- 200 — the CSV report file.
- 204 — no data available for the filters you supplied.

### Errors

- 400 — a filter value failed validation, or an opaque filters payload could not be decoded.
- 401 — the Authorization header is missing or the token is not valid.
- 403 — the caller is not permitted to read the requested account.
- 429 — too many requests. See Rate limits.

Every error uses the envelope described in Errors and idempotency.
