SafeCart API policies
Last updated 30 November 2026.
This page sets out what you can rely on when you build on the SafeCart Public API: how versions change, the limits that apply, what we keep, and how you take your data with you. The API reference documents the endpoints themselves.
Versioning and deprecation
- The version is in the path. Every endpoint that takes an API key lives under
/api/v1, and the keyless barcode lookup under/api/public/v1. Within v1 we only make additive changes: new endpoints, new optional request fields, and new response fields. Your client should ignore response fields it doesn't know. - Breaking changes go into a new version. Removing or renaming a field, changing a field's meaning, or tightening validation happens in
/api/v2, never silently in v1. - At least 12 months' notice. When we deprecate a v1 endpoint or ship a v2, we announce it on this page and by email to the owners of active API keys. The old version keeps working for at least 12 months after the announcement.
- Security exceptions. If an endpoint has to change to fix a security problem, we may change it sooner. We will tell affected key owners as soon as we can.
Rate limits and quotas
Each API key has a per-minute rate limit. Metered endpoints (the safety check, store scan, Product Safety Passport create and recall draft create) also count towards a monthly quota for your organization.
| Plan | Requests per minute | Metered requests per month |
|---|---|---|
| Free | 300 | 5,000 |
| Pro | 300 | 5,000 |
| Business Premium | 600 | 20,000 |
Test keys (safecart_test_…) | 30 | 500 |
- Free and Pro share the same limits on purpose: the number of monitored products is the only difference between the plans.
- Over a limit, the API answers
429with aRetry-Afterheader. Rate-limited responses carryX-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset. - Quotas reset at the start of each calendar month (UTC).
- Need more? Contact us and we can raise the limits for your organization.
Endpoints without a key
GET /api/v1/healthreports whether ingestion, matching and alerting are working. It is cached for 60 seconds.GET /api/public/v1/barcode/{code}looks up one EAN-8, UPC-A, EAN-13 or GTIN-14 against active Safety Gate notifications. It is limited to 60 lookups per minute per IP address, and answers are cached for 15 minutes. A "not found" answer means no active notification lists that barcode; it is not proof that the product is safe.
To rate-limit callers without a key, we keep a hash of the IP address that expires after about 65 seconds. We don't store the address itself.
Data retention
- Safety Gate data is public data from the European Commission. We keep the archive so every match can be checked against the notice it came from.
- Your account data (Product Safety Passports, compliance profiles, match decisions, recall cases and the recall action log) is kept until you delete it or delete your account.
- API keys are stored only as a hash. A revoked key stops working within about a minute.
- Usage counters record how many metered requests each organization made per month, so quotas can be enforced.
- Free store-scan results are deleted automatically 60 days after the scan.
Our privacy policy sets out every retention period, including logs and analytics.
Data portability and exit
- Export everything at any time.
GET /api/v1/exportreturns one JSON archive of everything in a client portfolio: Product Safety Passports, compliance profiles, Responsible Person and manufacturer data, warning profiles, match-review decisions, recall campaigns and the recall action log. No support ticket is needed. - Spreadsheets too. The dashboard exports your products as CSV.
- Leaving. You can delete your account yourself in Account settings; the privacy policy explains what happens to the data. Download an export first if you want to keep a copy.
Questions
Write to [email protected]. To report a security issue, see our security page.