I used the postman interceptor to catch the authentication/authorization request. After it got logged into my history I saved it within the mock collection i am using. There I clicked ‘Send’ to retrieve a response body (in my case a bearer token), saved the response body as an example, set the unique url/path for that request and set the {{url}} so it would direct the request to my mock the next time i will send it.
I am doing end-to-end testing for a customer. In order to test their services without dependencies I have chosen to use postman to create mockservers so I can replace Api’s. That way I can preform behaviour driven development within their goal/requirements without being disturbed by changing data.