You've Got Leads API

Making your CRM data work for you.

Authentication

Overview

All API requests are authenticated using Basic Http Authentication. This requires you to add the Authorization header to every request. The value of the header is "BASIC " followed by {username}:{password} base-64 encoded, where {username} and {password} are the username and password you have been given for access. For example, if your username where "username" and your password "password", you would base-64 encode the string "username:password", resulting in dXNlcm5hbWU6cGFzc3dvcmQ=. The value of the authorization header would therefore be "BASIC dXNlcm5hbWU6cGFzc3dvcmQ=".

A raw request might look like this:

GET https://www.youvegotleads.com/api/property
Authorization: BASIC dXNlcm5hbWU6cGFzc3dvcmQ=
Host: https://www.youvegotleads.com

Data Formats

YGL 2.0 API supports both XML and JSON formats, though we prefer JSON due to it's ease of use and lightweight nature.

You can specify whether you would like XML or JSON returned using the Accept request header. If you omit the header the default data type is JSON. An example follows.

GET https://www.youvegotleads.com/api/property
Authorization: BASIC dXNlcm5hbWU6cGFzc3dvcmQ=
Host: https://www.youvegotleads.com
Accept: application/json


In addition, when using the POST or PUT methods, you should specify what data type you are sending to the server using the Content-Type header:

POST https://www.youvegotleads.com/api/property/1/lead
Authorization: BASIC dXNlcm5hbWU6cGFzc3dvcmQ=
Host: https://www.youvegotleads.com
Accept: application/json
Content-Type: application/json