Using Postman To Access the API

I’ve used Postman to access the API for a couple years, but now it does not seem to work anymore, giving the html

An account is required. Please log in to continue.

Looking at the API key Admin set up, that has changed a little, but my API key is still there. Tried creating a new API key, but no change.

Recently updated to beta4. Is there a new requirement?

4 Likes

Double check that you’re passing the API key (and username) as a HTTP Header, and not as a parameter. That’d be the first thing to check.

8 Likes

Like so?

2 Likes

Close. Per the documentation, https://docs.discourse.org, those should be hyphens (-), not underscores(_). Correct keys are Api-Key and Api-Username.

6 Likes

Solved. Thank you!

6 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.