Skip to main content
GET
/
api
/
v1
/
mgt
/
workspaces
/
{workspaceId}
/
locations?notree=true
Get Flat Locations List
curl --request GET \
  --url 'https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/locations?notree=true' \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>'
{
  "data": [
    {
      "id": "8099a742-c9bb-40a7-976e-1963a07e77b6",
      "HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
      "name": "Testing 1",
      "description": "",
      "avatar": {
        "color": "#B2DFDB"
      },
      "ParentId": "2f169333-21f1-4197-8cac-cd0860a83515",
      "LevelId": null,
      "slugCode": "testing-1",
      "isQREnable": false,
      "locationNumber": 226,
      "attachments": [],
      "deletedTimestamp": "0",
      "CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
      "UpdatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
      "DeletedBy": null,
      "timezone": "Asia/Karachi",
      "coordinates": {
        "type": "Point",
        "coordinates": [
          null,
          null
        ]
      },
      "address": null,
      "createdAt": "2025-06-18T11:39:28.164Z",
      "updatedAt": "2025-06-18T11:39:28.164Z",
      "deletedAt": null,
      "Members": [
        {
          "photo": "https://cdn.xenia.team/00158aa1-f9d0-4b68-ba11-6dee2ce89aa1/2024/1/16/12218415/a-137917-d-ae-2-a-4-baf-8-b-40-4914-c-697-e-6-f-8.jpg",
          "fullName": "Full User (China)",
          "id": "e25dd448-7ae7-4588-8767-7e1a316547e5",
          "firstName": "Full User",
          "lastName": "(China)",
          "emailId": "[email protected]",
          "phoneNo": "+923345020366",
          "deletedAt": null,
          "timezone": "Asia/Karachi",
          "RoleId": "4ccf0b65-fb99-40da-92d6-3f98730df8b2",
          "defaultLocationId": "a13ddb59-3e5c-4bdd-8673-fc913b93b9db",
          "type": "user"
        }
      ],
      "Level": null,
      "assetCount": 0
    }
  ],
  "extra_meta": {
    "message": ""
  }
}

Authorizations

x-client-key
string
header
required
x-client-secret
string
header
required

Path Parameters

workspaceId
string<uuid>
required

UUID of the workspace.

Query Parameters

notree
boolean

If true, returns a flat list instead of a hierarchical tree.

Response

Locations retrieved successfully in flat format.