POST
/
webhook
/
contact
/
create
cURL
curl --request POST \
  --url https://webhook.cocoonmail.com/webhook/contact/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "name": "<string>",
  "first_name": "<string>",
  "middle_name": "<string>",
  "last_name": "<string>",
  "attributes": {},
  "lists": [
    "<string>"
  ],
  "tags": [
    "<string>"
  ],
  "gender": "<string>",
  "age": 123,
  "Address1": "<string>",
  "Address2": "<string>",
  "city": "<string>",
  "state": "<string>",
  "country": "<string>",
  "postal_code": "<string>",
  "designation": "<string>",
  "company": "<string>",
  "industry": "<string>",
  "description": "<string>",
  "anniversary_date": "<string>"
}'
{
    "success":true, 
    "id":"f208364f-0fb2-4518-a55d-7270b557bfe4"
}

Create contact

Use this endpoint to create a new contact

Response fields

PropertyDescription
400Bad request
401Request authentication
403Too many bad requests. Temparory block
406Missing accept header. For example : Accept: application/json
429Too many requests/ Rate limit exceeded
500Internal server error
{
    "success":true, 
    "id":"f208364f-0fb2-4518-a55d-7270b557bfe4"
}

Authorizations

Authorization
string
header
required

Use your API key with the 'Bearer ' prefix

Body

application/json
email
string<email>
required

Email address of the contact.

name
string

Full name of the contact.

first_name
string

First name of the contact.

middle_name
string

Middle name of the contact.

last_name
string

Last name of the contact.

attributes
object

Additional attributes of the contact.

lists
string[]

Names of lists associated with the user.

tags
string[]

Tags associated with the user.

gender
string

Gender of the contact.

age
number

Age of the contact.

Address1
string

Enter home address.

Address2
string

Enter work address.

city
string

Enter current city.

state
string

Enter state.

country
string

Enter country.

postal_code
string

Enter postal code.

designation
string

Enter designation of the contact.

company
string

Enter company name.

industry
string

Provide industry.

description
string

Enter description.

anniversary_date
string

Enter anniversary date.

Response

Contact created successfully.

success
boolean
id
string

Newly created contact uuid