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 response = await client.socialAccounts.leadForms('id', { account_id: 'account_id' });
console.log(response.data);curl --request GET \
--url https://api.whop.com/api/v1/social_accounts/{id}/lead_forms \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/social_accounts/{id}/lead_forms"
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/social_accounts/{id}/lead_forms",
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/social_accounts/{id}/lead_forms"
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/social_accounts/{id}/lead_forms")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/social_accounts/{id}/lead_forms")
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": [
{
"completion": {
"button_text": "<string>",
"description": "<string>",
"headline": "<string>",
"url": "<string>"
},
"created_at": "<string>",
"disclaimer": {
"body": "<string>",
"checkboxes": [
{
"checked_by_default": true,
"key": "<string>",
"required": true,
"text": "<string>"
}
],
"title": "<string>"
},
"form_type": "more_volume",
"id": "<string>",
"intro": {
"description": "<string>",
"headline": "<string>"
},
"locale": "<string>",
"name": "<string>",
"privacy_policy_link_text": "<string>",
"privacy_policy_url": "<string>",
"question_labels": [
"<string>"
],
"questions": [
{
"type": "<string>",
"format": "<string>",
"label": "<string>",
"options": [
{
"value": "<string>",
"key": "<string>",
"logic": {
"action": "go_to_question",
"target_end_page_index": 123,
"target_question_index": 123
}
}
]
}
]
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Social Accounts
List Social Account Lead Forms
Lists the active lead (instant) forms that already exist on a connected Facebook page, so an ad can reuse one as its lead_gen_form_id instead of authoring a new form. Every active form comes back in a single response — the list is not paginated.
GET
/
social_accounts
/
{id}
/
lead_forms
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 response = await client.socialAccounts.leadForms('id', { account_id: 'account_id' });
console.log(response.data);curl --request GET \
--url https://api.whop.com/api/v1/social_accounts/{id}/lead_forms \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.whop.com/api/v1/social_accounts/{id}/lead_forms"
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/social_accounts/{id}/lead_forms",
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/social_accounts/{id}/lead_forms"
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/social_accounts/{id}/lead_forms")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.whop.com/api/v1/social_accounts/{id}/lead_forms")
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": [
{
"completion": {
"button_text": "<string>",
"description": "<string>",
"headline": "<string>",
"url": "<string>"
},
"created_at": "<string>",
"disclaimer": {
"body": "<string>",
"checkboxes": [
{
"checked_by_default": true,
"key": "<string>",
"required": true,
"text": "<string>"
}
],
"title": "<string>"
},
"form_type": "more_volume",
"id": "<string>",
"intro": {
"description": "<string>",
"headline": "<string>"
},
"locale": "<string>",
"name": "<string>",
"privacy_policy_link_text": "<string>",
"privacy_policy_url": "<string>",
"question_labels": [
"<string>"
],
"questions": [
{
"type": "<string>",
"format": "<string>",
"label": "<string>",
"options": [
{
"value": "<string>",
"key": "<string>",
"logic": {
"action": "go_to_question",
"target_end_page_index": 123,
"target_question_index": 123
}
}
]
}
]
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"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-05-1"
Path Parameters
The social account (a sacc_ identifier) whose lead forms to list.
Query Parameters
The Account (a biz_ identifier) the social account is connected to.
Response
lead forms listed
Show child attributes
Show child attributes
⌘I

