Skip to main content
Rodz API
FR EN
v2.0.0

Reference / Account Management / Get API usage & credit consumption

Get API usage & credit consumption

See exactly which API calls, watchlist checks and follower extractions are consuming your credits, so you can pinpoint the integration or workflow that's spending the most and dial it back.

GET https://api.rodz.io/api/v1/account/credits/usage

Documented from the OpenAPI contract, API version 2.0.0.

Read the full description

See exactly which API calls, watchlist checks and follower extractions are consuming your credits, so you can pinpoint the integration or workflow that’s spending the most and dial it back.

Input: from/to (ISO-8601 timestamps; default is the last 7 days), an optional endpoint to filter to a single route (e.g. /v4/firmographic, /enrichment/phone for phone lookups, /watchlists/poll for watchlist checks, /followers/extraction for follower extractions), interval (hour or day, default hour) controlling the time-series bucket size, and limit/offset (default 100 / 0) to page through the individual-call log.

Output: totalCalls and totalCredits for the window; byEndpoint — a per-route rollup sorted by spend, so you can see which route costs the most; timeSeries — calls and credits per hour or day, to spot exactly when a spike began; and calls — a paginated log of individual billed calls (timestamp, route, credits) for a precise per-call, per-time-range, per-route view. Each phone lookup that found a number is one call on /enrichment/phone. A phone found for a signal’s lead is part of that signal’s cost and is not listed here. Each profile a watchlist checks is one call on /watchlists/poll. Each follower extraction you order is one call on /followers/extraction for the credits reserved when it starts; the credits it did not use come back later as a line with negative credits, so the route shows what the extraction really cost.

Authentication and headers

Every route needs an API key. You create it in the dashboard, under Integrations then API. See how to get a key.

Authorization required

Bearer followed by your API key, for example Bearer USR_...

Parameters

from string (date-time) query optional accepts null

Window start (ISO-8601). Defaults to 7 days ago.

to string (date-time) query optional accepts null

Window end (ISO-8601). Defaults to now.

endpoint string query optional accepts null

Filter to a single route, e.g. /v4/firmographic.

interval string query optional

Time-series bucket size: hour or day.

  • pattern: ^(hour|day)$
default
"hour"
limit integer query optional

Max individual calls to return (pagination).

  • minimum: 1
  • maximum: 1000
default
100
offset integer query optional

Offset into the individual-call log.

  • minimum: 0
default
0

Responses

200 OK
Response schema
fromDate string (date-time) required

Start of the window (UTC).

toDate string (date-time) required

End of the window (UTC).

totalCalls integer required

Total billed calls in the window (after any route filter).

totalCredits number required

Total credits consumed in the window (after any route filter).

byEndpoint object[] optional

Per-route rollup, highest spend first.

3 fields in byEndpoint
endpoint string required

The API route that was called.

example
"/v4/firmographic"
calls integer required

Number of billed calls to this route in the window.

example
2414
credits number required

Credits consumed by this route in the window.

example
1207
timeSeries object[] optional

Usage per time bucket (hour or day), oldest first.

3 fields in timeSeries
bucket string (date-time) required

Start of the time bucket (UTC).

example
"2026-07-23T16:00:00+00:00"
calls integer required

Billed calls in this bucket.

example
1031
credits number required

Credits consumed in this bucket.

example
515.5
calls object[] optional

Individual billed calls, newest first (paginated via limit/offset).

3 fields in calls
timestamp string (date-time) required

When the call was billed (UTC).

example
"2026-07-23T16:42:07+00:00"
endpoint string required

The API route that was called.

example
"/v4/contact"
credits number required

Credits charged for this call. Negative when unused credits of a follower extraction were given back.

example
0.5
hasMore boolean optional

True if more calls exist beyond this page.

default
false
422 Validation Error
Response schema · HTTPValidationError
detail object[] optional
5 fields in detail
loc string | integer[] required
msg string required
type string required
input any optional
ctx object optional
429 Rate limit exceeded. Retry after the number of seconds in the Retry-After response header.