List resendable emails for a booking
GET/v2/bookings/{id}/available-emails
Requires your API key in the X-API-Key header.
Returns every resendable email type with a flag indicating whether it can currently be sent for this booking, and a human-readable reason when it cannot. Availability depends on the booking's state:
guest_confirmation— booking must beACCEPTEDguest_review— booking must beCOMPLETEDguest_alternatives— booking must bePENDINGwith alternatives offeredorganizer_confirmation— booking must bePENDINGorganizer_accepted— booking must beACCEPTED
Use the returned id values as the emailType for
POST /v2/bookings/resend-email.
curl "https://api.turneo.co/v2/bookings/0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c/available-emails" \
-H "X-API-Key: <your-api-key>"Path parameters
idstringrequiredBooking UUID or booking code.
- Example:
0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
Responses
200object[]
The list of email types (always all five, with availability flags).
idstringEmail type identifier — pass as
emailTypeto the resend endpoint.- Allowed values:
guest_confirmationguest_reviewguest_alternativesorganizer_confirmationorganizer_accepted- Example:
guest_confirmation
namestringHuman-readable email name.
- Example:
Guest Confirmation
descriptionstringShort description of what the email is.
- Example:
Send guest confirmation email
availablebooleanWhether this email can currently be sent for the booking.
- Example:
true
reasonstringnullableWhy the email is unavailable. Null when
availableis true.
[
{
"id": "guest_confirmation",
"name": "Guest Confirmation",
"description": "Send guest confirmation email",
"available": true,
"reason": null
}
]Errors
- 401
Missing or invalid
X-API-Keyheader.- 403
The API key is valid but not allowed to perform this action on this resource.
- 404
The resource does not exist or belongs to another partner (existence is not leaked across partners).
Error body
typestringError class.
- Allowed values:
validation_errorclient_errorserver_error- Example:
validation_error
errorsobject[]Child fields
codestringMachine-readable error code.
- Example:
required
fieldstringnullableOffending field, or null/'general' for non-field errors.
- Example:
startTime
messagestringHuman-readable message.
- Example:
This field is required.
{
"type": "validation_error",
"errors": [
{
"code": "required",
"field": "startTime",
"message": "This field is required."
}
]
}