Get Location Members
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/members \
--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}/members"
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}/members', 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}/members",
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}/members"
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}/members")
.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}/members")
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": "c1f75fc2-4698-4cce-953e-ebc2d28e8e67",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"LocationId": "b9164b03-60c2-4500-89a4-f490e38c9872",
"MemberId": "4b368364-6e23-4e32-a537-62de606fa5d7",
"CreatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"UpdatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"createdAt": "2025-02-13T14:02:30.050Z",
"updatedAt": "2025-02-13T14:02:30.050Z",
"deletedAt": null,
"Member": {
"photo": "@@#685044",
"fullName": "Muhammad Moiz",
"id": "4b368364-6e23-4e32-a537-62de606fa5d7",
"firstName": "Muhammad",
"lastName": "Moiz",
"emailId": "moiz@xeniaplatform.io",
"phoneNo": "+923045464742",
"deletedAt": null,
"timezone": "Pacific/Pago_Pago",
"RoleId": "51d188b9-7c05-499d-8776-3d660c9f05bb",
"defaultLocationId": "564d6764-53e6-4a69-834b-1a14a3be8524",
"type": "user"
}
},
{
"id": "06fb1bf7-f3fe-45cc-b171-ee96ed09b268",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"LocationId": "b9164b03-60c2-4500-89a4-f490e38c9872",
"MemberId": "e4da5a13-292e-4501-ab9d-acd513387208",
"CreatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"UpdatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"createdAt": "2025-02-13T14:02:30.050Z",
"updatedAt": "2025-02-13T14:02:30.050Z",
"deletedAt": null,
"Member": {
"photo": "@@#F37748",
"fullName": "moiz testing user",
"id": "e4da5a13-292e-4501-ab9d-acd513387208",
"firstName": "moiz testing",
"lastName": "user",
"emailId": "moiz2@yopmail.com",
"phoneNo": null,
"deletedAt": null,
"timezone": "Asia/Karachi",
"RoleId": "51d188b9-7c05-499d-8776-3d660c9f05bb",
"defaultLocationId": "564d6764-53e6-4a69-834b-1a14a3be8524",
"type": "user"
}
}
],
"extra_meta": {
"message": ""
}
}Locations
Get Location Members
Returns all members assigned to the specified location within a workspace.
GET
/
api
/
v1
/
mgt
/
workspaces
/
{workspaceId}
/
locations
/
{locationId}
/
members
Get Location Members
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations/{locationId}/members \
--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}/members"
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}/members', 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}/members",
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}/members"
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}/members")
.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}/members")
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": "c1f75fc2-4698-4cce-953e-ebc2d28e8e67",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"LocationId": "b9164b03-60c2-4500-89a4-f490e38c9872",
"MemberId": "4b368364-6e23-4e32-a537-62de606fa5d7",
"CreatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"UpdatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"createdAt": "2025-02-13T14:02:30.050Z",
"updatedAt": "2025-02-13T14:02:30.050Z",
"deletedAt": null,
"Member": {
"photo": "@@#685044",
"fullName": "Muhammad Moiz",
"id": "4b368364-6e23-4e32-a537-62de606fa5d7",
"firstName": "Muhammad",
"lastName": "Moiz",
"emailId": "moiz@xeniaplatform.io",
"phoneNo": "+923045464742",
"deletedAt": null,
"timezone": "Pacific/Pago_Pago",
"RoleId": "51d188b9-7c05-499d-8776-3d660c9f05bb",
"defaultLocationId": "564d6764-53e6-4a69-834b-1a14a3be8524",
"type": "user"
}
},
{
"id": "06fb1bf7-f3fe-45cc-b171-ee96ed09b268",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"LocationId": "b9164b03-60c2-4500-89a4-f490e38c9872",
"MemberId": "e4da5a13-292e-4501-ab9d-acd513387208",
"CreatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"UpdatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"createdAt": "2025-02-13T14:02:30.050Z",
"updatedAt": "2025-02-13T14:02:30.050Z",
"deletedAt": null,
"Member": {
"photo": "@@#F37748",
"fullName": "moiz testing user",
"id": "e4da5a13-292e-4501-ab9d-acd513387208",
"firstName": "moiz testing",
"lastName": "user",
"emailId": "moiz2@yopmail.com",
"phoneNo": null,
"deletedAt": null,
"timezone": "Asia/Karachi",
"RoleId": "51d188b9-7c05-499d-8776-3d660c9f05bb",
"defaultLocationId": "564d6764-53e6-4a69-834b-1a14a3be8524",
"type": "user"
}
}
],
"extra_meta": {
"message": ""
}
}⌘I