Get mock servers (filter by workspace or team)
getMocksRetrieve active mock servers from Postman. Scope results by workspace ID or team ID; use workspace when known, otherwise provide team ID.
Instructions
Gets all active mock servers. By default, returns only mock servers you created across all workspaces.
Always pass either the `workspace` or `teamId` query to scope results. Prefer `workspace` when known.
If you need team-scoped results, set `teamId` from the current user: call GET `/me` and use `me.teamId`.
If both `teamId` and `workspace` are passed, only `workspace` is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | No | Return only results that belong to the given team ID. - For team-scoped requests, set this from GET `/me` (`me.teamId`). | |
| workspace | No | Return only results found in the given workspace ID. - Prefer this parameter when the user mentions a specific workspace. |