> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Xray - How do I link my account?

## Overview

To authenticate with Xray, you need:

1. **Region** - The Xray Cloud host for your data residency region.
2. **Client ID** - The Client ID of an Xray API key.
3. **Client Secret** - The Client Secret of the same API key.

This guide will show you how to get them.

### Prerequisites

* A Jira Cloud site with the Xray Test Management for Jira app installed. You can install it from the [Atlassian Marketplace](https://marketplace.atlassian.com/apps/1211769/xray-test-management-for-jira) with **Try it free**.
* **Jira Administrator** and **Xray Administrator** permissions, which are needed to open Xray's Global Settings and create API keys.

### Step 1: Find your region

Xray Cloud has a global host and one host per data residency region:

| Location | Value to select |
| - | - |
| Global (all Xray Cloud regions) | `xray.cloud.getxray.app` |
| USA | `us.xray.cloud.getxray.app` |
| EU (Frankfurt) | `eu.xray.cloud.getxray.app` |
| Australia (Sydney) | `au.xray.cloud.getxray.app` |

The global host serves Xray Cloud across all regions. See [REST API](https://docs.getxray.app/space/XRAYCLOUD/44565892/REST+API) for the list of hosts.

### Step 2: Create an API key

1. In Jira, open **Settings** (gear icon) > **Marketplace apps**.
2. In the left sidebar, expand **Xray Settings** and click **API Key Management**, then click **Create API Key**.

![Xray API Key Management page in Jira admin settings with the Create API Key button highlighted](https://mintcdn.com/nango/FUUJJPw4eJ8tJzlI/api-integrations/xray/xray_api_key_management.png?fit=max\&auto=format\&n=FUUJJPw4eJ8tJzlI\&q=85\&s=c26ffcb47089c44e4accfdbccd4632a1)

3. Select the Jira user the key belongs to, choose the **API Standard** scope and an expiration, then click **Create Key**.

![Create API Key dialog in Xray with the User, Scope and Expiration fields and the Create Key button](https://mintcdn.com/nango/FUUJJPw4eJ8tJzlI/api-integrations/xray/xray_create_api_key_dialog.png?fit=max\&auto=format\&n=FUUJJPw4eJ8tJzlI\&q=85\&s=4f8d889df3bb93aa793d3271a62aced4)

4. Copy the **Client ID** and the **Client Secret** before clicking **Close**. The Client Secret is not shown again.

![Key created dialog in Xray showing the Client ID and Client Secret fields with a copy button](https://mintcdn.com/nango/FUUJJPw4eJ8tJzlI/api-integrations/xray/xray_key_created.png?fit=max\&auto=format\&n=FUUJJPw4eJ8tJzlI\&q=85\&s=c4636fdcf9a6fb7bbff968a67241fda3)

### Step 3: Enter your credentials in the Connect UI

1. Open the form where you need to authenticate with Xray.
2. Select your **Region** and enter your **Client ID** and **Client Secret** in their respective fields.
3. Submit the form. Nango requests an Xray token with your credentials, so a wrong Client ID or Client Secret is rejected.

![Xray connection form in the Nango Connect UI](https://mintcdn.com/nango/FUUJJPw4eJ8tJzlI/api-integrations/xray/form.png?fit=max\&auto=format\&n=FUUJJPw4eJ8tJzlI\&q=85\&s=04b350693ccfe5d24563adb81dc6f363)

You are now connected to Xray.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.