JavaScript
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const cards = await client.cards.list();
console.log(cards.data);curl --request GET \
--url https://api.whop.com/api/v1/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/cards"
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/cards",
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/cards"
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/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/cards")
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": [
{
"billing": {
"city": "Austin",
"country_code": "US",
"line1": "4180 Burnet Rd",
"line2": "Suite 210",
"postal_code": "78756",
"region": "TX"
},
"canceled_at": "2026-01-01T12:00:00.000Z",
"created_at": "2026-01-01T12:00:00.000Z",
"expiration_month": "12",
"expiration_year": "2029",
"id": "icrd_xxxxxxxxxxxxxx",
"last4": "8319",
"limit": {
"amount": 50,
"frequency": "daily"
},
"name": "Detailing supplies",
"object": "card",
"spent_last_month": 0,
"status": "invited",
"type": "virtual",
"user_id": "user_xxxxxxxxxxxxxx",
"secrets": {
"card_number": "<string>",
"cvc": "<string>",
"name_on_card": "<string>",
"pin": "<string>"
}
}
]
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}Cards
List Cards
Lists the Whop cards of an account or user, including ones still being set up. Team members only see the cards assigned to them.
GET
/
cards
JavaScript
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const cards = await client.cards.list();
console.log(cards.data);curl --request GET \
--url https://api.whop.com/api/v1/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/cards"
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/cards",
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/cards"
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/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/cards")
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": [
{
"billing": {
"city": "Austin",
"country_code": "US",
"line1": "4180 Burnet Rd",
"line2": "Suite 210",
"postal_code": "78756",
"region": "TX"
},
"canceled_at": "2026-01-01T12:00:00.000Z",
"created_at": "2026-01-01T12:00:00.000Z",
"expiration_month": "12",
"expiration_year": "2029",
"id": "icrd_xxxxxxxxxxxxxx",
"last4": "8319",
"limit": {
"amount": 50,
"frequency": "daily"
},
"name": "Detailing supplies",
"object": "card",
"spent_last_month": 0,
"status": "invited",
"type": "virtual",
"user_id": "user_xxxxxxxxxxxxxx",
"secrets": {
"card_number": "<string>",
"cvc": "<string>",
"name_on_card": "<string>",
"pin": "<string>"
}
}
]
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}{
"error": {
"message": "account_id is required",
"type": "bad_request",
"code": "<string>"
}
}Authorizations
An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.
Headers
Pins the request to a dated API version.
Example:
"2026-08-13"
Query Parameters
The owning account ID (a biz_ identifier). Provide this or user_id.
The owning user ID (a user_ identifier). Provide this or account_id.
Response
cards listed for an assigned cardholder without the ledger scope
Show child attributes
Show child attributes
⌘I

