add contacts api functionality