Docs← Back to site
Developers

ClickLyft docs

Put ClickLyft in front of your visitors: embed the funnel on your site, or call the APIs from your own server.

01Base URL

Every API lives under one host:

Text
https://platform.clicklyft.com

02Authentication

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.

Text
Authorization: Bearer clk_your_key_here

A 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.

APILiveTest
Quote APIPOST /direct/v1/quotesPOST /direct/v1/test/quotes
Prefill APIPOST /prefill/v1/sessionsPOST /prefill/v1/test/sessions
Event Feed APIGET /direct/v1/eventsGET /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.

HTML
<script src="https://platform.clicklyft.com/embed.js" async></script>
HTML
<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.

Copied