You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The purpose of this Community article is to provide a couple example queries for using this experimental API with both cURL and Postman, which is in reference to the KB API Developer Document here: The Jira Service Management Cloud REST API
Note that the method to run these queries may change over time as this is an experimental API.
First you will need to authenticate yourself, which will require an Access Token
Afterward you can use a command similar to the following in the terminal:
Once you are authenticated using your access token you will then need a Base64 encoded version of your username and password for the GET request. This can be completed using a Base64 encoding tool, such as: Base64 Encode and Decode - Online
Once you have this, your cURL command should look like the following:
And the results should look similar to the screenshot below:
First you will need to authenticate yourself using Basic auth, which will require your Username (email address) and your Password (which will be your access token):
Afterward, you can bill the GET request in Postman.
First, the URL should look similar to the following: https://mysiteatlassian.net/rest/servicedeskapi/knowledgebase/article?query=article'
As this is an experimental API the headers should have a KEY of X-ExperimentalAPI and a VALUE of opt-in
After these two things have been setup you should receive a response similar to the following:
It's important to note that the Knowledge Base API uses Basic Authentication, adding ?query=article to the GET URL and using X-ExperimentalApi: opt-in within the headers is necessary for these queries to run successfully.
Thanks for reading!