How to add, edit and delete contact properties.
These are the default properties for every contact on Cocoonmail. They cannot be deleted.
Contact Property | Description | Email Tag* | API Name** |
---|---|---|---|
hi@example.co | {email} | email | |
First Name | Chris | {firstName} | firstName |
Last Name | Frantz | {lastName} | lastName |
Notes | Favorite color is blue. | {notes} | N/A |
Source | API | {source} | source |
Subscribed | true | N/A | subscribed |
User Group | Investors | {userGroup} | userGroup |
User Id | ask523236 | {userId} | userId |
“Source” describes where the contact originated from.
By default, this value will be “Form” for contacts added via a form, or “API” for contacts added via the API. You can specifiy custom “Source” values when adding contacts via forms and the API.
The “Subscribed” value determines whether a contact is able to receive Cocoonmail and campaigns. Unsubscribed contacts will receive all transactional emails.
Contacts can unsubscribe from your emails using an Unsubscribe link automatically added to your campaigns and Cocoonmail.
Some important notes:
“User Group” is a useful optional property that you can use to segment contacts. It is a free text field that allows you to easily divide contacts into groups like “Users”, “VIPs”, “Investors” or “Customers”.
Contacts can currently only have one user group value.
“User Id” is a unique external ID you can assign to each contact in your audience. For example, this could be a customer ID from your store or a user ID from your SaaS.
This field is optional but is very useful if you are working with our API. For example, you need a user ID to be able to change a contact’s email address.
Custom contact properties are additional fields that you can create to store information about contacts.
Custom contact properties can be one of four different types:
When sending dates with the API or via one of our integrations, you can use either a Unix timestamp (in milliseconds) or an ECMA-262 date-time string
Timestamps must be in milliseconds and can be sent as either an integer or string.
1705486871000
(if the Unix timestamp is 1705486871
)
Supported date formats are shown below. These must be sent as a string. Adding a time offset at the end (e.g. +02:00
or -07:00
) is optional (if omitted, the date will default to UTC).
YYYY-MM-DDTHH:MM:SS.sss
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DDTHH:MM
YYYY-MM-DD HH:MM:SS.sss
YYYY-MM-DD HH:MM:SS
YYYY-MM-DD HH:MM
YYYY-MM-DD
Note that Cocoonmail does not allow the creation of properties with the following reserved names:
id
listId
softDeleteAt
teamId
updatedAt
One way to create custom contact properties is to go to your Audience and click on any of the column headers, then select Add property.
A third way is to go your API Settings page, scroll down to the Contact properties section and click Add property.
In each of these cases, you’ll see a form asking you for a property name and type.
You can delete properties on the Audience page by clicking on column headers.
You can also delete properties from your API Settings page by clicking the trashcan icons.
It is not possible to delete default contact properties.
If you receive a “Property in use” warning modal while deleting a contact property, there are a few things you can check before you’re able to delete the property.
How to add, edit and delete contact properties.
These are the default properties for every contact on Cocoonmail. They cannot be deleted.
Contact Property | Description | Email Tag* | API Name** |
---|---|---|---|
hi@example.co | {email} | email | |
First Name | Chris | {firstName} | firstName |
Last Name | Frantz | {lastName} | lastName |
Notes | Favorite color is blue. | {notes} | N/A |
Source | API | {source} | source |
Subscribed | true | N/A | subscribed |
User Group | Investors | {userGroup} | userGroup |
User Id | ask523236 | {userId} | userId |
“Source” describes where the contact originated from.
By default, this value will be “Form” for contacts added via a form, or “API” for contacts added via the API. You can specifiy custom “Source” values when adding contacts via forms and the API.
The “Subscribed” value determines whether a contact is able to receive Cocoonmail and campaigns. Unsubscribed contacts will receive all transactional emails.
Contacts can unsubscribe from your emails using an Unsubscribe link automatically added to your campaigns and Cocoonmail.
Some important notes:
“User Group” is a useful optional property that you can use to segment contacts. It is a free text field that allows you to easily divide contacts into groups like “Users”, “VIPs”, “Investors” or “Customers”.
Contacts can currently only have one user group value.
“User Id” is a unique external ID you can assign to each contact in your audience. For example, this could be a customer ID from your store or a user ID from your SaaS.
This field is optional but is very useful if you are working with our API. For example, you need a user ID to be able to change a contact’s email address.
Custom contact properties are additional fields that you can create to store information about contacts.
Custom contact properties can be one of four different types:
When sending dates with the API or via one of our integrations, you can use either a Unix timestamp (in milliseconds) or an ECMA-262 date-time string
Timestamps must be in milliseconds and can be sent as either an integer or string.
1705486871000
(if the Unix timestamp is 1705486871
)
Supported date formats are shown below. These must be sent as a string. Adding a time offset at the end (e.g. +02:00
or -07:00
) is optional (if omitted, the date will default to UTC).
YYYY-MM-DDTHH:MM:SS.sss
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DDTHH:MM
YYYY-MM-DD HH:MM:SS.sss
YYYY-MM-DD HH:MM:SS
YYYY-MM-DD HH:MM
YYYY-MM-DD
Note that Cocoonmail does not allow the creation of properties with the following reserved names:
id
listId
softDeleteAt
teamId
updatedAt
One way to create custom contact properties is to go to your Audience and click on any of the column headers, then select Add property.
A third way is to go your API Settings page, scroll down to the Contact properties section and click Add property.
In each of these cases, you’ll see a form asking you for a property name and type.
You can delete properties on the Audience page by clicking on column headers.
You can also delete properties from your API Settings page by clicking the trashcan icons.
It is not possible to delete default contact properties.
If you receive a “Property in use” warning modal while deleting a contact property, there are a few things you can check before you’re able to delete the property.