---
title: "POST /v1/available-locations/get"
method: POST
path: "/v1/available-locations/get"
tags: ["Fleet Management"]
---

# POST /v1/available-locations/get

`POST /v1/available-locations/get`

## Request

- Base URL: `https://api.bearrobotics.ai`
- URL: `https://api.bearrobotics.ai/v1/available-locations/get`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bearrobotics/apis/bear-cloud-api/docs/v1/available-locations/get/post.ts> (a function with typed inputs; its response is checked against the schema)

Return a map of locations of the user has access to.

The map consists of the location ID (key) paired with its human-readable
name (value).

## Response `200`

OK

- GetAvailableLocationsResponse
  - `locations` object: A mapping of location ID (key) with its corresponding, human-readable location name. e.g. { "1D9X": "785_Platform" }

## Other responses

- `400`: Bad Request, usually caused by malfored request body.
- `401`: Unauthorized credentials, ensure the JWT is correct and up to date.
- `500`: Internal Server Error
- `503`: Service is temporarily unavailable, which can usually be resolved by backoff retries.
- `504`: Server-side timeout, usually caused by the failure to send/receive commands/responses to the designated robot.

---

[API](https://skmtc.dev/bearrobotics/apis/bear-cloud-api.md) - [All operations](https://skmtc.dev/bearrobotics/apis/bear-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bearrobotics/apis/bear-cloud-api/revisions/b90843b624b5?raw)
