For the latest stable version, please use Unifly Services v4.7!

Take-off Request Example

Here’s a basic example of how to make a takeoff request using curl:

#!/bin/bash

# Base variables
API_KEY="your-api-key-here"
BASE_URL="https://portal.demo.unifly.tech/api/gcs"
SERIAL_NUMBER="your-drone-serial-number"

# Basic takeoff request
curl -X POST "${BASE_URL}/uas/${SERIAL_NUMBER}/takeoff" \
     -H "apikey: ${API_KEY}" \
     -H "Content-Type: application/json" \
     -v

The -v flag enables verbose output, showing the full HTTP request and response including headers.

Replace your-api-key-here and your-drone-serial-number with your actual values.