Forums

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

Can I get the GET /rest/api/2/serverInfo endpoint enabled for OAuth 2.0?

Kyle Wright July 20, 2022

Goal: Retrieve site name to create valid links to projects, issues, etc.

Problem: I'm getting the following error message while hitting the `serverInfo` endpoint `403 Forbidden: {"errorMessages":["OAuth 2.0 is not enabled for method: GET /rest/api/2/serverinfo"]}`.

I'm using Workato (an IPAAS provider) to integrate with Jira. Through Workato, I only have access with endpoints that fall after `/rest/api/2/`. I'm aware that there's the following endpoint `https://api.atlassian.com/oauth/token/accessible-resources`, which I can use to get the site name. Unfortunately, I cannot use this endpoint due to Workato's limitations. For clients that use the OAuth 2.0 approach, I don't see another endpoint to use other than the `serverInfo` endpoint.

If there's a better endpoint to use to fetch the site name, I'd love to know what that is. If there isn't a better endpoint, can I get the `GET /rest/api/2/serverInfo` endpoint enabled for OAuth 2.0?

1 answer

0 votes
Kyle Wright July 20, 2022

Tagging @Beata Szturemska because you've enabled two other endpoints for OAuth

Beata Szturemska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 21, 2022

Hi, 

thanks for reaching out.
The issue is that you are using /rest/api/2/serverinfo instead of /rest/api/2/serverInfo, but our endpoints are case sensitive. 

I have confirmed that serverInfo endpoint is added to allow list for OAuth apps.

Regards,
Beata

Suggest an answer

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

Atlassian Community Events