pub struct PostmanClient { /* private fields */ }

Implementations

Get all APIs

Gets information about all APIs.

Create an API

Creates an API.

Get an API

Gets information about an API.

Update an API

Updates an API.

Delete an API

Deletes an API.

Get all API versions

Gets information about an API’s versions.

Create an API version

Creates a new API version.

Get an API version

Gets information about an API version.

Update an API version

Updates an API version.

Delete an API version

Deletes an API version.

Get contract test relations

This endpoint is deprecated. Use the /apis/{apiId}/versions/{apiVersionId}/test endpoint.

Get documentation relations

Gets an API version’s documentation relations.

Get environment relations

Gets an API version’s environment relations.

Get integration test relations

This endpoint is deprecated. Use the /apis/{apiId}/versions/{apiVersionId}/test endpoint.

Get mock server relations

Gets an API version’s mock server relations.

Get monitor relations

Gets an API version’s monitor relations.

Get all linked relations

Gets all of an API version’s relations.

Create relations

Creates a new relation for an API version. This endpoint accepts multiple relation arrays in a single call.

Create a schema

Creates an API definition.

Get a schema

Gets information about an API’s definition.

Update a schema

Updates an API definition.

Create collection from a schema

Creates a collection and links it to an API as one or multiple relations.

Get all test relations

Gets all of an API version’s test relations.

Get test suite relations

This endpoint is deprecated. Use the /apis/{apiId}/versions/{apiVersionId}/test endpoint.

Sync API relations with definition

Syncs an API version’s relation with the API’s definition.

Get all collections

Gets all of your collections. The response includes all of your subscribed collections.

Create a collection

Creates a collection using the Postman Collection v2 schema format.

Note:

  • For a complete list of available property values for this endpoint, use the following references available in the collection.json schema file:
    • info object — Use the definitions.info entry.
    • item object — Use the definitions.items entry.
  • For all other possible values, refer to the collection.json schema file.

Create a fork

Creates a fork from an existing collection into a workspace.

Merge a fork

Merges a forked collection back into its destination collection.

Get a collection

Gets information about a collection. For a complete list of this endpoint’s possible values, use the collection.json schema file.

Update a collection

Updates a collection using the Postman Collection v2 schema format.

Use caution when using this endpoint. The system will replace the existing collection with the values passed in the request body.

Note:

  • For a complete list of available property values for this endpoint, use the following references available in the collection.json schema file:
    • info object — Use the definitions.info entry.
    • item object — Use the definitions.items entry.
  • For all other possible values, refer to the collection.json schema file.

Delete a collection

Deletes a collection.

Get all environments

Gets information about all of your environments.

Create an environment

Creates an environment.

Get an environment

Gets information about an environment.

Update an environment

Updates an environment.

Delete an environment

Deletes an environment.

Import an exported Postman data dump file

This endpoint is deprecated.

Imports exported Postman data. This endpoint only accepts export data dump files.

For more information, read our Exporting data dumps documentation.

Import an OpenAPI definition

Imports an OpenAPI definition into Postman as a new Postman Collection.

Get authenticated user

Gets information about the authenticated user.

Get all mock servers

Gets all mock servers.

Create a mock server

Creates a mock server in a collection.

Get a mock server

Gets information about a mock server.

Update a mock server

Updates a mock server.

Delete a mock server

Deletes a mock server.

Publish a mock server

Publishes a mock server. Publishing a mock server sets its Access Control configuration setting to public.

Unpublish a mock server

Unpublishes a mock server. Unpublishing a mock server sets its Access Control configuration setting to private.

Get all monitors

Gets all monitors.

Create a monitor

Creates a monitor.

Get a monitor

Gets information about a monitor.

Update a monitor

Updates a monitor.

Delete a monitor

Deletes a monitor.

Run a monitor

Runs a monitor and returns its run results.

Get resource types

Gets all the resource types supported by Postman’s SCIM API.

Get service provider configuration

Gets the Postman SCIM API configuration information. This includes a list of supported operations.

Get all user resources

Gets information about all Postman team members.

Create a user

Creates a new user account in Postman and adds the user to your organization’s Postman team. If the account does not already exist, this also activates the user so they can authenticate in to your Postman team.

If the account already exists, the system sends the user an email invite to join the Postman team. The user joins the team once they accept the invite.

By default, the system assigns new users the developer role. You can update user roles in Postman.

Get user resource

Gets information about a Postman team member.

Update a user

Updates a user’s first and last name in Postman.

Note:

You can only use the SCIM API to update a user’s first and last name. You cannot update any other user attributes with the API.

Update a user’s state

Updates a user’s active state in Postman.

Reactivating users

By setting the active property from false to true, this reactivates an account. This allows the account to authenticate in to Postman and adds the account back on to your Postman team.

Schema security validation

Performs a security analysis on the given definition and returns any issues. This can help you understand their impact and provides solutions to help you resolve the errors. You can include this endpoint to your CI/CD process to automate schema validation.

For more information, read our API definition warnings documentation.

Note:

The maximum allowed size of the definition is 10 MB.

Create a webhook

Creates a webhook that triggers a collection with a custom payload. You can get the webhook’s URL from the webhookUrl property in the endpoint’s response.

Get all workspaces

Gets all workspaces. The response includes your workspaces and any workspaces that you have access to.

Note:

This endpoint’s response contains the visibility field. Visibility determines who can access the workspace:

  • only-me — Applies to the My Workspace workspace.
  • personal — Only you can access the workspace.
  • team — All team members can access the workspace.
  • private-team — Only invited team members can access the workspace.
  • public — Everyone can access the workspace.

Create a workspace

Creates a new workspace.

Important:

We deprecated linking collections or environments between workspaces. We do not recommend that you do this.

If you have a linked collection or environment, note the following:

  • The endpoint does not create a clone of a collection or environment.
  • Any changes you make to a linked collection or environment changes them in all workspaces.
  • If you delete a collection or environment linked between workspaces, the system deletes it in all the workspaces.

Get a workspace

Gets information about a workspace.

Note:

This endpoint’s response contains the visibility field. Visibility determines who can access the workspace:

  • only-me — Applies to the My Workspace workspace.
  • personal — Only you can access the workspace.
  • team — All team members can access the workspace.
  • private-team — Only invited team members can access the workspace.
  • public — Everyone can access the workspace.

Update a workspace

Updates a workspace.

Note:

You can change a workspace’s type from personal to team, but you cannot change a workspace from team to personal.

Important:

We deprecated linking collections or environments between workspaces. We do not recommend that you do this.

If you have a linked collection or environment, note the following:

  • The endpoint does not create a clone of a collection or environment.
  • Any changes you make to a linked collection or environment changes them in all workspaces.
  • If you delete a collection or environment linked between workspaces, the system deletes it in all the workspaces.

Delete a workspace

Deletes an existing workspace.

Important:

If you delete a workspace that has a linked collection or environment with another workspace, this will delete the collection and environment in all workspaces.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more