Bulk Domain Management
Overview
Section titled “Overview”Use the GhostFlow API to add, verify, and manage domains in bulk for large-scale campaigns.
Example: Bulk Add Domains
Section titled “Example: Bulk Add Domains”import requestsimport time
API_KEY = "gf_your_api_key_here"BASE_URL = "https://devcore.getghostflow.io/api/v1"HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
domains = ["example1.com", "example2.com", "example3.com"]
for domain in domains: response = requests.post( f"{BASE_URL}/domains", headers=HEADERS, json={"domain": domain} )
if response.status_code == 201: print(f"✓ Added: {domain}") else: print(f"✗ Failed: {domain} - {response.json().get('message', 'Unknown error')}")
time.sleep(0.5) # Respect rate limitsRequired Scopes
Section titled “Required Scopes”Your API key needs: read:domains, write:domains