LeadSail
Leads

List leads

Returns leads for the authenticated tenant with advanced filtering, search, and cursor-based pagination.

GET
/api/v1/leads

Authorization

ApiKeyAuth
X-API-Key<token>

API key generated from your Vayaflow dashboard Settings page

In: header

Query Parameters

cursor?string

Cursor for pagination (leadId of last item)

limit?string

Items per page (max 100)

campaignIds?string

Comma-separated campaign IDs

clientIds?string

Comma-separated client IDs

offerIds?string

Comma-separated offer IDs

status?string

Filter by lead status

search?string

Search by name, email, phone, or leadId

startDate?string

Start date filter (ISO 8601)

endDate?string

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"
  }
}