# Locations

These locations serve as identifiable entities, allowing for organized management and segmentation of operations across various geographical or functional areas.

**Retrieve Locations:** Fetch a list of locations, enabling access to location-based information within the platform.

**Get Location By Id:** Retrieve detailed information about a specific location using its unique identifier (`locationId`), facilitating targeted access to location-specific data.

<br>

{% openapi src="/files/XTQNERDWI4mzjpexowHX" path="/v1/locations" method="get" %}
[Whautomate DEV-Staging-swagger (3).json](https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FahbEjyuebtOmryHRqI6G%2FWhautomate%20DEV-Staging-swagger%20\(3\).json?alt=media\&token=406b9827-f629-49a1-b059-306d5d56c418)
{% endopenapi %}

{% openapi src="/files/XTQNERDWI4mzjpexowHX" path="/v1/locations/{locationId}" method="get" %}
[Whautomate DEV-Staging-swagger (3).json](https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FahbEjyuebtOmryHRqI6G%2FWhautomate%20DEV-Staging-swagger%20\(3\).json?alt=media\&token=406b9827-f629-49a1-b059-306d5d56c418)
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.whautomate.com/product-guides/whautomate-rest-api/locations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
