Email and token all corect but can not authenticated

Test Results (based on logs):
Jira API: :cross_mark: Not connected (401 Unauthorized)

Confluence API: :cross_mark: Not connected (401 Unauthorized)

Email and token length are correctly loaded from environment variables.

Atlassian response: “Client must be authenticated to access this resource.”

What this means:
The code and infrastructure are fully working.

The problem is only in the combination of:

Email + API token + user permissions

Atlassian explicitly returns an authentication error.

Hi @S7Inc ,

It’s hard to provide an answer to your problem without more information about what you’re doing. How are you accessing the REST API? From within a script on your local machine, or some external tool, or a Connect or Forge app?

How are you attaching the API token to the requests you are sending? Could you share a code snippet of what you’re doing? HTTP 401 most likely means that the API token isn’t being correctly received by the Atlassian APIs.