Pular para o conteúdo principal
POST
Create New Conversation

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
source_id
string
obrigatório

Conversation source id

Exemplo:

"1234567890"

inbox_id
integer

Id of inbox in which the conversation is created
Allowed Inbox Types: Website, Phone, Api, Email

Exemplo:

1

contact_id
integer

Contact Id for which conversation is created

Exemplo:

1

additional_attributes
object

Lets you specify attributes like browser information

Exemplo:
custom_attributes
object

The object to save custom attributes for conversation, accepts custom attributes key and value

Exemplo:
status
enum<string>

Specify the conversation whether it's pending, open, closed

Opções disponíveis:
open,
resolved,
pending
Exemplo:

"open"

assignee_id
integer

Agent Id for assigning a conversation to an agent

Exemplo:

1

team_id
integer

Team Id for assigning a conversation to a team\

Exemplo:

1

snoozed_until
string<date-time>

Snoozed until date time

Exemplo:

"2030-07-21T17:32:28Z"

message
object

The initial message to be sent to the conversation

Resposta

Success

id
number

ID of the conversation

account_id
number

Account Id

inbox_id
number

ID of the inbox