Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate the XRAY_CLIENT_ID and XRAY_CLIENT_SECRET

Vijitha Geereddy
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!
April 22, 2026

I am doing skill "Test plan to Xray test import"  for that I need provide below in env file , how/where I will get these key's ot how generate the these keys.

XRAY_CLIENT_ID=

XRAY_CLIENT_SECRET=

1 answer

1 vote
Alexander Ruetzler
Contributor
April 23, 2026

These are the credentials for the Xray Cloud API – you don’t generate them in the code, you have to create them in Xray and then copy them into your .env file.

You can get them like this (Xray Cloud):

  1. Log in to Jira where Xray is installed.
  2. Go to Xray → API Keys (sometimes under Jira settings → Apps → Xray → API Keys).
  3. Click Create API Key.
  4. Xray will show you a client_id and client_secret once – copy them immediately.
  5. Put them into your env file
Bacsányi _Kacsa_ Péter
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!
June 29, 2026

"sometimes under Jira settings → Apps → Xray → API Keys)"

Could we get some uptodatw information, please? They are not there. :(

Rina Nir
Community Champion
June 29, 2026

@Bacsányi _Kacsa_ Péter 

You will always find these there, but you need to be a Jira administrator to see this (and to generate the key).
If you are not an administrator- then ask the administrator to generate them and provide you with the details (they can generate them for your user even if you are not an admin).

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events