List leads
Returns leads for the authenticated tenant with advanced filtering, search, and cursor-based pagination.
Authorization
ApiKeyAuth API key generated from your Vayaflow dashboard Settings page
In: header
Query Parameters
Cursor for pagination (leadId of last item)
Items per page (max 100)
Comma-separated campaign IDs
Comma-separated client IDs
Comma-separated offer IDs
Filter by lead status
Search by name, email, phone, or leadId
Start date filter (ISO 8601)
End date filter (ISO 8601)
Response Body
application/json
application/json
package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://api.leadsail.app/api/v1/leads" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}{
"success": true,
"data": {
"leads": [
null
],
"nextCursor": "string",
"hasMore": true
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
}Create a lead (direct)
Directly creates a lead without engine processing. Used for imports, migrations, and the Add Lead UI. Does not trigger qualification or delivery.
Get lead details
Returns flat lead details including contact info, questionnaire, flags, and metadata. Does not include submissions or metrics.