Skip to content
Navigation

Set the email sending domain

PUT
https://api.nicer.travel/identity/email-domain

Starts sending the agency's emails from its own domain: registers the domain with the email service under a sender identity of the agency's own and returns the three DKIM records to add. Emails keep coming from Nicer's domain until they verify. A different domain replaces the current one; the same domain again changes nothing. 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

  • domain
    string
    required
    maxLength: 253 · pattern: ^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$

Returns

200

OK

JSON
  • domain
    required

    Any of the following:

    • string
    • null
  • from
    required

    Any of the following:

    • string
    • null
  • records
    array of
    object
    required
    • name
      string
      required
    • type
      string
      required
    • value
      string
      required
  • status
    NONE
    or
    PENDING
    or
    VERIFIED
    or
    FAILED
    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