Hello,
I’m currently trying to set up and use the API integration for Jira Service Management Cloud as documented here: https://support.atlassian.com/jira-service-management-cloud/docs/set-up-an-api-integration/
According to the documentation, I should be able to use the default API integration’s API key by including it in the Authorization header in this format:
Authorization: GenieKey <API key>
However, when I attempt to make API requests using this header format, the calls fail to authenticate. I used a Global scope API integration for this purpose. Here's the CURL command I tried:
curl -H "Authorization: GenieKey <JSM_API_KEY>" 'https://api.atlassian.com/jsm/ops/api/<cloudID>/v1/integrations'
The response I got is the following:
{"code":401,"message":"Unauthorized"}
According to the docs, I should be able to manage JSM resources using this API Integration right:
What does the integration offer?
Through API integration, you can access Jira Service Management services to create alerts and configure users, on-call schedules, and teams for third-party applications.
As @Christos Markoulatos -Relational- mentions, the KB you linked is for the JSM Operations section.
What is your exact need or requirement?
Thanks for your response @Marc -Devoteam- . Please find my response to the previous answer (https://community.atlassian.com/forums/Jira-Service-Management/Unable-to-Authenticate-with-JSM-API-Integration/qaa-p/3188926#M220833)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The integration you mention is to use with an application outside JSM to connect to JSM Ops (if not listed in the ootb options)
If you want to use JSM itself in relation with Operations via API, you can use default Basic authentication options.
https://developer.atlassian.com/cloud/jira/service-desk/basic-auth-for-rest-apis/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gotcha, thanks for the response. I believe the docs here could make that a bit clearer in that case:
What does the integration offer?Through API integration, you can access Jira Service Management services to create alerts and configure users, on-call schedules, and teams for third-party applications.
The part about using the API key is also wrong I guess:
If you're using REST API with the default API integration, copy the API key and paste it into the Authorization header in the following format: GenieKey <API key>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is for the Ops part of JSM, can u specify what u are trying to achieve?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, I'm currently porting some automations around Alert/Incident management in Opsgenie to JSM. The Opsgenie APIs could be authenticated using the API Integration. I expected the same to work in JSM, also as mentioned in the JSM docs. However that does not seem to be the case.
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.