List Location Attributes
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/enterprise/workspaces/{workspaceId}/location-attributes \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://api.xenia.team/api/v1/mgt/enterprise/workspaces/{workspaceId}/location-attributes"
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/enterprise/workspaces/{workspaceId}/location-attributes', 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/enterprise/workspaces/{workspaceId}/location-attributes",
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/enterprise/workspaces/{workspaceId}/location-attributes"
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/enterprise/workspaces/{workspaceId}/location-attributes")
.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/enterprise/workspaces/{workspaceId}/location-attributes")
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": [
{
"id": "1f6c9e0a-2b7d-4d5e-9a11-8c3f5b6d7e88",
"name": "Region",
"description": "Operational region",
"body": {
"type": "single_select",
"options": [
{
"id": "b0a1c2d3-4e5f-4a6b-8c9d-0e1f2a3b4c5d",
"label": "Southwest",
"color": "#7C5CFC"
},
{
"id": "c1b2a3d4-5e6f-4a7b-8c9d-1e2f3a4b5c6d",
"label": "Midwest",
"color": "#22B8CF"
}
]
},
"createdBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2026-07-02T09:14:22.108Z",
"externalId": "REGION"
},
{
"id": "2a7d0f1b-3c8e-4e6f-9b22-9d4a6c7e8f99",
"name": "Drive Thru Lanes",
"description": "",
"body": {
"type": "number"
},
"createdBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2026-07-02T09:15:03.412Z",
"externalId": null
}
],
"extra_meta": {
"message": ""
}
}Enterprise Locations
List Location Attributes
Lists the workspace’s attribute definitions. Array order is the display order used in the Xenia UI. Each item carries a body whose type is the attribute type; the two select types also carry their options. Requires the Public API and Location Attributes workspace features plus CAN_MANAGE_LOCATIONS.
GET
/
api
/
v1
/
mgt
/
enterprise
/
workspaces
/
{workspaceId}
/
location-attributes
List Location Attributes
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/enterprise/workspaces/{workspaceId}/location-attributes \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://api.xenia.team/api/v1/mgt/enterprise/workspaces/{workspaceId}/location-attributes"
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/enterprise/workspaces/{workspaceId}/location-attributes', 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/enterprise/workspaces/{workspaceId}/location-attributes",
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/enterprise/workspaces/{workspaceId}/location-attributes"
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/enterprise/workspaces/{workspaceId}/location-attributes")
.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/enterprise/workspaces/{workspaceId}/location-attributes")
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": [
{
"id": "1f6c9e0a-2b7d-4d5e-9a11-8c3f5b6d7e88",
"name": "Region",
"description": "Operational region",
"body": {
"type": "single_select",
"options": [
{
"id": "b0a1c2d3-4e5f-4a6b-8c9d-0e1f2a3b4c5d",
"label": "Southwest",
"color": "#7C5CFC"
},
{
"id": "c1b2a3d4-5e6f-4a7b-8c9d-1e2f3a4b5c6d",
"label": "Midwest",
"color": "#22B8CF"
}
]
},
"createdBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2026-07-02T09:14:22.108Z",
"externalId": "REGION"
},
{
"id": "2a7d0f1b-3c8e-4e6f-9b22-9d4a6c7e8f99",
"name": "Drive Thru Lanes",
"description": "",
"body": {
"type": "number"
},
"createdBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2026-07-02T09:15:03.412Z",
"externalId": null
}
],
"extra_meta": {
"message": ""
}
}⌘I