Create a new contact
POST
/lists/{list_id}/contacts
Contacts
phone_number
, fax_number
and email` are all optional; however at least one of them must be specified, otherwise the API call will fail.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://rest.clicksend.com/v3/lists/428/contacts' \
--header 'Content-Type: application/json' \
--data-raw '{
"address_city": "Nevada",
"address_country": "US",
"address_line_1": "Block 2",
"address_line_2": "Cool Bldg.",
"address_postal_code": "36063",
"address_state": "Las Vegas",
"custom_1": "Custom 1",
"custom_2": "Custom 2",
"custom_3": "Custom 3",
"custom_4": "Custom 4",
"email": "ellen@diaz.com",
"fax_number": "+16783270696",
"first_name": "Ellen",
"last_name": "Diaz",
"organization_name": "Awesome Organization",
"phone_number": "+16783270696"
}'
Response Response Example
{
"data": {
"_list_name": "List6eaG4lGIc9",
"address_city": "Nevada",
"address_country": "US",
"address_line_1": "Block 2",
"address_line_2": "Cool Bldg.",
"address_postal_code": "36063",
"address_state": "Las Vegas",
"contact_id": 552802,
"custom_1": "Custom 1",
"custom_2": "Custom 2",
"custom_3": "Custom 3",
"custom_4": "Custom 4",
"date_added": "1436160803",
"email": "ellen@diaz.com",
"fax_number": "+16783270696",
"first_name": "Ellen",
"last_name": "Diaz",
"list_id": 428,
"organization_name": "Awesome Organization",
"phone_number": "+16783270696"
},
"http_code": 200,
"response_code": "SUCCESS",
"response_msg": "New contact has been created."
}
Request
Path Params
list_id
numberÂ
required
Example:
428
Body Params application/json