This API accepts request bodies in JSON format and requires the content to include the
Content-Type: application/json header. This header must be specified in every request.Domains
Jelou exposes two domains depending on the endpoint you use:Each endpoint’s documentation indicates the domain and authentication method that applies to it. Check the Endpoint and Authentication block of each resource.
Authentication
The authentication method depends on the endpoint’s domain.Jelou API (api.jelou.ai) legacy
Clients using this API receive a client ID and a client secret key for basic authentication.
For any api.jelou.ai endpoint, the following header must be added:
Example
If yourclientId is my_client_id and your clientSecret is my_client_secret:
- Join them with a colon:
my_client_id:my_client_secret - Encode it in Base64:
bXlfY2xpZW50X2lkOm15X2NsaWVudF9zZWNyZXQ= - Include it in the header:
Authorization: Basic bXlfY2xpZW50X2lkOm15X2NsaWVudF9zZWNyZXQ=
Gateway (gateway.jelou.ai)
Endpoints published on gateway.jelou.ai are authenticated with an API key in the x-api-key header:
Errors
Jelou uses HTTP standards to report errors. In general:- 2XX codes indicate success.
- 4XX codes indicate client errors.
- 5XX codes indicate server errors.
code and a detailed description of the problem.