The Trifft Batch API allows you to send up to 500 requests at once. This functionality enables efficient and streamlined processing of multiple API calls in a single HTTP request. The Batch API supports any combination of requests from the normal API, including GET, POST, and DELETE methods.
The request to the Batch API should be a JSON array where each element represents an individual request. Each request object within the array must include the following fields:
uri: The endpoint of the original request.method: The HTTP method (POST, GET, DELETE) of the original request.payload: The request payload, formatted the same way as in the original request. For GET requests, this can be omitted.
Important NoteA
200response from the Batch API only confirms that the batch request was received and queued for processing. It does not indicate that individual operations inside the batch were successfully executed. This applies to all HTTP methods (GET, POST, DELETE, etc.).Since processing happens asynchronously across multiple microservices, the system does not return execution results — only validation errors for malformed requests.
Rate LimitsThe Batch API follows the same rate limits as the normal API. Ensure you are aware of and adhere to these limits to avoid potential throttling.