Aller au contenu principal
Rodz API
FR EN
v2.0.0

Référence / Account Management / Get API usage & credit consumption

Get API usage & credit consumption

Les résumés et descriptions des routes viennent du contrat OpenAPI et restent en anglais.

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

Documenté depuis le contrat OpenAPI, version 2.0.0 de l’API.

Lire la description complète

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.

Authentification et en-têtes

Toutes les routes demandent une clé d’API. Vous la créez dans le tableau de bord, sous Intégrations puis API. Voir comment obtenir une clé.

Authorization requis

Bearer suivi de votre clé d’API, par exemple Bearer USR_...

Paramètres

from string (date-time) query facultatif accepte null

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

to string (date-time) query facultatif accepte null

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

endpoint string query facultatif accepte null

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

interval string query facultatif

Time-series bucket size: hour or day.

  • pattern: ^(hour|day)$
par défaut
"hour"
limit integer query facultatif

Max individual calls to return (pagination).

  • minimum: 1
  • maximum: 1000
par défaut
100
offset integer query facultatif

Offset into the individual-call log.

  • minimum: 0
par défaut
0

Réponses

200 OK
Schéma de la réponse
fromDate string (date-time) requis

Start of the window (UTC).

toDate string (date-time) requis

End of the window (UTC).

totalCalls integer requis

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

totalCredits number requis

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

byEndpoint object[] facultatif

Per-route rollup, highest spend first.

3 champs dans byEndpoint
endpoint string requis

The API route that was called.

exemple
"/v4/firmographic"
calls integer requis

Number of billed calls to this route in the window.

exemple
2414
credits number requis

Credits consumed by this route in the window.

exemple
1207
timeSeries object[] facultatif

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

3 champs dans timeSeries
bucket string (date-time) requis

Start of the time bucket (UTC).

exemple
"2026-07-23T16:00:00+00:00"
calls integer requis

Billed calls in this bucket.

exemple
1031
credits number requis

Credits consumed in this bucket.

exemple
515.5
calls object[] facultatif

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

3 champs dans calls
timestamp string (date-time) requis

When the call was billed (UTC).

exemple
"2026-07-23T16:42:07+00:00"
endpoint string requis

The API route that was called.

exemple
"/v4/contact"
credits number requis

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

exemple
0.5
hasMore boolean facultatif

True if more calls exist beyond this page.

par défaut
false
422 Validation Error
Schéma de la réponse · HTTPValidationError
detail object[] facultatif
5 champs dans detail
loc string | integer[] requis
msg string requis
type string requis
input any facultatif
ctx object facultatif
429 Rate limit exceeded. Retry after the number of seconds in the Retry-After response header.