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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting each time a 404 with Xray API's

Hi Team,

I am using Xray plug- in with JIRA (Both cloud version) and I want to automate the test status of JIRA stories automate with the help of API's.

I am able to create/delete Jira issues with Jira API's

But am facing 404 each time I am trying to access Xray API's.

Below are some examples:

JIRA API: Working.

curl -H "Content-Type: application/json" -X GET -u Username:API_Token

Response: 200 Success

Message: JSON (As expected)

Xray API: Not working.

curl -H "Content-Type: application/json" -X GET -u Username:API_Token

Response: 404 Not Found


<message>null for uri: <message>


Note: URL for both is ""  and same authentication "Username:API_Token" I am using for JIRA and Xray API's.

I am not sure what I am missing because all of the JIRA API's are working but none of the Xray API is working.


Any help is appreciated.


1 answer

1 accepted

0 votes
Answer accepted

Hi @Deepak Sharma ,

I think there is some confusion.

First, you are referring to different APIs.


  • The following API request belongs to Jira REST API (it's not a Xray API endpoint):


  • This API request is not correct at all (neither the URL, nor the request):


If you're using Xray Cloud, as it seems, then the endpoint always starts with something like this:

Xray Cloud provides two different APIs: one REST API (mostly for importing test automation results) and one GraphQL based (which provides a lot more operations).

You can find more about these two APIs at:


Note: if you aim to export cucumber tests (i.e. generate .feature files based on Cucumber Tests defined in Jira), you will need to use this endpoint:

You need to have a token first, which requires you to call the authentication where you provide the client_id and client_secret of an API key created in Xray settings:






Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

🤺 Atlympic Event: Partnerships

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

85 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you