API Documentation - Agents

Agents

Requesting All Agents

GET https://nestiolistings.com/api/v1/public/agents/

Returns a collection of agents associated with your company and their details.

Example request
https://nestiolistings.com/api/v1/public/agents/?key={API KEY}
Example Response
{
    "total_items" : 15,
    "total_pages" : 1,
    "page" : 1,
    "items" : [{
      "id":123,
      "phone_number" : "123-456-7890",
      "mobile_phone_number" : "",
      "name" : "John Broker",
      "email" : "broker1@brokerage.com",
      "headshot" : {
          "original" : "https://nestiolistings-assets.s3.amazonaws.com/agent/originals/6f898e0be6d013e4acfc17637faed6ba.jpg",
          "thumbnail" : "https://nestiolistings-assets.s3.amazonaws.com/agent_photos/thumbnails/6f898e0be6d013e4acfc17637faed6ba.jpg"
      },
      "title: "Licensed Real-Estate Broker",
      "bio" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
       
       Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
    }]
 }

Requesting a single Agent

GET https://nestiolistings.com/api/v1/public/agents/{id}/

Returns a single agent at your company and their details.

Example request
https://nestiolistings.com/api/v1/public/agents/123/?key={API KEY}
Example Response
{
    "id":123,
    "phone_number" : "123-456-7890",
    "mobile_phone_number" : "",
    "name" : "John Broker",
    "email" : "broker1@brokerage.com",
    "headshot" : {
        "original" : "https://nestiolistings-assets.s3.amazonaws.com/agent/originals/6f898e0be6d013e4acfc17637faed6ba.jpg",
        "thumbnail" : "https://nestiolistings-assets.s3.amazonaws.com/agent_photos/thumbnails/6f898e0be6d013e4acfc17637faed6ba.jpg"
     },
     "title: "Licensed Real-Estate Broker",
     "bio" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
     
     Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
}