Pular para o conteúdo principal
POST
Create Contact

Autorizações

api_access_token
string
header
obrigatório

Token de acesso do usuário (Perfil → Token de acesso). Dá acesso conforme o papel do usuário e age em nome dele.

Parâmetros de caminho

account_id
string
obrigatório

The numeric ID of the account

Corpo

application/json
inbox_id
number
obrigatório

ID of the inbox to which the contact belongs

Exemplo:

1

name
string

name of the contact

Exemplo:

"Alice"

email
string

email of the contact

Exemplo:

"alice@acme.inc"

blocked
boolean

whether the contact is blocked or not

Exemplo:

false

phone_number
string

phone number of the contact

Exemplo:

"+123456789"

avatar
file

Send the form data with the avatar image binary or use the avatar_url

avatar_url
string

The url to a jpeg, png file for the contact avatar

Exemplo:

"https://example.com/avatar.png"

identifier
string

A unique identifier for the contact in external system

Exemplo:

"1234567890"

additional_attributes
object

An object where you can store additional attributes for contact. example {"type":"customer", "age":30}

Exemplo:
custom_attributes
object

An object where you can store custom attributes for contact. example {"type":"customer", "age":30}, this should have a valid custom attribute definition.

Exemplo:

Resposta

Success

payload
object[]
id
number

Id of the user

availability_status
enum<string>

Availability status of the user

Opções disponíveis:
online,
offline