LeadSail
Offers

List offers

Returns all offers for the authenticated tenant.

GET
/api/v1/offers

Authorization

ApiKeyAuth
X-API-Key<token>

API key generated from your Vayaflow dashboard Settings page

In: header

Query Parameters

page?string
limit?string
active?string
Value in"true" | "false"
category?string

Filter by offer category (e.g., mass_tort, personal_injury)

search?string

Search by name or abbreviation

Response Body

application/json

application/json

package mainimport (  "fmt"  "net/http"  "io/ioutil")func main() {  url := "https://api.leadsail.app/api/v1/offers"  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": {
    "offers": [
      {
        "offerId": "string",
        "name": "string",
        "abbrev": "string",
        "active": true,
        "category": "mass_tort",
        "description": "string",
        "eligibilityCriteria": [
          "string"
        ],
        "tags": [
          "string"
        ],
        "externalId": "string",
        "createdAt": "string",
        "updatedAt": "string",
        "archivedAt": "string"
      }
    ],
    "pagination": {
      "total": 0,
      "page": 0,
      "limit": 0
    }
  }
}
{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Authentication required"
  }
}