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

# Location Detail

Returns the canonical metadata for one `geo_id` (name, type, hierarchy context).

Use this to confirm exactly which geography the client selected before fetching permits or signals.


## OpenAPI

````yaml GET /v1/locations/{geo_id}
openapi: 3.1.0
info:
  title: HomeLogs Geo + Permit Intelligence API
  version: 1.0.0
  description: >-
    Geo-first API for location resolution, permit retrieval, and active geo
    signal access.
servers:
  - url: https://api.homelogs.io
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: locations
    description: Location resolution and anchor detail endpoints.
  - name: permits
    description: Raw permit retrieval by geo scope.
  - name: signals
    description: Signal catalog and signal reads.
  - name: permit-signals
    description: Permit-scoped signal leads and aggregates.
  - name: health
    description: Service liveness endpoint.
paths:
  /v1/locations/{geo_id}:
    get:
      tags:
        - locations
      summary: Get location detail for a geo ID
      operationId: getLocationDetail
      parameters:
        - name: geo_id
          in: path
          required: true
          description: Location identity token.
          schema:
            type: string
            example: geo_city_0200d4df17d3b8cd84c6
      responses:
        '200':
          description: Location anchor details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocationDetailResponse'
        '400':
          $ref: '#/components/responses/InvalidGeoId400'
        '403':
          $ref: '#/components/responses/GatewayAuth403'
        '404':
          $ref: '#/components/responses/LocationNotFound404'
        '429':
          $ref: '#/components/responses/GatewayThrottle429'
        '500':
          $ref: '#/components/responses/InternalError500'
components:
  schemas:
    LocationDetailResponse:
      type: object
      required:
        - geo_id
        - geo_type
        - display_name
      properties:
        geo_id:
          type: string
        geo_type:
          type: string
          enum:
            - property
            - jurisdiction
            - city
            - zip
            - county
            - state
        display_name:
          type: string
        full_address:
          type: string
        state:
          type: string
        county:
          type: string
        city:
          type: string
        zipcode:
          type: string
        jurisdiction:
          type: string
        lat:
          type: number
        lon:
          type: number
        permit_count:
          type: integer
          minimum: 0
        latest_permit_date:
          type: string
          format: date
      additionalProperties: false
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: VALIDATION_ERROR
            message:
              type: string
              example: state must be a 2-letter code
            request_id:
              type:
                - string
                - 'null'
              example: req-123
    GatewayErrorResponse:
      type: object
      properties:
        message:
          type: string
      additionalProperties: true
  responses:
    InvalidGeoId400:
      description: Invalid geo_id format.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    GatewayAuth403:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayErrorResponse'
    LocationNotFound404:
      description: No matching location/resource found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    GatewayThrottle429:
      description: Rate limit or quota exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayErrorResponse'
    InternalError500:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````