Skip to main content
Rodz API
FR EN
v2.0.0

How-to / Integrate the API / API REST

How do you track your credits and manage a signal through the Rodz API: balance, usage, pause and stop?

Updated on · View on the site · Markdown version

In short

Read your balance with GET /api/v1/account/credits, then your usage history with GET /api/v1/account/credits/usage. List your signals with GET /api/v1/signals, read one with GET /api/v1/signals/{signal_id}, and set its status field to paused or active with PATCH to suspend or resume it. DELETE on the same route stops it: it no longer produces leads, and the leads already delivered are kept.

Key points

  • GET /api/v1/account/credits returns credits, the balance held by the account itself, as a decimal number (for example 1250.5).
  • The usage history covers the last 7 days by default (from and to); limit ranges from 1 to 1000, 100 by default.
  • status accepts only active or paused: any other value returns a 400 response with the code INVALID_STATUS.
  • DELETE /api/v1/signals/{signal_id} answers 204 with no body; the leads already delivered stay in your account and in your integrations.
Setup time
15 min

Before you start

  • A Rodz API key, created under Integrations → API in the dashboard (format USR_...), stored in the RODZ_API_KEY variable.
  • The id (id) of a signal, returned when it is created or by GET /api/v1/signals, stored in the SIGNAL_ID variable.
  • Python 3.9+ with the requests library (pip install requests), or just curl.

Steps

  1. Step 1. Read your credit balance

    GET /api/v1/account/credits takes no parameter and no body. The response gives credits, the balance held by the account itself, as a decimal number, and companyName (the registered company name, or null).

    A client workspace that uses its agency’s shared credits also gets sharedPool, with agencyName and poolHasCredits. It spends its own credits first, then the agency’s: read poolHasCredits rather than credits to know whether it can still activate signals. For every other account, sharedPool is null.

    Read the balance

    curl "https://api.rodz.io/api/v1/account/credits" \
      -H "Authorization: Bearer $RODZ_API_KEY"
  2. Step 2. Read the usage history

    GET /api/v1/account/credits/usage shows which API calls, watchlist checks and follower extractions consume your credits. from and to (ISO-8601 timestamps) bound the window: by default, the last 7 days. endpoint filters on a single route (for example /enrichment/phone), interval is hour (default) or day, and limit and offset page through the call log.

    The response gives totalCalls and totalCredits for the window. byEndpoint is the rollup per route, highest spend first. timeSeries gives calls and credits per hour or per day, oldest first, to spot when a spike began. calls is the log of billed calls (timestamp, endpoint, credits), newest first; hasMore is true when more remain.

    A phone number found counts as one call on /enrichment/phone. A phone number 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 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.

    usage.py

    import os
    
    import requests
    
    URL = "https://api.rodz.io/api/v1/account/credits/usage"
    HEADERS = {"Authorization": f"Bearer {os.environ['RODZ_API_KEY']}"}
    
    offset = 0
    while True:
        response = requests.get(
            URL,
            headers=HEADERS,
            params={
                "from": "2026-11-13T00:00:00Z",
                "to": "2026-11-20T00:00:00Z",
                "interval": "day",
                "limit": 100,
                "offset": offset,
            },
            timeout=30,
        )
        response.raise_for_status()
        body = response.json()
    
        if offset == 0:
            print(body["totalCalls"], body["totalCredits"])
            for route in body["byEndpoint"]:
                print(route["endpoint"], route["calls"], route["credits"])
    
        for call in body["calls"]:
            print(call["timestamp"], call["endpoint"], call["credits"])
    
        if not body["hasMore"]:
            break
        offset += 100
  3. Step 3. List your signals

    GET /api/v1/signals returns signals, an array, and total. Each signal carries id, name, status, signalTypeId, config, webhookUrl, dailyLeadLimit, leadsToday, leadsTotal, duplicateHandling, createdAt, updatedAt and lastLeadAt.

    The filters are optional. status is active or paused. signalTypeId filters on a signal type. ids takes up to 100 comma-separated ids. limit (1 to 200) and offset page the list; without limit, every signal is returned. createdByThisKey=true keeps only the signals created with the key making the call, so a staging integration does not see production signals; signals created in the dashboard belong to no key and are never returned in that case.

    actionRequired=true returns only the active signals that produce nothing until you act. Each one then carries its warnings, which say what to do and which call does it.

    List active signals, then those waiting on you

    curl -G "https://api.rodz.io/api/v1/signals" \
      -H "Authorization: Bearer $RODZ_API_KEY" \
      --data-urlencode "status=active" \
      --data-urlencode "limit=50"
    
    curl -G "https://api.rodz.io/api/v1/signals" \
      -H "Authorization: Bearer $RODZ_API_KEY" \
      --data-urlencode "actionRequired=true"
  4. Step 4. Read a signal, then pause or resume it

    GET /api/v1/signals/{signal_id} returns the signal: metadata, config, delivery settings (webhookUrl, dailyLeadLimit, duplicateHandling) and counters (leadsToday, leadsTotal, lastLeadAt). It adds applied, the settings in force where they differ from config, and warnings, the filter values that are probably not what you meant.

    PATCH /api/v1/signals/{signal_id} pauses or resumes a signal “without recreating it or losing its lead history”. No field of the body is required: send {"status": "paused"} to pause and {"status": "active"} to resume. status accepts only those two values. The response is the updated signal.

    Read a signal, pause it, resume it

    curl "https://api.rodz.io/api/v1/signals/$SIGNAL_ID" \
      -H "Authorization: Bearer $RODZ_API_KEY"
    
    curl -X PATCH "https://api.rodz.io/api/v1/signals/$SIGNAL_ID" \
      -H "Authorization: Bearer $RODZ_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"status": "paused"}'
    
    curl -X PATCH "https://api.rodz.io/api/v1/signals/$SIGNAL_ID" \
      -H "Authorization: Bearer $RODZ_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"status": "active"}'
  5. Step 5. Stop a signal

    DELETE /api/v1/signals/{signal_id} has no body. The response is an empty 204: the signal immediately stops producing leads.

    The leads already detected stay with you: in your account and in your integrations (HubSpot, Google Sheets, etc.), with their enrichment data. Only the monitoring stops. To suspend a signal without ending it, use the pause from the previous step.

    To follow your balance, read credits again with GET /api/v1/account/credits. A qualified lead is charged to your account at the creditsPerLead rate, which GET /api/v1/signal-types gives for each signal type (partner accounts only) and which can be negotiated: this rate is not the same for every signal.

    Stop a signal

    curl -X DELETE "https://api.rodz.io/api/v1/signals/$SIGNAL_ID" \
      -i \
      -H "Authorization: Bearer $RODZ_API_KEY"
  6. Step 6. Handle refusals

    • 400 with INVALID_STATUS: status is neither active nor paused. The message is “Status must be 'active' or 'paused'”. Fix the value and send the PATCH again.
    • 422 on a PATCH: a body field has an invalid value, for example a dailyLeadLimit below 1. The spec does not fix the shape of this response body: read it as it comes.
    • 429: more than 9,000 requests in the clock minute for this key. The Retry-After header gives the seconds to wait, from 1 to 60; then send the same request again.

Example payload

Response of GET /api/v1/signals/{signal_id}

{
  "applied": {},
  "config": {
    "companySizeFilters": ["201-500", "501-1000"],
    "getEmails": true,
    "jobTitles": ["CTO"],
    "locations": ["France"],
    "maxJobAgeDays": 90
  },
  "createdAt": "2026-01-15T10:30:00Z",
  "dailyLeadLimit": 50,
  "duplicateHandling": "refuse",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "lastLeadAt": "2026-03-15T14:22:00Z",
  "leadsToday": 3,
  "leadsTotal": 127,
  "name": "CTOs changing jobs in France",
  "signalTypeId": "job_changes",
  "status": "active",
  "updatedAt": "2026-03-16T08:00:00Z",
  "warnings": [],
  "webhookUrl": "https://your-server.com/webhooks/rodz"
}

A signal consumes credits for each qualified lead it delivers; a watchlist also consumes credits for each profile it checks. These six calls keep you in control of that budget and of the signal’s life: how much is left, where it goes, which signals are running, which one to suspend or stop. They share the API key and the rate limit of the other routes.

Frequently asked questions

My credits is 0: am I out of credits?

Not necessarily. A client workspace that uses its agency’s shared credits spends its own credits first, then the agency’s. In that case sharedPool is present and poolHasCredits tells whether the agency can still pay. poolHasCredits is false once the workspace’s own credits and the agency’s are used up.

How do I know which route consumes the most credits?

Read byEndpoint in GET /api/v1/account/credits/usage: the rollup per route, highest spend first. To isolate a route, add endpoint. To see when a spike began, look at timeSeries, per hour or per day depending on interval.

Which values does the status field accept?

active and paused, for PATCH /api/v1/signals/{signal_id} as for the status filter of GET /api/v1/signals. Any other value sent to PATCH returns 400 INVALID_STATUS.

What happens to the leads already delivered if I stop a signal?

They stay in your account and in your integrations (HubSpot, Google Sheets, etc.), with their enrichment data. DELETE only stops the monitoring: the signal no longer produces new leads.

How much does a lead cost?

The rate is not fixed: it depends on the signal type and can be negotiated for your account. Read creditsPerLead in GET /api/v1/signal-types: it is the number of credits charged to your account per qualified lead, at your negotiated rate if you have one, at the standard rate otherwise.

How do I see only the signals created by my API key?

Add createdByThisKey=true to GET /api/v1/signals. A staging integration then does not see production signals. Signals created in the dashboard belong to no key: they are never returned with this filter.