Use Pre-request scripts(next to body) for this:
var encoded = encodeURIComponent({{phone number}});
or
var encoded = encodeURIComponent(postman.getEnvironmentVariable("phone number"));
and to continue use:
postman.setEnvironmentVariable("encoded phone number", encoded);
And set your url /path/get?phone={{encoded phone number}}
source
share