Base URL
All API requests should be made to:Authentication
Every API request requires authentication using your project’s secret key via theFox-Secret
header.
Security: This is the same secret key used for webhooks. Never expose
it in client-side code or public repositories. Keep it secure on your server.
Quick Start
1
Get Your Secret Key
Find your Fox-Secret in Project Settings
2
Make Your First Request
Test the API with a simple funnels list request:
3
Parse the Response
Handle the JSON response with pagination metadata
4
Build Your Integration
Use the data to power your analytics, reporting, or automation
Available Endpoints
The API provides read access to core FunnelFox data:Funnels
GET /funnels
- List all funnelsGET /funnels/{id}
- Get funnel details
Profiles & Sessions
GET /profiles/{id}
- Get user profileGET /sessions/{id}
- Get session dataGET /sessions/{id}/replies
- Get form responses
Subscriptions
GET /subscriptions
- List subscriptionsGET /subscriptions/{id}
- Get subscription details
Products
GET /products
- List all productsGET /products/{id}
- Get product details
Making Requests
Request Headers
All requests must include:Header | Required | Description |
---|---|---|
Fox-Secret | Yes | Your project’s secret key |
Content-Type | No | Set to application/json for POST requests |
Example Request
Response Format
All successful responses follow this structure:Pagination
The API uses cursor-based pagination for list endpoints. The cursor represents the ID of the last item in the current page.limit
- Number of items per page (1-100, default: 20)cursor
- ID of the last item from previous page
Error Handling
The API returns standard HTTP status codes and JSON error messages:Error Response Format
Filtering & Querying
Many endpoints support filtering to narrow down results:Funnel Filters
Subscription Filters
Troubleshooting
401 Unauthorized errors
401 Unauthorized errors
Empty data arrays
Empty data arrays
- Check your filters aren’t too restrictive
- Verify the resources exist in your project
- Ensure you’re using the correct IDs
Pagination not working
Pagination not working
- Use the exact cursor value from the previous response
- Don’t modify or decode the cursor
- Check
has_more
before requesting next page
404 Not Found
404 Not Found
- Verify the endpoint URL is correct
- Check the resource ID exists
- Ensure you’re using the v1 API path
What’s Next
- API Reference - Detailed endpoint documentation
- Webhooks - Real-time event notifications
- Project Settings - Manage your API credentials