Skip to content
Navigation

Get a person's profile

GET
https://api.nicer.travel/identity/user/{id}

Returns a person's profile by user id. Anyone, signed in or not, gets their name, avatar, biography and Instagram, as a shared itinerary shows the advisor behind it. Their email, phone, agency and role go only to the person themself, to Nicer staff, and to the advisors and admins of an agency the person is an active member of.

Authorization

  • bearerAuth
    optional
    HTTP Bearer (JWT)

    Authorization: Bearer <token>

Path parameters

  • id
    string
    required

Returns

200

OK

JSON
  • type
    string
    required
  • userId
    string
    required

    The person's id, their sign-in subject.

  • avatar
    optional
    string

    The person's photo: a URL, or the file's storage key in the answers of DELETE /identity/user/{userId} and of an admin's GET /identity/users.

  • biography
    optional

    What the person writes about themself.

    Any of the following:

    • string
    • null
  • companyName
    optional

    The agency the person last switched into; null, empty or absent on some older accounts.

    Any of the following:

    • string
    • null
  • email
    optional

    The email the person signs in with; absent, or null on some older accounts, for a person who signed up by phone.

    Any of the following:

    • string
    • null
  • familyName
    optional
    string

    The person's last name.

  • fullName
    optional

    givenName and familyName joined; null until the person has both.

    Any of the following:

    • string
    • null
  • givenName
    optional
    string

    The person's first name.

  • instagram
    optional

    The person's Instagram handle.

    Any of the following:

    • string
    • null
  • phoneNumber
    optional

    The phone number the person signs in with; absent, or null on some older accounts, for a person who signed up by email.

    Any of the following:

    • string
    • null
  • role
    optional
    advisor
    or
    traveler
    or
    admin
    or
    superadmin

    The person's role in the agency they last switched into.

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