Limits and paging
How many calls you can make, how big each one can be, and how to read a long list.
Rate limits
| Limit | Default |
|---|---|
| Requests a minute, per person | 120. All of a person's keys share the count. |
| Requests a day, per agency | 100,000, counted in UTC days. |
Over either limit the answer is 429 with a Retry-After header: the seconds to wait before trying again.
Per call
| Call | Most at once |
|---|---|
| Remove leads | 1,000 entries |
| Look up leads on a campaign | 100 ids or phones |
| A page of any list | 200 rows |
| Import | One file of up to 512 MB |
Paging
GET /campaigns, GET /lists, and GET /campaigns/{campaignId}/leads without ids or phones, come in pages.
Send limit (1 to 200, and 50 if you leave it out) and cursor (the nextCursor of the previous page). Keep asking until nextCursor is null: that page is the last.
curl -G "https://www.inyoke.com/api/v1/lists" \
--data-urlencode "limit=200" \
--data-urlencode "cursor=$NEXT_CURSOR" \
-H "Authorization: Bearer $API_KEY"A cursor whose row is gone since the page before (deleted, archived or out of reach) answers 422 with reason: "stale_cursor". Start again without a cursor.