Skip to content
Navigation

Preview a branded email

GET
https://api.nicer.travel/identity/email-preview/{templateName}

Renders one of the agency's traveler emails with its current brand and sample data: subject, sender, Reply-To, HTML and plain text. Agency admins only.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • templateName
    string
    required

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • from
    string
    required
  • html
    string
    required
  • replyTo
    required

    Any of the following:

    • string
    • null
  • subject
    string
    required
  • text
    string
    required

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