Postman API
  1. Workspaces
Postman API
  • API
    • Get all APIs
      GET
    • Create API
      POST
    • Delete an API
      DELETE
    • Single API
      GET
    • Update an API
      PUT
    • Get All API Versions
      GET
    • Create API Version
      POST
    • Delete an API Version
      DELETE
    • Get an API Version
      GET
    • Update an API Version
      PUT
    • Get contract test relations
      GET
    • Get documentation relations
      GET
    • Get environment relations
      GET
    • Get integration test relations
      GET
    • Get monitor relations
      GET
    • Get linked relations
      GET
    • Create relations
      POST
    • Create Schema
      POST
    • Get Schema
      GET
    • Update Schema
      PUT
    • Create collection from schema
      POST
    • Get test suite relations
      GET
    • Sync relations with schema
      PUT
  • Collections
    • All Collections
    • Create Collection
    • Create a Fork
    • Merge a Fork
    • Delete Collection
    • Single Collection
    • Update Collection
  • Environments
    • All Environments
    • Create Environment
    • Delete Environment
    • Single Environment
    • Update Environment
  • Import
    • Import exported data
    • Import external API specification
  • User
    • API Key Owner
  • Mocks
    • All Mocks
    • Create Mock
    • Delete Mock
    • Single Mock
    • Update Mock
    • Publish Mock
    • Unpublish Mock
  • Monitors
    • All Monitors
    • Create Monitor
    • Delete Monitor
    • Single Monitor
    • Update Monitor
    • Run a Monitor
  • Webhooks
    • Create Webhook
  • Workspaces
    • All workspaces
      GET
    • Create Workspace
      POST
    • Delete Workspace
      DELETE
    • Single workspace
      GET
    • Update Workspace
      PUT
  1. Workspaces

Create Workspace

POST
/workspaces
Workspaces
This endpoint allows you to create a workspace and populate it with entities like collections, environments, mocks and monitors using their uid.
On successful creation of the workspace, the response returns the workspcae name and id.
Requires API Key as X-Api-Key request header or apikey URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.getpostman.com/workspaces' \
--header 'Content-Type: application/json' \
--data-raw '{
    "workspace": {
        "collections": [
            {
                "id": "e1fc3c38-a0b8-44a3-bd44-d753a96b2e9d",
                "name": "Straw hats",
                "uid": "8154-e1fc3c38-a0b8-44a3-bd44-d753a96b2e9d"
            }
        ],
        "description": "Some description",
        "environments": [
            {
                "id": "83a1aaa2-a204-4bd8-9b92-4d486918906b",
                "name": "env",
                "uid": "8154-83a1aaa2-a204-4bd8-9b92-4d486918906b"
            }
        ],
        "mocks": [
            {
                "id": "cda672ef-1375-40e9-baee-e20ece8d7b65"
            }
        ],
        "monitors": [
            {
                "id": "1e889bd2-3862-4be0-b2c2-9b1fe9673aec"
            }
        ],
        "name": "New Workspace",
        "type": "personal"
    }
}'
Response Response Example
200 - Successful Response
{
  "workspace": {
    "id": "cfbcd9bf-cc8b-4d6f-b8ef-440a3e49e29f",
    "name": "New Workspace"
  }
}

Request

Body Params application/json
workspace
object 
optional
collections
array [object {3}] 
optional
description
string 
optional
Example:
Some description
environments
array [object {3}] 
optional
mocks
array [object {1}] 
optional
monitors
array [object {1}] 
optional
name
string 
optional
Example:
New Workspace
type
string 
optional
Example:
personal
Examples

Responses

🟢200Successful Response
application/json
Body
workspace
object 
optional
id
string 
optional
Example:
cfbcd9bf-cc8b-4d6f-b8ef-440a3e49e29f
name
string 
optional
Example:
New Workspace
🟠400Instance supplied not found
Previous
All workspaces
Next
Delete Workspace
Built with