Our documentation site has been updated to AIO Tests Knowledge Base

Rest API Authentication

Cloud

Requests made to AIO Tests REST APIs must be authenticated with an https://aioreports.atlassian.net/wiki/spaces/NAT/pages/1900879166. To use the API Access Token, all calls should have the Authorization header set as

AioAuth NzsdfsfJjZDctMasdfasfsafasfasdfsadfUtODI4MWIyZ12asfmYzMz

Please note that the prefix of AioAuth to the API Key is necessary.


Postman example (AioAuth)

Once the AIO Access token is generated it can used to make API calls either via Authorization tab or Headers tab in the Request as shown below.

Authorization tab:
Set the Type as API Key and set the Key and Value.

Headers tab:
Add Authorization header with value as “AioAuth <<aio_api_token_value>>


Server/Data Center

Requests made to AIO Tests REST APIs must be authenticated via Basic authentication or PAT authentication.

Postman example (Basic Authentication)

You can use Jira’s username and password to make API calls via Basic Authorization either via Authorization tab or Headers tab in the Request as shown below.

Authorization tab:
Select the type as Basic Auth. Input the username and password to proceed.

Headers tab:
Add Authorization header with the value as “Basic <<base64_encoded_value_of_username:password>>

 

Postman example (PAT Authentication)

Once the PAT token is generated it can used to make API calls either via Authorization tab or Headers tab in the Request as shown below.

Authorization tab:
Select the type as Bearer Token and input the PAT value in Token input.

Headers tab:
Add Authorization header and the value as “Bearer <<pat_token_value>>