TheSpiritProject REST API

With the use of this API, you can fetch the client in Admin Panel.

Method: POST

URI: /clients

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
offset* Integer Enter the offset value.
limit* String Enter the limit of records you want to fetch in page.
SITE_DOMAIN* String Enter the domain id from where you want to fetch.


With the use of this API, you can add/update the client in Admin Panel.

Method: POST

URI: /clientsSave

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
name* String Enter the name of client.
user_id* String Enter the user id who creates/update the client.
primary_email* String Enter the unique email address of client.
address* String Enter the address of the client.
region_id* Integer Enter the regions id of client from where it belongs.
datastate* Integer Enter the datastate id from where it belongs.
domain* Integer Enter the domain id from where you want to save the client.
primary_phone String Enter the primary phone number of the client.
primary_mobile String Enter the primary mobile number of the client.
primary_fax String Enter the fax number of the client.
secondary_address String Enter the secondary address the client.
locality String Enter the locality of the client.
postal String Enter the postal of the client.
description String Enter the description of the client.
client_id Integer Enter the client id if you want to update the existing client.


With the use of this API, you can fetch the client Notes.

Method: POST

URI: /fetchNotes

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
client_id* Integer Enter the client id of which notes are going to fetch.
page* Integer Enter the number of page you want to fetch.
rp* Integer Enter the number of records fetch you want to fetch.
sortname* String Enter the column name by which you want to sort.
sortorder* String Enter the order you want to sort.
ActiveUserTimeZone* String Enter the user timezone who fetch the organizations.
base_url* String Enter the base url.
BUCKET* String Enter the Bucket url of domain from where you fetch.


With the use of this API, you can save or update the client Notes.

Method: POST

URI: /saveClientNotes

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
client_id* Integer Enter the client id under which notes are going to save.
user_id* Integer Enter the user id who create the note.
content* String Enter the Content of note.
private Integer Enter the type of note whether it is private(1) or public(0).
note_id String Enter the Note id if you want to update the exiting created note.


With the use of this API, you can save or update the client Notes.

Method: POST

URI: /fetchSingleClientNote

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
note_id* String Enter the Note id you want to fetch.


With the use of this API, you can fetch the client organization.

Method: POST

URI: /clientOrg

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
client_id* String Enter the Cleint id that organization should be fetched.