How to set a session id in a mail server

I need to send a send request to an API service that requires a session identifier along with other parameters in the post request field to get the required information.

I am using Postman to test this API.

I would like to know how to send a session id to a mail request when using Postman?

I am aware of the postman script pre-request, but I don’t know how to use the variable in the mail request.

Any help or suggestion would be appreciated.

Thanks!

+5
source share
1 answer

This post is a bit outdated, but I want to still reply if someone is looking for an answer.

First, you need to see if the intercepter is enabled on the toolbar, it is one step away from the input

If it does not activate when you click on it, you can install the extension. I think there is one for Chrome. Go ahead and add the extension.

After that, you can return to Postman and enable intercepter

You can see the cookies in the postman, and at this point you can add _session_id

Hope this helps.

Thanks,

+8
source

All Articles