Skip to main content

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 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: The global host serves Xray Cloud across all regions. See 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
  1. 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
  1. 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

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 You are now connected to Xray.