API reference
Clients
Search, create and update the people and companies you fly.
Search clients
GET/v1/clients
- Scope
read- Quota
- Counts toward your allowance
Query parameters
qstringUp to 120 characters.
tagstringconsentstringOne of
emailsmslast_requeststringOne of
last_30_dayslast_90_daysover_90_daysneversortstringDefaults to
name.One of
name-nameemail-emailphone-phonetags-tagstrip_request_count-trip_request_countlast_request_at-last_request_atcursorstringUp to 2,000 characters.
limitintegerFrom 1 to 100. Defaults to
25.
Response
200 OK
Returns a page of client objects in items, with next_cursor and total.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl "$CHARTEROPS_API_URL/v1/clients" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY"Create a client
POST/v1/clients
- Scope
write- Quota
- Counts toward your allowance
Headers
Idempotency-KeystringRequired1 to 200 characters.
Request body
namestringRequired1 to 120 characters.
addressobjectA postal address as Settings writes it. Every marketing email prints it on one line.
6 fields in address
citystringRequired1 to 80 characters.
countrystringRequiredMatches
^[A-Z]{2}$.line1stringRequired1 to 120 characters.
line2string1 to 120 characters.
postal_codestring1 to 20 characters.
regionstring1 to 80 characters.
companystringUp to 120 characters.
emailemailemail_consentbooleanDefaults to
false.notesstringUp to 2,000 characters.
phonestringUp to 40 characters.
preferencesstringUp to 2,000 characters.
preferred_aircraft_type_idUUIDpreferred_categorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptersms_consentbooleanDefaults to
false.tagsarray of stringsEach item: 1 to 32 characters.
timezonestringUp to 64 characters. Defaults to
UTC.
Response
201 Created
Returns the client object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl --request POST "$CHARTEROPS_API_URL/v1/clients" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--json @body.jsonRead a client and recent requests
GET/v1/clients/{id}
- Scope
read- Quota
- Counts toward your allowance
Path parameters
idUUIDRequired
Response
200 OK
Returns the client detail object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl "$CHARTEROPS_API_URL/v1/clients/$ID" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY"Update a client
PATCH/v1/clients/{id}
- Scope
write- Quota
- Counts toward your allowance
Path parameters
idUUIDRequired
Request body
addressobjectA postal address as Settings writes it. Every marketing email prints it on one line.
6 fields in address
citystringRequired1 to 80 characters.
countrystringRequiredMatches
^[A-Z]{2}$.line1stringRequired1 to 120 characters.
line2string1 to 120 characters.
postal_codestring1 to 20 characters.
regionstring1 to 80 characters.
companystringUp to 120 characters.
emailemailemail_consentbooleannamestring1 to 120 characters.
notesstringUp to 2,000 characters.
phonestringUp to 40 characters.
preferencesstringUp to 2,000 characters.
preferred_aircraft_type_idUUIDpreferred_categorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptersms_consentbooleantagsarray of stringsEach item: 1 to 32 characters.
timezonestringUp to 64 characters.
Response
200 OK
Returns the client object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl --request PATCH "$CHARTEROPS_API_URL/v1/clients/$ID" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY" \
--json @body.jsonDelete a client
DELETE/v1/clients/{id}
- Scope
write- Quota
- Counts toward your allowance
Path parameters
idUUIDRequired
Response
204 No content
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl --request DELETE "$CHARTEROPS_API_URL/v1/clients/$ID" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY"Objects
Client
addressobjectCan be nullThe parts of an address. A part the source did not give is null.
6 fields in address
citystringCan be nullcountrystringCan be nullline1stringCan be nullline2stringCan be nullpostal_codestringCan be nullregionstringCan be null
companystringCan be nullconsent_recorded_byobjectCan be null3 fields in consent_recorded_by
avatar_urlstringCan be nulldisplay_namestringuser_idUUIDCan be null
consent_updated_atdate-timeCan be nullcreated_atdate-timeemailstringCan be nullemail_consentbooleanidUUIDimport_batch_idUUIDCan be nulllast_request_atdate-timeCan be nullnamestringnotesstringCan be nullphonestringCan be nullpreferencesstringCan be nullpreferred_aircraft_typeobjectCan be null5 fields in preferred_aircraft_type
categorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptericao_designatorstringidUUIDmanufacturerstringmodelstring
preferred_categorystringCan be nullOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptersms_consentbooleantagsarray of stringstimezonestringtrip_request_countintegerupdated_atdate-time
Client detail
addressobjectCan be nullThe parts of an address. A part the source did not give is null.
6 fields in address
citystringCan be nullcountrystringCan be nullline1stringCan be nullline2stringCan be nullpostal_codestringCan be nullregionstringCan be null
companystringCan be nullconsent_recorded_byobjectCan be null3 fields in consent_recorded_by
avatar_urlstringCan be nulldisplay_namestringuser_idUUIDCan be null
consent_updated_atdate-timeCan be nullcreated_atdate-timeemailstringCan be nullemail_consentbooleanidUUIDimport_batch_idUUIDCan be nulllast_request_atdate-timeCan be nullnamestringnotesstringCan be nullphonestringCan be nullpreferencesstringCan be nullpreferred_aircraft_typeobjectCan be null5 fields in preferred_aircraft_type
categorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptericao_designatorstringidUUIDmanufacturerstringmodelstring
preferred_categorystringCan be nullOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopterrecent_trip_requestsarray of objects27 fields in recent_trip_requests
assigned_toobjectCan be null3 fields in assigned_to
avatar_urlstringCan be nulldisplay_namestringuser_idUUIDCan be null
bookingobjectCan be null5 fields in booking
idUUIDitinerary_shared_atdate-timeCan be nullitinerary_viewed_atdate-timeCan be nullreferencestringstatusstring
budget_centsintegerCan be nullbudget_min_centsintegerCan be nullclientobjectCan be null4 fields in client
companystringCan be nullidUUIDnamestringtimezonestring
created_atdate-timecurrencystringexternal_trip_idstringCan be nullfirst_legobjectCan be null12 fields in first_leg
arrive_atdate-timeCan be nulldepart_datedatedepart_timetimeCan be nulldepart_timezonestringCan be nulldistance_nmintegerfromobject10 fields in from
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
idUUIDlatest_depart_datedateCan be nullpaxintegerCan be nullseqintegertimezonestringtoobject10 fields in to
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
idUUIDimport_batch_idUUIDCan be nullis_stalebooleanlast_arrivalobjectCan be null10 fields in last_arrival
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
latest_quoteobjectCan be null8 fields in latest_quote
amount_centsintegercurrencystringidUUIDis_expiredbooleanoperator_namestringCan be nullsent_atdate-timeCan be nullstatusstringvalid_untildate-timeCan be null
leg_countintegerlegsarray of objects12 fields in legs
arrive_atdate-timeCan be nulldepart_datedatedepart_timetimeCan be nulldepart_timezonestringCan be nulldistance_nmintegerfromobject10 fields in from
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
idUUIDlatest_depart_datedateCan be nullpaxintegerCan be nullseqintegertimezonestringtoobject10 fields in to
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
marketplace_publishedbooleanmarketplace_versionintegernumberintegerparse_statusstringCan be nullOne of
pendingdonefailedpaxintegerCan be nullpreferred_categorystringCan be nullOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicopterquote_countintegersourcestringOne of
manualapiparsedcampaignportalcsvsource_systemstringCan be nullstatusstringOne of
openquotedbookedcompleteddeclinedcancelledupdated_atdate-time
sms_consentbooleantagsarray of stringstimezonestringtrip_request_countintegerupdated_atdate-time