Skip to content

Quick-start mission

POST
/api/v1/missions/quick-start
curl --request POST \
--url https://app.ayna.com/api/v1/missions/quick-start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "drone_id": "example", "mission_type": "recreational", "pilot_id": "example", "name": "example", "location": { "latitude": 1, "longitude": 1, "address": "example" } }'

Quick-start a mission - creates a mission ready to start. Designed for on-demand/ad-hoc mission creation from mobile apps.

Request body:

  • drone_id: MAVLink hardware ID of the drone (string, not the internal UUID)
  • mission_type: ‘recreational’, ‘commercial’, or ‘maintenance’ (default: ‘recreational’)
  • pilot_id: UUID of the pilot (optional)
  • name: Mission name (auto-generated if not provided)
  • location: { latitude, longitude, address } (optional)
Media typeapplication/json
QuickStartMissionRequest

Quick-start mission request.

object
drone_id
required
Drone Id

MAVLink hardware ID of the drone (not the internal UUID)

string
mission_type
Mission Type

Mission type: recreational, commercial, or maintenance

string
default: recreational
pilot_id
Any of:
string
name
Any of:
string
location
Any of:
LocationData

Location data for quick-start mission.

object
latitude
Any of:
number
longitude
Any of:
number
address
Any of:
string

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}