The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Zephyr Cloud api returns 401 Unauthorized

K C, Balaji
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!
November 21, 2023

JWT token generation

Generated JWT using below payloads

base url - https://prod-api.zephyr4jiracloud.com/v2

Access Key - ......

Secret Key - ......

Account Id - ......

Expiration - 3600 sec

--------------------------------------------------------------------------------------------------

Python Script to Authenticate & Access

Authentication method - Bearer

headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer ey......(JWT)
}

Execute python script using

requests.request("GET", "https://prod-api.zephyr4jiracloud.com/v2/projects/", headers=headers, verify=False)
Script Execution Output
401
b'Unauthorized'
Reference

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events