Food Trace API Quickstart
A modern, accessible, and consistent developer experience
How to setup and start using the API
You can use the Food Trace API to:
- Access data for any product in the Food Trace data pool
- Manage Wholesaler catalogues of products linked to Food Trace specifications
- Create, update and manage products held in the system.
- Integrate with third-party systems
- Automate product updates
- Retrieve analytics and reports
- And more, via simple REST calls
Accessing the API
You'll need a Food Trace account to start using the API. If you don't already have an account with API access enabled, please get in touch at
food-trace.co.uk.
API Endpoint
All API requests are made against the base URL below:
https://developer.traceallglobal.com/api/v1
Every request must include your API key in the X-API-Key header. Here's an example call to the Suppliers resource:
curl https://developer.traceallglobal.com/api/v1/suppliers/123 \
-H "X-API-Key: your_api_key_here"
A successful response looks like this:
{
"success": true,
"data": {
"supplier": { ... },
"accreditations": [ ... ]
}
}
Failed requests return "success": false along with an error message and an appropriate HTTP status code (e.g. 401 for a missing/invalid API key, 403 if your key doesn't have permission for that method, or 404 if the resource isn't found). See Authentication for how API keys and permission levels work, and the API Reference for the full list of available endpoints.