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

# Issue an airspace access permit to a drone PDA.



## OpenAPI

````yaml /specs/infrastructure.json post /solana/permit
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/permit:
    post:
      tags:
        - solana
      summary: Issue an airspace access permit to a drone PDA.
      operationId: grant_permit
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SolanaPermitParams'
        required: true
      responses:
        '200':
          description: Permit granted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SolanaPermitRecord'
components:
  schemas:
    SolanaPermitParams:
      type: object
      required:
        - airspace_pda
        - drone_pda
        - expires_at
      properties:
        airspace_pda:
          type: string
          description: Base58 AirspaceAccount PDA
        drone_pda:
          type: string
          description: Base58 drone PDA
        expires_at:
          type: integer
          format: int64
          description: Unix timestamp of expiry (0 = no expiry)
    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

````