Authenticating via API with an API token
  • 1 Minute to read
  • Dark
    Light
  • PDF

Authenticating via API with an API token

  • Dark
    Light
  • PDF

Article Summary

To login to Panaya via API- 

  1. Create your API token- Select the API token option to create a token that does not expire and does not require login calls
    The API token that was created can be used for any API call. No login API call is required. 

  2. Add the following to the Headers tab in Postman (or add to the Headers if not using Postman): 

    Key                     Value

    X-Auth-Token    email:token


You can also set the token as a variable by clicking on the Environment quick look icon in the top right corner of Postman.

Then click on “Edit” and add a new variable, enter a name for the variable that you will refer to, and paste the API token that was generated into the Initial Value field: 

Once the variable was added, use the variable name to refer to it in the Header -

Good to know!
The API token never expires, but it can be revoked.
The API token has to be used in the following format: email:token - which is created when you generate an API token and check the "Fill token with user as it should be sent to Panaya's API" as documented here.