Get a Location's Attribute Values
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values"
headers = {
"x-client-key": "<api-key>",
"x-client-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-client-key': '<api-key>', 'x-client-secret': '<api-key>'}
};
fetch('https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-client-key: <api-key>",
"x-client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-client-key", "<api-key>")
req.Header.Add("x-client-secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values")
.header("x-client-key", "<api-key>")
.header("x-client-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-client-key"] = '<api-key>'
request["x-client-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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": ""
}
}{
"status": false,
"code": 401,
"error": {
"message": "Invalid client credentials"
}
}{
"status": false,
"code": 403,
"error": {
"message": "Forbidden: API key not authorized for this route"
}
}{
"error": {
"message": "Location 8099a742-c9bb-40a7-976e-1963a07e77b6 not found",
"meta": {}
}
}Location Attributes
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.
GET
/
api
/
v1
/
mgt
/
workspaces
/
{workspaceId}
/
locations
/
{locationId}
/
attribute-values
Get a Location's Attribute Values
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values"
headers = {
"x-client-key": "<api-key>",
"x-client-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-client-key': '<api-key>', 'x-client-secret': '<api-key>'}
};
fetch('https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-client-key: <api-key>",
"x-client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-client-key", "<api-key>")
req.Header.Add("x-client-secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values")
.header("x-client-key", "<api-key>")
.header("x-client-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/attribute-values")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-client-key"] = '<api-key>'
request["x-client-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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": ""
}
}{
"status": false,
"code": 401,
"error": {
"message": "Invalid client credentials"
}
}{
"status": false,
"code": 403,
"error": {
"message": "Forbidden: API key not authorized for this route"
}
}{
"error": {
"message": "Location 8099a742-c9bb-40a7-976e-1963a07e77b6 not found",
"meta": {}
}
}Get the
locationId from List Locations or Get Locations. Use the id, not the externalId.Path Parameters
The location's id from List Locations or Get Locations. Use the id, not the externalId.