Team Members

Create Team Member

Changed on

Adds a member to an account's team with a system role. Identify them by exactly one of user_id or email. If the person has not yet accepted, or the email does not belong to a Whop account yet, an invitation is sent instead and the response is 202 with the pending team member, whose status is pending and whose id is prefixed ausri_. If they already have a pending invite, the request fails with a 400. Granting the workforce role is also allowed with the bounty:create scope.

post/team_members

Request

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

Headers

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

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
account_id, string required

Account ID, prefixed biz_.

email, string

Email address to invite. Mutually exclusive with user_id. If the email already belongs to a Whop account it is treated the same as passing that account's user_id; otherwise a pending invite is created for the email.

role, 'owner' | 'admin' | 'partner' | 'sales_manager' | 'moderator' | 'advertiser' | 'workforce' required

The system role to grant. Custom roles cannot be granted through the API. The Partner role provides view-only access.

user_id, string

The user to add to the team, prefixed user_. Mutually exclusive with email.

Example request

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "role": "sales_manager",
  "user_id": "user_xxxxxxxxxxxxxx"
}

Response

Team member created.

TeamMember required
account, AccountParent required

The account this membership belongs to.

authorized_role, TeamMemberAuthorizedRole nullable required
created_at, string required

When the member joined the team or the invite was sent, as an ISO 8601 timestamp. A member who was a customer first keeps the date they were given their role.

direct_reports_count, integer nullable required

How many team members report directly to this member. null for invites.

email, string nullable required

The member's email address. For an invite to an email with no Whop account yet, this is the invited address. Otherwise it is null unless the caller holds the company:authorized_user:email:read scope.

id, string required

Team member ID. Accepted members have an ID starting with ausr_ or mber_, and pending invites one starting with ausri_. Treat it as opaque: both member prefixes are accepted wherever a team member ID is.

is_agent, boolean required

Whether this member is an agent (app-controlled account) rather than a human team member. Always false for invites.

is_partner, boolean required

Whether this member or invite has the view-only Partner role, directly or through a custom role based on it. A Partner can read only the account's basic details.

legal_name, string nullable required

The first and last name on the member's approved identity verification, set only when the member has no profile name. Returned to the account's own API key when listing or retrieving a partner account's team members. null when the member has a profile name or no approved verification, for invites, on write responses, and for other callers.

reports_to_chain, TeamMemberManager[] nullable required
reports_to_id, string nullable required

The ID of the team member this member reports to, starting with ausr_ or mber_; treat it as opaque. null when the member reports to the business directly, and for invites.

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

The member's role on the account. custom means a bespoke dashboard-managed role; the API can read but not grant it.

status, 'joined' | 'pending' required

joined for accepted members, pending while the invite is pending.

team_name, string nullable required

The name of the team this member leads, up to 64 characters. null when the team has no name, and for invites.

updated_at, string required

When the membership was last updated, as an ISO 8601 timestamp.

user, UserSummary nullable required

Example response

{
  "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"
  }
}

Changes

    • info

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

    • info

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

    • info

      added the required property team_name to the response with the status

    1 more change in this revision