[SOLVED] Getting 404 for authentication API for Xray JIRA Cloud

Issue

This Content is from Stack Overflow. Question asked by Mohd Nazim

I am using JRIA cloud and trying to authenticate by using below API

API Endpoint https://.atlassian.net/api/v1/authenticate
Header Content-Type : application/json
POST
Body { “client_id”: “<client_id>”,”client_secret”: “<cleint_secret>” }

Getting 404 error code



Solution

The endpoint is not correct, in cloud you need to target: https://xray.cloud.getxray.app/api/v2/authenticate in order to authenticate.

Replace https://.atlassian.net/api/v1/authenticate by https://xray.cloud.getxray.app/api/v2/authenticate and it should work.


This Question was asked in StackOverflow by Mohd Nazim and Answered by Cristiano Cunha It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?