PagerDuty - PKCE flow (via helper)
GET https://api.pagerduty.com/incidents
From the PagerDuty Developer Platform, read the documentation for OAuth 2.0: PKCE Flow for mobile and browser apps.
In Qodex
Under the Authorization tab of any request, select OAuth 2.0
. Click Get New Access Token. From there, select a Grant Type of Authorization Code (With PKCE)
. Input your data like in the previous request. The Code Challenge Method can be either SHA-256
or Plain
. You can also optionally provide a custom Code Verifier.
](/assets/blogs/https://i.imgur.com/sYQeJ1c.png)
Click Request Token and walk through the authorization process to generate a new token. The access token can then be used according to your specific API’s documentation.
](/assets/blogs/https://i.imgur.com/xZdnp43.gif)
Copy the access token to your clipboard, or better yet, save it as an [environment variable] At this time, we can either manually add a header as we did in the previous example. Or we can continue using the Auth helper for OAuth 2.0.
](/assets/blogs/https://i.imgur.com/bMKXd4e.png)
Remember if you're working with a bunch of different Auth tokens, you can MANAGE TOKENS next to where you created them.
](/assets/blogs/https://i.imgur.com/yGKytZl.png)
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"incidents":[],"limit":25,"offset":0,"total":null,"more":false}