Sap Oracle

How to authenticate to Panaya using API?

Authentication via API can be performed in two optional ways - 

Option A - Panaya Authentication

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);

KeyValue
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.

Option B - SSO Login (for customer with SSO configuration)

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"}

KeyValue
username{your SSO login username}
password{your SSO login password}
sso{your predefined SSO Panaya field}

You should then receive a unique session token