API Reference
Log In

Internal Contacts Recipes

Introduction

In this section you will find step-by-step recipes for integrating the Internal Contacts API into your product. Below you will find recipes to:

  • Retrieve and Update Contact Information

Internal Contacts Recipe

StepCorresponding Code (JavaScript)
Get Contact Information - Use the /contacts/contactInformation endpoint to receive information for the contact. Here you can see if a contact is External or Internal, and if it is a Personal or Business account.
const options = {
 method: 'GET',
 headers: {
  Accept: 'application/json',
  Authorization: 'Bearer USER'
 }
};

fetch('https://prod.api.getborderless.com/contacts/contactInformation

', options)
 .then(response => response.json())
 .then(response => console.log(response))
 .catch(err => console.error(err));
Update Contact Information - Update Contact Information with the /contacts/updateContactInformation endpoint. The information you can update varies on account type which you can retrieve from the /contactInformation endpoint. Please refer to the page here
const options = {
 method: 'POST',
 headers: {
  Accept: 'application/json',
  'Content-Type': 'application/json',
  Authorization: 'Bearer USER'
 }
};

etch('https://prod.api.getborderless.com/externalContact

', options)
 .then(response => response.json())
 .then(response => console.log(response))
 .catch(err => console.error(err));