Clients
The endpoints available in this documentation empower you to perform various client-related operations, facilitating effective client engagement and organization.
Explore the following functionalities to manage clients:
- Add Client: Create new clients within the platform, supplying the necessary client details via the designated endpoint.
- Search Clients: Retrieve clients based on specified parameters or keywords, allowing for efficient search capabilities.
- Get Client by ID: Fetch detailed information about a specific client using their unique identifier.
- Update Client: Modify and update client information, ensuring accurate and up-to-date records.
- Add Client Tag: Associate tags with clients, enabling categorization and streamlined organization.
- Remove Client Tag: Effortlessly remove tags associated with clients, facilitating flexible tag management.
- Remove Client: Delete clients from the platform, facilitating data management and organization.
API region
api.whautomate.comCreates a new client based on parameters
POST
/v1/clientsHeaders
x-api-keystringrequiredYour Whautomate API key.
Body
idstringfullNamestringrequiredcontactTypestring (enum)One of:
HOME, MOBILE, WORK.countryCodestringrequiredphonestringrequiredemailstringregistrationDatestringdobstringaddressTypestring (enum)One of:
HOME, WORK.addressstringgenderstring (enum)One of:
Male, Female, Unknown, Other.maritalStatusstring (enum)One of:
UNMARRIED, MARRIED, OTHER.tagsstring[]notesstringreferralSourcestringprimaryLocationobjectprimaryStaffobjectcustomFieldsobjectphotoUrlstringemergencyRelationTypestringemergencyNamestringemergencyCountryCodestringidentificationNumberstringemergencyPhonestringcompanystringCompany name, for business clients.
taxIdTypestringType of tax ID, for example GST or VAT.
taxIdNumberstringTax ID number, shown on invoices.
Response 200
idstringfullNamestringrequiredcontactTypestring (enum)One of:
HOME, MOBILE, WORK.countryCodestringrequiredphonestringrequiredemailstringregistrationDatestringdobstringaddressTypestring (enum)One of:
HOME, WORK.addressstringgenderstring (enum)One of:
Male, Female, Unknown, Other.maritalStatusstring (enum)One of:
UNMARRIED, MARRIED, OTHER.tagsstring[]notesstringreferralSourcestringprimaryLocationobjectprimaryStaffobjectcustomFieldsobjectphotostringemergencyRelationTypestringemergencyNamestringemergencyCountryCodestringidentificationNumberstringemergencyPhonestringcompanystringCompany name, for business clients.
taxIdTypestringType of tax ID, for example GST or VAT.
taxIdNumberstringTax ID number, shown on invoices.
Request
curl -X POST "https://api.whautomate.com/v1/clients" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"fullName": "string",
"contactType": "HOME",
"countryCode": "string",
"phone": "string",
"email": "string",
"registrationDate": "string",
"dob": "string",
"addressType": "HOME",
"address": "string",
"gender": "Male",
"maritalStatus": "UNMARRIED",
"tags": [
"string"
],
"notes": "string",
"referralSource": "string",
"primaryLocation": {
"id": "string",
"title": "string"
},
"primaryStaff": {
"id": "string"
},
"customFields": {},
"photoUrl": "string",
"emergencyRelationType": "string",
"emergencyName": "string",
"emergencyCountryCode": "string",
"identificationNumber": "string",
"emergencyPhone": "string"
}'
Response 200
{
"id": "string",
"fullName": "string",
"contactType": "HOME",
"countryCode": "string",
"phone": "string",
"email": "string",
"registrationDate": "string",
"dob": "string",
"addressType": "HOME",
"address": "string",
"gender": "Male",
"maritalStatus": "UNMARRIED",
"tags": [
"string"
],
"notes": "string",
"referralSource": "string",
"primaryLocation": {
"id": "string",
"title": "string"
},
"primaryStaff": {
"id": "string"
},
"customFields": {},
"photo": "string",
"emergencyRelationType": "string",
"emergencyName": "string",
"emergencyCountryCode": "string",
"identificationNumber": "string",
"emergencyPhone": "string"
}
Search clients based on parameters
GET /v1/clients
GET
/v1/clientsHeaders
x-api-keystringrequiredYour Whautomate API key.
Query parameters
limitstringprimaryLocationIdstringtagsstringendDatestringpagestringstartDatestringsearchTextstringResponse 200
idstringfullNamestringrequiredcontactTypestring (enum)One of:
HOME, MOBILE, WORK.countryCodestringrequiredphonestringrequiredemailstringregistrationDatestringdobstringaddressTypestring (enum)One of:
HOME, WORK.addressstringgenderstring (enum)One of:
Male, Female, Unknown, Other.maritalStatusstring (enum)One of:
UNMARRIED, MARRIED, OTHER.tagsstring[]notesstringreferralSourcestringprimaryLocationobjectprimaryStaffobjectcustomFieldsobjectphotostringemergencyRelationTypestringemergencyNamestringemergencyCountryCodestringidentificationNumberstringemergencyPhonestringcompanystringCompany name, for business clients.
taxIdTypestringType of tax ID, for example GST or VAT.
taxIdNumberstringTax ID number, shown on invoices.
Request
curl -X GET "https://api.whautomate.com/v1/clients" \
-H "x-api-key: YOUR_API_KEY"
Response 200
[
{
"id": "string",
"fullName": "string",
"contactType": "HOME",
"countryCode": "string",
"phone": "string",
"email": "string",
"registrationDate": "string",
"dob": "string",
"addressType": "HOME",
"address": "string",
"gender": "Male",
"maritalStatus": "UNMARRIED",
"tags": [
"string"
],
"notes": "string",
"referralSource": "string",
"primaryLocation": {
"id": "string",
"title": "string"
},
"primaryStaff": {
"id": "string"
},
"customFields": {},
"photo": "string",
"emergencyRelationType": "string",
"emergencyName": "string",
"emergencyCountryCode": "string",
"identificationNumber": "string",
"emergencyPhone": "string"
}
]
warning
Please do note the {clientId} in the URL path denotes the UUID - Id of the client.
E.g. 5tw9zcQkbu
Gets a Client by Id
GET
/v1/clients/{clientId}Headers
x-api-keystringrequiredYour Whautomate API key.
Path parameters
clientIdstringrequiredResponse 200
idstringfullNamestringrequiredcontactTypestring (enum)One of:
HOME, MOBILE, WORK.countryCodestringrequiredphonestringrequiredemailstringregistrationDatestringdobstringaddressTypestring (enum)One of:
HOME, WORK.addressstringgenderstring (enum)One of:
Male, Female, Unknown, Other.maritalStatusstring (enum)One of:
UNMARRIED, MARRIED, OTHER.tagsstring[]notesstringreferralSourcestringprimaryLocationobjectprimaryStaffobjectcustomFieldsobjectphotostringemergencyRelationTypestringemergencyNamestringemergencyCountryCodestringidentificationNumberstringemergencyPhonestringcompanystringCompany name, for business clients.
taxIdTypestringType of tax ID, for example GST or VAT.
taxIdNumberstringTax ID number, shown on invoices.
Request
curl -X GET "https://api.whautomate.com/v1/clients/{clientId}" \
-H "x-api-key: YOUR_API_KEY"
Response 200
{
"id": "string",
"fullName": "string",
"contactType": "HOME",
"countryCode": "string",
"phone": "string",
"email": "string",
"registrationDate": "string",
"dob": "string",
"addressType": "HOME",
"address": "string",
"gender": "Male",
"maritalStatus": "UNMARRIED",
"tags": [
"string"
],
"notes": "string",
"referralSource": "string",
"primaryLocation": {
"id": "string",
"title": "string"
},
"primaryStaff": {
"id": "string"
},
"customFields": {},
"photo": "string",
"emergencyRelationType": "string",
"emergencyName": "string",
"emergencyCountryCode": "string",
"identificationNumber": "string",
"emergencyPhone": "string"
}
Updates a particular client
PUT
/v1/clients/{clientId}Headers
x-api-keystringrequiredYour Whautomate API key.
Path parameters
clientIdstringrequiredBody
idstringfullNamestringrequiredcontactTypestring (enum)One of:
HOME, MOBILE, WORK.countryCodestringrequiredphonestringrequiredemailstringregistrationDatestringdobstringaddressTypestring (enum)One of:
HOME, WORK.addressstringgenderstring (enum)One of:
Male, Female, Unknown, Other.maritalStatusstring (enum)One of:
UNMARRIED, MARRIED, OTHER.tagsstring[]notesstringreferralSourcestringprimaryLocationobjectprimaryStaffobjectcustomFieldsobjectphotoUrlstringemergencyRelationTypestringemergencyNamestringemergencyCountryCodestringidentificationNumberstringemergencyPhonestringcompanystringCompany name, for business clients.
taxIdTypestringType of tax ID, for example GST or VAT.
taxIdNumberstringTax ID number, shown on invoices.
Response 200
idstringfullNamestringrequiredcontactTypestring (enum)One of:
HOME, MOBILE, WORK.countryCodestringrequiredphonestringrequiredemailstringregistrationDatestringdobstringaddressTypestring (enum)One of:
HOME, WORK.addressstringgenderstring (enum)One of:
Male, Female, Unknown, Other.maritalStatusstring (enum)One of:
UNMARRIED, MARRIED, OTHER.tagsstring[]notesstringreferralSourcestringprimaryLocationobjectprimaryStaffobjectcustomFieldsobjectphotostringemergencyRelationTypestringemergencyNamestringemergencyCountryCodestringidentificationNumberstringemergencyPhonestringcompanystringCompany name, for business clients.
taxIdTypestringType of tax ID, for example GST or VAT.
taxIdNumberstringTax ID number, shown on invoices.
Request
curl -X PUT "https://api.whautomate.com/v1/clients/{clientId}" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"fullName": "string",
"contactType": "HOME",
"countryCode": "string",
"phone": "string",
"email": "string",
"registrationDate": "string",
"dob": "string",
"addressType": "HOME",
"address": "string",
"gender": "Male",
"maritalStatus": "UNMARRIED",
"tags": [
"string"
],
"notes": "string",
"referralSource": "string",
"primaryLocation": {
"id": "string",
"title": "string"
},
"primaryStaff": {
"id": "string"
},
"customFields": {},
"photoUrl": "string",
"emergencyRelationType": "string",
"emergencyName": "string",
"emergencyCountryCode": "string",
"identificationNumber": "string",
"emergencyPhone": "string"
}'
Response 200
{
"id": "string",
"fullName": "string",
"contactType": "HOME",
"countryCode": "string",
"phone": "string",
"email": "string",
"registrationDate": "string",
"dob": "string",
"addressType": "HOME",
"address": "string",
"gender": "Male",
"maritalStatus": "UNMARRIED",
"tags": [
"string"
],
"notes": "string",
"referralSource": "string",
"primaryLocation": {
"id": "string",
"title": "string"
},
"primaryStaff": {
"id": "string"
},
"customFields": {},
"photo": "string",
"emergencyRelationType": "string",
"emergencyName": "string",
"emergencyCountryCode": "string",
"identificationNumber": "string",
"emergencyPhone": "string"
}
Deletes a client based on clientId
DEL
/v1/clients/{clientId}Headers
x-api-keystringrequiredYour Whautomate API key.
Path parameters
clientIdstringrequiredResponse 200
successbooleanRequest
curl -X DELETE "https://api.whautomate.com/v1/clients/{clientId}" \
-H "x-api-key: YOUR_API_KEY"
Response 200
{
"success": true
}
POST /v1/clients/{clientId}/tags/add
POST
/v1/clients/{clientId}/tags/addHeaders
x-api-keystringrequiredYour Whautomate API key.
Path parameters
clientIdstringrequiredResponse 200
idstringtagsstring[]Request
curl -X POST "https://api.whautomate.com/v1/clients/{clientId}/tags/add" \
-H "x-api-key: YOUR_API_KEY"
Response 200
{
"id": "string",
"tags": [
"string"
]
}
POST /v1/clients/{clientId}/tags/remove
POST
/v1/clients/{clientId}/tags/removeHeaders
x-api-keystringrequiredYour Whautomate API key.
Path parameters
clientIdstringrequiredResponse 200
idstringtagsstring[]Request
curl -X POST "https://api.whautomate.com/v1/clients/{clientId}/tags/remove" \
-H "x-api-key: YOUR_API_KEY"
Response 200
{
"id": "string",
"tags": [
"string"
]
}