API limits
This page lists every limit that applies when you use the API, and the limits Pingdex applies when it calls your buyers.
Rate limits and quotas
Section titled “Rate limits and quotas”| Topic | Behaviour |
|---|---|
| Request rate | Pingdex does not apply a request rate limit to the endpoints under /api/v1. The API does not return 429 Too Many Requests and does not send rate limit headers such as Retry-After or X-RateLimit-Remaining. |
| Plan quotas | There are no plan quotas on API calls, leads, campaigns or providers. |
| Concurrency | There is no cap on the number of simultaneous requests per key or per account. |
Pagination
Section titled “Pagination”Only GET /leads is paginated.
| Limit | Value |
|---|---|
| Default page size | 50 |
Minimum per_page |
1 |
Maximum per_page |
100 |
| Pagination style | Cursor. Use next_cursor from one response as cursor in the next. |
A per_page below 1 or above 100 returns 422. It is not clamped.
GET /campaigns and GET /providers are not paginated. They return every item in your account as a JSON array, ordered by name. GET /leads/{lead}/attempts is also unpaginated and returns every attempt for the lead.
Request field limits
Section titled “Request field limits”| Field | Limit |
|---|---|
external_id |
Up to 255 characters. |
Idempotency-Key header |
1 to 255 characters. It cannot be empty or whitespace only. |
payload |
A non-empty JSON object. Field names and types are governed by the campaign schema. |
GET /leads external_id filter |
Up to 255 characters. |
Campaigns
Section titled “Campaigns”| Field | Limit |
|---|---|
name |
Up to 255 characters. |
description |
Up to 2000 characters. |
schema |
At most 100 fields. |
schema[].name |
Up to 64 characters. A letter or underscore first, then letters, digits or underscores. Unique within the campaign. |
provider_ids |
UUIDs, each used once, each a provider in your account. |
Providers
Section titled “Providers”| Field | Limit |
|---|---|
name |
Up to 255 characters. |
integration.legs |
One or two legs. See the integration object. |
Leg name |
Up to 64 characters. A letter or underscore first, then letters, digits, underscores or hyphens. |
Leg request url |
Up to 2048 characters. |
| Outcome value strings | 1 to 255 characters. |
API keys
Section titled “API keys”| Item | Limit |
|---|---|
| Key name | Up to 255 characters. |
| Scopes | At least one. |
| Lifetime | About one year. See Authentication. |
Idempotency keys
Section titled “Idempotency keys”| Limit | Value |
|---|---|
| Header | Idempotency-Key |
| Length | 1 to 255 characters. |
| Whitespace-only value | Refused with 422. |
| Scope | One account and the POST /leads operation. The same key on another account is independent. |
| Comparison | The request is fingerprinted by campaign_id, external_id and payload. |
| Reuse with a different request | 409. |
This reference does not specify how long a stored key is kept, so choose a key that is unique for each lead you intend to send, such as a UUID or your own record identifier. See Idempotency.
Outbound calls to buyers
Section titled “Outbound calls to buyers”When Pingdex delivers a lead it makes HTTP requests to your providers. These limits apply to those requests and are not configurable per provider.
| Limit | Value |
|---|---|
| Connection timeout | 3 seconds |
| Total timeout for a quote (ping) leg | 5 seconds |
| Total timeout for a commit (post) leg | 10 seconds |
| Maximum request body | 262,144 bytes (256 KiB) |
| Maximum response body | 1,048,576 bytes (1 MiB) |
| Redirects | Never followed |
| Method | POST only |
The timeouts cover the whole request, from connecting to reading the last byte of the response.
What happens when a limit is hit
Section titled “What happens when a limit is hit”| Situation | Attempt outcome |
|---|---|
| The connection or request times out | indeterminate with connection_failed. Pingdex received no response, so delivery cannot be known. |
| The request body would exceed 256 KiB | The request is not sent. The attempt is not_sent with invalid_integration. |
| A quote response exceeds 1 MiB | The attempt is rejected with response_too_large. |
| A commit response exceeds 1 MiB | The attempt is indeterminate with response_too_large. The buyer did answer, but Pingdex could not read the result. |
| The buyer answers with a redirect | The redirect is not followed. Because a redirect is not a success, the attempt is failed with http_unsuccessful. |
Pingdex does not resend a post after a timeout or an unreadable response, because it cannot know whether the buyer already accepted the lead. See Lead lifecycle and Attempts.
Destination rules
Section titled “Destination rules”| Rule | Detail |
|---|---|
| Scheme | https only in production. The compiler also accepts http, so the problem is found at delivery rather than at save. |
| Addresses | The host must resolve only to public internet addresses. Private, loopback and link-local addresses are refused. |
| Literals | An IP address literal must be written in its canonical form. |
| URL contents | No username or password and no fragment. |
| Proxies | Requests do not go through a proxy. |
| Certificates | TLS certificates are verified. |
A destination that breaks a rule is not called. The attempt is not_sent with invalid_integration.
Stored buyer values
Section titled “Stored buyer values”When a commit response mapping reads values, Pingdex stores them only if they fit.
| Value | Maximum stored length |
|---|---|
| Buyer transaction identifier | 255 bytes |
| Rejection reason | 500 bytes |
A value that is longer than the limit, is blank, is not valid UTF-8 or contains control characters is not stored. It is not truncated. The lead’s commercial status is still recorded. Neither value is returned by the API, and raw buyer response bodies are not stored.
The sale amount must be a non-negative amount of at most 9999999999.99. It is stored with two decimal places.
Webhook timeout
Section titled “Webhook timeout”Webhook deliveries to your own endpoint time out after 10 seconds. Webhooks are not part of the REST API. See Webhooks.