I'm trying to get all workspaces from an organization on ClickUp. In the UI I have three workspaces as shown below.
I'm trying to get all these workspaces by making an API call in postman. Get https://api.clickup.com/api/v2/team/
, however I get this response of one workspace.
{
"teams": [
{
"id": "<Some-Id>",
"name": "Test Workspace",
"color": "#40BC86",
"avatar": null,
"members": [//All members]
}
]
}
How can I get all three workspaces to show in the response?
I have found my issue. I was misunderstanding workspaces with spaces. After some investigation making a call with https://api.clickup.com/api/v2/team/
will only get the one worksapce I have created. If I wanted to see the other spaces within the the workspace I have to make this call instead https://api.clickup.com/api/v2/team/{team_id}/space
.
Essentially I had to think Workspaces are like companies, while spaces are the department/teams. It made sense in my brain with that distinct comparison.