GET
/
v2
/
oauth
/
user
/
memberships
curl --request GET \
  --url https://api.whop.com/api/v2/oauth/user/memberships
{
  "data": [
    {
      "access_pass": "<string>",
      "affiliate_page_url": "<string>",
      "cancel_at_period_end": true,
      "checkout_session": "<string>",
      "created_at": 123,
      "custom_fields_responses": {},
      "custom_fields_responses_v2": {},
      "deliveries": {},
      "discord": {
        "id": "<string>",
        "image_url": "<string>",
        "username": "<string>"
      },
      "email": "<string>",
      "expires_at": 123,
      "id": "<string>",
      "license_key": "<string>",
      "manage_url": "<string>",
      "metadata": {},
      "nft_tokens": {
        "balance": 123,
        "current_holder": "<string>",
        "metadata": {},
        "smart_contract": {
          "contract_address": "<string>",
          "contract_name": "<string>"
        },
        "token_id": "<string>"
      },
      "payment_processor": "free",
      "plan": "<string>",
      "product": "<string>",
      "promo_code": "<string>",
      "quantity": 123,
      "renewal_period_end": 123,
      "renewal_period_start": 123,
      "status": "trialing",
      "stripe_customer_id": "<string>",
      "stripe_subscription_id": "<string>",
      "telegram_account_id": "<string>",
      "user": "<string>",
      "valid": true,
      "wallet_address": "<string>"
    }
  ],
  "pagination": {
    "current_page": 123,
    "total_count": 123,
    "total_page": 123
  }
}

Headers

Authorization
string

A user's access token, which must be retrieved from the Whop OAuth2 authentication flow. You must prepend your key with the word 'Bearer', which will look like Bearer ***************************

Query Parameters

page
integer
default: 1

The page number to retrieve

per
integer
default: 10

The number of resources to return per page. There is a limit of 50 results per page.

valid
boolean

Whether or not the Membership has a valid status

Response

200 - application/json
data
object[]
pagination
object

Pagination model

Was this page helpful?