Multiple API Keys in Header

Hey @johngalt2,

Welcome to the Community! :wave:

You can add those at the Collection level in a Pre-request Script like this:

pm.request.headers.add({key: "x-api-key", value: "your-supplied-api-key" })

pm.request.headers.add({key: "x-security-key", value: "your-supplied-security-key" }) 

Each request in your Collection will then use these 2 Headers in every call.

You could even add these at the Folder level if you wanted to only do this for a subset of requests in the Collection.

1 Like