v1

latestOpenAPI 3.1.02026-07-241080412.6 KB

Login

Use /auths endpoint to log in the user. Customer authorization is based on <glossary:JWT>, which contains customerId, publisherId and expiration date.

There are two ways of login, by offerId (if a customer has already chosen an offer) or by publisherId (in case a customer will choose an offer after authorization).

post/auths

Request body

emailstring required

The email address of the customer (valid RFC2822 email address).

passwordstring required

The password of the customer. String containing at least one letter and one digit or special character (!@#$%^&), length - 8-80 characters.

offerIdstring required

ID of Cleeng offer, e.g. S565568989_US. Required conditionally, when publisherId is not given.

publisherIdstring required

ID of publisher (broadcaster). It consists of 9 digits. Required conditionally, when offerId is not given.

customerIPstring

Customer IP address. This field is used for geo restrictions (stored as last user IP).

Response

200

Example response

{
  "responseData": {
    "jwt": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoxNTQzNzc1NDEsIm9mZmVySWQiOiJTNTY3OTIxNzY2X05MIn0.PcIDWi00v_w2p332p5dYg7Gjjsp7LgpibzzUWQ3WB8-BW1xEihYU4IYc4AFs9SoZmQRxCJ1BzCuJOsMIJV5NFx7JhBIJiuZ5h6wkYJxQ_hzNXjt57Oz143Q9c3Yr4edIiTiWK2SsEJMGvWUWxwk38jM6SIyeGhedjvQw71esfat5YnZCGRsiSaelwtNcEBxmXl3TZOcM0TpPWMfHEoVWwY6C3ll0xNeNn-iXSIJ00V_qbmN59132vxQptezfLgAC7oOCR9wNgvOX7Q4SYE0L2aNnCKLcS-45TzpMU8KHxyUW_tQsO0Rq4Kh67spk_zMG8C56Xq26_9t105GCMkBIKg",
    "refreshToken": "0aec4f290ec232f20dd27186976419e0a0f3c334966aafe1d952b447d1ceffaa",
    "customerToken": "MZYbftC_e378Vm9dualp1RaQU8XgJFnrSxaFuBZmDdQZ8FyU",
    "customerId": 123456789
  }
}