GET /api/spaces/space
curl \ --request GET 'https://<KIBANA_URL>/api/spaces/space?include_authorized_purposes=false' \ --header "Authorization: $API_KEY"
Response examples (200)
Get all spaces
Get all spaces without specifying any options.
[ { "id": "default", "name": "Default", "imageUrl": "", "_reserved": true, "description": "This is the Default Space", "disabledFeatures": [] }, { "id": "marketing", "name": "Marketing", "color": null, "imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSU", "initials": "MK", "description": "This is the Marketing Space", "disabledFeatures": [ "apm" ] }, { "id": "sales", "name": "Sales", "imageUr\"": "", "initials": "MK", "solution": "oblt", "disabledFeatures": [ "discover" ] } ]
The user has read-only access to the Sales space. Get all spaces with the following query parameters: "purpose=shareSavedObjectsIntoSpace&include_authorized_purposes=true"
[ { "id": "default", "name": "Default", "imageUrl": "", "_reserved": true, "description": "This is the Default Space", "disabledFeatures": [], "authorizedPurposes": { "any": true, "findSavedObjects": true, "copySavedObjectsIntoSpace": true, "shareSavedObjectsIntoSpace": true } }, { "id": "marketing", "name": "Marketing", "color": null, "imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSU", "initials": "MK", "description": "This is the Marketing Space", "disabledFeatures": [ "apm" ], "authorizedPurposes": { "any": true, "findSavedObjects": true, "copySavedObjectsIntoSpace": true, "shareSavedObjectsIntoSpace": true } }, { "id": "sales", "name": "Sales", "imageUrl": "", "initials": "MK", "disabledFeatures": [ "discover" ], "authorizedPurposes": { "any": true, "findSavedObjects": true, "copySavedObjectsIntoSpace": false, "shareSavedObjectsIntoSpace": false } } ]