API reference
Campaigns
List the empty-leg campaigns you sent and read what each one brought back.
List campaigns
GET/v1/campaigns
- Scope
read- Quota
- Counts toward your allowance
Query parameters
from_datedateto_datedateqstringUp to 120 characters.
sortstringDefaults to
-sent_at.One of
-sent_atsent_atroute-routesubject-subjectrecipient_count-recipient_countrequest_count-request_countbooked_cents-booked_centscursorstringUp to 2,000 characters.
limitintegerFrom 1 to 100. Defaults to
25.
Response
200 OK
Returns a page of campaign summary objects in items, with next_cursor and total.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl "$CHARTEROPS_API_URL/v1/campaigns" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY"List consented and unsuppressed campaign recipients
GET/v1/campaigns/audience
- Scope
read- Quota
- Counts toward your allowance
Query parameters
cursorstringUp to 2,000 characters.
limitintegerFrom 1 to 100. Defaults to
25.tagstring1 to 32 characters.
Response
200 OK
Returns a page of audience member objects in items, with next_cursor and total.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl "$CHARTEROPS_API_URL/v1/campaigns/audience" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY"Read delivery and booking results for a campaign date range
GET/v1/campaigns/results
- Scope
read- Quota
- Counts toward your allowance
Query parameters
from_datedateto_datedate
Response
200 OK
Returns the campaign results object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl "$CHARTEROPS_API_URL/v1/campaigns/results" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY"Total what the campaigns sent and brought back
GET/v1/campaigns/summary
- Scope
read- Quota
- Counts toward your allowance
Response
200 OK
Returns the campaign totals object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl "$CHARTEROPS_API_URL/v1/campaigns/summary" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY"Read a campaign
GET/v1/campaigns/{id}
- Scope
read- Quota
- Counts toward your allowance
Path parameters
idUUIDRequired
Response
200 OK
Returns the campaign object.
Errors
401Unauthorized403Forbidden404Not found409Conflict422Unprocessable content429Too many requests
Example request
curl "$CHARTEROPS_API_URL/v1/campaigns/$ID" \
--header "Authorization: Bearer $CHARTEROPS_API_KEY"Objects
Campaign summary
booked_centsintegerbooked_countintegerdeliveryobject10 fields in delivery
acceptedintegercomplainedintegerdeferredintegerdeliveredintegerfailedintegerknownbooleanqueuedintegersuppressedintegerunknownintegerunsubscribedinteger
empty_leg_idUUIDidUUIDofferobjectThe leg as the email shows it, with who sends it and from where.
13 fields in offer
aircraft_typeobject5 fields in aircraft_type
categorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptericao_designatorstringidUUIDmanufacturerstringmodelstring
currencystringfromobject10 fields in from
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
logoobjectCan be nullThe logo as stored: the whole picture, with the size a page needs to hold its place.
3 fields in logo
heightintegerurlstringwidthinteger
mailing_addressstringCan be nullorganization_namestringprice_centsintegerCan be nullresponsibilitystringseatsintegerCan be nulltimezonestringtoobject10 fields in to
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
window_enddate-timewindow_startdate-time
recipient_countintegerrequest_countintegersenderobjectCan be null4 fields in sender
domainstringfrom_emailstringreply_tostringsender_namestring
sending_statusstringsent_atdate-timesent_byobjectCan be null3 fields in sent_by
avatar_urlstringCan be nulldisplay_namestringuser_idUUIDCan be null
stop_reasonstringCan be nullsubjectstring
Audience member
companystringCan be nullemailstringidUUIDnamestring
Campaign results
booked_centsintegerbooked_countintegercampaignsintegerdeliveryobject10 fields in delivery
acceptedintegercomplainedintegerdeferredintegerdeliveredintegerfailedintegerknownbooleanqueuedintegersuppressedintegerunknownintegerunsubscribedinteger
requestsinteger
Campaign totals
booked_centsintegercampaignsintegeremailsintegerrequestsinteger
Campaign
booked_centsintegerbooked_countintegerdeliveryobject10 fields in delivery
acceptedintegercomplainedintegerdeferredintegerdeliveredintegerfailedintegerknownbooleanqueuedintegersuppressedintegerunknownintegerunsubscribedinteger
emailobjectThe email line by line, so a screen can draw exactly what is sent without its HTML.
9 fields in email
buttonstringfactsarray of objects2 fields in facts
labelstringvaluestring
headingstringlogoobjectCan be nullThe logo as stored: the whole picture, with the size a page needs to hold its place.
3 fields in logo
heightintegerurlstringwidthinteger
responsibilitystringsenderstringsentencestringsignaturestringsubjectstring
empty_leg_idUUIDidUUIDnotestringCan be nullofferobjectThe leg as the email shows it, with who sends it and from where.
13 fields in offer
aircraft_typeobject5 fields in aircraft_type
categorystringOne of
pistonturboproplightmidsizesuper_midsizeheavyultra_long_rangehelicoptericao_designatorstringidUUIDmanufacturerstringmodelstring
currencystringfromobject10 fields in from
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
logoobjectCan be nullThe logo as stored: the whole picture, with the size a page needs to hold its place.
3 fields in logo
heightintegerurlstringwidthinteger
mailing_addressstringCan be nullorganization_namestringprice_centsintegerCan be nullresponsibilitystringseatsintegerCan be nulltimezonestringtoobject10 fields in to
citystringCan be nullcodestringcountrystringiatastringCan be nullicaostringCan be nullidUUIDlatitudenumberlongitudenumbernamestringtimezonestringCan be null
window_enddate-timewindow_startdate-time
recipient_countintegerrequest_countintegerrequestsarray of objects4 fields in requests
clientobjectCan be null4 fields in client
companystringCan be nullidUUIDnamestringtimezonestring
created_atdate-timeidUUIDstatusstringOne of
openquotedbookedcompleteddeclinedcancelled
senderobjectCan be null4 fields in sender
domainstringfrom_emailstringreply_tostringsender_namestring
sending_statusstringsent_atdate-timesent_byobjectCan be null3 fields in sent_by
avatar_urlstringCan be nulldisplay_namestringuser_idUUIDCan be null
stop_reasonstringCan be nullsubjectstringtagstringCan be null