# Facility

## Get shared space details

 - [GET /api/v1/facility/spaces/shared/{spaceIdentifier}/details](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1shared~1%7Bspaceidentifier%7D~1details/get.md): Returns detailed information for the specified shared space within the current account context.
            
Behavior:
- Validates space association with the account
- Retrieves complete space details and related metadata
- Includes configuration and attribute information where applicable
- Returns structured space detail response
- Logs the action as a space details view event

## Get space assignments

 - [GET /api/v1/facility/spaces/{spaceIdentifier}/assignmentinfo](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1%7Bspaceidentifier%7D~1assignmentinfo/get.md): Returns assignment-related details for the specified space within the current account context.
            
Behavior:
- Validates space association with the account
- Retrieves current assignment configuration and occupancy details
- Includes allocation rules and related metadata where applicable
- Returns structured space assignment information
- Logs the action as a space assignment information view event

## Get space amenities

 - [GET /api/v1/facility/spaces/{spaceIdentifier}/amenities](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1%7Bspaceidentifier%7D~1amenities/get.md): Returns the list of amenities associated with the specified space within the current account context.
            
Behavior:
- Validates space association with the account
- Retrieves all configured amenities for the space
- Returns amenity details and related attributes
- Logs the action as a space amenities view event

## Get space amenity details

 - [GET /api/v1/facility/spaces/{spaceIdentifier}/amenities/{amenityidentifier}](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1%7Bspaceidentifier%7D~1amenities~1%7Bamenityidentifier%7D/get.md): Returns detailed information for the specified amenity associated with a space within the current account context.
            
Behavior:
- Validates space and amenity association with the account
- Ensures the amenity exists for the specified space
- Retrieves amenity configuration and attribute details
- Returns structured amenity detail response
- Logs the action as a space amenity view event

## Get space workspaces

 - [GET /api/v1/facility/spaces/{spaceIdentifier}/workspaces](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1%7Bspaceidentifier%7D~1workspaces/get.md): Returns the list of workspaces associated with the specified space within the current account context.
            
Behavior:
- Validates space association with the account
- Retrieves all workspaces configured under the space
- Returns workspace details and related attributes
- Logs the action as a workspace list view event

## Get workspace details

 - [GET /api/v1/facility/spaces/{spaceIdentifier}/workspaces/{workspaceidentifier}](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1%7Bspaceidentifier%7D~1workspaces~1%7Bworkspaceidentifier%7D/get.md): Returns detailed information for the specified workspace associated with a space within the current account context.
            
Behavior:
- Validates space and workspace association with the account
- Ensures the workspace exists under the specified space
- Retrieves workspace configuration and attribute details
- Returns structured workspace detail response
- Logs the action as a workspace view event

## List spaces

 - [POST /api/v1/facility/spaces](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces/post.md): Returns a filtered and/or paginated list of spaces within the current account context.
            
Behavior:
- Applies filtering criteria from the request body
- Supports pagination using the start query parameter
- Retrieves spaces associated with the account
- Returns summarized space detail results
- Logs the action as a spaces list view event

## Get space summary

 - [POST /api/v1/facility/spaces/summary](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1summary/post.md): Returns aggregated summary details for spaces within the current account context based on the provided request criteria.
            
Behavior:
- Applies summary filters from the request body
- Aggregates space-related metrics and statistics
- Retrieves summary data scoped to the account
- Returns structured space summary response
- Logs the action as a space summary view event

## Get workspaces by room hierarchy

 - [GET /api/v1/facility/spaces/locations/{locationId}/buildings/{buildingId}/levels/{levelId}/workSpaces](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1locations~1%7Blocationid%7D~1buildings~1%7Bbuildingid%7D~1levels~1%7Blevelid%7D~1workspaces/get.md): Returns the list of workspaces under the specified location, building, and level within the current account context.
            
Behavior:
- Validates location, building, and level association with the account
- Retrieves workspaces mapped to the specified hierarchy
- Returns workspace details and related metadata
- Logs the action as a room workspaces view event

## Get space grid list

 - [POST /api/v1/facility/spaces/list](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1facility~1spaces~1list/post.md): Returns a filtered and paginated grid-style list of spaces within the current account context.
            
Behavior:
- Applies filtering criteria from the request body
- Uses the start query parameter for pagination
- Retrieves spaces associated with the account
- Returns structured grid/list response data
- Logs the action as a space grid view event

## List related shared spaces

 - [POST /api/v1/spaces/{spaceId}/shared/all](https://zonedevelopersdocumentationv1.redocly.app/apis/facility/paths/~1api~1v1~1spaces~1%7Bspaceid%7D~1shared~1all/post.md): Returns the list of shared spaces associated with the specified space within the current account context.
            
Behavior:
- Validates space association with the account
- Retrieves all shared space records linked to the specified space
- Returns structured shared space list response
- Logs the action as a shared space view event

