Create Team Member
Changed onAdds 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.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Account ID, prefixed biz_.
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.
The system role to grant. Custom roles cannot be granted through the API. The Partner role provides view-only access.
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.
The account this membership belongs to.
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.
How many team members report directly to this member. null for invites.
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.
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.
Whether this member is an agent (app-controlled account) rather than a human team member. Always false for invites.
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.
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.
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.
The member's role on the account. custom means a bespoke dashboard-managed role; the API can read but not grant it.
joined for accepted members, pending while the invite is pending.
The name of the team this member leads, up to 64 characters. null when the team has no name, and for invites.
When the membership was last updated, as an ISO 8601 timestamp.
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_nameto the response with the status - info
added the required property
reports_to_chain/items/team_nameto the response with the status - info
added the required property
team_nameto the response with the status
1 more change in this revision
- info