GET https://api.getpostman.com/workspaces/{{workspace_id}}
Access the contents of a workspace that is accessible to you using its id ( Requires API Key as id
). Includes the collections, environments, mocks and monitors of that workspace.
X-Api-Key
request header or apikey
URL query parameter.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status OK
{
"workspace": {
"id": "f8801e9e-03a4-4c7b-b31e-5db5cd771696",
"name": "Demo workspace",
"type": "personal",
"description": "Demos.",
"collections": [
{
"id": "7c31b469-bd43-4411-9283-6d397855ee0e",
"name": "Mock demo - collection",
"uid": "1234-7c31b469-bd43-4411-9283-6d397855ee0e"
},
{
"id": "356fe068-a0f8-4f31-b34d-d12149eac681",
"name": "Mock demo - response code",
"uid": "1234-356fe068-a0f8-4f31-b34d-d12149eac681"
}
],
"environments": [
{
"id": "423fd955-a9c8-47cd-9ab0-09a6a575c4be",
"name": "Mock demo - CNX",
"uid": "1234-423fd955-a9c8-47cd-9ab0-09a6a575c4be"
},
{
"id": "24c45c84-5147-4c15-bb9a-c3186b81d3cc",
"name": "Mock Demo - response code",
"uid": "1234-24c45c84-5147-4c15-bb9a-c3186b81d3cc"
}
],
"mocks": [
{
"id": "77aaeba0-0f94-4aa4-a60d-200f4e1ef2fb"
},
{
"id": "52a5d86f-73d4-4f86-baec-4b19983d6896"
}
],
"monitors": [
{
"id": "efa46ba3-90da-4a84-b924-2962266c3db1"
},
{
"id": "24915c49-b33e-4da1-ac20-535f82e34626"
}
]
}
} |
ENDPOINTS