Testing api-key access in postman

default discord avatar
taongaB
6 months ago
2

I added an apiUser collection to my app with the goal of setting up api-key authentication. I would like to test my setup in postman, at the url:

http://localhost:3000/api/access

with api key authentication. Does anyone know how to implement


an authorization format like this:

${User.slug} API-Key ${YOUR_API_KEY}

, in postman?



If you ever run into this issue, the solution is to use as key "Authorization" and value "{your_collection.slug} API-Key {Your_API_Key}"🤩

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.