Setting Up Postman for Jira Align REST API
Summary
Users who want to interact with the Jira Align REST API often need to use Postman to test and automate API calls. However, many encounter difficulties configuring Postman correctly for Jira Align, including issues with authentication (such as generating and using API tokens), setting the correct request headers, and constructing valid API requests. These challenges can prevent successful connection and data retrieval or updates via the API, resulting in errors like authentication failures, 401 Unauthorized, or unexpected response formats.
Solution
Download Postman
Download Postman from https://www.postman.com/downloads/
Run Postman.
Create a new environment
Click New, or type
Ctrl+N(Windows/Linux) orCmd+N(MacOS).Select “Environment”.
Name the environment “Jira Align Environment”.
Set up the following variables:
Variable | Type | Initial value and Current value | Comments |
cloudUrl | default | https://<yoursite>.jiraalign.com/rest/align/api/2 | Replace yoursite with your subdomain, e.g. acmecorp |
apiToken | secret |
Note that Postman variables are case-sensitive.
Click Save towards the top right corner.
Create a new collection
Click New, or type
Ctrl+N(Windows/Linux) orCmd+N(MacOS).Select “Collection”.
Name the collection “Jira Align Collection”.
Click the “Authorization” tab.
Change Type to “Bearer token”.
Specify
{{apiToken}}as the Token. The text should be coloured blue, indicating that Postman has recognized a variable has been specified. This can be confirmed by hovering over the variable name.Click Save towards the top right corner.
Create a new request
Click the + sign next to “Jira Align Collection“ to add a new request
Go to
https://<yoursite>.jiraalign.com/rest/align/api/docs/index.htmlto find the list of available resourcesClick the drop-down to select the HTTP method (e.g.: GET, POST, and so on)
In the URL box, type
{{cloudUrl}}/<endpoint name>(e.g.:{{cloudUrl}}/Portfoliosto get the list of Portfolios)Click Send button to get the result
Related resource
https://help.jiraalign.com/hc/en-us/articles/360045371954-Getting-started-with-the-REST-API-2-0
Was this helpful?