Skip to main content
GET
/
api
/
v1
/
iframes
/
{id}
/
leads
/
export
Export Widget Leads (CSV)
curl --request GET \
  --url https://api.example.com/api/v1/iframes/{id}/leads/export
Returns a CSV attachment. Columns are the union of all captured lead fields, plus country, referrer, and date.

Authentication

Requires a Bearer token (API key) or a dashboard session.

Path Parameters

id
string
required
The widget config UUID.

Query Parameters

from
string
ISO timestamp lower bound (inclusive).
to
string
ISO timestamp upper bound (inclusive).

Example

curl
curl -L "https://www.hitheo.ai/api/v1/iframes/CONFIG_ID/leads/export" \
  -H "Authorization: Bearer $THEO_API_KEY" \
  -o widget-leads.csv