Lead Sources

The provider through which a lead came in to LionDesk.

The following fields relate to the Lead Sources endpoint.

FieldLimitsRequired?Writeable?
id
NoNo

The ID of the lead source

name
NoNo

The name of the lead source

Get One Lead Source

To get one lead source:

GET https://api-v2.liondesk.com//lead-sources/1 headers: { Authorization: "Bearer [access token]", Content-Type: "application/json" }

The response object will have this form:{ "id": 1, "name": "Zillow" }

Find All Lead Sources

You find/search lead sources by issuing a GET request to the base endpoint:

GET https://api-v2.liondesk.com//lead-sources headers: { Authorization: "Bearer [access token]", Content-Type: "application/json" }

The response will contain an array of lead source objects, like so:

{ "total": 2, "limit": 10, "skip": 0, "data": [ { "id": 1, "name": "Zillow" }, { "id": 3, "name": "Trulia" } ] }

Filter Lead Sources

Equality

You may query lead source fields directly by specifying equality parameters in the request URI:GET /lead-sources?name=Zillow

You may wish to exclude results having some value with $ne:GET /lead-sources?name[$ne]=Zillow