Create Member
Changed onAdds a person to an account as a member. If the person is already a member of the account, that member is returned unchanged.
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
The account to add the member to (biz_ tag). Defaults to the account the credential acts as.
The email address of the person to add. If no Whop user has it, one is created.
The name of the person to add. Ignored when a user on Whop already exists for this email address.
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx",
"email": "dana@shinetime.example",
"name": "Dana Whitfield"
}Response
member created for an email with no Whop user
What the member can reach on the account: customer for paying members, admin for team members, no_access once every grant has lapsed.
The account this member belongs to, prefixed biz_.
The business that bought, prefixed biz_. null when the buyer is a person.
When the member record was created, as an ISO 8601 timestamp.
The name to show for this member: the user's name, or their username when they have not set one. The buying business's name when user is null.
The user's email address. null without member:email:read on the account, when the buyer is another business, or when the user has no assigned email.
Member ID, prefixed mber_.
When the member first joined the account, as an ISO 8601 timestamp.
When the member last opened the account's content, as an ISO 8601 timestamp. null if they never have.
When the member and the account last interacted, as an ISO 8601 timestamp. For example, a message in the member's support chat.
Your own key-value data stored on this member. null when none is set.
The member's latest lifecycle state on the account, derived from their memberships, such as paid_subscriber, canceling, or churned. null until it is first computed.
When most_recent_action took effect, as an ISO 8601 timestamp. null when most_recent_action is null.
The name the account gave this customer with PATCH /members/:id. Invoices show it as the customer name on every invoice for this member, in place of the user's own name. null when the account has not set one.
The member's phone number: the most recent number collected (or verified) at checkout, otherwise their account number when they have shared one with this seller. null without member:phone:read on the account, or when there is neither.
joined while the member is part of the account, left after they leave.
The member's current token balance for this account, computed from token transactions.
unsubscribed once the member opts out of the account's marketing communications, null while they're subscribed. Only the member can change it.
How much the member has spent on the account's products, in USD.
Example response
{
"access_level": "customer",
"account_id": "biz_xxxxxxxxxxxxxx",
"buyer_account_id": "biz_xxxxxxxxxxxxxx",
"created_at": "2026-01-01T12:00:00.000Z",
"display_name": "Dana Whitfield",
"earnings_usd": {
"last_24_hours": "0.00",
"last_30_days": "0.00",
"last_7_days": "0.00",
"lifetime": "0.00"
},
"email": "marcus@shinetime.example",
"id": "mber_xxxxxxxxxxxxxx",
"joined_at": "2026-01-01T12:00:00.000Z",
"last_accessed_at": "2026-01-01T12:00:00.000Z",
"last_activity": {
"author": {
"badges": [
{
"type": "verified_partner"
}
],
"id": "user_xxxxxxxxxxxxxx",
"name": "Dana Whitfield",
"profile_picture": {
"url": "https://ui-avatars.com/api/"
},
"username": "danawhitfield"
},
"type": "message"
},
"last_activity_at": "2026-01-01T12:00:00.000Z",
"most_recent_action": "paid_subscriber",
"most_recent_action_at": "2026-01-01T12:00:00.000Z",
"name": "Austin Fleet Care",
"phone_number": "+xxxxxxxxxxx",
"status": "joined",
"token_balance": 70.25,
"unsubscribe_status": "unsubscribed",
"usd_total_spent": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"user": {
"badges": [
{
"type": "verified_partner"
}
],
"city": "Austin",
"country": "US",
"id": "user_xxxxxxxxxxxxxx",
"name": "Dana Whitfield",
"profile_picture": {
"url": "https://ui-avatars.com/api/"
},
"state": "TX",
"username": "danawhitfield"
}
}Changes
- info
added the required property
last_activity/oneOf[#/components/schemas/MemberLastActivityMessage]/author/oneOf[#/components/schemas/UserSummary]/badgesto the response with the status - info
added the required property
user/oneOf[#/components/schemas/MemberUser]/badgesto the response with the status
- info
- breaking
added to the
last_activityresponse propertyoneOflist for the response status
1 more change in this revision
- breaking