Skip to content

Authenticate

Request

Before being able to request any data, one needs to authenticate with the API. If authentication is not done, further requests will be rejected and 401 error code will be returned.

NOTE: If you encounter “Cookie Missing” error, retry the request you should be able to authenticate.

Headers
Content-Typestring
Example:application/json
RUI-Clientstring
Example:Postman
RUI-Client-Versionstring
Example:0.0.1
Originstring
Example:https://analytics.revenera.com
Bodyapplication/jsonrequired
userNamestring
Example:"test@test.com"
passwordstring
Example:"helloTest"
curl -i -X POST \
  https://developer.revenera.com/_mock/products/rui/apis/v3_api_redocly/v3/auth/web \
  -H 'Content-Type: application/json' \
  -H 'Origin: https://analytics.revenera.com' \
  -H 'RUI-Client: Postman' \
  -H 'RUI-Client-Version: 0.0.1' \
  -d '{
    "userName": "test@test.com",
    "password": "helloTest"
  }'

Responses

OK

Headers
Serverstring
Example:"nginx/1.20.1"
Datestring
Example:"Thu, 25 May 2023 13:02:01 GMT"
Content-Typestring
Example:"application/json"
Content-Lengthinteger
Example:"1686"
Connectionstring
Example:"keep-alive"
Access-Control-Allow-Originstring
Example:"https://analytics.revenera.com"
Access-Control-Allow-Credentialsboolean
Example:"true"
Varystring
Example:"Origin"
Rui-Apistring
Example:"RUI Admin API (3.0.0.dev14)"
Rui-Libstring
Example:"3.0.0.dev25"
X-XSS-Protectionstring
Example:"1; mode=block"
X-Content-Type-Optionsstring
Example:"nosniff"
Referrer-Policystring
Example:"no-referrer-when-downgrade"
Bodyapplication/json
object
Response
{ "account": { "name": "test", "surname": "user", "email": "testuser@test.com", "emailVerified": true, "userToken": "5122ccd6b994VRSS223W6Z0U", "isSocialUser": false, "readTos": 1 }, "freeware": { "canAddFreeProduct": true, "limit": 10 }, "products": { "2376158762": { … }, "2395188568": { … } }, "userSettings": { "defaultProduct": null, "currentProduct": "2376158762" }, "currentProductDetails": { "permissions": { … }, "config": { … } }, "beatInterval": 302 }