jaredcscott
4 years agoNew Contributor
Zephyr Scale RESTAPI: Help needed with request format
Hello, I am wanting to retrieve a list of test cases from Zephyr Scale for a project within Jira. Here is my request: curl -X GET -H "Authorization: Bearer:<Zephyr Scale API Token>" -i "https://ca...
- 4 years ago
I found the answer and resolved my issues. Within the Authorization header I had an extra ':' after 'Bearer' and before my API token. Removing this and changing my base URI to https://api.zephyrscale.smartbear.com/v2 resolved my issues.
For full explanation here is the valid GET request format.
curl -X GET -H "Authorization: Bearer <API Token>" -i https://api.zephyrscale.smartbear.com/v2/testcases
In order to filter by project this is the request format
curl -X GET -H "Authorization: Bearer <API Token>" -i https://api.zephyrscale.smartbear.com/v2/testcases?projectKey=<Project Key>