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

JIRA XRAY - problems authenticating



I'm trying to import an xml report to Jira xRay - to a Test Execution item.

The documentation I can find makes reference to client_id and client_secret, which should be generated by Create API key. Create API key only generates one string, a token.

As such I can't figure out how to use just the token to submit the xml report.

For example, this command:

curl -H "Content-Type: application/json" -X POST --data @"cloud_auth.json"

I can't use it, as it needs client_id and client_secret. Also, the endpoint itself returns 

Cannot GET /api/v2/authenticate


Using this command:

curl -H "Content-Type: text/xml" -X POST -H "Authorization: Bearer $token"  --data @"data.xml"


results in "{"error":"Invalid JWT: JsonWebTokenError: jwt malformed"}"


Please can anyone help?

1 answer

Hi @Adam Grzegorzewski 

This only happens when the token is not correctly stored/sent in the request.

Ensure that the token is exactly as returned by the authentication API, without linefeeds or any other character that does not exist in the returned token.

If you need further help, please contact Xray Support ( to help further.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Suggest an answer

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

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

90 views 0 1
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