Quickstart
Get up and running with the GhostFlow API in minutes.
Prerequisites
Section titled “Prerequisites”- A GhostFlow account (sign up)
- An active subscription (Free tier works for testing)
-
Generate an API key
Go to Settings → API Keys in your dashboard and click Create API Key. Give it a name and select the permissions you need.
Save the returned key (starts with
gf_). You won’t see it again. -
Find your Team ID
In the dashboard, open DevTools (F12) → Network tab → reload the page → click any API request → find the
x-team-idvalue in Request Headers. See Authentication for details. -
Make your first API call
Every request needs both your API key and your Team ID:
Terminal window curl https://devcore.getghostflow.io/api/v1/campaigns \-H "Authorization: Bearer gf_your_api_key_here" \-H "X-Team-Id: your-team-uuid-here"const response = await fetch('https://devcore.getghostflow.io/api/v1/campaigns', {headers: {'Authorization': 'Bearer gf_your_api_key_here','X-Team-Id': 'your-team-uuid-here',}});const campaigns = await response.json();console.log(campaigns);import requestsresponse = requests.get('https://devcore.getghostflow.io/api/v1/campaigns',headers={'Authorization': 'Bearer gf_your_api_key_here','X-Team-Id': 'your-team-uuid-here',})campaigns = response.json()print(campaigns) -
Check the response
You’ll get a JSON array of your campaigns:
[{"id": "550e8400-e29b-41d4-a716-446655440000","name": "My Campaign","status": "active","created_at": "2025-01-15T10:30:00Z"}]
Next steps
Section titled “Next steps”- Authentication deep dive — Learn about scopes and key management
- Rate limits — Understand API limits per plan
- API Reference — Explore all available endpoints