Base URLs
The base URLs for requests to the Personalization API are:https://personalization.us.algolia.comhttps://personalization.eu.algolia.com
Authentication
To authenticate your API requests, add these headers:x-algolia-application-id. Your Algolia application ID.x-algolia-api-key. An API key with the necessary permissions to make the request. The required access control list (ACL) to make a request is listed in each endpoint’s reference.
Request format
Request bodies must be JSON objects.Response status and errors
The Personalization API returns JSON responses. Since JSON doesn’t guarantee any specific ordering, don’t rely on the order of attributes in the API response.- Successful responses return a
2xxstatus. - Client errors return a
4xxstatus. - Server errors return a
5xxstatus. - Error responses have a
messageproperty with more information.
Rate limits
You can make up to 40 requests per second per application to the Personalization API. Each response includes headers with information about your current limit:x-ratelimit-limit. The number of requests allowed every second.x-ratelimit-remaining. The number of requests remaining in the current period.x-ratelimit-reset. Timestamp in seconds since the Unix epoch when the rate limit resets.
Version
The current version of the Personalization API is version 1, as indicated by the/1/ in each endpoint’s URL.