# API Limits on Pipedrive

> How much of your Pipedrive daily API pool Dedupify uses, what each call costs, how to set a daily limit, and what happens when Dedupify reaches it.

Every app connected to Pipedrive draws on your company's daily pool of API tokens. Dedupify spends from it when it scans, keeps its change notifications in place and merges.

## In short

* Dedupify uses at most half of your pool unless you set a different **daily API limit** on **API usage**.
* Your reviews and merges always come first.
* A scan that reaches the limit pauses and picks up where it stopped. Nothing fails or starts over.

## Change your limit

Only an administrator can change it.

Set the limit

**Set your daily API limit**

1. **Open API usage** Go to Tools and apps, Installed apps, Dedupify, Settings and select API usage. Only an account admin can change what is on it.
2. **Set the daily limit** Dedupify counts only its own calls against this limit, over a rolling 24 hours, and a scan pauses rather than fails when it runs out. Until you set a limit, it is half of your Pipedrive pool. The button Use the default puts it back.
3. **Watch the spend** Used in the last 24 hours splits Dedupify's spend by what it was spent on, so you can see where the limit goes.

* **Default:** half of your pool. Select **Use the default (half of your pool)** to go back to it.
* **Minimum:** 3,000 tokens. A lower limit is refused.
* **Maximum:** none. A limit above your pool still stops at what Pipedrive allows.
* **Record count too big for the limit:** **API usage** names the lowest limit that lets it run. Until you raise it, Dedupify bills on your last stored count. Lowering the limit below that figure is refused.

## How Dedupify catches changes

Pipedrive tells Dedupify about each change, so there is no interval to choose. Once a day Dedupify lists your notification subscriptions in Pipedrive and replaces any that are missing or stale. If it had to create one, it rescans your rules to catch changes made while the subscription was gone.

* **Cost:** one list call, 10 tokens, a day.
* **A scan at your limit:** keeping notifications in place has its own share of the limit, so a paused scan doesn't stop it.

## What happens at your limit

* **A scan pauses.** It keeps its place and resumes when its spend leaves the 24-hour window. Its status reads "Paused at today's API limit for Dedupify" with the resume time.
* **A review or merge is refused with its reset time.** The pair stays in the queue and nothing is sent to Pipedrive. Approve again after that time, or raise the limit.
* **Automatic merges use at most a sixth of your limit,** so your own reviews always have room. Pairs over that wait in the queue and are picked up when there is room. See [Auto-merge](../auto-merge/#how-auto-merge-runs).
* **Keeping notifications in place never waits on a scan.** It has its own share of your limit.

## Related

* [How scanning works](../scanning/): when scans run and how to monitor them.
* [Plans and billing](../billing/): how record counts set your plan.

## Reference

### Your pool

Dedupify counts only its own calls against its limit, over a rolling 24 hours. It can't see your other apps' spend.

Pipedrive sets the pool: 30,000 tokens, times a plan multiplier (Lite 1, Growth 2, Premium 5, Ultimate 7), times your seats, plus top-ups. It resets at midnight, Pipedrive server time. Dedupify reads it from Pipedrive's responses. Until then it assumes the smallest, 30,000.

### What each call costs

| Pipedrive call | Tokens |
|---|---|
| List page, up to 500 records (scans, counts, batch reads) | 10 |
| Single record read | 1 |
| Update | 5 |
| Merge | 40 |
| Changelog page | 20 |
| Field listing | 10 |
| User read | 2 |
| Notification subscription list | 10 |
| Notification subscription create | 10 |
| Notification subscription delete | 6 |
| A request Pipedrive refuses for going too fast | 10 |

### What Dedupify uses in a day

| Activity | Pipedrive |
|---|---|
| One notification check | 10 tokens |
| Notification checks, once a day | 10 tokens a day |
| One merge | 48 tokens |
| One merge that reads changelogs | 88 tokens |
| A scan of 100,000 records | 2,000 tokens |

* **Notification check:** one subscription list, 10. It adds 10 for each subscription it creates and 6 for each it deletes.
* **Merge:** 2 reads + 40 + 1 re-read + 5 write = 48. It is 88 when recency rules read two changelogs.
* **Scan:** 100,000 records at 500 a page: 200 × 10 = 2,000.

### How Dedupify shares your limit

| Lane | Share of your limit |
|---|---|
| **Reviews and merges** | Never less than a third |
| **Notification upkeep** | At most a twentieth |
| **Record counts** | Reserved for the day's count |
| **Existence check** | At most a twentieth |
| **Scans** | What the others leave: the **scan allowance** |

A scan can spend its whole allowance at once while the reserves keep the other lanes running.

### What your limit buys

| Figure | Minimum |
|---|---|
| Daily limit (tokens) | 3,000 |
| Reviews and merges, at least (a third) | 1,000 |
| Merges a day from that third | 20 |
| Merges a day if the whole limit is used | 62 |
| Notification upkeep, at most (a twentieth) | 150 |
| Existence check, at most (a twentieth) | 150 |
| Pending records the existence check reads a day | 1,400 |
| Most one record count may cost | 1,100 |
| Counts reserved | 150 |
| Scan allowance | 1,400 |
| Records scanned a day, at most | 70,000 |
| Scan allowance as a share of the limit (percent) | 47% |

How the scan allowance comes out: 3,000 − 1,000 − 150 − 150 = 1,700. The scan allowance is 1,700 − 2 × 150 = 1,400 tokens, and at 50 records a token (500 to a 10-token page) that is 70,000 records.

At the minimum, a 100,000-record scan costs 2,000 tokens against a 1,400 allowance, so it pauses once and takes two days: 1,400, then 600.

Source page: https://artifactapps.com/docs/dedupify/pipedrive/api-limits/
