Bring Postman environments and globals with you

A Postman collection without its environments is a list of {{baseUrl}}/users requests that go nowhere. When you move to Requestarium, the environments and globals are where the real setup lives: hosts per stage, API keys, test account ids. Here's how to bring them along.

The easy way: Migrate from Postman

Migrate from Postman… in the + menu of the collection tree asks for a Postman API key, lists the workspace's collections and environments, and moves what you tick. Environments land in an environment group named "Postman: workspace". See moving your team off Postman for the whole walkthrough.

From exported files

If you'd rather not use an API key, export each environment in Postman (Environments, ⋯, Export) and import the files from a terminal:

Terminal
requestarium import staging.postman_environment.json --environments-only --name "Shop API"
requestarium import production.postman_environment.json --environments-only --name "Shop API"

--name is the environment group they go into; without it, they go into a group called "Imported". The environment keeps its name from the file: Staging, Production.

In VS Code, Import… in the Requestarium extension reads Postman environment files too.

A zip holding a collection and its .postman_environment.json files, as Requestarium itself writes when you export to Postman with environments, imports in one step: the collection comes in with its environments.

What happens to the values

In PostmanIn Requestarium
a variable of type secreta secret variable: encrypted, masked in the app and in reports
a default variablea plain variable
a disabled variableskipped
an empty valuean empty variable, ready to fill in

Postman's "current value" is kept on the machine where it was set, and usually isn't in exported files. If your team kept real keys only as current values, the imported variables will be empty. Fill them in once, as secrets, and everyone gets them.

Globals

Requestarium doesn't have a global scope. Values that apply everywhere belong in one of two places:

  • Each environment, if the value differs per stage or is a credential. Migrate from Postman does this for you: workspace globals are copied into each migrated environment, and the environment's own value wins when both have the same name.
  • Collection variables, if the value is the same everywhere and isn't secret, such as an API version string.

Scripts that call pm.globals.set and pm.globals.get still run. See variables, environments and scopes for how scopes resolve, and Postman scripts compatibility for scripts.

Check

Pick an environment and send a request. If a {{variable}} is underlined as missing, it lived somewhere that didn't come over: a global, another environment, or a current value. See find missing variables before you send.