Dear Community,
I have the postman apis for opsgenie and i am trying to get the on call schedule however i keep getting error could not authenticate even though i am using the API Key from my settings in ops genie.
Br,
Hey there Dhary,
Thanks for getting in touch!
Can you please tell me what error you see? There are a a few types possibilities for what is happening.
401 - Unauthenticated (Not Unauthorized) | apiKey is invalid or integration is disabled | |
403 - Forbidden (Unauthorized) | 40301 | apiKey is valid but the apiKey cannot do this operation because of permissions |
403 - Forbidden | 40302 | apiKey is valid and authorized but we do not support the request |
In the case of a 401, please check the api key is correct and that the integration is active/
In the case of 40301, it means the the API key is from the API Key Management and you need to get the API from API integration by going to the Settings tab >> Integrations and selecting the API integration you would like to use.
In the case of 40302, it means that the request is not support, perhaps the endpoint is incorrect.
Dhary, a quick follow up to say that when you configure your api key in postman you can do it in the authorisation tab, chose the API key type and add the key as below where the Key = GenieKey and the Value = the API key from your integration.
Let me know how you go.
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.