Skip to content
Navigation

Send a test email

POST
https://api.nicer.travel/identity/email-test

Sends one of the agency's traveler emails, with its brand and sample data, to the caller's own email address. Agency admins only.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

Request body JSON required

  • templateName
    string
    ·
    one of 13 values
    required
    Allowed values: hotel-confirmation, flight-confirmation, car-rental-confirmation, payment-receipt, card-request, itinerary-shared, trip-invitation, sign-in-code, hold-pending, payment-declined, booking-cancelled, welcome-traveler, traveler-profile-request

Returns

200

OK

JSON
  • sentTo
    string
    required
    format: email · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close