Get up and running with ZeroClick using the REST API. You’ll fetch personalized offers, render them, and track impressions.Documentation Index
Fetch the complete documentation index at: https://developer.zeroclick.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Get Your API Key
- Visit the Developer Dashboard
- Navigate to API Keys, then under the App API Keys tab
- Click Create API Key
- In the drawer, under What type of key is this?, choose your key type:
- Server key — private API key for server-to-server use (
method: "server"). - Client key — public API key, safe to use on client devices. Rate limited by IP (
method: "client").
- Server key — private API key for server-to-server use (
- Copy your key
1. Fetch Offers
Make a POST request to/api/v2/offers with your query:
Client-side example
Client-side example
When calling from the browser, use
method: "client". IP and User-Agent are extracted automatically from request headers.Using
method: "client" requires a Client key, since the key will be exposed in client-side code.2. Render Offers
Display the offers in your UI however you’d like:3. Track Impressions
Call the impressions endpoint when offers are displayed:What’s Next?
Offers Reference
Learn about parameters and response schemas
Signal Collection
Improve offer quality with user preferences
Integration Guide
Compare REST API and MCP integration
Troubleshooting
401 Unauthorized:- Check that your API key is correct
- Verify you’re using the
x-zc-api-keyheader