Docs
Sites APIAttribution

Lead sources for every property

One block per property on the website, so a centralized site builds from one call. A property's lead sources, tracking phone numbers and emails, and the rules a site evaluates in the browser to pick a source for a visit. Tag: `lead-sources:{property_id}`.

GET/api/sites/v1/lead-sources

One block per property on the website, so a centralized site builds from one call. A property's lead sources, tracking phone numbers and emails, and the rules a site evaluates in the browser to pick a source for a visit. Tag: lead-sources:{property_id}.

Authorization

websiteToken
AuthorizationBearer <token>

A Sanctum token scoped to one website.

In: header

Query Parameters

property?string

A property slug on this website. Unknown slug is a 404.

page?integer
Range1 <= value
Default1
per_page?integer
Range1 <= value <= 100
Default25

Header Parameters

X-Resi-Website?string

Website id. Overrides Host resolution for builds running where Host is meaningless. The token must still be scoped to this website.

If-None-Match?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/sites/v1/lead-sources"
{  "data": [    {      "property": {        "id": "string",        "slug": "string",        "name": "string"      },      "fallback_phone": "string",      "fallback_email": "string",      "external_source_field": "string",      "sources": [        {          "id": 0,          "name": "string",          "code": "string",          "phone": "string",          "email": "string"        }      ],      "resolution": {        "source_observation_endpoint": "string",        "click_id_params": [          "string"        ],        "rules": [          {            "id": 0,            "priority": 0,            "lead_source_id": 0,            "condition_operator": "string",            "conditions": [              {                "type": "string",                "parameter": "string",                "pattern": "string",                "value": "string"              }            ]          }        ]      }    }  ],  "meta": {    "pagination": {      "total": 0,      "page": 0,      "per_page": 0,      "last_page": 0    },    "cache": {      "tags": [        "string"      ],      "ttl": 0    }  }}