Hi. I am having an issue getting the API to return my projects list from JIRA using curl and the API.
Here is my syntax:
curl -v https://<INSTANCE>.atlassian.net/rest/api/3/project/search --user <EMAIL ADDRESS>:<API TOKEN>
Results:
HTTP/1.1 200 OK
X-Seraph-Loginreason: AUTHENTICATED_FAILED
I have also tried:
curl -v https://api.atlassian.com/ex/jira/<CLOUD ID>/rest/api/3/project/CIE --user <EMAIL ADDRESS>:<API TOKEN>
Results for this one:
X-Failure-Category: FAILURE_CLIENT_TCS
HTTP/1.1 404 Not Found
Thanks in advance!
The API call option you are making suggests you are using a service account and an API token related to that account.
The above call to api.atlassian.etc... requires a service account and api token of that service account
The one that is working is if the token is based on your user in Jira.
Neither are working. So I am not sure I am tracking your response. The authentication failed should not be happening. I've tried my regular JIRA user/password, user/api token, encoded authentication and service account/api token. All get the same response
HTTP/1.1 200 OK
X-Seraph-Loginreason: AUTHENTICATED_FAILED
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.