Base URL
Response Format
All responses use a consistent envelope format./api/check is the only public endpoint that returns a minimal { "success": true } response on success. Lead, stats, and ad spend endpoints use the full envelope shown below.Success Response
Error Response
Error Codes
Pagination
All list endpoints support pagination usinglimit and page parameters.
Pagination Response
Iterating Through Pages
Rate Limiting
Currently, there are no rate limits on the API. This may change in the future.Compatibility
The current API keeps the old Octanist lead API behavior while adding pixel session support. Existing integrations can keep using:POST /api/leadswith lead fields, click IDs, UTM fields, consent fields,website, andpathPATCH /api/leadswithchangedToas the legacy alias forstatus, andemailorphoneas either a string or an ordered array of fallback identifiersGET /api/leads?updated_after=...as the legacy alias forupdatedAt[gte]sort=updated_at:descas the legacy alias forsort=updatedAt:desc
sessionId to POST /api/leads. This links a backend-created lead to an existing Octanist pixel session.