Edit Contact

Update a contact by ID (partial update).
PATCH
/v2/contacts
Request Body
Writeable fields
FieldTypeStatusFormatNotes
dataobject
required
--
data.idstring (uuid)
required
uuidServer-assigned UUID.
data.user_idstring (uuid)
optional
uuid-
data.emailstring
optional
emailMust remain unique per team.
data.phonestring (phone)
optional
phoneE.164 format recommended.
data.companystring
optional
--
data.first_namestring
optional
--
data.last_namestring
optional
--
data.job_titlestring
optional
--
data.notesstring
optional
--
cURl example
curl -X PATCH 'https://lunarsend.com/api/v2/contacts' \
  -H 'x-api-key: $LUNARSEND_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{
    "id": "150c081d-5d5f-401d-abd1-727c35222054"
    "phone": "+12025550123",
    "notes": "Updated after discovery call"
  }'
Response
[
    {
      success: true,
      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: "2025-10-04T16:11:05.000000+00:00",
        last_name: "Doe",
        job_title: null,
        notes: "Updated after discovery call",
        first_name: "Joe",
      },
    },
  ]
Response Fields
FieldTypeStatusFormatNotes
statusenum
successerror
read-only optional
--
errorstring - Error description (only present on error)
read-only optional
--
dataobject
required
--
data.idstring (uuid)
required
uuidServer-assigned UUID.
data.user_idstring (uuid)
optional nullable
uuid-
data.emailstring
optional nullable
emailMust remain unique per team.
data.phonestring (phone)
optional nullable
phoneE.164 format recommended.
data.companystring
optional nullable
--
data.first_namestring
optional nullable
--
data.last_namestring
optional nullable
--
data.job_titlestring
optional nullable
--
data.ownerstring
read-only optional nullable
-Contact owner display name (server-assigned).
data.notesstring
optional nullable
--
data.last_activitystring (ISO 8601)
read-only optional nullable
date-timeUpdated by the system.
data.created_atstring (ISO 8601)
read-only optional
date-timeServer-assigned.