Postman

Variables

  • Sidebar > Environments > + > add a variable
  • Collections > a request > use variable with {{varName}}

Dynamically Setting Variables

“Tests” tab:

const jsonResponse = pm.response.json();
pm.environment.set("access_token", jsonResponse.access_token);