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, or use the API:
Terminal window curl -X POST https://devcore.getghostflow.io/api/v1/auth/api-keys \-H "Authorization: Bearer YOUR_JWT_TOKEN" \-H "Content-Type: application/json" \-d '{"name": "My First Key", "permissions": ["read:campaigns", "read:stats"]}'Save the returned
keyvalue (starts withgf_). You won’t see it again. -
Make your first API call
Terminal window curl https://devcore.getghostflow.io/api/v1/campaigns \-H "Authorization: Bearer gf_your_api_key_here"const response = await fetch('https://devcore.getghostflow.io/api/v1/campaigns', {headers: { 'Authorization': 'Bearer gf_your_api_key_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'})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