> ## 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.

# List airspace permits held by a drone PDA.



## OpenAPI

````yaml /specs/infrastructure.json get /solana/permits/{drone_pda}
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:
  /solana/permits/{drone_pda}:
    get:
      tags:
        - solana
      summary: List airspace permits held by a drone PDA.
      operationId: list_permits
      parameters:
        - name: drone_pda
          in: path
          description: Base58 drone PDA
          required: true
          schema:
            type: string
        - name: active_only
          in: query
          description: Filter to active permits only
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: List of permits
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SolanaPermitRecord'
components:
  schemas:
    SolanaPermitRecord:
      type: object
      required:
        - permit_pda
        - airspace_pda
        - drone_pda
        - granted_at
        - expires_at
        - tx
      properties:
        permit_pda:
          type: string
        airspace_pda:
          type: string
        drone_pda:
          type: string
        granted_at:
          type: integer
          format: int64
        expires_at:
          type: integer
          format: int64
        tx:
          $ref: '#/components/schemas/SolanaTransactionResponse'
    SolanaTransactionResponse:
      type: object
      required:
        - signature
        - slot
        - confirmation
        - fee_lamports
      properties:
        signature:
          type: string
          description: Base58-encoded transaction signature
        slot:
          type: integer
          format: uint64
          description: Slot number
        confirmation:
          type: string
          description: Confirmation status
        fee_lamports:
          type: integer
          format: uint64
          description: Transaction fee in lamports

````