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

All workspaces

GET
/workspaces
Workspaces
The /workspaces endpoint returns a list of all workspaces that is accessible by you. The list includes your own workspaces and the workspaces that you have access to.
The response contains an array of collection information containing the name, id, and type of each workspace.
Requires API Key as X-Api-Key request header or apikey URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.getpostman.com/workspaces'
Response Response Example
{
  "workspaces": [
    {
      "id": "4e6d34c2-cfdb-4b33-8868-12a875bebda3",
      "name": "My Workspace",
      "type": "personal"
    },
    {
      "id": "f8801e9e-03a4-4c7b-b31e-5db5cd771696",
      "name": "Team workspace",
      "type": "team"
    }
  ]
}

Request

None

Responses

🟢200Valid Response
application/json
Body
workspaces
array [object {3}] 
optional
id
string 
optional
Example:
4e6d34c2-cfdb-4b33-8868-12a875bebda3
name
string 
optional
Example:
My Workspace
type
string 
optional
Example:
personal
Previous
Create Webhook
Next
Create Workspace
Built with