Create Contact

Create a new contact.
POST
/v2/contacts
Request Body
Writeable fields
FieldTypeStatusFormatNotes
dataobject
required
--
data.user_idstring (uuid)
optional
uuiduuid of owner of the contact, defaults to the user_id of the caller
data.emailstring
required
emailEmail of the contact, Must be unique
data.phonestring (phone)
optional
phoneContacts phone number
data.companystring
optional
-Contacts company
data.first_namestring
required
-Contacts First name
data.last_namestring
optional
-Contacts Last name
data.job_titlestring
optional
-Contacts Job title
data.notesstring
optional
-Notes attached to contact
cURl example
curl -X POST 'https://lunarsend.com/api/v2/contacts' \
  -H 'x-api-key: $LUNARSEND_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{
    "email": "Joe@example.com",
    "first_name": "Joe",
    "last_name": "Doe",
    "phone": "+12025550123"
  }'
Response
[
        {
            status: "success",
            data: {
                email: "Joe@example.com",
                phone: "+12025550123",
                company: null,
                created_at: "2025-10-04T14:17:28.266864+00:00",
                id: "150c081d-5d5f-401d-abd1-727c35222054",
                user_id: "77f463d7-4107-1957-8b71-ab03acc319a2",
                owner: "John",
                last_activity: null,
                last_name: "Doe",
                job_title: null,
                notes: "",
                first_name: "Bob",
            },
        },
    ]
Response Fields
FieldTypeStatusFormatNotes
statusenum
successerror
read-only optional
--
errorstring - Error description (only present on error)
read-only optional
--
dataobject
required
--
data.idstring (uuid)
read-only optional
uuidServer-assigned UUID
data.user_idstring (uuid)
optional nullable
uuiduuid of owner of the contact, defaults to the user_id of the caller
data.emailstring
required
emailEmail of the contact, Must be unique
data.phonestring (phone)
optional nullable
phoneContacts phone number
data.companystring
optional nullable
-Contacts company
data.first_namestring
required
-Contacts First name
data.last_namestring
optional nullable
-Contacts Last name
data.job_titlestring
optional nullable
-Contacts Job title
data.ownerstring
read-only optional
-Server-assigned based on user_id, will show the linked user_id's display name
data.notesstring
optional nullable
-Notes attached to contact
data.last_activitystring (ISO 8601)
read-only optional nullable
date-timeSet by the system.
data.created_atstring (ISO 8601)
read-only optional
date-timeServer-assigned.