Create pilot
POST
/api/v1/pilots/
const url = 'https://app.ayna.com/api/v1/pilots/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"first_name":"example","last_name":"example","email":"[email protected]","phone":"example","callsign":"example","pilot_type":"part_107","part_108_certification_number":"example","part_108_issue_date":"2026-04-15","part_108_expiration_date":"2026-04-15","certifications":[],"training_records":[],"has_medical_exemption":false,"medical_exemption_details":"example","emergency_contact_name":"example","emergency_contact_phone":"example","emergency_contact_relationship":"example","address_line1":"example","address_line2":"example","city":"example","state":"example","postal_code":"example","country":"United States","status":"active","notes":"example","user_profile_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/pilots/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "first_name": "example", "last_name": "example", "email": "[email protected]", "phone": "example", "callsign": "example", "pilot_type": "part_107", "part_108_certification_number": "example", "part_108_issue_date": "2026-04-15", "part_108_expiration_date": "2026-04-15", "certifications": [], "training_records": [], "has_medical_exemption": false, "medical_exemption_details": "example", "emergency_contact_name": "example", "emergency_contact_phone": "example", "emergency_contact_relationship": "example", "address_line1": "example", "address_line2": "example", "city": "example", "state": "example", "postal_code": "example", "country": "United States", "status": "active", "notes": "example", "user_profile_id": "example" }'Create a new pilot.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PilotCreateRequest
Schema for creating a new pilot.
object
first_name
required
First Name
First name
string
last_name
required
Last Name
Last name
string
email
required
Email
Email address
string format: email
pilot_type
Pilot Type
Pilot type (part_107, part_108, etc.)
string
certifications
Any of:
Array<object>
object
key
additional properties
any
null
training_records
Any of:
Array<object>
object
key
additional properties
any
null
Responses
Section titled “Responses”Created
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}