Recipe API
Security
Authentication
The Unilever People Data Centre APIs uses HTTP headers to pass authentication information to all endpoints. The headers have the following format:
client_id:
client_secret:
An example HTTP request containing authentication headers is shown below:
POST https://qaproductassetdata.unileverservices.com/{API Specific URL} HTTP/1.1
Content-Type: application/json
client_id: sample_client_id
client_secret: sample_client_secret
Details of how to obtain your Client ID and Client Secret can be found in the "Getting Started" section.
Unauthorised Access
If the Client ID and Client Secret are invalid the following HTTP Response will be returned:
HTTP/1.1 401
Server: nginx
Date: Fri, 22 Apr 2019 09:26:26 GMT
Content-Type: text/plain
Content-Length: 34
Connection: keep-alive
Invalid client_id or client_secret
IP Whitelisting
The Unilever People Data Centre APIs uses IP whitelisting to secure the endpoint. You will need to provide all IP addresses that you will be using to access the API.