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": "See our work",
"description": "We book coatings two days out, so pick a slot when we ring.",
"headline": "Thanks — we will call you today",
"url": "https://shinetime.example/gallery"
},
"created_at": "2026-01-01T12:00:00.000Z",
"disclaimer": {
"body": "Ceramic coating requires the vehicle for two days.",
"checkboxes": [
{
"checked_by_default": false,
"key": "consent_1",
"required": true,
"text": "I agree"
}
],
"title": "Before you submit"
},
"form_type": "higher_intent",
"id": "24839",
"intro": {
"description": "Tell us about your vehicle and we will send a fixed price.",
"headline": "Get a ceramic coating quote"
},
"locale": "en_US",
"name": "Ceramic coating quote requests",
"privacy_policy_link_text": "Shine Time privacy policy",
"privacy_policy_url": "https://shinetime.example/privacy",
"question_labels": [
"Email"
],
"questions": [
{
"type": "custom",
"format": "multiple_choice",
"label": "What vehicle are we detailing?",
"options": [
{
"value": "Ceramic coating",
"key": "ceramic_coating",
"logic": {
"action": "go_to_question",
"target_end_page_index": 0,
"target_question_index": 3
}
}
]
}
]
}
]
}{
"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>"
}
}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": "See our work",
"description": "We book coatings two days out, so pick a slot when we ring.",
"headline": "Thanks — we will call you today",
"url": "https://shinetime.example/gallery"
},
"created_at": "2026-01-01T12:00:00.000Z",
"disclaimer": {
"body": "Ceramic coating requires the vehicle for two days.",
"checkboxes": [
{
"checked_by_default": false,
"key": "consent_1",
"required": true,
"text": "I agree"
}
],
"title": "Before you submit"
},
"form_type": "higher_intent",
"id": "24839",
"intro": {
"description": "Tell us about your vehicle and we will send a fixed price.",
"headline": "Get a ceramic coating quote"
},
"locale": "en_US",
"name": "Ceramic coating quote requests",
"privacy_policy_link_text": "Shine Time privacy policy",
"privacy_policy_url": "https://shinetime.example/privacy",
"question_labels": [
"Email"
],
"questions": [
{
"type": "custom",
"format": "multiple_choice",
"label": "What vehicle are we detailing?",
"options": [
{
"value": "Ceramic coating",
"key": "ceramic_coating",
"logic": {
"action": "go_to_question",
"target_end_page_index": 0,
"target_question_index": 3
}
}
]
}
]
}
]
}{
"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-21"
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

