Contacts

A group of methods for working with the address book and contacts.

MethodDescription
createContactListContactsPOST /contact_lists/listId/contacts
Creates one or more contacts in the contact list.

Requires authorization and access right contacts_manage.

createContactListPropertyPOST /contact_lists/listId/properties
Creates an additional field for the contact list.

Requires authorization and access right contacts_manage.

createContactListSegmentPOST /contact_lists/listId/segments
Creates a new segment for the contact list.

Requires authorization and access right contacts_manage.

createContactListPOST /contact_lists
Creates a contact list.

Requires authorization and access right contacts_manage.

deleteContactListByIdDELETE /contact_lists/listId
Deletes a contact list by its ID.

Requires authorization and access right contacts_manage.

deleteContactListContactByIdDELETE /contact_lists/listId/contacts/contactId
Deletes a contact in the contact list by its ID.

Requires authorization and access right contacts_manage.

deleteContactListContactsDELETE /contact_lists/listId/contacts
Deletes contacts in the contact list.

This method supports the semantics of search queries.

Requires authorization and access right contacts_manage.

deleteContactListPropertyByIdDELETE /contact_lists/listId/properties/propertyId
Deletes a field from the contact list by its ID.

Requires authorization and access right contacts_manage.

deleteContactListSegmentByIdDELETE /contact_lists/listId/segments/segmentId
Deletes a segment from the contact list by its ID.

Requires authorization and access right contacts_manage.

deleteContactListsDELETE /contact_lists
Deletes contact lists.

This method supports the semantics of search queries.

Requires authorization and access right contacts_manage.

deleteContactListsV1DELETE /contact_lists/v1
Deletes contact lists in legacy format.

This method supports the semantics of search queries.

Requires authorization and access right contacts_manage.

deleteContactListV1ByIdDELETE /contact_lists/v1/listId
Deletes a legacy contact list by ID.

Requires authorization and access right contacts_manage.

getContactListByIdGET /contact_lists/listId
Returns a contact list by its ID.

Requires authorization and access right contacts_view.

getContactListContactByIdGET /contact_lists/listId/contacts/contactId
Returns a contact in the contact list by its ID.

Requires authorization and access right contacts_view.

getContactListPropertiesGET /contact_lists/listId/properties
Returns the fields in the contact list.

Requires authorization and access right contacts_view.

getContactListPropertyByIdGET /contact_lists/listId/properties/propertyId
Returns a field in the contact list by its ID.

Requires authorization and access right contacts_view.

getContactListSegmentByIdGET /contact_lists/listId/segments/segmentId
Returns a segment in the contact list by its ID.

Requires authorization and access right contacts_view.

getContactListSegmentsGET /contact_lists/listId/segments
Returns the segments in the contact list.

Requires authorization and access right contacts_view.

getContactListV1ByIdGET /contact_lists/v1/listId
Returns contact lists in legacy format.

Requires authorization and access right contacts_view.

queryContactListContactsCountHEAD /contact_lists/listId/contacts
Returns the number of contacts from the contact list that match the query.

This method supports the semantics of search queries.

Requires authorization and access right contacts_view.

queryContactListContactsGET /contact_lists/listId/contacts
Returns the contacts and contact list that match the query.

This method supports the semantics of search queries.

Requires authorization and access right contacts_view.

queryContactListsCountHEAD /contact_lists
Returns the number of contact lists that match the query.

This method supports the semantics of search queries.

Requires authorization and access right contacts_view.

queryContactListsCountV1HEAD /contact_lists/v1
Returns the number of legacy contact lists that match the query.

This method supports the semantics of search queries.

Requires authorization and access right contacts_view.

queryContactListsGET /contact_lists
Returns lists of contacts that match the query.

This method supports the semantics of search queries.

Requires authorization and access right contacts_view.

queryContactListsV1GET /contact_lists/v1
Returns legacy contact lists that match the query.

This method supports the semantics of search queries.

Requires authorization and access right contacts_view.

updateContactListContactByIdPATCH /contact_lists/listId/contacts/contactId
Edits a contact in the contact list by its ID.

Requires authorization and access right contacts_manage.

updateContactListContactsPATCH /contact_lists/listId/contacts
Edits contacts in the contact list.

This method supports partial updating, only those fields of the object that you specify in the request body will be changed.

This method supports the semantics of search queries.

Requires authorization and access right contacts_manage.

updateContactListPropertyByIdPATCH /contact_lists/listId/properties/propertyId
Edits the contact list field by its ID.

This method supports partial updating, only those fields of the object that you specify in the request body will be changed.

Requires authorization and access right contacts_manage.

updateContactListSegmentByIdPATCH /contact_lists/listId/segments/segmentId
Edits a contact list segment by its ID.

Requires authorization and access right contacts_manage.

updateContactListPATCH /contact_lists/listId
Edits the contact list.

This method supports partial updating, only those fields of the object that you specify in the request body will be changed.

Requires authorization and access right contacts_manage.

upgradeContactListV1ByIdPOST /contact_lists/v1/listId
Upgrades a contact list from a legacy format by its ID to the current format.

Requires authorization and access right contacts_manage.