Docs menu
Get started
Using the API
API reference
Classification
Landed cost
Compliance
- POSTRegulate: find an agency product code
- POSTCheck restricted goods
- GETRestricted-goods checks
- GETAgency filing checks
- POSTCheck agency filings (Comply)
- POSTCross: classify, restrict, comply, regulate and calculate in one call
- GETYour restricted-goods rules
- POSTAdd a restricted-goods rule
- DELETERemove a restricted-goods rule
- POSTScreen a person or company
- GETYour screening checks
Reference
Origin
Shipping documents
Bulk
Catalogue
- GETList products
- POSTCreate a product
- GETGet a product
- PATCHUpdate a product
- POSTArchive a product
- GETA product’s history
- GETA product’s codes
- POSTAdd a code
- POSTSuggest codes
- POSTApprove a code
- POSTReject a code
- POSTClassify many products
- GETYour imports
- POSTImport a CSV file
- GETAn import
- GETExport as CSV
- POSTSync records from a source
- GETApproved codes to write back
- GETCatalogue vocabularies
- GETSource kinds
- GETDefault target markets
- POSTSet default target markets
Rate limits
border.bot API rate limits per API client and per IP address, the RateLimit-Policy and Retry-After headers, and how to back off.
Limits#
| Who | Limit |
|---|---|
| Calls with an API client token | 120 requests per 60 seconds, per client |
| Public endpoints (no authentication) | 120 requests per 60 seconds, per IP address |
OAuth endpoints (/authorize, /oauth/token, /oauth/register) |
30 requests per 60 seconds, per IP address |
Batch endpoints count as one request, so use /classify/batch, /origin/batch or a bulk run for volume.
Headers#
Responses follow the IETF HTTPAPI RateLimit header fields:
RateLimit-Policy: "key";q=120;w=60q is the number of requests allowed in a window of w seconds. When you go over it, the response is 429 rate_limited with:
RateLimit: "key";r=0;t=60
Retry-After: 60r is what's left (zero) and t the seconds until you can send again. Wait at least Retry-After seconds before retrying, then send with the same Idempotency-Key so a retried billable call is never charged twice. Requests refused for rate limiting are never charged.
Last updated