Get Location Group By ID
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/location-groups/{groupId} \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/location-groups/{groupId}"
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}/location-groups/{groupId}', 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}/location-groups/{groupId}",
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}/location-groups/{groupId}"
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}/location-groups/{groupId}")
.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}/location-groups/{groupId}")
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": "6d94241f-46cf-405b-a781-37facbfcce9c",
"WorkspaceId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"name": "location test group - edit",
"description": "location test group name",
"CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"UpdatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2025-06-23T07:34:26.175Z",
"updatedAt": "2025-06-23T09:15:01.746Z",
"Creator": {
"id": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"firstName": "Admin",
"lastName": "(Karachi)"
},
"LocationGroupLocations": [
{
"id": "1ab1ce59-c304-40b6-b472-29844f71fd0c",
"WorkspaceId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"LocationId": "a13ddb59-3e5c-4bdd-8673-fc913b93b9db",
"LocationGroupId": "6d94241f-46cf-405b-a781-37facbfcce9c",
"CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"UpdatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2025-06-23T07:34:26.183Z",
"updatedAt": "2025-06-23T07:34:26.183Z",
"deletedAt": null,
"Location": {
"id": "a13ddb59-3e5c-4bdd-8673-fc913b93b9db",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"name": "No time",
"description": "",
"avatar": {
"color": "#C5CAE9"
},
"LevelId": "d2518ebe-c546-4404-adb6-8598906ffd77",
"slugCode": "no-time",
"isQREnable": true,
"locationNumber": 167,
"attachments": [],
"timezone": "America/Los_Angeles",
"address": "Los Angeles, CA",
"createdAt": "2024-12-23T08:34:31.104Z",
"updatedAt": "2025-06-16T11:19:30.669Z",
"Members": [],
"Level": {
"id": "d2518ebe-c546-4404-adb6-8598906ffd77",
"title": "Country",
"isSite": false
},
"Sublocations": []
}
}
]
},
"meta": {}
}Locations
Get Location Group
Returns a specific location group identified by groupId. Includes locations, members, and location metadata.
GET
/
api
/
v1
/
mgt
/
workspaces
/
{workspaceId}
/
location-groups
/
{groupId}
Get Location Group By ID
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/location-groups/{groupId} \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/location-groups/{groupId}"
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}/location-groups/{groupId}', 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}/location-groups/{groupId}",
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}/location-groups/{groupId}"
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}/location-groups/{groupId}")
.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}/location-groups/{groupId}")
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": "6d94241f-46cf-405b-a781-37facbfcce9c",
"WorkspaceId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"name": "location test group - edit",
"description": "location test group name",
"CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"UpdatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2025-06-23T07:34:26.175Z",
"updatedAt": "2025-06-23T09:15:01.746Z",
"Creator": {
"id": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"firstName": "Admin",
"lastName": "(Karachi)"
},
"LocationGroupLocations": [
{
"id": "1ab1ce59-c304-40b6-b472-29844f71fd0c",
"WorkspaceId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"LocationId": "a13ddb59-3e5c-4bdd-8673-fc913b93b9db",
"LocationGroupId": "6d94241f-46cf-405b-a781-37facbfcce9c",
"CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"UpdatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2025-06-23T07:34:26.183Z",
"updatedAt": "2025-06-23T07:34:26.183Z",
"deletedAt": null,
"Location": {
"id": "a13ddb59-3e5c-4bdd-8673-fc913b93b9db",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"name": "No time",
"description": "",
"avatar": {
"color": "#C5CAE9"
},
"LevelId": "d2518ebe-c546-4404-adb6-8598906ffd77",
"slugCode": "no-time",
"isQREnable": true,
"locationNumber": 167,
"attachments": [],
"timezone": "America/Los_Angeles",
"address": "Los Angeles, CA",
"createdAt": "2024-12-23T08:34:31.104Z",
"updatedAt": "2025-06-16T11:19:30.669Z",
"Members": [],
"Level": {
"id": "d2518ebe-c546-4404-adb6-8598906ffd77",
"title": "Country",
"isSite": false
},
"Sublocations": []
}
}
]
},
"meta": {}
}⌘I