Fetch leads

Every form submission in a Riddle is stored as a lead. Besides sending leads to integrations or exporting them in the Creator, you can also fetch them directly via the API – e.g. to sync them into your own CRM or database.

Note: The leads endpoint is available for the Business and Enterprise plans.

Fetching the leads of a Riddle

To fetch the leads of a Riddle, use the /leads/riddle/{UUID} API endpoint. By default the newest 25 leads are returned; use the page and limit parameters to paginate through the leads.

You can use the following optional parameters:

PropertyTypeDescriptionDefault
pageintegerThe page you want to returnfirst page
limitintegerHow many results the page should contain (maximum: 200)25
searchstringSearch term; exact match for an email address, or partial match for data in the current page
completedbooleanSet to true to only return completed leads; if not sent, all leads are returned
orderBystringBy which field to order; available: createdAt
orderstringThe order of the results; ASC or DESC
dateFromstringOnly return leads from this date on (format: Y-m-d)
dateTostringOnly return leads up to this date (format: Y-m-d)

Example: Fetch the 50 newest completed leads of June 2026:

{
    "page": 1,
    "limit": 50,
    "completed": true,
    "orderBy": "createdAt",
    "order": "DESC",
    "dateFrom": "2026-06-01",
    "dateTo": "2026-06-30"
}

Next steps