Postman collection variables streamline API testing by centralizing values like base URLs, tokens, or record IDs.
How to set them up:
- Click your collection > Go to the “Variables” tab.
- Add variables (e.g.,
base_url,auth_token). - Use them in requests:
http
Copy
Edit
GET {{base_url}}/record/v1/customer/{{customer_id}}
- Update values once, apply across all requests.
Tip: Collection variables reduce hardcoding and support easier environment switching (e.g., SB vs. Production).