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

# List Locations

> Lists locations for an organization



## OpenAPI

````yaml https://console.lomaplatform.com/api/org/v1/openapi get /api/org/v1/locations
openapi: 3.1.0
info:
  title: LOMA Organization API
  version: 2.78.1
  description: >-
    API for managing organizational data on LOMA.

    ### Authentication


    Your API Key should be passed in the `API-Key` header formatted as
    `KEY_ID:KEY_SECRET`.


    Organization admins can create API keys in the LOMA console.
  contact:
    email: support@lomaplatform.com
servers:
  - url: https://console.lomaplatform.com
security: []
paths:
  /api/org/v1/locations:
    get:
      tags:
        - Locations
      summary: List Locations
      description: Lists locations for an organization
      parameters:
        - in: query
          name: page
          schema:
            type: number
            minimum: 1
            default: 1
        - in: query
          name: limit
          schema:
            type: number
            minimum: 1
            maximum: 1000
            default: 100
        - in: query
          name: sort
          schema:
            type: string
            enum:
              - name
              - created_at
              - updated_at
            default: name
        - in: query
          name: direction
          schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
      responses:
        '200':
          description: 200 OK
          headers:
            total-count:
              schema:
                type: string
              required: true
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    external_id:
                      type:
                        - string
                        - 'null'
                    name:
                      type: string
                    address_line_1:
                      type: string
                    address_line_2:
                      type:
                        - string
                        - 'null'
                    address_city:
                      type: string
                    address_state:
                      type: string
                    address_zip:
                      type: string
                    date_opened:
                      type:
                        - string
                        - 'null'
                    created_at:
                      type: string
                    updated_at:
                      type: string
                  required:
                    - id
                    - external_id
                    - name
                    - address_line_1
                    - address_line_2
                    - address_city
                    - address_state
                    - address_zip
                    - date_opened
                    - created_at
                    - updated_at
                example:
                  - id: OBG47x1f4pGq
                    external_id: LOC_1
                    name: Test Location 1
                    address_line_1: 123 Smith Road
                    address_line_2: null
                    address_city: Atlanta
                    address_state: Georgia
                    address_zip: '12345'
                    date_opened: '2023-11-28'
                    created_at: '2023-11-28 16:10:38.65394+00'
                    updated_at: '2024-05-29 16:02:08.543+00'
                  - id: uPY8HK8As3Kg
                    external_id: null
                    name: Test Location 2
                    address_line_1: 456 Apple Road
                    address_line_2: ''
                    address_city: Chicago
                    address_state: IL
                    address_zip: '12345'
                    date_opened: null
                    created_at: '2023-11-28 16:10:38.65394+00'
                    updated_at: '2024-05-29 16:02:08.543+00'
        '400':
          description: 400 Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      issues:
                        type: array
                        items: {}
                      name:
                        type: string
                    required:
                      - issues
                      - name
                required:
                  - error
        '401':
          description: 401 Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      status:
                        type: number
                      message:
                        type: string
                    required:
                      - status
                      - message
                required:
                  - error
                example:
                  error:
                    status: 401
                    message: Invalid API Key
      security:
        - apiKeyHeader: []
components:
  securitySchemes:
    apiKeyHeader:
      type: apiKey
      in: header
      name: API-Key
      description: API Key for the organization

````