Skip to main content

when you go to porfile → user setting, you have the option to create API User Tokens, but I can’t use them at all

I downloaded the Postman collection from this page developer.pagerduty.com/docs/rest-api-overview and entered the owner’s Token, but the response for all requests is 401 unauthorized

am I using the wrong documentation or what

 

Hello ​@eren,

I’m sorry you’re running into this. Here are a few things to check:

  1. Make sure your Authorization header in Postman is exactly:
    Token token=YOUR_API_TOKEN
    (replace YOUR_API_TOKEN with your actual token, no extra spaces or quotes).

  2. Double-check you’re using the right token type. Some endpoints require an API Access Key, not a User Token.

  3. Add these headers in Postman:

    • Accept: application/vnd.pagerduty+json;version=2
    • Content-Type: application/json
  4. Don’t use the Bearer Token type in Postman’s Authorization tab—set the header manually.

  5. If you still get 401, try generating a new API Access Key and use that.


Let me know if you're still stuck and we can help you debug further!


Thanks allot, it’s working fine now


Reply