JavaScript
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const account of client.accounts.list()) {
console.log(account.id);
}curl --request GET \
--url https://api.whop.com/api/v1/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.whop.com/api/v1/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.whop.com/api/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.whop.com/api/v1/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"balances": [
{
"balance": "<string>",
"breakdown": {},
"icon_url": "<string>",
"name": "<string>",
"price_usd": 123,
"symbol": "<string>",
"value_usd": "<string>"
}
],
"banner_image_url": "<string>",
"business_address": {},
"business_type": "<string>",
"capabilities": {
"accept_bank_payments": "active",
"accept_bnpl_payments": "active",
"accept_card_payments": "active",
"bank_deposit": "active",
"card_deposit": "active",
"card_issuing": "active",
"crypto_deposit": "active",
"crypto_payout": "active",
"instant_payout": "active",
"standard_payout": "active",
"transfer": "active"
},
"country": "<string>",
"created_at": "<string>",
"description": "<string>",
"email": "<string>",
"home_preferences": [
"<string>"
],
"id": "<string>",
"industry_group": "<string>",
"industry_type": "<string>",
"invoice_prefix": "<string>",
"llc_formation": {},
"logo_url": "<string>",
"metadata": {},
"onboarding_type": "<string>",
"opengraph_image_url": "<string>",
"opengraph_image_variant": "<string>",
"other_business_description": "<string>",
"other_industry_description": "<string>",
"parent_account_id": "<string>",
"payment_controls": {
"dispute_alert_auto_refund": {
"locked": true,
"threshold_usd": 123
},
"dispute_alert_fee_usd": 123,
"financing_disabled": true,
"high_risk_processing_fee_percentage": 123,
"pending_balance_delay_days": 123,
"reserve": {
"hold_period_days": 123,
"percentage": 123
},
"resolution_center_auto_refund": {
"card_threshold_usd": 123,
"financing_threshold_usd": 123,
"locked": true,
"paypal_threshold_usd": 123
}
},
"product_tax_code": {},
"recommended_actions": [
{
"action": "theme_business",
"blocked_capabilities": [
"<string>"
],
"cta": "<string>",
"cta_label": "<string>",
"description": "<string>",
"icon_url": "<string>",
"impact_score": 123,
"reasoning": "<string>",
"status": "optional",
"title": "<string>"
}
],
"require_2fa": true,
"required_actions": [
{
"action": "deposit_funds",
"blocked_capabilities": [
"<string>"
],
"cta": "<string>",
"cta_label": "<string>",
"description": "<string>",
"icon_url": "<string>",
"status": "required",
"title": "<string>"
}
],
"route": "<string>",
"send_customer_emails": true,
"show_joined_whops": true,
"show_reviews_dtc": true,
"show_user_directory": true,
"social_links": [
{
"id": "<string>",
"title": "<string>",
"url": "<string>",
"website": "x"
}
],
"status": "<string>",
"store_page_config": {},
"target_audience": "<string>",
"tax_collection_enabled_states": [
"<string>"
],
"tax_identifiers": "<array>",
"tax_remitted_by": "<string>",
"title": "<string>",
"total_earned_usd": 123,
"total_usd": "<string>",
"use_logo_as_opengraph_image_fallback": true,
"verification": {},
"wallet": {
"address": "<string>",
"id": "<string>",
"network": "solana"
}
}
],
"page_info": {
"end_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true,
"start_cursor": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>"
}
}Accounts
List Accounts
Lists accounts visible to the credential. User tokens return the user’s business accounts; business account API keys return the requesting business account and its connected accounts.
GET
/
accounts
JavaScript
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const account of client.accounts.list()) {
console.log(account.id);
}curl --request GET \
--url https://api.whop.com/api/v1/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.whop.com/api/v1/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.whop.com/api/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.whop.com/api/v1/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"balances": [
{
"balance": "<string>",
"breakdown": {},
"icon_url": "<string>",
"name": "<string>",
"price_usd": 123,
"symbol": "<string>",
"value_usd": "<string>"
}
],
"banner_image_url": "<string>",
"business_address": {},
"business_type": "<string>",
"capabilities": {
"accept_bank_payments": "active",
"accept_bnpl_payments": "active",
"accept_card_payments": "active",
"bank_deposit": "active",
"card_deposit": "active",
"card_issuing": "active",
"crypto_deposit": "active",
"crypto_payout": "active",
"instant_payout": "active",
"standard_payout": "active",
"transfer": "active"
},
"country": "<string>",
"created_at": "<string>",
"description": "<string>",
"email": "<string>",
"home_preferences": [
"<string>"
],
"id": "<string>",
"industry_group": "<string>",
"industry_type": "<string>",
"invoice_prefix": "<string>",
"llc_formation": {},
"logo_url": "<string>",
"metadata": {},
"onboarding_type": "<string>",
"opengraph_image_url": "<string>",
"opengraph_image_variant": "<string>",
"other_business_description": "<string>",
"other_industry_description": "<string>",
"parent_account_id": "<string>",
"payment_controls": {
"dispute_alert_auto_refund": {
"locked": true,
"threshold_usd": 123
},
"dispute_alert_fee_usd": 123,
"financing_disabled": true,
"high_risk_processing_fee_percentage": 123,
"pending_balance_delay_days": 123,
"reserve": {
"hold_period_days": 123,
"percentage": 123
},
"resolution_center_auto_refund": {
"card_threshold_usd": 123,
"financing_threshold_usd": 123,
"locked": true,
"paypal_threshold_usd": 123
}
},
"product_tax_code": {},
"recommended_actions": [
{
"action": "theme_business",
"blocked_capabilities": [
"<string>"
],
"cta": "<string>",
"cta_label": "<string>",
"description": "<string>",
"icon_url": "<string>",
"impact_score": 123,
"reasoning": "<string>",
"status": "optional",
"title": "<string>"
}
],
"require_2fa": true,
"required_actions": [
{
"action": "deposit_funds",
"blocked_capabilities": [
"<string>"
],
"cta": "<string>",
"cta_label": "<string>",
"description": "<string>",
"icon_url": "<string>",
"status": "required",
"title": "<string>"
}
],
"route": "<string>",
"send_customer_emails": true,
"show_joined_whops": true,
"show_reviews_dtc": true,
"show_user_directory": true,
"social_links": [
{
"id": "<string>",
"title": "<string>",
"url": "<string>",
"website": "x"
}
],
"status": "<string>",
"store_page_config": {},
"target_audience": "<string>",
"tax_collection_enabled_states": [
"<string>"
],
"tax_identifiers": "<array>",
"tax_remitted_by": "<string>",
"title": "<string>",
"total_earned_usd": 123,
"total_usd": "<string>",
"use_logo_as_opengraph_image_fallback": true,
"verification": {},
"wallet": {
"address": "<string>",
"id": "<string>",
"network": "solana"
}
}
],
"page_info": {
"end_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true,
"start_cursor": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>"
}
}Authorizations
A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Query Parameters
The number of accounts to return (default 10, max 50).
A cursor; returns accounts after this position.
The number of accounts to return from the end of the range.
A cursor; returns accounts before this position.
The field to sort accounts by.
Available options:
created_at Sort direction.
Available options:
asc, desc ⌘I

