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

Response

201
application/json

Contact created successfully.

The response is of type object.