> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenia.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Location's Attribute Values

> Returns one location's attribute values, with every attribute definition in the workspace.

Send your `x-client-key` and `x-client-secret` headers. To act as another member, add an optional `x-client-user` header with that user's id. The request runs as the key's user (or the `x-client-user`), so that user's permissions apply. Any active member of the workspace can call this. No extra permission is needed.

**Response**

- `definitions`: every attribute in the workspace, in display order.
- `values`: this location's values, one entry per attribute that has a value. An attribute with no value at this location is left out.

**Value shapes by type**

| Type | Value |
| --- | --- |
| `single_select` | `{ "type": "single_select", "selected": "<option id>" }` |
| `multi_select` | `{ "type": "multi_select", "selected": ["<option id>", ...] }` |
| `number` | `{ "type": "number", "value": 42 }` |
| `boolean` | `{ "type": "boolean", "value": true }` |
| `text` | `{ "type": "text", "value": "Downtown" }` |
| `date` | `{ "type": "date", "value": "2026-11-20" }` (`YYYY-MM-DD`) |

Select values hold option ids. Match them to the options in `definitions` to get the labels.

> [!NOTE]
>
> Get the `locationId` from [List Locations](https://docs.xenia.team/api-reference/endpoints/enterprise-locations/list-locations.md) or [Get Locations](https://docs.xenia.team/api-reference/endpoints/locations/get-locations.md). Use the `id`, not the `externalId`.


## OpenAPI

````yaml GET /api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values
openapi: 3.1.0
info:
  title: Xenia Team API - Get a Location's Attribute Values
  description: >-
    Returns every attribute definition in the workspace, plus one location's
    values.
  version: 1.0.0
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values:
    get:
      tags:
        - Location Attributes
      summary: Get a Location's Attribute Values
      description: >-
        Returns one location's attribute values, with every attribute definition
        in the workspace.


        Send your `x-client-key` and `x-client-secret` headers. To act as
        another member, add an optional `x-client-user` header with that user's
        id. The request runs as the key's user (or the `x-client-user`), so that
        user's permissions apply. Any active member of the workspace can call
        this. No extra permission is needed.


        **Response**


        - `definitions`: every attribute in the workspace, in display order.

        - `values`: this location's values, one entry per attribute that has a
        value. An attribute with no value at this location is left out.


        **Value shapes by type**


        | Type | Value |

        | --- | --- |

        | `single_select` | `{ "type": "single_select", "selected": "<option
        id>" }` |

        | `multi_select` | `{ "type": "multi_select", "selected": ["<option
        id>", ...] }` |

        | `number` | `{ "type": "number", "value": 42 }` |

        | `boolean` | `{ "type": "boolean", "value": true }` |

        | `text` | `{ "type": "text", "value": "Downtown" }` |

        | `date` | `{ "type": "date", "value": "2026-11-20" }` (`YYYY-MM-DD`) |


        Select values hold option ids. Match them to the options in
        `definitions` to get the labels.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: >-
            UUID of the workspace. Must be the workspace your API key is bound
            to.
          schema:
            type: string
            format: uuid
        - name: locationId
          in: path
          required: true
          description: >-
            The location's `id` from [List
            Locations](/api-reference/endpoints/enterprise-locations/list-locations)
            or [Get
            Locations](/api-reference/endpoints/locations/get-locations). Use
            the `id`, not the `externalId`.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Attribute definitions and this location's values.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      definitions:
                        type: array
                        description: >-
                          Every attribute in the workspace, in display order.
                          Same shape as [List Location
                          Attributes](/api-reference/endpoints/enterprise-locations/list-attributes)
                          items.
                        items:
                          type: object
                      values:
                        type: array
                        description: >-
                          One entry per attribute that has a value at this
                          location.
                        items:
                          type: object
                          properties:
                            attributeId:
                              type: string
                              format: uuid
                            value:
                              oneOf:
                                - title: single_select
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      const: single_select
                                    selected:
                                      type: string
                                      format: uuid
                                      description: The selected option's id.
                                  required:
                                    - type
                                    - selected
                                - title: multi_select
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      const: multi_select
                                    selected:
                                      type: array
                                      items:
                                        type: string
                                        format: uuid
                                      description: The selected option ids.
                                  required:
                                    - type
                                    - selected
                                - title: number
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      const: number
                                    value:
                                      type: number
                                  required:
                                    - type
                                    - value
                                - title: boolean
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      const: boolean
                                    value:
                                      type: boolean
                                  required:
                                    - type
                                    - value
                                - title: text
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      const: text
                                    value:
                                      type: string
                                  required:
                                    - type
                                    - value
                                - title: date
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      const: date
                                    value:
                                      type: string
                                      format: date
                                      description: '`YYYY-MM-DD`.'
                                  required:
                                    - type
                                    - value
                          required:
                            - attributeId
                            - value
                  extra_meta:
                    type: object
              example:
                data:
                  definitions:
                    - id: 5d1e2f3a-1b2c-4d5e-8f90-a1b2c3d4e5f6
                      name: Region
                      description: Sales region
                      body:
                        type: single_select
                        options:
                          - id: 0b6a3c1e-6a4f-4f1e-9a51-2a7d1c3e9f10
                            label: North
                            color: '#7C5CFC'
                      createdBy: dfea8b8a-5b22-4668-b68d-dc641eb3a101
                      createdAt: '2026-11-20T10:00:00.000Z'
                  values:
                    - attributeId: 5d1e2f3a-1b2c-4d5e-8f90-a1b2c3d4e5f6
                      value:
                        type: single_select
                        selected: 0b6a3c1e-6a4f-4f1e-9a51-2a7d1c3e9f10
                extra_meta:
                  message: ''
        '401':
          description: Unauthorized - `Invalid client credentials`.
          content:
            application/json:
              example:
                status: false
                code: 401
                error:
                  message: Invalid client credentials
        '403':
          description: >-
            Forbidden - `Forbidden: API key not authorized for this route`. Also
            returned when you hit the request volume limit (see [Rate
            limits](/guides/rate-limits)).
          content:
            application/json:
              example:
                status: false
                code: 403
                error:
                  message: 'Forbidden: API key not authorized for this route'
        '404':
          description: >-
            Not Found - `Location {locationId} not found`. The location doesn't
            exist in this workspace, or it was deleted.
          content:
            application/json:
              example:
                error:
                  message: Location 8099a742-c9bb-40a7-976e-1963a07e77b6 not found
                  meta: {}
        '422':
          description: >-
            Unprocessable Entity - `workspaceId` or `locationId` is not a valid
            UUID.
        '500':
          description: Internal Server Error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.