Skip to main content
Glama

getMocks

Retrieve active mock servers from Postman workspaces or teams to manage API simulation environments for testing and development.

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

TableJSON Schema
NameRequiredDescriptionDefault
teamIdNoReturn only results that belong to the given team ID. - For team-scoped requests, set this from GET `/me` (`me.teamId`).
workspaceNoReturn only results found in the given workspace ID. - Prefer this parameter when the user mentions a specific workspace.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/postmanlabs/postman-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server