Authenticating via API with an Access Token
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
Authenticating via API with an Access Token
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
To login to Panaya via API-
- Create your access token (Recommended) - Select this option if your organization uses SSO to log in to Panaya.
Alternatively, you can log in via API with a username and password (this option is not available for organizations using SSO to log in to Panaya).
- Use the below HTTP call to complete the authentication and receive a response token.
POST
Panaya URL - https://my.panaya.com/api/accesstoken or https://emea.panaya.com/api/accesstoken
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} token {your Panaya token}
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 onthe Environment quick look icon.
Good to know!
The response token is valid for 1 hour and used for all API calls
The username is case sensitive, it must be set the same way it is maintained in Panaya User Management.