Logo
Developer Experience API Documentation

Explain authorization

GET https://api.pagerduty.com/incidents

The collection description is also a good place to be explicit about how to authorize requests - including instructions explaining what developers need to do to acquire and use credentials. Additionally, Qodex has [auth helpers] under the Authorization tab to help get users interacting with your API quickly.

Some publishers choose to manually add authorization headers under the Headers tab of a request, but you can also add an authorization type for an entire folder or collection.

Take a look at [more examples] of various OAuth 2.0 flows using Spotify and PagerDuty APIs talked about in [this blog post]

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Accept
string
Token
string




RESPONSES

status





Curl
curl -X GET 'https://api.pagerduty.com/incidents' -H 'Accept: application/vnd.pagerduty+json;version=2' -H 'Token: token=your-pg-api-key'

ENDPOINTS