CMO Control Management Organizer
2.20
7
API Server

auth

2
GET

auth/login

REFERENCE

Login into system using operator. Creates a session token, to be used in all subsequent calls.

PARAMETERS
username string A valid username.
password password Password
/
auth
/
login.php
Request
Response
200
BODY
GET

auth/logout

REFERENCE

Logout from system and destroy the session token.

PARAMETERS
token string session token
/
auth
/
logout.php
Request
Response
200
BODY

leads

5
GET

leads/addlead

REFERENCE

Add new lead with minimal data

PARAMETERS
token string session token
email string email address (required at least one)
phone string phone number (required at least one)
fname string first name
lname string last name
gender string gender type (M or F)
birthday string birthday date (YYYY-MM-DD)
address string address
zipcode string zip code address
city string city address
province string province code address
country string country code address
leadcode string custom lead code
leadsource string custom source code
company string company name
vatcode string company vat code
fiscalcode string fiscal code
privacy string privacy accept (0/1)
privacydt string date privact accept (YYYY-MM-DD)
privacyip string ip address source privact accept
promoter string promoter name
subscribedt string subscribe date (YYYY-MM-DD)
/
leads
/
addlead.php
Request
Response
200
BODY
GET

leads/checkbyemail

REFERENCE

Check exists lead entry by email address.

PARAMETERS
token string session token
email string email address
/
leads
/
checkbyemail.php
Request
Response
200
BODY
GET

leads/checkbyphone

REFERENCE

Check exists lead entry by email address.

PARAMETERS
token string session token
phone string phone number (without internal space)
/
leads
/
checkbyphone.php
Request
Response
200
BODY
GET

leads/loadbyid

REFERENCE

Get lead details by ID

PARAMETERS
token string session token
id string lead ID
/
leads
/
loadbyid.php
Request
Response
200
BODY
GET

leads/loadlist

REFERENCE

Retrieve leads list filtered by source code, tag and subscription date.

PARAMETERS
token string session token
tag string tag value ('new', 'lost', 'reject', 'suspend', 'error')
leadsource string custom source code
subscribe_dt_from string from subscribe date (YYYY-MM-DD)
subscribe_dt_to string to subscribe date (YYYY-MM-DD)
/
leads
/
loadlist.php
Request
Response
200
BODY