{"$id":"https://api.realself.com/v1/schemas/leads/new-lead-webhook/1-0-0.json","$schema":"https://json-schema.org/draft/2020-12/schema","description":"This schema defines the data that is published when a new lead is created.","properties":{"callback":{"description":"Url to use for sending updates to this lead.","type":"string"},"lead":{"description":"The new lead","properties":{"channel":{"description":"The channel that this lead was received.","enum":["web","connect"],"type":"string"},"comments":{"description":"The comments that this lead specified.","type":"string"},"consultation_type":{"description":"The consolution types, if any, the lead has selected.","items":{"type":"string"},"type":"array"},"id":{"description":"Unique identifier for this lead.","type":"string"},"practice":{"description":"The practice/location for this lead.","properties":{"city":{"description":"Name of the city this practice resides","type":"string"},"id":{"description":"Unique identifier for this practice.","type":"string"},"name":{"description":"Name of this practice","type":"string"},"state":{"description":"Name of the state this practice resides","type":"string"}},"required":["id","name","city","state"],"type":"object"},"prospect":{"description":"The new lead","properties":{"country":{"description":"Country of the prospect","type":"string"},"email":{"description":"Email address of the prospect","type":"string"},"location":{"description":"Location or city of the prospect","type":"string"},"name":{"description":"Name of the prospect","type":"string"},"phone":{"description":"Phone number of the prospect","type":"string"},"state":{"description":"State of the prospect","type":"string"}},"type":"object"},"provider":{"description":"The provider/doctor for this lead. If no provider was chosen, this will not be present","properties":{"id":{"description":"Unique identifier for this provider.","type":"string"},"name":{"description":"Name of this provider","type":"string"}},"required":["id","name"],"type":"object"},"treatment":{"description":"The treatment the prospect is interested in.","properties":{"id":{"description":"Unique identifier of the treatment","type":"string"},"name":{"description":"Name of the treatment","type":"string"}},"required":["id","name"],"type":"object"}},"required":["id","channel"],"type":"object"},"token":{"description":"JWS token for validation and callback.","type":"string"}},"required":["lead","callback","token"],"title":"New Lead Webhook","type":"object"}