Listing
/api/v1/contactsThis endpoint allows you to retrieve a paginated list of all your contacts. By default, a maximum of ten contacts are shown per page.
Looking up a contact by phone number: pass the number in the phone query parameter, digits only with no leading + (for WhatsApp contacts this is the international number, e.g. 959123456789). The match is partial, so send the full number and compare contactPhones[].phone in the response with your input to confirm an exact hit. An empty data array means no contact holds that number.
Note: when keyword is sent, all other filters are ignored.
Request
Authorization
Bearer Token
Provide your API token in the Authorization header. See Authentication to issue one.
Example:Authorization: Bearer ********************
pageintegeroptionalPage number. Defaults to 1.
Example:1
pageSizeintegeroptionalContacts per page. Defaults to 10.
Example:10
keywordstringoptionalFree-text search across name, address, notes, channel, company name, email, phone and custom-field values. Matching is case-insensitive and partial: a contact named "Kyaw Kyaw" is found by "kyaw", "Kya", "yaw" or "aw". When keyword is present, all other filters below are ignored.
Example:kyaw
phonestringoptionalFind contacts by phone number. Case-insensitive partial match against every phone stored on the contact. Send digits only, in the same form Klink stores them: WhatsApp contacts are stored as the international number without a leading "+" (e.g. 959123456789); contacts created from calls or entered manually are stored as typed. To confirm an exact match, compare contactPhones[].phone in the response with your input. Ignored if keyword is also sent.
Example:959123456789
emailstringoptionalFind contacts by email address. Case-insensitive partial match against every email stored on the contact. Ignored if keyword is also sent.
Example:someone@example.com
namestringoptionalCase-insensitive partial match on the contact name.
addressstringoptionalCase-insensitive partial match on the contact address.
notesstringoptionalCase-insensitive partial match on the contact notes. Ignored if keyword is also sent.
channelarray[string]optionalFilter by the channel the contact was created from. Repeat the parameter for multiple values (channel[]=whatsapp&channel[]=phone).
Example:["whatsapp","phone"]
companyarray[string]optionalFilter by company id (UUID). Repeat the parameter for multiple values.
tagsarray[string]optionalFilter by tag id (UUID). Repeat the parameter for multiple values. Ignored if keyword is also sent.
selectedDatestringoptionalRestrict to contacts created on this date. Interpreted in the Asia/Rangoon (UTC+6:30) timezone.
Responses
200OK
OK
totalintegerrequiredpageintegerrequiredpageSizeintegerrequiredlastPageintegerrequireddataarray[object]requiredChild attributes
idstringoptionalnamestringoptionaladdressstringoptionalchannelstringoptionalnotesnulloptionalsocialProfileUrlnulloptionaltagsarray[object]optionalChild attributes
idstringoptionalnamestringoptional
companyobjectoptionalChild attributes
idstringrequirednamestringrequiredphonenullrequiredaddressnullrequiredindustrynullrequired
contactEmailsarray[object]optionalChild attributes
emailstringoptionalisPrimarybooleanoptional
contactPhonesarray[object]optionalChild attributes
phonestringoptionalisPrimarybooleanoptional
customFieldsarray[object]optionalChild attributes
system_namestringoptionaldisplay_namestringoptionaltypestringoptionalvaluestringoptional