ClickLyft docs
Put ClickLyft in front of your visitors: embed the funnel on your site, or call the APIs from your own server.
POST /direct/v1/quotes02Prefill APITell us what you already know about a visitor, and the form opens with it filled in.POST /prefill/v1/sessions03Event Feed APIEvery lead, ad shown, click and payout, tagged with your reference_id. Pull it, or get webhooks.GET /direct/v1/events04Creative SpecificationsHow to show ClickLyft ads and quotes in your own design: what is required and what is yours to choose.01Base URL
Every API lives under one host:
https://platform.clicklyft.com02Authentication
Send your API key on every request. One key works for all three APIs. The key identifies your account, so never send an organization or account ID. Make requests from your server only, never from a web page or a mobile app.
Authorization: Bearer clk_your_key_hereA missing, wrong or revoked key returns 401 with {"error":"invalid_api_key"}.
03Test first
Each API has a test endpoint that takes your key, the same body and the same validation, and saves nothing. To go live, change only the path.
| API | Live | Test |
|---|---|---|
| Quote API | POST /direct/v1/quotes | POST /direct/v1/test/quotes |
| Prefill API | POST /prefill/v1/sessions | POST /prefill/v1/test/sessions |
| Event Feed API | GET /direct/v1/events | GET /direct/v1/test/events, POST /direct/v1/test/webhook |
04Embed the funnel
If you show the funnel on your own page, add the script tag once, then open the funnel from any button or link.
<script src="https://platform.clicklyft.com/embed.js" async></script><button onclick="window.clicklyft && window.clicklyft.open()">Get my free quote</button>05Versioning
These are version 1, under /direct/v1 and /prefill/v1. We may add optional fields, new event types and new response fields without changing the version, so ignore fields you do not recognize.