XRay GET call returns 404 Not Found

Sandeep Vaidya September 23, 2022

I just started using the JIRA XRay API. I started with a simple GET:

https://propylon-limited.atlassian.net/rest/raven/2.0/api/testrepository/TA/folders

in postman.

I am getting a 404 Not found. What am I doing wrong? I am passing the API KEY in the header.

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 23, 2022

Hi @Sandeep Vaidya ,

if you are using cloud version, you need to use URL: https://xray.cloud.getxray.app/ .

See here the documentation.

Sandeep Vaidya September 24, 2022

Thanks very much for the quick answer.
Can I ask you to confirm that the API token in the header method we use to authenticate in JIRA is not the same in an XRay call?

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2022

Yes, you need to generate special Xray token for your user.

https://docs.getxray.app/pages/viewpage.action?pageId=32800886

Like Sandeep Vaidya likes this
Sandeep Vaidya September 27, 2022

Thanks.

I believe our JIRA account is on Cloud and not server+DC. I want to use the REST API to access our XRay test repository.

I am confused. Can I use the endpoints listed in the Server+DC tab:
https://docs.getxray.app/display/XRAY/v2.0

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 27, 2022

@Sandeep Vaidya If you are on cloud, you can't use these endpoints.

You need to use cloud endpoints:

https://docs.getxray.app/display/XRAYCLOUD/Version+2

Like Sandeep Vaidya likes this
Sandeep Vaidya September 27, 2022

Thanks very much.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events