Docs
Sites APIConversion

Record a source observation

What a site saw about where a visit came from. Resolved against the property's attribution rules, then stored with personal and credential-shaped values stripped. The result says which source matched.

POST/api/sites/v1/source-observations

What a site saw about where a visit came from. Resolved against the property's attribution rules, then stored with personal and credential-shaped values stripped. The result says which source matched.

Authorization

websiteToken
AuthorizationBearer <token>

A Sanctum token scoped to one website.

In: header

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.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/sites/v1/source-observations" \  -H "Content-Type: application/json" \  -d '{    "property": "string"  }'
{  "data": {    "id": "string",    "status": "string",    "lead_source_id": 0,    "resi_source_key": "string",    "resi_source_name": "string"  },  "meta": {}}