Team Members

List Team Members

Changed on

Lists team members, including pending invites. Pass account_id to list one account's team. Without it, a signed-in user can pass user_id=me to list their own joined memberships across accounts. The list has one for each account they can read. An API key without account_id lists the team of its own account. With company:basic:read, a user can list their own joined membership on one account. To do this, pass status=joined and their own user_id with the account ID. The bounty:create scope also allows listing role=workforce members. A signed-in Partner without company:authorized_user:read lists only their own joined membership and the members who report up to them. A member others report to gets the same list. Neither of them sees pending invites. Members with the view-only Partner role are listed after all other members.

get/team_members

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

account_id, string

Only return the team of this account, prefixed biz_. A signed-in user can omit it only with user_id=me or their own user ID. An API key that omits it gets its own account. reports_to_id, direct_reports_min and direct_reports_max need it.

status, 'joined' | 'pending'

Only return members with this status: joined (accepted members) or pending (pending invites). Both are returned by default.

user_id, string

Only return the memberships of this user ID, prefixed user_. Pass me for the signed-in user.

user_ids, string[]

Only return the memberships of these users, prefixed user_, at most 100. IDs that match no user are ignored. With account_id=global, a user can have one in each partner account. Can't be combined with user_id.

role, 'owner' | 'admin' | 'partner' | 'sales_manager' | 'moderator' | 'advertiser' | 'app_manager' | 'support' | 'manager' | 'workforce' | 'custom'

Only return members with this role. custom matches members on a dashboard-managed custom role.

query, string

Only return members whose name or username contains this text, and invites whose email contains it.

reports_to_id, string

Only return the direct reports of this team member, whose ID may start with ausr_ or mber_. Pass the account ID, prefixed biz_, for the members who report to the business directly. Pending invites are excluded, and the list pages in created_at order without moving Partner-role members last.

direct_reports_min, integer

Only return members with at least this many direct reports. Pending invites are excluded, and the list pages in created_at order without moving Partner-role members last.

direct_reports_max, integer

Only return members with at most this many direct reports; 0 returns the people who manage no one. Pending invites are excluded, and the list pages in created_at order without moving Partner-role members last.

team_lead_id, string

Only return this user, prefixed user_, and everyone under them in today's org chart: the same team the stats API's team_lead_id reads. With account_id=global, their line in every partner account where they hold a role. Pending invites are excluded, and the list pages in created_at order without moving Partner-role members last.

has_referred_businesses, boolean

When true, only members who referred at least one business for their account; when false, only members who referred none. Pending invites are excluded, and the list pages in created_at order without moving Partner-role members last.

is_partner, boolean

When true, only members and invites with the view-only Partner role. When false, only the ones without it.

created_before, string

Only return members added before this ISO 8601 timestamp.

created_after, string

Only return members added after this ISO 8601 timestamp.

order, 'created_at'

Field used to sort members. Members with the view-only Partner role are listed after all other members whichever way the list is sorted.

direction, 'asc' | 'desc'

Sort direction. Defaults to desc.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

Team members listed.

object required
data, TeamMember[] required
page_info, object required

Example response

{
  "data": [
    {
      "account": {
        "fees": {
          "crypto_swap_markup": {
            "fixed_fee_usd": 0,
            "percentage_fee": 3
          },
          "transfer_markup": {
            "fixed_fee_usd": 0,
            "percentage_fee": 0
          }
        },
        "id": "biz_xxxxxxxxxxxxxx",
        "logo_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "route": "shine-time-holdings",
        "title": "Shine Time Holdings"
      },
      "authorized_role": {
        "id": "aurl_xxxxxxxxxxxxxx",
        "name": "community-moderators"
      },
      "created_at": "2026-01-01T12:00:00.000Z",
      "email": "marcus@shinetime.example",
      "id": "ausr_xxxxxxxxxxxxxx",
      "reports_to_chain": [
        {
          "id": "ausr_xxxxxxxxxxxxxx",
          "user": {
            "badges": [
              {
                "type": "verified_partner"
              }
            ],
            "id": "user_xxxxxxxxxxxxxx",
            "name": "Dana Whitfield",
            "profile_picture": {
              "url": "https://ui-avatars.com/api/"
            },
            "username": "danawhitfield"
          }
        }
      ],
      "reports_to_id": "ausr_xxxxxxxxxxxxxx",
      "role": "admin",
      "status": "joined",
      "updated_at": "2026-01-01T12:00:00.000Z",
      "user": {
        "badges": [
          {
            "type": "verified_partner"
          }
        ],
        "id": "user_xxxxxxxxxxxxxx",
        "name": "Dana Whitfield",
        "profile_picture": {
          "url": "https://ui-avatars.com/api/"
        },
        "username": "danawhitfield"
      }
    }
  ],
  "page_info": {
    "start_cursor": "a:WyJjdXJzb3IiLDFd"
  }
}

Changes

    • info

      added the required property data/items/reports_to_chain/items/team_name to the response with the status

    • info

      added the required property data/items/team_name to the response with the status

    • info

      added the required property data/items/reports_to_chain/items/user/badges to the response with the status

    1 more change in this revision