For the complete documentation index, see llms.txt. This page is also available as Markdown.

Contacts

Contacts methods allows you to manage contacts that are identified by an unique externalId. Using externalId you can add, update, delete contacts, create groups and more.

List contacts

get

Use this method to get a list of all existing contacts.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Query parameters
offsetintegerOptional

The number of items omitted from the beginning of the list. Default ‘0’.

Default: 0
limitinteger · max: 1000Optional

The maximum number of items returned by request. Default ‘100’. Maximum ‘1000’.

Default: 100
groupintegerOptional

Get contacts from specified group id

idintegerOptional

Search for contact using contact id

externalIdstringOptional

The unique ID of the object you are looking for.

phoneNumberstringOptional

Search for contact using phone number

emailstringOptional

Search for contact using email address

inArchiveboolOptional

Search for archived contacts

archiveDateTostringOptional

Date in YYYY-MM-DD hh:mm:ii format to search archived contacts

Example: 2025-01-03 00:00:00
archiveDateFromstringOptional

Date in YYYY-MM-DD hh:mm:ii format to search archived contacts

Example: 2025-01-01 00:00:00
isUnsubscribeSmsboolOptional

Search for unsubscribe contacts sms

isUnsubscribeEmailboolOptional

Search for unsubscribe contacts email

isUnsubscribePushboolOptional

Search for unsubscribe contacts push

Responses
200

Request was successfully processed

application/json
get
/v2.1/contact

Add contact

post

Use this method to create a new contact object.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Bodyall of[]

One of the following parameters is required when adding contact: email, phoneNumber

addToGroupinteger[]Optional

The list which tells us to what groups we should add client,note that this field * will be available only when addingcontact.

companyNamestring · max: 150Optional

The company name.

Example: Example company
createdAtstring · max: 150Optional

The date of creation contact.

Example: 2019-02-01 20:12:12Pattern: ^\\d{4}-\\d{2}-\\d{2}\\s*(?:\\d{2}:\\d{2}(?::\\d{2})?)?$
emailstring · max: 150Optional

The valid email address.

Example: test@test.pl
externalIdstring · max: 150Optional

The unique identifier of the contact.

Example: XXX-XXX-XXX
firstNamestring · max: 150Optional

Contact’s name.

Example: First name
idstring · max: 150Read-onlyOptional

Contact id

Example: 1
lastNamestring · max: 150Optional

Contact’s last name.

Example: Last name
phoneNumberstring · max: 15Optional

Contact’s phone number.

Example: 123123123Pattern: /^\+?[0-9]+$/
inArchiveboolRead-onlyOptional

Is contact archivized, field added in version v1.1

Example: false
Responses
200

Request was successfully processed

application/json
post
/v2.1/contact

Update contact

put

Use this method to update details of certain contact.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Bodyone of[]
or
Responses
200

Request was successfully processed

application/json
put
/v2.1/contact

Delete contact

delete

Use this method to delete contact.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Body

The id of a object

idinteger[]Required

The id of a object

Example: 1
Responses
200

Request was successfully processed

application/json
delete
/v2.1/contact

Resubscribe contact

post

Use this method to resubscribe a contact from a single channel or all of them at once.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Path parameters
channelstring · enumRequired

Set in url.

Possible values:
Body

The id of a object

idinteger[]Required

The id of a object

Example: 1
Responses
200

Request was successfully processed

application/json
post
/v2.1/contact/resubscribe/{channel}

Unsubscribe contact

post

Use this method to unsubscribe a contact from a single channel or all of them at once.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Path parameters
channelstring · enumRequired

Set in url.

Possible values:
Body

The id of a object

idinteger[]Required

The id of a object

Example: 1
Responses
200

Request was successfully processed

application/json
post
/v2.1/contact/unsubscribe/{channel}

List groups for contact

get

Use this method to list all groups that the contact belongs to.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Path parameters
idstringRequired

The id of the contact.

Responses
200

Request was successfully processed

application/json
get
/v2.1/contact/{id}/group

Add group to contact

post

Use this method to add contact to an existing group.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Path parameters
idintegerRequired

The id of the contact.

Body

The id of a object

idinteger[]Required

The id of a object

Example: 1
Responses
200

Request was successfully processed

application/json
post
/v2.1/contact/{id}/group

Delete groups from contact

delete

Action allows to delete groups from contact

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Path parameters
idintegerRequired

The id of the contact.

Body

The id of a object

idinteger[]Required

The id of a object

Example: 1
Responses
200

Request was successfully processed

application/json
delete
/v2.1/contact/{id}/group

List contact's additional fields

get

Use this method to list all additional fields added as externalData in ‘add contact’ method.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Query parameters
offsetintegerOptional

The number of items omitted from the beginning of the list. Default ‘0’.

Default: 0
limitinteger · max: 1000Optional

The maximum number of items returned by request. Default ‘100’. Maximum ‘1000’.

Default: 100
Responses
200

Request was successfully processed

application/json
get
/v2.1/contact/field

List segments

get

Use this method to list all segments created in your account panel.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Query parameters
offsetintegerOptional

The number of items omitted from the beginning of the list. Default ‘0’.

Default: 0
limitinteger · max: 1000Optional

The maximum number of items returned by request. Default ‘100’. Maximum ‘1000’.

Default: 100
Responses
200

Request was successfully processed

application/json
get
/v2.1/contact/segment

Get single segment

get

Use this method to get count of all contacts in the segment.

Authorizations
AuthorizationstringRequired
Application-KeystringRequired
Path parameters
idstringRequired
Responses
200

Request was successfully processed

application/json
get
/v2.1/contact/segment/{id}

Last updated