# List workspaces

Source: https://www.jawsdeploy.net/rest-api/workspaces-list | Section: Workspaces

List the workspaces visible to the service account.

`GET /api/workspace`

Lists every workspace in the organization that the authenticated service account is allowed to manage. Each workspace reports its **package store location** as `regionId` and `regionName`; both are `null` for workspaces that use the default (non-regional) package store.

## Errors

| Status | Meaning |
|---|---|
| 401 | Missing or invalid Basic auth credentials. |

Example request:

```
GET /api/workspace HTTP/1.1
Authorization: Basic <base64(...)>
```

Example response:

```
{
  "workspaces": [
    {
      "workspaceId": "ws_abc",
      "name": "Main",
      "slug": "main",
      "description": null,
      "regionId": null,
      "regionName": null
    },
    {
      "workspaceId": "ws_syd",
      "name": "Sydney",
      "slug": "sydney",
      "description": "AU workloads",
      "regionId": "au",
      "regionName": "Australia"
    }
  ]
}
```

