Skip to content
Navigation

Accept a portal invitation after email OTP verification

POST
https://api.nicer.travel/identity/invitations/registration/accept

Accepts a portal invitation for the signed-in person after their email or phone was verified with a one-time code: records their name and acceptance of the terms and makes them a member of the inviting agency with the invited role.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Request body JSON required

  • invitationId
    string
    required
    maxLength: 100 · minLength: 1
  • verificationReference
    string
    required

    The registrationVerification the sign-up challenge returned; with the signed-in session it proves the caller verified the contact with a one-time code.

    pattern: ^[A-Za-z0-9_-]{43}$
  • givenName
    string
    required
    maxLength: 100 · minLength: 1
  • familyName
    string
    required
    maxLength: 100 · minLength: 1
  • termsAccepted
    boolean
    required
  • contactType
    optional
    email
    or
    phone

Returns

200

OK

JSON
  • invitationId
    string
    required
  • companyName
    string
    required
  • role
    advisor
    or
    admin
    required
  • acceptedAt
    string
    required
    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
  • refreshRequired
    boolean
    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

429

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

Type to search…

↑↓ navigate↵ selectEsc close