> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiyoti.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List locations

> List active saved locations for an account. Send its `AccountID`.



## OpenAPI

````yaml /openapi/openapi.json get /Locations/GetLocations
openapi: 3.1.0
info:
  title: Aiyoti Integration API
  description: Create, retrieve, update, and manage the tracking lifecycle of assets.
  version: 0.0.1
servers:
  - url: '{BaseURL}'
    variables:
      BaseURL:
        default: '{{BaseURL}}'
        description: >-
          Base URL provided when you create API credentials in the Aiyoti
          platform.
security: []
tags:
  - name: Assets / Shipments
    description: Create, list, retrieve, edit, annotate, and delete assets.
  - name: Locations
    description: Manage saved areas and find assets within them.
  - name: Carriers
    description: Look up the carriers available to an account.
  - name: Labels
    description: Look up the labels available for new assets.
  - name: Accounts
    description: Find and manage account records.
  - name: Users
    description: Look up user records.
  - name: Events
    description: Look up event types and query event history.
  - name: Webhooks
    description: Configure subscriptions to Aiyoti events.
  - name: Inventory
    description: Check label stock and look up label SKUs.
paths:
  /Locations/GetLocations:
    get:
      tags:
        - Locations
      summary: List locations
      description: List active saved locations for an account. Send its `AccountID`.
      operationId: get_locations_Locations_GetLocations_get
      parameters:
        - name: AccountID
          in: query
          required: true
          schema:
            type: string
          description: Unique identifier of the account.
        - name: LocationID
          in: query
          schema:
            type: string
          description: Return only the location with this ID.
          example: '00000000000000000000000000000007'
      responses:
        '200':
          description: An array of saved locations.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    LocationID:
                      type: string
                      description: Unique identifier of the location.
                    LocationName:
                      type: string
                      description: Name of the location.
                    lat:
                      type: number
                      description: Latitude of the location center in degrees.
                    lng:
                      type: number
                      description: Longitude of the location center in degrees.
                    Radius:
                      type: integer
                      description: Radius in meters.
                    CreatedOn:
                      type: string
                      description: Time the location was created.
                    CreatedBy:
                      type: string
                      description: Name of the user who created the location.
              example:
                - LocationID: '00000000000000000000000000000007'
                  LocationName: Example Depot
                  lat: 10
                  lng: 20
                  Radius: 200
        '400':
          description: >-
            Request rejected. Check your credentials, account access, and
            request parameters.
        '422':
          description: Request validation failed. Check required fields and value types.
      security:
        - clientId: []
          apiKey: []
components:
  securitySchemes:
    clientId:
      type: apiKey
      in: header
      name: ClientID
    apiKey:
      type: apiKey
      in: header
      name: ApiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.