---
updatedAt: 2026-05-28T21:10:45.000Z
agentTools:
  projectIndex: https://docs.hivestack.com/llms.txt
---

# Get a Location

Gets a location

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Inventory",
    "version": "2",
    "description": "Inventory",
    "contact": {
      "email": "support@perion.com"
    }
  },
  "servers": [
    {
      "url": "https://apps.hivestack.com/api/v2"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    },
    {
      "APIKeyQuery": []
    }
  ],
  "paths": {
    "/locations/{location_id}": {
      "get": {
        "tags": [
          "Locations"
        ],
        "summary": "Get a Location",
        "description": "Gets a location",
        "operationId": "getLocation",
        "parameters": [
          {
            "$ref": "#/components/parameters/location_id"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessLocation"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "name": "hs-auth",
        "in": "header",
        "description": "The value should follow the following format: `apikey access_key:secret_key`"
      },
      "APIKeyQuery": {
        "type": "apiKey",
        "name": "apikey",
        "in": "query",
        "description": "The value should follow the following format: `access_key:secret_key`"
      }
    },
    "schemas": {
      "location": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "readOnly": true,
            "example": "CAMTR"
          },
          "country_id": {
            "type": "integer",
            "readOnly": true,
            "example": 10313
          },
          "latitude": {
            "type": "string",
            "readOnly": true,
            "example": "45.50N"
          },
          "level": {
            "type": "integer",
            "readOnly": true,
            "example": 3
          },
          "location_id": {
            "type": "integer",
            "readOnly": true,
            "example": 12728
          },
          "longitude": {
            "type": "string",
            "readOnly": true,
            "example": "73.57W"
          },
          "name": {
            "type": "string",
            "readOnly": true,
            "example": "Montreal"
          },
          "region_id": {
            "type": "integer",
            "readOnly": true,
            "example": 12435
          },
          "version": {
            "type": "string",
            "readOnly": true,
            "example": null
          }
        }
      }
    },
    "parameters": {
      "location_id": {
        "name": "location_id",
        "in": "path",
        "description": "Auto generated id associated to the location.",
        "required": true,
        "schema": {
          "type": "integer"
        }
      }
    },
    "responses": {
      "SuccessLocation": {
        "description": "OK - an object representing a location",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/location"
            }
          }
        }
      }
    }
  }
}
```