Workspaces - List Workspaces
Returns a list of workspaces the principal can access. Use the roles query parameter to filter results by the principal workspace role.
This API supports pagination.
Required Delegated Scopes
Workspace.Read.All or Workspace.ReadWrite.All
Microsoft Entra supported identities
This API supports the Microsoft identities listed in this section.
| Identity | Support |
|---|---|
| User | Yes |
| Service principal and Managed identities | Yes |
Interface
GET https://api.fabric.microsoft.com/v1/workspaces
GET https://api.fabric.microsoft.com/v1/workspaces?roles={roles}&continuationToken={continuationToken}&preferWorkspaceSpecificEndpoints={preferWorkspaceSpecificEndpoints}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
continuation
|
query |
string |
A token for retrieving the next page of results. |
|
|
prefer
|
query |
boolean |
A setting that controls whether to include the workspace-specific API endpoint per workspace. True - Include the workspace-specific API endpoint, False - Do not include the workspace-specific API endpoint. |
|
|
roles
|
query |
string |
A list of roles. Separate values using a comma. If not provided, all workspaces are returned. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Request completed successfully. |
|
| Other Status Codes |
Common error codes:
|
Examples
| List workspaces example |
| List workspaces with continuation example |
|
List workspaces with prefer |
| List workspaces with roles filter example |
List workspaces example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces
Sample response
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "My workspace",
"description": "",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Marketing",
"description": "A workspace used by the marketing team",
"type": "Workspace"
},
{
"id": "f2d70dc6-8f3e-4f2c-b00e-e2d336d7d711",
"displayName": "Finance",
"description": "A workspace used by the finance team",
"type": "Workspace",
"capacityId": "171018af-1531-4e61-942a-74f024b7f9fd",
"domainId": "7c889f28-999b-4945-840d-54da3e3b5a29"
}
]
}
List workspaces with continuation example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces
Sample response
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "My workspace",
"description": "",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Marketing",
"description": "A workspace used by the marketing team",
"type": "Workspace"
},
{
"id": "f2d70dc6-8f3e-4f2c-b00e-e2d336d7d711",
"displayName": "Finance",
"description": "A workspace used by the finance team",
"type": "Workspace",
"capacityId": "171018af-1531-4e61-942a-74f024b7f9fd"
}
],
"continuationToken": "LDEsMTAwMDAwLDA%3D",
"continuationUri": "https://api.fabric.microsoft.com/v1/workspaces?continuationToken=LDEsMTAwMDAwLDA%3D"
}
List workspaces with preferWorkspaceSpecificEndpoints example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces?preferWorkspaceSpecificEndpoints=True
Sample response
{
"value": [
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Alice's Workspace",
"description": "A workspace for Alice",
"type": "Workspace",
"apiEndpoint": "https://cfafbeb180374d0c896ea46fb27ff227.zcf.w.api.fabric.microsoft.com"
},
{
"id": "0c02a0cd-71bc-410f-aa05-5a7bc98765f7",
"displayName": "Bob's Workspace",
"description": "A workspace for Bob",
"type": "Workspace",
"apiEndpoint": "https://0c02a0cd71bc410faa055a7bc98765f7.z0c.w.api.fabric.microsoft.com"
}
]
}
List workspaces with roles filter example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces?roles=Admin,Member,Contributor,Viewer
Sample response
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "Admins workspace",
"description": "A workspace for admins",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Members workspace",
"description": "A workspace for members",
"type": "Workspace"
},
{
"id": "0c02a0cd-71bc-410f-aa05-5a7bc98765f7",
"displayName": "Contributors workspace",
"description": "A workspace for contributors",
"type": "Workspace"
},
{
"id": "99d58687-8903-4dbd-8a78-40f95dca7177",
"displayName": "Viewers workspace",
"description": "A workspace for viewers",
"type": "Workspace"
}
]
}
Definitions
| Name | Description |
|---|---|
|
Error |
The error related resource details object. |
|
Error |
The error response. |
|
Error |
The error response details. |
| Workspace |
A workspace object. |
| Workspaces | |
|
Workspace |
A workspace type. Additional workspace types may be added over time. |
ErrorRelatedResource
The error related resource details object.
| Name | Type | Description |
|---|---|---|
| resourceId |
string |
The resource ID that's involved in the error. |
| resourceType |
string |
The type of the resource that's involved in the error. |
ErrorResponse
The error response.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| message |
string |
A human readable representation of the error. |
| moreDetails |
List of additional error details. |
|
| relatedResource |
The error related resource details. |
|
| requestId |
string |
ID of the request associated with the error. |
ErrorResponseDetails
The error response details.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| message |
string |
A human readable representation of the error. |
| relatedResource |
The error related resource details. |
Workspace
A workspace object.
| Name | Type | Description |
|---|---|---|
| apiEndpoint |
string (uri) |
HTTP URL that represents the API endpoint specific to the workspace. This endpoint value is returned when the user enables preferWorkspaceSpecificEndpoints. It allows for API access over private links. |
| capacityId |
string (uuid) |
The ID of the capacity the workspace is assigned to. |
| description |
string |
The workspace description. |
| displayName |
string |
The workspace display name. |
| domainId |
string (uuid) |
The ID of the domain the workspace is assigned to. |
| id |
string (uuid) |
The workspace ID. |
| type |
The workspace type. |
Workspaces
| Name | Type | Description |
|---|---|---|
| continuationToken |
string |
The token for the next result set batch. If there are no more records, it's removed from the response. |
| continuationUri |
string |
The URI of the next result set batch. If there are no more records, it's removed from the response. |
| value |
A list of workspaces. |
WorkspaceType
A workspace type. Additional workspace types may be added over time.
| Value | Description |
|---|---|
| Personal |
My folder or My workspace used to manage user items. |
| Workspace |
Workspace used to manage the Fabric items. |
| AdminWorkspace |
Admin monitoring workspace. Contains admin reports such as the audit report and the usage and adoption report. |