/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.name, id, and type of each workspace.Requires API Key as X-Api-Keyrequest header orapikeyURL query parameter.
curl --location --request GET 'https://api.getpostman.com/workspaces'{
"workspaces": [
{
"id": "4e6d34c2-cfdb-4b33-8868-12a875bebda3",
"name": "My Workspace",
"type": "personal"
},
{
"id": "f8801e9e-03a4-4c7b-b31e-5db5cd771696",
"name": "Team workspace",
"type": "team"
}
]
}