> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage Postman collections and monitors from Guild agents

> Connect Guild agents to Postman to create, update, and run collections, environments, APIs, mocks, monitors, and workspaces via the Postman REST API.

Integrations · Postman

A Guild agent can manage your Postman collections, environments, APIs, schemas, mocks, monitors, and workspaces without you writing a single API call. Guild stores your Postman API key server-side and injects it into every request, so agent code never sees the credential. Credential policies let you restrict which operations each agent can perform, and every request is logged for audit.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Postman.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Postman to your first agent.

## What the Postman integration exposes

The tools cover collections, environments, APIs, API versions, schemas, mocks, monitors, and workspaces. Agents can fork and merge collections, import external API specifications, create relations between API versions and linked entities, run monitors on demand, and publish or unpublish mocks. Tools are prefixed with `postman_co_` and imported from `guildai~postman-co`.

## How it works

**1. Open credentials in Guild**

Go to Access & setup > Credentials in your Guild account or organization. Click Connect, search for postman-co, and paste your Postman API key into the API Key field.

**2. Import tools into your agent**

Add `guildai~postman-co` to your agent's dependencies and import `PostmanCoTools`. Spread the tools object into your agent definition as shown in the Usage section.

**3. Narrow tools with pick**

Use [pick()](https://docs.guild.ai/sdk/tools.md#selecting-specific-tools) to include only the tools your agent needs. Each tool name carries the `postman_co_` prefix, for example `postman_co_run_a_monitor` or `postman_co_merge_a_fork`.

## Why Postman access needs governing

Postman workspaces can hold production API definitions, shared environments with live credentials, and monitors that fire against running services. An agent that can delete collections or workspaces, merge forks, or update schemas without restriction can cause immediate disruption. [Credential policies](https://docs.guild.ai/platform/credential-policies.md) let you write ALLOW and DENY rules that Guild's proxy enforces before any request reaches Postman. You can limit an agent to read-only operations such as `postman_co_all_collections` and `postman_co_single_monitor`, block destructive tools like `postman_co_delete_collection` by pattern, or restrict access to specific agents or workspaces on the same connected key.

Guild stores the Postman API key server-side and adds it as the `X-Api-Key` header after the policy check passes. Agent code never receives the key. [Credentials](https://docs.guild.ai/platform/credentials.md) can be scoped to an account, a single workspace, a member, or one installed agent, so the key used in production workspaces never leaks into a development agent. Every request goes through the credential proxy, giving you a consistent audit trail across all agents that use the integration.

## About the Postman integration

Agents can create, read, update, and delete Postman resources including collections, environments, APIs, schemas, mocks, monitors, and workspaces. They can fork and merge collections, import API specifications, run monitors, and manage relations between API versions and linked entities. The integration is `guildai~postman-co`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as `X-Api-Key: <key>`

### Setup

**1. Connect Postman**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **postman-co**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { PostmanCoTools } from "@guildai-services/guildai~postman-co"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Postman.",
  tools: { ...PostmanCoTools },
})
```

### Selecting specific tools

Tools are named with the `postman_co_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~postman-co`:

> [accordion] All 56 tools
>
> | Tool | What it does |
> | - | - |
> | `postman_co_all_collections` | The '/collections' endpoint returns a list of all collections that are accessible by you. |
> | `postman_co_all_environments` | The '/environments' endpoint returns a list of all environments that belong to you.. |
> | `postman_co_all_mocks` | This endpoint fetches all the mocks that you have created. |
> | `postman_co_all_monitors` | The '/monitors' endpoint returns a list of all monitors that are accessible by you. |
> | `postman_co_all_workspaces` | The '/workspaces' endpoint returns a list of all workspaces that is accessible by you. |
> | `postman_co_api_key_owner` | the '/me' Postman API endpoint lets you access information about the authenticated user. |
> | `postman_co_create_a_fork` | This endpoint allows you to create a fork from an existing collection. |
> | `postman_co_create_api` | This call creates a new API with a default API Version. |
> | `postman_co_create_api_version` | This call creates a new API version in the specified API. |
> | `postman_co_create_collection` | This endpoint allows you to create collections using the Postman Collection v2 format. |
> | `postman_co_create_collection_from_schema` | This call creates a collection and links it to an API as one or multiple relations. |
> | `postman_co_create_environment` | A sample body is added to the request that conforms to the following JSON schema. |
> | `postman_co_create_mock` | This endpoint allows you to create a mock on a collection. |
> | `postman_co_create_monitor` | This endpoint allows you to create a monitor. |
> | `postman_co_create_relations` | This call allows you to add existing Postman entities as new relations to an API. |
> | `postman_co_create_schema` | This call creates a new schema. |
> | `postman_co_create_webhook` | Create a webhook that triggers a collection with your custom payload. |
> | `postman_co_create_workspace` | This endpoint allows you to create a workspace and populate it with entities like 'collections', 'environments', 'mocks' and 'monitors' using their 'uid'. |
> | `postman_co_delete_an_api` | This call deletes an existing API having the specified id. |
> | `postman_co_delete_an_api_version` | This call deletes an existing API Version having the specified id. |
> | `postman_co_delete_collection` | This endpoint allows you to delete an existing collection. |
> | `postman_co_delete_environment` | This endpoint allows you to delete a single environment based on an environment's unique 'uid'. |
> | `postman_co_delete_mock` | This endpoint allows you to delete an existing mock using its 'uid'. |
> | `postman_co_delete_monitor` | This endpoint can be used to delete an existing monitor using its 'uid'. |
> | `postman_co_delete_workspace` | This endpoint allows you to delete an existing workspace. |
> | `postman_co_get_all_ap_is` | This call fetches all the APIs present in the specified workspace |
> | `postman_co_get_all_api_versions` | This call fetches details about the all the API Versions in the specified API. |
> | `postman_co_get_an_api_version` | This call fetches details about the specified API Version. |
> | `postman_co_get_contract_test_relations` | This call fetches all the relations by type which are linked to the specified API version along with their details. |
> | `postman_co_get_documentation_relations` | This call fetches all the relations by type which are linked to the specified API version along with their details. |
> | `postman_co_get_environment_relations` | This call fetches all the relations by type which are linked to the specified API version along with their details. |
> | `postman_co_get_integration_test_relations` | This call fetches all the relations by type which are linked to the specified API version along with their details. |
> | `postman_co_get_linked_relations` | This call fetches all the relations which are linked to the specified API version along with their details. |
> | `postman_co_get_monitor_relations` | This call fetches all the relations by type which are linked to the specified API version along with their details. |
> | `postman_co_get_schema` | This call fetches a single schema having the specified id. |
> | `postman_co_get_test_suite_relations` | This call fetches all the relations by type which are linked to the specified API version along with their details. |
> | `postman_co_import_external_api_specification` | This endpoint allows you to import external API specifications into Postman. |
> | `postman_co_merge_a_fork` | This endpoint allows you to merge a forked collection back to its destination collection. |
> | `postman_co_publish_mock` | This endpoint publishes the mock you have created using its 'uid' |
> | `postman_co_run_a_monitor` | This endpoint will run the monitor instantly and wait for the monitor to run completely. |
> | `postman_co_single_api` | This call fetches a single API having the specified id. |
> | `postman_co_single_collection` | Access the contents of a collection that is accessible to you using its unique id ('uid'). |
> | `postman_co_single_environment` | Access the contents of an environment that is accessible to you using its unique id ('uid'). |
> | `postman_co_single_mock` | This endpoint fetches you the basic information about a single mock using its 'uid'. |
> | `postman_co_single_monitor` | This endpoint fetches you basic information about the monitor using its 'uid'. |
> | `postman_co_single_workspace` | Access the contents of a workspace that is accessible to you using its id ('id'). |
> | `postman_co_sync_relations_with_schema` | This call allows you to keep the relation in sync with the API schema. |
> | `postman_co_unpublish_mock` | This endpoint unpublishes the mock you have created using its 'uid' |
> | `postman_co_update_an_api` | This call updates an existing API . |
> | `postman_co_update_an_api_version` | This call updates an existing API Version. |
> | `postman_co_update_collection` | This endpoint allows you to update an existing collection using the Postman Collection v2 format. |
> | `postman_co_update_environment` | This endpoint replaces an existing environment. |
> | `postman_co_update_mock` | This endpoint allows you to update a mock you have created using its 'uid'. |
> | `postman_co_update_monitor` | This endpoint allows you to update a monitor using its 'uid'. |
> | `postman_co_update_schema` | This call updates an existing schema. |
> | `postman_co_update_workspace` | This endpoint allows you to update a workspace and update it's association to entities like 'collections', 'environments', 'mocks' and 'monitors' using their 'uid'. |

## Frequently asked questions

> [accordion] Can an agent run a Postman monitor immediately rather than waiting for its schedule?
>
> Yes. The `postman_co_run_a_monitor` tool runs the monitor instantly and waits for it to complete before returning results.

> [accordion] Can I stop an agent from deleting collections or workspaces?
>
> Yes. Add a DENY rule in the credential policy targeting `postman_co_delete_collection`, `postman_co_delete_workspace`, or a wildcard pattern such as `postman_co_delete_*`. Guild's proxy blocks any matching request before it reaches Postman. See [credential policies](https://docs.guild.ai/platform/credential-policies.md) for rule syntax.

> [accordion] Does the integration receive webhook events from Postman?
>
> No. The catalog entry for `guildai~postman-co` lists no webhook events, so the integration does not receive inbound events from Postman.

> [accordion] Can different agents in the same organization use different Postman accounts?
>
> Yes. Connect a second Postman credential scoped to a specific workspace, member, or individual agent. Guild resolves credentials in order: agent-granted, dedicated, member, workspace, then account default. See [credentials](https://docs.guild.ai/platform/credentials.md) for the full resolution order.

## Put a governed agent on Postman this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Postman.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Postman to your first agent.

## Related

**Also runs on Guild:** [Cypress](https://docs.guild.ai/integrations/cypress.md) · [TestRail](https://docs.guild.ai/integrations/testrail.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
