GET /api/leads

executing a get request in /api/leads you will get the list with your leads from our CRM Account

An example with Curl is the following where the word "mytoken" in the url is your api key that we provide to to access your account

curl -i -H "Accept:application/json" -H "Content-Type:application/json" 
https://myapikey@vontikakis.com/api/leads

The response of data will be in xml format. If you want to response in json form you will have to include an extra header Accept: application/json; q=1.0, */*; q=0.1 the request will be

curl -i -H "Accept: application/json; q=1.0, */*; q=0.1" -H "Content-Type:application/json" 
https://myapikey@vontikakis.com/api/leads

POST /api/leads/new

For inserting a new lead in the system you will have to executing a post request in uri /api/leads/new

curl -i -H "Accept: application/json; q=1.0, */*; q=0.1" -H "Content-Type:application/json"
-XPOST "https://myapikey@vontikakis.com/api/leads/new"
-d '{"company": "mycomp", "stage": "Discover","message":"messag","type":"Outbound"}'

request:

https://myapikey@vontikakis.com/api/leads/new

params:

  • type: list { Outbound, Inbound } required
  • stage: list { Discover, Qualify, Attempted Contact, Contacted, Converted, Junk Lead, Lost Lead } required
  • company: text {100} required
  • industry: text {100} optional
  • message: text {100} optional
  • phone: text {100} optional
  • website: text {100} optional
  • source: text {100} optional

response:

201