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.

[get new access token modal](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.

[pagerduty gif](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.

[pagerduty header](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.

[pagerduty header](https://i.imgur.com/yGKytZl.png)

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"incidents":[],"limit":25,"offset":0,"total":null,"more":false}