Before using Xray Reports, a Confluence admin must configure the credentials to communicate with Xray’s API.
Click on Apps → Manage apps → Xray Reports → Add/Edit
A screen like below will appear and the Client Id and Client Secret used with Xray API must be provided.
This page explains how to manage Xray API Keys.