How to get the url of global variables with uid?

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

Hi,
Is there any way to get the url of global variables with uid?
I want to run it by newman with urls.

Please let me know the way.
Thanks.

Hey @hhh3h

Welcome to the community!! :trophy:

Do you mean a URL to access the global variables, from the Postman API?

https://docs.api.getpostman.com/?version=latest

That’s not an endpoint that’s currently available over the API.

Hi~ @danny-dainton.
I can’t find out the way how to get the URL to access the global variables from your post.
Please let me know it.

That’s not an endpoint that’s currently available over the API.

You would either need to export the JSON file and reference that in the command or use this Newman CLI flag:

--global-var "<global-variable-name>=<global-variable-value>"

Okay, thanks for your reply. :grinning: