Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Jira admin REST API calls return HTML instead of JSON

1. I created an API token here first:<orgId>/admin-api

2. Here is my request from postman:

curl -X GET \ \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: Bearer <token>' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Host:' \
-H 'User-Agent: PostmanRuntime/7.15.2' \
-H 'cache-control: no-cache'

3. I get 200 response code back but the body is being returned as HTML. 

4. Instead of Bearer auth i tried basic auth and got the same result. 

5. It specifically happens only with the admin REST endpoints, regular ones like 'rest/api/2/issue/<issue id>' with different api token requested here: totally works.  


I assume I am missing something incredibly simple. I searched through docs and blogs and stackoverflow, but I seem to fail at getting JSON back. Any ideas what i might be missing?

1 answer

0 votes
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 01, 2020

Hi @Sasha Korobko ,

I'm not sure what are you trying to accomplish in accessing the Organization API.

Try to look into this documentation. 

PS. Postman requests are available also, you need to generate the Organization API key here:


Organization API

Hi Everyone,

I got the same kind of issue than Sasha.

I use basic authentification with a token. I have revoked my last token and created a new one, it did not change anything. the Api /rest/api/latest/search?jql=Project=... still return HTML instead of JSON as requested in my header :

"Content-Type", "application/json"
"Accept", "application/json" 

Can you share a solution please ?

Thank you

Like Abdul Rehman Butt likes this

@Franck Ouziel did you find any solution?

I was using the wrong url, by  correcting the url the issue is solved.

Shelton, Lindsay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jul 24, 2023

@Abdul Rehman Butt What URL did you use?  I'm having the same difficulty, returning HTML instead of JSON

Like Michele Cerullo likes this
Michele Cerullo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Aug 18, 2023

Did anyone find a solution?

Suggest an answer

Log in or Sign up to answer