Get All Contacts

GET https://YOURACCOUNT.harvestapp.com/contacts

Optional Filters

You can filter by updated_since. To show only the contacts that have been updated since “2010-09-25 18:30”, pass the UTC date time value (URL encoded).

GET https://YOURACCOUNT.harvestapp.com/contacts?updated_since=2010-09-25+18%3A30

Examples

HTTP Response: 200 OK

Example request in Postman

<?xml version="1.0" encoding="UTF-8"?>
<contacts type="array">
    <contact>
        <id type="integer">2937808</id>
        <client-id type="integer">1661738</client-id>
        <first-name>Client</first-name>
        <last-name>Contact</last-name>
        <email>customer@example.com</email>
        <phone-office>800-123-4567</phone-office>
        <phone-mobile>800-123-4567</phone-mobile>
        <fax>800-123-4567</fax>
        <title>Mrs</title>
        <created-at type="dateTime">2013-08-12T15:30:14Z</created-at>
        <updated-at type="dateTime">2015-04-16T18:07:28Z</updated-at>
    </contact>
</contacts>
[
    {
        "contact": {
            "id": 2937808,
            "client_id": 1661738,
            "first_name": "Client",
            "last_name": "Contact",
            "email": "customer@example.com",
            "phone_office": "800-123-4567",
            "phone_mobile": "800-123-4567",
            "fax": "800-123-4567",
            "title": "Mrs",
            "created_at": "2013-08-12T15:30:14Z",
            "updated_at": "2015-04-16T18:07:28Z"
        }
    }
]

Get All Contacts For A Client

GET https://YOURACCOUNT.harvestapp.com/clients/{CLIENTID}/contacts

Optional Filters

You can also filter by updated_since. To show only the contacts that have been updated since “2010-09-25 18:30”, pass the UTC date time value (URL encoded).

GET https://YOURACCOUNT.harvestapp.com/clients/{CLIENTID}/contacts?updated_since=2010-09-25+18%3A30

Examples

HTTP Response: 200 OK

<?xml version="1.0" encoding="UTF-8"?>
<contacts type="array">
    <contact>
        <id type="integer">2937808</id>
        <client-id type="integer">1661738</client-id>
        <first-name>Client</first-name>
        <last-name>Contact</last-name>
        <email>customer@example.com</email>
        <phone-office>800-123-4567</phone-office>
        <phone-mobile>800-123-4567</phone-mobile>
        <fax>800-123-4567</fax>
        <title>Mrs</title>
        <created-at type="dateTime">2013-08-12T15:30:14Z</created-at>
        <updated-at type="dateTime">2015-04-16T18:07:28Z</updated-at>
    </contact>
</contacts>
[
    {
        "contact": {
            "id": 2937808,
            "client_id": 1661738,
            "first_name": "Client",
            "last_name": "Contact",
            "email": "customer@example.com",
            "phone_office": "800-123-4567",
            "phone_mobile": "800-123-4567",
            "fax": "800-123-4567",
            "title": "Mrs",
            "created_at": "2013-08-12T15:30:14Z",
            "updated_at": "2015-04-16T18:07:28Z"
        }
    }
]

Get A Client Contact

GET https://YOURACCOUNT.harvestapp.com/contacts/{CONTACTID}

Example request in Postman

HTTP Response: 200 OK

Examples

Example request in Postman

<?xml version="1.0" encoding="UTF-8"?>
<contacts type="array">
    <contact>
        <id type="integer">2937808</id>
        <client-id type="integer">1661738</client-id>
        <first-name>Client</first-name>
        <last-name>Contact</last-name>
        <email>customer@example.com</email>
        <phone-office>800-123-4567</phone-office>
        <phone-mobile>800-123-4567</phone-mobile>
        <fax>800-123-4567</fax>
        <title>Mrs</title>
        <created-at type="dateTime">2013-08-12T15:30:14Z</created-at>
        <updated-at type="dateTime">2015-04-16T18:07:28Z</updated-at>
    </contact>
</contacts>
[
    {
        "contact": {
            "id": 2937808,
            "client_id": 1661738,
            "first_name": "Client",
            "last_name": "Contact",
            "email": "customer@example.com",
            "phone_office": "800-123-4567",
            "phone_mobile": "800-123-4567",
            "fax": "800-123-4567",
            "title": "Mrs",
            "created_at": "2013-08-12T15:30:14Z",
            "updated_at": "2015-04-16T18:07:28Z"
        }
    }
]

Create A New Client Contact

POST https://YOURACCOUNT.harvestapp.com/contacts

  • Once successful, we’ll return HTTP Response: 201 Created, and Location: /contacts/{CONTACTID}
  • Note: Only Client-ID, First-Name, and Last-Name are required.

Examples

Example request in Postman

<contact>
  <client-id type="integer">1661738</client-id>
  <email>customer@example.com</email>
  <first-name>Customer</first-name>
  <last-name>Contact</last-name>
  <phone-office>800-123-4567</phone-office>
  <phone-mobile>800-123-4567</phone-mobile>
  <title>Mrs</title>
  <fax>800-123-4567</fax>
</contact>
{
    "contact": {
        "client_id": 1661738,
        "first_name": "Customer",
        "last_name": "Contact",
        "email": "customer@example.com",
        "phone_office": "800-123-4567",
        "phone_mobile": "800-123-4567",
        "fax": "800-123-4567",
        "title": "Mrs"
    }
}

Update A Client Contact

PUT https://YOURACCOUNT.harvestapp.com/contacts/{CONTACTID}

You may update contact attributes using this call. Once updated successfully, we’ll return HTTP Response: 200 OK, along with Location /contacts/{CONTACTID}.

Delete A Client Contact

DELETE https://YOURACCOUNT.harvestapp.com/contacts/{CONTACTID}

Once successful, the contact will be deleted, and we’ll return HTTP Response: 200 OK.