Refer this link to get detailed information on creating a contact using API.