Skip to content
Navigation

List the agency's team

GET
https://api.nicer.travel/identity/company/users

Lists the active agency's staff (advisors and admins) with their membership settings, and its pending staff invitations. Agency admins; Nicer staff may name another agency with companyName.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • companyName
    optional
    string

    The agency to list, by its companyName. Nicer staff may name any agency; anyone else gets only the agency the request acts for.

  • limit
    optional
    string

    How many roster rows, people and invitations together, a page reads: 30 when absent. Removed members are left out after the read, so a page can hold fewer.

  • nextToken
    optional
    string

    Where the page starts: the nextToken of the previous page.

Header parameters

  • x-nicer-company
    optional
    string

    Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

Returns

200

OK

JSON
  • hasMore
    boolean
    required

    Whether another page follows: pass nextToken to read it.

  • invites
    array of
    object
    required

    The staff invitations of this page that were not accepted yet.

    • companyName
      string
      required

      The agency the invitation is to.

    • createdBy
      string
      required

      The user id of whoever sent it, or SYSTEM for a paid Join.

    • invitedBy
      string
      required

      The user id of whoever sent it, or SYSTEM for a paid Join.

    • lastModifiedBy
      string
      required

      The user id of whoever last changed it, or SYSTEM.

    • role
      advisor
      or
      traveler
      or
      admin
      or
      superadmin
      required

      The role the invitee gets on accepting.

    • inviteId
      string
      required

      The invitation's id.

    • userId
      string
      required

      The user id of whoever sent it; JOIN#<registrationId> for a paid Join.

    • createdAt
      string
      required

      When it was sent.

    • type
      string
      required
    • updatedAt
      string
      required

      When it last changed.

    • advisorId
      optional

      The advisor some older invitations name.

      Any of the following:

      • string
      • null
    • deleted
      optional
      boolean

      True once it was cancelled.

    • email
      optional
      string

      The email it was sent to.

    • expiresAt
      optional
      string

      When it can no longer be accepted; one without it expires seven days after createdAt.

    • familyName
      optional
      string

      The invitee's last name.

    • fullName
      optional
      string

      The invitee's first and last name, joined.

    • givenName
      optional
      string

      The invitee's first name.

    • metadata
      optional
      map of
      string

      Details stored with it, such as joinRegistrationId.

    • phoneNumber
      optional
      string

      The phone it was sent to.

    • resendCount
      optional
      number

      How many times it was sent again; four at most.

    • sendMessage
      optional
      boolean

      Whether the request asked to send it, kept on invitations of a person whose traveler account was opened from a staff invitation.

  • items
    array of
    object
    required

    The advisors and admins of this page whose accounts are open, with their settings in the agency.

    • familyName
      string
      required

      The person's last name.

    • fullName
      required

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

      Any of the following:

      • string
      • null
    • givenName
      string
      required

      The person's first name.

    • role
      advisor
      or
      traveler
      or
      admin
      or
      superadmin
      required

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

    • tenantId
      string
      required

      The partition the account is stored in: the userId for every account opened today.

    • userId
      string
      required

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

    • createdAt
      string
      required

      When the account was opened.

    • type
      string
      required
    • updatedAt
      string
      required

      When the account last changed.

    • 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
    • calendarUrl
      optional

      A link where people book time with the person.

      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
    • deleted
      optional
      boolean

      True once the account is closed.

    • deletedAt
      optional

      When the account was closed.

      Any of the following:

      • string
      • null
    • deletedBy
      optional
      string

      The user id of whoever closed the account.

    • 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
    • externalIntercomId
      optional

      A support-tool id some older accounts keep.

      Any of the following:

      • string
      • null
    • instagram
      optional

      The person's Instagram handle.

      Any of the following:

      • string
      • null
    • invitedAt
      optional

      When the person was invited, on some older accounts.

      Any of the following:

      • string
      • null
    • invitedBy
      optional

      The user id of whoever invited or referred the person.

      Any of the following:

      • string
      • null
    • lastModifiedBy
      optional
      string

      The user id of whoever last changed the account.

    • location
      optional
      object

      Where the person says they are.

      • address
        optional
        string
      • city
        optional
        string
      • country
        optional
        string
      • countryCode
        optional
        string
      • latitude
        optional
        number
      • longitude
        optional
        number
      • neighborhood
        optional
        string
      • region
        optional
        string
      • state
        optional
        string
      • zipCode
        optional
        string
    • 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
    • registrationSource
      optional
      string
    • searchKey
      optional
      string

      fullName in lowercase, which searches match.

    • tenantOwner
      optional
      boolean

      Set on some older accounts.

    • tourProgress
      optional
      map of
      object

      The in-app product tours the person completed, skipped or dismissed, by tour id.

    • username
      optional
      string

      The person's handle, made from their name, for referral links.

    • zoneinfo
      optional

      The person's time zone, an IANA name such as America/Bogota.

      Any of the following:

      • string
      • null
    • bookingAccessEnabled
      optional
      boolean
    • documents
      optional
      array of
      string
    • hasAdvisorPortalAccess
      optional
      boolean
    • isTestUser
      optional
      boolean
    • noLeads
      optional
      boolean
    • onboardingCompleted
      optional
      boolean
  • nextToken
    required

    Where the next page starts; null after the last one.

    Any of the following:

    • string
    • null

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