Forums

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

Cannot access Zephyr Squad APIs with JWT token

Sathish Srinivasan
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!
December 27, 2022

Our organisation have access to Jira and Zephyr Squad over UI. As part of writing automation framework, I want to integrate the zephyr squad apis for auto submission of results to the mapped testcases. 
 
For achieving the above, I tried accessing the jira apis which are working fine. eg: versions, projects, issues etc.

But I cannot access any of the zephyr-squad apis such as cycles, execution etc. 

I have created access and API keys, got my user id.
I have created the JWT token using the above and using them as headers in postman for below request.
Now trying to hit the following api.

https://<my org name>.atlassian.net/rest/api/1.0/config/generalinformation but seeing unauthorized(401) error. I have admin access to Jira and the project admin as well.


1 answer

1 accepted

0 votes
Answer accepted
Nicolas Gondard January 13, 2023

I suggest you use this URL instead (replacing Jira's part with the bold one):

 

https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/config/generalinformation
(It took me a while to figure this out as well)
Sathish Srinivasan
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!
January 15, 2023

yup, i figured out myself too.

Like • praveen baliga likes this
praveen baliga February 9, 2023

@Nicolas Gondard , @Sathish Srinivasan 

 

Thanks so much! I was trying for this since a week, I'm trying to update the test results back to Zephyr Squad for my selenium tests. Can you please help me with any reference link for API?

Thank you in advance!

- Praveen Baliga

Nicolas Gondard February 10, 2023

I use this: https://zephyrsquad.docs.apiary.io/#

Have a nice WE !

Nicolas Gondard

Like • praveen baliga likes this
praveen baliga February 10, 2023

Thank you @Nicolas Gondard , Happy weekend to you too!

 

-Praveen Baliga

sgurijala
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!
January 2, 2025

Hi @Nicolas Gondard

Could you please assist me in retrieving cycle results using the Zephyr Squad REST APIs?

I followed the documentation: https://zephyrsquad.docs.apiary.io/#

API Endpoint:
https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/cycle/cycleId?versionId=&expand=&projectId=

Headers:

  • Content-Type: text/plain
  • Authorization: JWT eyJhbGciOiJIUzI1NiI...
  • zapiAccessKey: amlyYTo3YjU3OTBhN.

I used the Zephyr Squad access key as "zapiAccessKey" and the JWT token as "Authorization". However, I am encountering a 401 Unauthorized error with the message:
"Expecting claim 'qsh' ..."

Could you please help me understand the cause of this issue and guide me on how to resolve it?

 

Nicolas Gondard January 2, 2025

Hi @sgurijala 

There has been almost two years since I have worked with this API, so I'm afraid I can't help you. I suggest you open a new thread, it may gain more coverage.

 

Good luck, and happy new year !

Scott Atkinson
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!
April 17, 2025

I am also having issues with with this I keep getting back -
We encountered some problems during processing this request. Please try again!

is this endpoint still active or has it been deprecated ?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events