Join our Newsletter — 33% off our NHI Course
Home› Guides› Postman for Beginners: Stopping API Keys Leaking From…
Guide Secrets Management

Postman for Beginners: Stopping API Keys Leaking From Public Workspaces

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 3 December 2026 11 min read
On this page

Postman is an app for sending and testing API requests, which teams save in shared collections and workspaces.

This guide is for anyone who uses Postman, or manages people who do, and wants to keep keys safe. You do not need to be a security expert: the main risk is a secret typed into the wrong box and shared further than you meant.

In short

  • Postman requests often need API keys or tokens, which are software passwords for other services.
  • A workspace set to Public can be viewed by everyone, so any key saved in it may be copied.
  • Values you choose to share sync to the Postman Cloud; local values and Postman Vault secrets stay on your machine.
  • Keep keys in the vault, keep workspaces internal unless they must be public, and replace any key that was exposed.

What you will learn

  • Explain what workspaces, collections and environments are.
  • Spot a key saved where others can see it.
  • Check a workspace's visibility before you share it.
  • Ask what to do if a key has been shared by mistake.
Software password (API key)
a secret code a program shows to another service to prove it may connect.
Shared folder (workspace)
the space in Postman where you and others keep requests and settings.
Named setting (variable)
a saved value, such as a web address or a key, that requests can reuse.

This is an independent guide from NHI Mgmt Group, based on Postman's public documentation as of December 2026. It is not sponsored or reviewed by Postman. Product features change, so confirm settings against Postman's current documentation.

What is Postman?

Think of a recipe binder that a kitchen team passes round. It is handy to share, but a safe code scribbled in the margin goes wherever the binder goes. Postman workspaces work in a similar way.

Postman is used to send requests to APIs (the doors one program uses to talk to another) [1]. Requests are saved in collections, which group related requests so you can organise, share and run them [2].

Many APIs need a key or token before they answer. These keys are non-human identities: credentials that let software act without a person typing a password. People often store them as variables, and group variables into environments that can be shared with others [4].

Where the comparison stops working: you can take a page out of a binder. A key that was shared publicly may already have been copied, so removing it is not enough.

Why does it matter?

A key saved in Postman can open the service it belongs to, such as a payment, email or cloud account. If the workspace is shared widely, that key travels with it.

If you are a developer or tester

What could happen: you share a variable's value so a teammate can run a request, and the key syncs to the cloud with it.

Check this: keep keys in Postman Vault or as local values, not shared ones.

Next: API Keys for Beginners

If you run a team that builds apps

What could happen: a workspace is made public to help a partner, with live keys still saved inside.

Check this: ask who can change a workspace's visibility, and what is checked first.

Next: Secrets Sprawl for Beginners

If you hire a freelance developer

What could happen: your shop's payment key ends up in a freelancer's workspace that you cannot see.

Check this: give them a separate test key, and ask where they will keep it.

Next: Leaked Secret Response for Beginners

What does it look like?

Here is a made-up environment with two variables. One is handled safely and one is not.

Example only. All values are made up.

Workspace: "Shop API" (EXAMPLE)   Visibility: Public    (1)
Environment: Live
  base_url   shared value: https://api.example.com    (2)
  pay_key    shared value: FAKE-PAYKEY-0000-EXAMPLE    (3)
  mail_key   vault secret: {{vault:mail-key}}          (4)
  1. A public workspace, which everyone can view.
  2. A web address. Sharing this is usually fine.
  3. In a real file, this line would contain a payment key that anyone who can view the workspace could copy.
  4. A reference to a vault secret. The key itself stays on the owner's machine.

Why this is risky: the payment key is a shared value in a public workspace. It is synced to the cloud and everyone can view it.

The safer way: keep keys in the vault, and use a reference like line 4. Keep the workspace internal.

How does it work?

  1. Pick who can see the workspace. Internal workspaces are for you and your team. Partner workspaces are for invited partners. A public workspace can be viewed by everyone [3].
  2. Save requests in collections. Anyone with access to the workspace can see the collections in it [2][3].
  3. Choose local or shared values. By default, variable values are local and are not synced to the Postman Cloud. If you have Editor access, you can share a value, which syncs it to the cloud [4].
  4. Keep keys in Postman Vault. Vault secrets are stored in your own copy of Postman, are not synced to the cloud, and can be referenced in requests [5].
  5. Let the scanner help. Postman's Secret Scanner looks for keys and tokens. It scans public workspaces by default and tells you what it finds [6].
Diagram titled Where a key ends up in Postman: risky and safer. Two columns of three boxes joined by downward arrows. Risky column, in dark navy: key typed as a shared value, synced to the Postman Cloud; collection saved in a workspace with visibility set to Public; everyone can view it, and anyone may copy the key. Safer column, in green: key kept in Postman Vault, which stays on your own machine; request uses a reference, and the workspace is kept internal; checked before sharing, with Secret Scanner and a review. A note at the bottom says that if a key was ever shared publicly, replace it at the service that issued it, then tidy the workspace.
Figure 1. The same key can be public or private depending on where you save it.

Postman also has its own Postman API key, which lets scripts and tools work with your Postman data. It gives access to any Postman data you have permission for, and you can set when it expires [7]. Treat it as a non-human identity with an owner, not as a spare password.

Some protections depend on your plan. For example, the Secret Scanner dashboard is for Enterprise plans, and some scanner reports need an extra add-on [6].

A worked example

Tegan Pajari is a freelance developer. She is building an online ordering page for Oak Chemist, a small local pharmacy. She uses Postman to test the payment service and the email service.

The pharmacy owner asks if their new web agency can see her test requests. Tegan's first thought is to make her workspace public. It would be quick, and the agency would not need an account in her team.

Before she changes anything, she opens the environment. The payment key is saved as a shared value, so it has synced to the cloud. The email key is the same. If she made the workspace public, everyone could view both.

Tegan stops and changes her plan. She moves both keys into Postman Vault and replaces them in the environment with vault references. She then sets the remaining values back to local where she can.

Next, she asks the pharmacy owner to create test keys just for the agency. The agency gets its own keys, with an expiry date, and Tegan invites them to a private workspace instead.

Last, Tegan is not sure whether an old version of the collection was ever shared. To be safe, she asks the owner to replace the live payment key at the payment service. The old one is turned off there.

It takes an afternoon. The pharmacy's keys now sit in fewer places, and each one has a clear owner.

Myths and mistakes

What people thinkWhat is true
My workspace is public, but nobody will find it.A public workspace can be viewed by everyone. Assume anything in it can be read.
Deleting the key from the collection fixes a leak.Someone may already have a copy. Replace the key at the service that issued it.
All my variable values are shared with my team.Values are local by default. They sync to the cloud only when you choose to share them.
The scanner catches every key.Scanners look for known patterns and depend on your settings. Treat them as a safety net and still check by eye.
Test keys do not matter.A test key can still reach real systems or data. Give it an owner and an expiry date.

What can I do this week?

  • List your workspaces and check which ones are set to Public.
  • Open each environment and look for keys saved as shared values.
  • Move those keys into Postman Vault and use references instead.
  • Set an expiry date on your Postman API key.
  • Replace any key you think was shared publicly, at the service that issued it.

Checklist

  • Every public workspace has a reason and a named owner.
  • No live keys or tokens sit in public workspaces.
  • Keys are stored in Postman Vault or kept as local values.
  • Shared values hold only safe items, such as web addresses.
  • Postman API keys have an expiry date and an owner.
  • Partners and freelancers get their own keys, not yours.
  • Secret Scanner findings are read and acted on.
  • There is a plan for replacing a key that was exposed.

Common questions

Who can see a public Postman workspace?

Everyone. Postman's docs describe a public workspace as one that everyone can view. Anything saved in it, including shared variable values, should be treated as public. Keep workspaces internal or partner-only unless you really need them to be public.

What is the difference between a local and a shared value?

A local value stays in your own copy of Postman and is not synced to the Postman Cloud. A shared value is synced, so others with access can see it. Values are local by default; you have to choose to share one.

What is Postman Vault for?

It is a safe place for sensitive values such as API keys and passwords. Vault secrets are stored in your own copy of Postman and are not synced to the cloud. Your requests use a reference to the secret instead of the key itself.

I shared a key by mistake. Is deleting it enough?

No. Someone may already have copied it. Replace or revoke the key at the service that issued it, so the old one no longer works. Then remove it from Postman and check the service's records for use you do not recognise.

Is my Postman API key a non-human identity?

Yes, in practice. It lets scripts and tools act on any Postman data you have access to, without you typing anything. Give it an owner, set an expiry date, and keep it out of shared values and public workspaces.

Where next?

Ready for the detail? Read the practitioner guide: Postman credentials. It goes further into Postman key types, admin roles, audit logs and a step-by-step plan for responding to a leaked key.

Also useful:

Related NHI Mgmt Group resources: Non-Human Identities for Beginners, Secrets in Code for Beginners and API Key Leak Response Playbook.

Key terms

API key
A secret code a program uses to prove it may call another service.
Hardcoded credential
A key or password typed straight into a file or request instead of being fetched from a safe store.
Credential revocation
Turning off a key or token so it can no longer be used.
API key rotation
Replacing a key with a new one, on a schedule or after it may have been exposed.
Credentials vault
A guarded store for secrets such as keys and passwords; Postman's own version is called Postman Vault.
Public workspace
Postman's term for a workspace that everyone can view.

Sources and further reading

  1. Postman, "Postman Docs overview", Postman Learning Center. https://learning.postman.com/docs/introduction/overview/ (accessed 2 Dec 2026).
  2. Postman, "Collections overview", Postman Learning Center. https://learning.postman.com/docs/collections/collections-overview/ (accessed 2 Dec 2026).
  3. Postman, "Manage workspaces", Postman Learning Center. https://learning.postman.com/docs/collaborating-in-postman/using-workspaces/managing-workspaces/ (accessed 2 Dec 2026).
  4. Postman, "Store and reuse values using variables", Postman Learning Center. https://learning.postman.com/docs/sending-requests/variables/variables/ (accessed 2 Dec 2026).
  5. Postman, "Store secrets in your Postman Vault", Postman Learning Center. https://learning.postman.com/docs/sending-requests/postman-vault/postman-vault-secrets/ (accessed 2 Dec 2026).
  6. Postman, "Secret Scanner", Postman Learning Center. https://learning.postman.com/docs/administration/managing-your-team/secret-scanner/ (accessed 2 Dec 2026).
  7. Postman, "Authenticate with the Postman API", Postman Learning Center. https://learning.postman.com/docs/developer/postman-api/authentication/ (accessed 2 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.