Create contact
To create a contact, you must pass either the contact's email address or user ID, and optionally any custom fields you want to associate with the contact.
[POST] /v1/contacts/create
Request
Body
user_emailstringrequiredThe email address of the contact.
user_idstringThe user ID of the contact. Note that if you are not passing user_email, this field is required.
Custom fields
You can pass any custom fields you want to associate with the contact as long as they are not the reserved user_email
or user_id
keys. These fields can be used to store additional information about the contact.
For example, first_name
and last_name
are custom fields here.
{
"user_email": "johndoe@gmail.com",
"first_name": "John",
"last_name": "Doe"
}
Example request
curl -X POST https://www.loopbear.com/api/v1/contacts/create \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_SECRET_KEY" \
-d '{
"user_email": "johndoe@gmail.com",
"first_name": "John",
"last_name": "Doe"
}'