Guides / n8n × Pipedrive / Rate limits

How to reduce Pipedrive API token consumption per request

Pipedrive charges by cost, not by call, so the wins come from removing expensive work: search replaced by keyed reads, metadata cached, cursors persisted, and reconciliation separated from event handling.

Illustrated troubleshooting diagram for How to reduce Pipedrive API token consumption per request.
429 rate limit responses arriving earlier each day as record volume grows, with no change to the workflow itself.
Short answer: Pipedrive meters a daily token budget of 30,000 tokens times the plan factor times the seat count, and charges each endpoint according to what it costs to serve. Search is several times the cost of a keyed read, so the biggest available saving is almost always persisting IDs on first resolution and reading by ID afterwards. After that: fetch field definitions once per execution rather than per item, page with cursors, persist a high-water mark so incremental runs read only what changed, and keep full reconciliation on a separate, infrequent schedule.

Optimise cost, not call count

The budget is 30,000 tokens multiplied by the plan factor and the seat count, and each endpoint is charged at its own rate. That makes call count a poor proxy for consumption: a workflow making 500 search calls can outspend one making 2,000 keyed reads. Any tuning exercise that starts by counting requests is measuring the wrong thing.

Start instead by classifying the calls a single run makes into expensive and cheap, and by counting calls per record processed. Calls per record is the number that reveals design problems — a job that processes 5,000 deals and makes 15,000 calls has three calls per record, and the question is which two can be removed.

Replace search with keyed reads

Search exists to answer "which record is this?" when you have no identifier. Once it has answered, the identifier should be stored on your side and never asked for again. A sync that searches for a person by email on every run, for every row, is paying the most expensive call in the API to re-derive a fact it already learned last night.

Persist the Pipedrive ID against your own record the first time you resolve it, then read by ID. The saving compounds: the same mapping also removes the ambiguity handling, the normalisation edge cases and the race window that search-based lookups bring with them.

# Expensive, per row, every run
GET /api/v2/persons/search?term=ada@example.com&fields=email&exact_match=true

# Cheap, after the first resolution is persisted
GET /api/v2/persons/456

# Cheaper still when several are needed: one paged read, filtered locally
GET /api/v2/persons?limit=100
# -> additional_data.next_cursor

# 5,000 rows:
#   search-per-row   -> 5,000 expensive calls, every run
#   persisted IDs    -> 5,000 cheap calls, or ~50 paged reads

Fetch metadata once per execution

Field definitions, option lists, pipelines, stages and user lists change on the timescale of admin work, not on the timescale of workflow runs. Fetching them inside a loop spends budget thousands of times to learn something that did not move between the first call and the last.

One call to the relevant fields endpoint at the top of the execution returns every field with its key, name, field_type and options — enough to build the whole mapping for the object. Hold it for the duration of the run and reuse it.

The same logic applies to records you have already read. A workflow that fetches a deal, branches three ways and re-fetches the same deal in each branch triples the cost of that record for no benefit. Fetch once, normalise, and pass the result down every branch.

Read fewer records and fewer fields

Incremental beats full. Persist a high-water mark — the timestamp of the latest record seen — and request only what changed since, with a small deliberate overlap to absorb clock skew, deduplicating by ID on the way in. A nightly job that re-reads the entire deal table to find forty changes is spending the whole budget on the 99.9% that did not change.

Request only the custom fields the workflow uses rather than every field on the object. On v2 endpoints custom fields are returned only when named in the request, which means the efficient behaviour is the default and the inefficient one requires listing everything explicitly.

Separate event-driven updates from reconciliation. Webhooks handle the changes as they happen at near-zero cost; a full sweep exists to catch what webhooks missed and belongs on a weekly schedule at a quiet hour, not on the same fifteen-minute cadence as the event handler.

# Incremental, with overlap and cursor paging
GET https://COMPANY.pipedrive.com/api/v2/deals
    ?limit=100
    &updated_since=2026-09-14T02:55:00Z      # high-water mark minus 5 min
    &custom_fields=a1b2c3d4e5f6...           # only what is used
x-api-token: YOUR_TOKEN

# -> { "data": [...],
#      "additional_data": { "next_cursor": "eyJpZCI6OTAxfQ" } }
# Persist next_cursor across pages, and the newest update_time across runs.
# next_cursor === null -> done; write the new high-water mark then.

What not to cut, and how to prove the change worked

Two savings are false. Dropping the read-back that verifies a write saves one cheap call and removes the only evidence that the sync is correct. Silently skipping custom fields that failed to map saves nothing measurable and produces records that look complete and are not.

Measure calls per record and total daily consumption before and after each change, not just wall-clock duration. A larger page size lowers the call count while raising response size and the cost of a retry, so the best setting is the one that completes reliably with headroom left for interactive and webhook traffic — which is a different number for each account, since the budget scales with seats.

Re-measure after adding any feature that touches Pipedrive. Polling, association lookups and imports multiply calls per record without changing the number of workflows, which is why consumption tends to grow quietly between reviews rather than jumping on a release.

A fixed sleep between requests changes when the budget is spent, never how much. Only removing calls, or replacing expensive ones with cheap ones, moves the daily number.

Replace polling with webhooks where the data allows

Polling spends budget in proportion to how often you check, not to how often anything changes. A workflow polling every five minutes for changes that occur twice a day makes 288 runs to find two events, and each of those runs pays the full cost of whatever query it uses.

A webhook subscription inverts that: Pipedrive pushes the change when it happens, and the steady-state cost is zero calls. For any workflow whose trigger is "a deal changed" or "a person was created", this is usually the single largest saving available, larger even than replacing search with keyed reads.

Keep a reconciliation sweep, but move it to a schedule that matches its actual purpose. Webhooks can be missed — a receiver outage, a delivery that never retried successfully — and a periodic sweep exists to catch that. Weekly, in a quiet window, with an incremental filter on the high-water mark, costs a fraction of the same query every fifteen minutes and catches the same gaps.

The receiver has to be idempotent for this to be safe, since a retried delivery arrives twice. That is the same requirement as everywhere else in this article, and it is what makes the cheaper architecture also the more reliable one.

Where these facts come from