Skip to main content

Contacts

Information pertaining to client contacts.

Link to documentation

List all contacts

Returns a list of your contacts. The contacts are returned sorted by creation date, with the most recently created contacts appearing first.

The response contains an object with a contacts property that contains an array of up to per_page contacts. Each entry in the array is a separate contact object. If no more contacts are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your contacts.

Link to documentation

hrvst clients contacts list
OptionDescriptionRequired
--client_idOnly return contacts belonging to the client with the given ID.false
--updated_sinceOnly return contacts that have been updated since the given date and time.false
--pageThe page number to use in pagination. Use all to retrieve all pages.false
--per_pageThe number of records to return per page. Can range between 1 and 2000.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Retrieve a specific contact

Retrieves the contact with the given ID. Returns a contact object and a 200 OK response code if a valid identifier was provided.

Link to documentation

hrvst clients contacts get
OptionDescriptionRequired
--contact_idThe ID of the contact you're retrieving.true
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Create a contact

Creates a new contact object. Returns a contact object and a 201 Created response code if the call succeeded.

Link to documentation

hrvst clients contacts create
OptionDescriptionRequired
--client_idThe ID of the client associated with this contact.true
--first_nameThe first name of the contact.true
--last_nameThe last name of the contact.false
--titleThe title of the contact.false
--emailThe contact’s email address.false
--phone_officeThe contact’s office phone number.false
--phone_mobileThe contact’s mobile phone number.false
--faxThe contact’s fax number.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Update a contact

Updates the specific contact by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a contact object and a 200 OK response code if the call succeeded.

Link to documentation

hrvst clients contacts update
OptionDescriptionRequired
--contact_idThe ID of the contact you're updating.true
--client_idThe ID of the client associated with this contact.false
--first_nameThe first name of the contact.false
--last_nameThe last name of the contact.false
--titleThe title of the contact.false
--emailThe contact’s email address.false
--phone_officeThe contact’s office phone number.false
--phone_mobileThe contact’s mobile phone number.false
--faxThe contact’s fax number.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Delete a contact

Delete a contact. Returns a 200 OK response code if the call succeeded.

Link to documentation

hrvst clients contacts delete
OptionDescriptionRequired
--contact_idThe ID of the contact you're deleting.true
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse