Skip to content
Navigation

Invite a traveler

POST
https://api.nicer.travel/crm/travelers/{travelerId}/invitation

Invites the traveler by email or SMS: to create a Nicer account (ACCOUNT), or to fill their own profile from a link that works for 14 days without an account (PROFILE_FORM). When they sign up, their account is linked to this traveler. Requires an Idempotency-Key header: a retry with the same key answers the first invitation, without its profileFormToken, which Nicer keeps only as a hash. Errors: 400 CRM_INVITATION_NO_CHANNEL when the traveler has no email or phone for the channel, 404 ERROR_ITEM_NOT_FOUND, 409 CRM_IDEMPOTENCY_CONFLICT.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelerId
    string
    required

Header parameters

  • Idempotency-Key
    string
    required

    Unique key (8–255 chars) per request; replays return the original result.

  • x-nicer-company
    string
    required

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

  • X-Nicer-CRM-Contract
    resource
    required
    example: "resource"

Request body JSON required

  • channel
    EMAIL
    or
    SMS
    required
  • kind
    ACCOUNT
    or
    PROFILE_FORM
    required

Returns

200

OK

JSON
  • channel
    EMAIL
    or
    SMS
    required
  • expiresAt
    required

    Any of the following:

    • string
    • null
  • kind
    ACCOUNT
    or
    PROFILE_FORM
    required
  • profileFormToken
    required

    Any of the following:

    • string
    • null
  • travelerId
    string
    required

    The traveler's id in the CRM, e.g. TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T.

    maxLength: 64 · minLength: 1

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