Authenticating via API with an Access Token
  • 1 Minute to read
  • Dark
  • PDF

Authenticating via API with an Access Token

  • Dark
  • PDF

Article summary

To login to Panaya via API- 

  1. Create your access token - Select this option if the token should have an expiry date. Login API calls are required to authenticate with this type of token. 

  2. Use the below HTTP call to complete the authentication and receive a response token.

    Panaya URL - or

    For the following tabs - 
  • Authorization
  • Header  
  • Tests 
    var jsonData = JSON.parse(responseBody);
    postman.setEnvironmentVariable("token", jsonData.token);
    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 on
    the 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.