create_contact
Creates a LibreDesk contact from a first name and either an email address or phone number; requires contacts:write permission.
Instructions
Create Contact
Creates a contact. Either email or phone_number is required. Requires the contacts:write permission.
POST /api/v1/contacts
Tags: Contacts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | (body) Contact's email address. Must not belong to another contact. Required when `phone_number` is empty. | ||
| country | No | (body) Contact's country as an ISO 3166-1 alpha-2 code | |
| last_name | No | (body) Contact's last name | |
| first_name | Yes | (body) Contact's first name | |
| phone_number | No | (body) Contact's phone number. Required when `email` is empty. | |
| phone_number_country_code | No | (body) ISO country code of the phone number |