Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

What permission do I need for "Add Incident Timeline" via API?


Whenever I try to Add Incident Timeline, I get error 40301. What should I change in the API Key's permission to allow Add Incident Timeline?


Attached are the URL, Header, Body, Response and Permission I used.


Thank you!




URL and Header

Header.pngBody and ResponseBody.png

API Key Permissions

API Permissions.png

1 answer

0 votes
Connor Eyles Atlassian Team Oct 24, 2021

Hi @Benson Polican 

Thanks for reaching out :) 

The message "Team API Keys are not authorized to perform this action" is because you would be using an API key that is assigned to a team.

Please keep in mind that the API keys of the team integrations can only be used for the alerts/incidents of the specific team and the team-based configurations, whereas the API keys of the global integrations can be used for all of the API requests, including account-based configurations.

You would need to create a new API integration that is not assigned to a team to make these API requests. 

More information can be found here.



Hi @Connor Eyles

I'm a bit confused, the Incident I'm trying to add timeline to was created by the same Team API Key. Why can't I add a timeline for it using the same Team API Key?


Thank you!



Hi @Connor Eyles ,

Are you mean Opsgenie Admin needs to provide global API to our user instead of team API Key?

If so, the permission of global API Key will be too much

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

208 views 1 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you