> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Verifies a location attestation for a drone.



## OpenAPI

````yaml /specs/infrastructure.json post /blockchain/verify-location
openapi: 3.1.0
info:
  title: resq-api
  description: ''
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  version: 0.1.0
servers: []
security: []
tags:
  - name: resq-backend
    description: ResQ Infrastructure API
  - name: auth
    description: Authentication endpoints
  - name: incidents
    description: Incident management endpoints
  - name: evidence
    description: Evidence management endpoints
  - name: blockchain
    description: Blockchain query endpoints
  - name: solana
    description: Solana program endpoints (PoD + airspace)
paths:
  /blockchain/verify-location:
    post:
      tags:
        - blockchain
      summary: Verifies a location attestation for a drone.
      operationId: verify_location
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyLocationRequest'
        required: true
      responses:
        '200':
          description: Location verification result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyLocationResponse'
components:
  schemas:
    VerifyLocationRequest:
      type: object
      description: Request to verify location attestation.
      required:
        - drone_id
        - location
        - timestamp
      properties:
        drone_id:
          type: string
          description: Identifier of the drone making the attestation.
        location:
          $ref: '#/components/schemas/Location'
          description: Claimed geographic location.
        timestamp:
          type: integer
          format: int64
          description: Unix timestamp of the attestation.
    VerifyLocationResponse:
      type: object
      description: Response for location verification.
      required:
        - is_valid
      properties:
        attestation_tx:
          type:
            - string
            - 'null'
          description: Blockchain transaction recording the attestation.
        confidence:
          type:
            - number
            - 'null'
          format: float
          description: Confidence score (0.0–1.0) of the verification.
        is_valid:
          type: boolean
          description: Whether the location attestation is valid.
    Location:
      type: object
      description: Geographic location data.
      required:
        - latitude
        - longitude
      properties:
        altitude:
          type:
            - number
            - 'null'
          format: double
          description: Altitude in metres above sea level.
        latitude:
          type: number
          format: double
          description: Decimal latitude in degrees.
        longitude:
          type: number
          format: double
          description: Decimal longitude in degrees.

````