Getting a Bearer Token in Postman / Newman Automatically for a Collection

Tyler Owen
ITNEXT
Published in
3 min readJan 1, 2022

--

Photo by Markus Spiske on Unsplash

Our platform requires a Bearer Token for authentication on all APIs. During the normal flow of things we get this token from the Frontend UI; however I wanted to be able to perform some automation testing and this doesn’t involve the Frontend.

The team had created an internal-only service that would allow me to programmatically get a…

--

--

Writer for

Addictive to observability and automation, amateur python developer