Special characters in the request body

Hi all,

My API request accepts handlebar template in the request body as below

    "id": 1,
    "message": "Hello {{firstName}}"

In the example above, {{firstName}} is not a postman variable and should be sent to backend API as it is.

Can you help me to achieve this?


Hi @lunar-module-cosmol9,

You could try to add a whitespace before and after firstName.
Seems like postman does not interpret {{ varName }} but just {{varName}} without any whitespace.



@lunar-module-cosmol9. In addition, you can store firstName as a collection variable with a value of {{firstName}}. So even if Postman reads it as a Postman Variable, you still get the correct thing parsed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.