Updated the contacts API

Added throws declaration