How to authenticate to Panaya via API with Username and Password?

The below instructions describe how to authenticate to Panaya via API with Username and Password
Alternatively, you can create a personal access token (Recommended)

Step I - Log in to Panaya 

In order to perform any activity, it is required to perform an initial login into Panaya and retrieve a session token as described below.


POST

Panaya URL - https://my.panaya.com/api/login or https://emea.panaya.com/api/login

For the following tabs - 

  • Authorization 
    none
  • Header  
    {"Content-Type":"application/x-www-form-urlencoded"}
  • Tests
    var jsonData = JSON.parse(responseBody);
    postman.setEnvironmentVariable("token", jsonData.token);
    Key Value
    username {your panaya login email}
    password {your panaya login password}

    After clicking Post, you should then receive a unique session token 



    You should also be able to view the token assigned to the variable (as defined in Step 2 - Postman Setup) by clicking on the Environment quick look icon.


     

Step II -  SSO Login

In order to perform any activity, it is required to perform an initial login into Panaya and retrieve a session token as described below.

POST

Panaya URL - https://my.panaya.com/api/login or https://emea.panaya.com/api/login

Authorization - none

Header - {"Content-Type":"application/x-www-form-urlencoded"}

Key Value
username {your SSO login username}
password {your SSO login password}
sso {your predefined SSO Panaya field}

You should then receive a unique session token 

 

See also