Skip to main content

Contacts and groups

Contacts are the people you message. Groups are named lists of contacts, used as audiences for campaigns. Both belong to a project.

Plan: LUMA Elevate or Enterprise. Credits: free.

Contacts​

Create a contact​

POST /v1/project/{projectId}/contacts

curl --request POST 'https://api.itechintl.com/v1/project/PROJECT_ID/contacts?groupNames=VIP' \
--header 'Authorization: Bearer lm_live_YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"first_name": "Customer",
"last_name": "One",
"country_code": "971",
"national_number": "500000001",
"email": "customer1@example.com",
"city": "Dubai",
"country": "AE"
}'
FieldDescription
first_name, last_nameName
country_code, national_numberPhone, split (for example 971 and 500000001). Or send mobile_number with the full number.
email, address, city, state, zipcode, countryOptional details
registration_dateOptional, when the contact joined you
Query groupNamesOptional, comma-separated groups to add the contact to (created if missing)

Import many contacts​

POST /v1/project/{projectId}/contacts/bulk with a JSON array of contacts (same fields).

Query parameterDefaultDescription
groupNamesGroups to add all imported contacts to
updateExistingtrueUpdate contacts that already exist (same phone)
allowMergefalseMerge details into existing contacts

List and search contacts​

GET /v1/project/{projectId}/contacts

Query parameterDefaultDescription
pageNumber, pageSize1, 20Paging
searchTermExact name, email or phone (personal data is stored encrypted, so search is exact, not partial)
groupIdOnly members of one group
isSubscribedtrue or false
countryCountry filter
createdFrom, createdToCreation date range (ISO 8601)
sortColumn, sortOrderId, DESCSorting

Answer:

{
"message": "Success",
"data": {
"items": [
{ "id": 101, "project_id": 12, "first_name": "Customer", "last_name": "One", "country_code": "971",
"national_number": "500000001", "mobile_number": "971500000001", "email": "customer1@example.com",
"country": "AE", "city": "Dubai", "source": "api", "is_subscribed": true, "created_at": "2026-11-20T09:00:00Z",
"custom_fields": {} }
],
"total_count": 1, "page_number": 1, "page_size": 20
}
}

Update a contact​

PUT /v1/project/{projectId}/contacts/{contactId} with the fields to change.

Delete contacts​

DELETE /v1/project/{projectId}/contacts with { "contact_ids": [ 101, 102 ] }.

Groups​

CallWhat it does
POST /v1/project/{projectId}/groups with { "group_name": "VIP" }Create a group
GET /v1/project/{projectId}/groups?pageNumber=1&pageSize=20&searchTerm=List groups
PUT /v1/project/{projectId}/groups/{groupId}Rename a group
DELETE /v1/project/{projectId}/groups/{groupId}Delete a group (contacts stay)
POST /v1/project/{projectId}/groups/{groupId}/members with { "contact_ids": [ 101, 102 ] }Add members
DELETE /v1/project/{projectId}/groups/{groupId}/members with { "contact_ids": [ 101 ] }Remove members
GET /v1/project/{projectId}/groups/{groupId}/membersList members

The groups list answers data.items[] with id, group_name, member_count and created_at, plus total_count, page_number and page_size.

Privacy​

Contact names, emails and phone numbers are stored encrypted. Only import people who agreed to be contacted, and delete contacts you no longer need.