Resend a booking email

POST/v2/bookings/resend-email

Requires your API key in the X-API-Key header.

Re-sends one of the booking's transactional emails, optionally CC-ing extra recipients. The email type must currently be sendable for the booking's state (see GET /v2/bookings/{id}/available-emails) — otherwise a 400 with the same reason string is returned. The booking must be within the caller's scope (404 otherwise).

Requestbash
curl -X POST "https://api.turneo.co/v2/bookings/resend-email" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "bookingId": "0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c",
    "emailType": "guest_confirmation",
    "additionalEmails": [
      "copy@example.com"
    ]
  }'

Request bodyapplication/json, required

  • bookingIdstring (uuid)required

    UUID of the booking (must be within the caller's scope).

    Example:
    0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
  • emailTypestringrequired

    The email to send; must currently be available for the booking's state.

    Allowed values:
    guest_confirmationguest_reviewguest_alternativesorganizer_confirmationorganizer_accepted
    Example:
    guest_confirmation
  • additionalEmailsstring (email)[]

    Extra recipient addresses to include. Defaults to none.

Example: guestConfirmation
guestConfirmationjson
{
  "bookingId": "0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c",
  "emailType": "guest_confirmation",
  "additionalEmails": [
    "copy@example.com"
  ]
}

Responses

200object

Email dispatched.

  • statusstring

    Human-readable confirmation.

    Example:
    Email sent successfully
Response 200json
{
  "status": "Email sent successfully"
}

Errors

400

Validation failed. Inspect errors[].field and errors[].code.

401

Missing or invalid X-API-Key header.

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
  • typestring

    Error class.

    Allowed values:
    validation_errorclient_errorserver_error
    Example:
    validation_error
  • errorsobject[]
    Child fields
    • codestring

      Machine-readable error code.

      Example:
      required
    • fieldstringnullable

      Offending field, or null/'general' for non-field errors.

      Example:
      startTime
    • messagestring

      Human-readable message.

      Example:
      This field is required.
Response 400json
{
  "type": "validation_error",
  "errors": [
    {
      "code": "required",
      "field": "startTime",
      "message": "This field is required."
    }
  ]
}