התחבר נסה חינם

DEVELOPERS / API Docs v1

End of API Key

API Key

Using Manavte's API requires API Key.
To get your API Key and Account Name, you must have an active account.
Go to Settings > General
URL Access
https://{accountName}.manavate.com/api
Don't forget to turn on the option Allow API on the same page.
IMPORTANT - DO NOT SEND THE API KEY FROM THE CLIENT
End of Leads

Leads

/leads/create

Request Header
Content-Type : application/json
auth-token : {apikey}
Request Data
{
   "firstname": "Jimi",//  string(50) 
   "lastname": "Ganja",//  string(50) 
   "company": "Digital Company Ltd",//  string(50) 
   "email": "[email protected]",//  string(250) 
   "phone": "972501234567",//  string(50) 
   "cell": "972501234567",//  string(50) 
   "fax": "972501234567",//  string(50) 
   "address": "address",//  string(50) 
   "subject": "Price Offer",//  string(500) 
   "content": "Hello...",//  string 
   "asset": "Landing Page",//  string(500), adds new entry if the asset is new 
   "source": "Google",//  string(500), adds new entry if the source is new  
   "campaign": "New Year 2005",//  string(500), adds new entry if the campaign is new 
   "medium": "Sponsored",//  string(500), adds new entry if the medium is new  
   "labels": ["label1","label2"],//  array, adds new entries if the labels are new 
   "customFields": {//  object - key:value pairs of the account's custom fields
      "fieldName1":"fieldValue1",
      "fieldName2":"fieldValue2"    } }
Response Data
{
   success : false,
   msg : "INVALID FIRST NAME",
   newid : 186
}
Errors
Error Massage Description
VALIDATION ERROR One or more of the given fields are not of the right type or length
INVALID TOKEN The recieved token is incorrect.
INVALID DATA The given json data is empty
API ACCESS NOT ALLOWED FOR THIS ACCOUNT The account is not set to recieve API access. To allow access, check the Allow Api checkbox on the system's general settings tab.
MISSING CUSTOM FIELD One or more custom fields keys are not exist.
INVALID CUSTOM FIELD VALUE One or more custom fields valus are not matched (on type dropdown only).

/leads/update

Coming Soon..

/leads/delete

Coming Soon..

/leads/get

Request Header
Content-Type : application/json
auth-token : {apikey}
Request Data
{
   "term": "Foo",//  string, text based search on the subject and content fields
   "source": 7,//  number, optional, the id field that you get from LeadSources/get
   "campaign": 3,//  number, optional, the id field that you get from Campaigns/get 
   "asset": 5,//  number, optional, the id field that you get from Assets/get 
   "medium": 9//  number, optional, the id field that you get from Media/get 
}
Response Data
[
   {
      "fullname":  "Jimi Ganja",
      "company": "Digital Company Ltd",       "email": "[email protected]",
      "phone": "972501234567",       "cell": "972501234567",
      "fax": "97231234567",       "address": "Somewhere Out There",
      "subject": "Price Offer",       "content": "Hello...",
      "createdate": "16/12/2005",       "asset": "Landing Page",
      "source": "Google",       "campaign": "New Year 2005",
      "medium": "Sponsored"
   },
   {...} ]
Errors
Error Massage Description
API ACCESS NOT ALLOWED FOR THIS ACCOUNT The account is not set to recieve API access. To allow access, check the Allow Api checkbox on the system's general settings tab.
End of Assets

Assets

/assets/create

Coming Soon..

/assets/update

Coming Soon..

/assets/delete

Coming Soon..

/assets/get

Coming Soon..
End of Campaigns

Campaigns

/campaigns/create

Coming Soon..

/campaigns/update

Coming Soon..

/campaigns/delete

Coming Soon..

/campaigns/get

Coming Soon..
End of Sources

Sources

/sources/create

Coming Soon..

/sources/update

Coming Soon..

/sources/delete

Coming Soon..

/sources/get

Coming Soon..
End of Media

Media

/media/create

Coming Soon..

/media/update

Coming Soon..

/media/delete

Coming Soon..

/media/get

Coming Soon..
End of Opportunities

Opportunities

/opportunities/create

Coming Soon..

/opportunities/update

Coming Soon..

/opportunities/delete

Coming Soon..

/opportunities/get

Coming Soon..
End of Customers

Cusromers

/cusromers/create

Coming Soon..

/cusromers/update

Coming Soon..

/cusromers/delete

Coming Soon..

/cusromers/get

Coming Soon..
End of Accounts

Accounts

/accounts/create

Coming Soon..

/accounts/update

Coming Soon..

/accounts/delete

Coming Soon..

/accounts/get

Coming Soon..
End of Contacts

Contacts

/contacts/create

Coming Soon..

/contacts/update

Coming Soon..

/contacts/delete

Coming Soon..

/contacts/get

Coming Soon..
End of Projects / Services

Projects / Services

/projects/create

Coming Soon..

/projects/update

Coming Soon..

/projects/delete

Coming Soon..

/projects/get

Coming Soon..
End of Tickets

Tickets

/tickets/create

Request Header
Content-Type : application/json
APIKey : {apikey}
Request Data
{ 
   subject: "subject",// string(500)
   description: "description",// string(5000)
   name: "name",// string(500)
   email: "[email protected]",// string(250)
}
Response Data
{
   success : false,
   msg : "INVALID FIRST NAME",
   newid : 186
}
Errors
Error Massage Description
VALIDATION_ERROR One or more of the given fields are not of the right type or length
INVALID TOKEN The recieved token is incorrect.
INVALID DATA The given json data is empty
API ACCESS NOT ALLOWED FOR THIS ACCOUNT The account is not set to recieve API access. To allow access, check the Allow Api checkbox on the system's general settings tab.

/tickets/update

Coming Soon..

/tickets/delete

Coming Soon..

/tickets/get

Coming Soon..
End of Tasks

Tasks

/tasks/create

Coming Soon..

/tasks/update

Coming Soon..

/tasks/delete

Coming Soon..

/tasks/get

Coming Soon..
End of Payments

Payments

/payments/create

Coming Soon..

/payments/update

Coming Soon..

/payments/delete

Coming Soon..

/payments/get

Coming Soon..
End of Departments

Departments

/departments/create

Coming Soon..

/departments/update

Coming Soon..

/departments/delete

Coming Soon..

/departments/get

Coming Soon..
End of Products

Products

/products/create

Coming Soon..

/products/update

Coming Soon..

/products/delete

Coming Soon..

/products/get

Coming Soon..