Testing api-key access in postman

default discord avatar
taongablast year
1

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}"🤩

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

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