List

Overall list of contact persons

GET https://do.workzeal.com/contact/list?page=1&records_onpage=50

Returns contact persons across all clients, paginated, from newest to oldest, together with their phones, email addresses, and social networks. You can filter by name:

GET https://do.workzeal.com/contact/list?name=Smith

Query Parameters

Name Type Description
page Int Page number, starting from 1. Default is 1
records_onpage Int Records per page (default 50, maximum 200)
name String Filter: name contains. Optional

List of a client's contact persons

GET https://do.workzeal.com/contact/list?company_id=368132

Returns all contact persons of one client with their communication channels. When company_id is passed, the other parameters are not used.

Query Parameters

Name Type Description
company_id Int Client ID

Example

curl --location --request GET 'https://do.workzeal.com/contact/list?company_id=368132' \
--header 'Authorization: Bearer XXXX-XXXXXXX-XXXXXXX'
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://do.workzeal.com/contact/list?company_id=368132',
  'headers': {
    'Authorization': 'Bearer XXXX-XXXXXXX-XXXXXXX'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Response

{
  "status": "success",
  "error": "",
  "code": null,
  "rows": 0,
  "pages": 0,
  "page": 0,
  "value": "[ { ...contact person with Phones/Emails... }, ... ]"
}
// value - JSON array of contact persons with their phones and email addresses
Previous
Next