v1

latestOpenAPI 3.1.02026-07-2414238909.1 KB

Create a new contact

Create a new contact or update it if it already exists.

post/contacts/my

Headers

Content-Typestring required

application/json

Authorizationstring required

Bearer {access-token}

Request body

emailstring

The e-mail address of the contact.

firstNamestring

The first name of the contact. The length must be between 1 and 60.

lastNamestring

The last name of the contact. The length must be between 1 and 60.

mobilestring required

The mobile number of the contact.

vipboolean

Indicates whether the contact is treated as vip or not. Default value false

Response

200

idstring
firstNamestring
lastNamestring
mobilestring
countrystring
vipboolean
groupsstring[]
labelsobject[]

Example response

{
  "id": "5673ee4ab7606abc252dade5",
  "firstName": "Nick",
  "lastName": "Davis",
  "mobile": "+306984512555",
  "country": "GR",
  "groups": [
    "All"
  ]
}