Pular para o conteúdo principal
POST

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

conversation_id
string
obrigatório

The numeric ID of the conversation

message_id
string
obrigatório

The numeric ID of the message

Corpo

application/json
hidden
boolean
padrão:false

true hides the comment from the public, false shows it again. Omitting it shows the comment.

Exemplo:

true

Resposta

The comment message, updated.

id
number

The ID of the message

content
string

The text content of the message

account_id
number

The ID of the account

inbox_id
number

The ID of the inbox

conversation_id
number

The ID of the conversation

message_type
enum<integer>

The type of the message

Opções disponíveis:
0,
1,
2,
3
created_at
integer

The time at which message was created

updated_at

The time at which message was updated

private
boolean

The flags which shows whether the message is private or not

status
enum<string> | null

The status of the message

Opções disponíveis:
sent,
delivered,
read,
failed,
null
source_id
string | null

The source ID of the message

content_type
enum<string> | null

The type of the template message

Opções disponíveis:
text,
input_text,
input_textarea,
input_email,
input_select,
cards,
form,
article,
incoming_email,
input_csat,
integrations,
sticker,
voice_call,
null
content_attributes
object

The content attributes for each content_type

sender_type
enum<string> | null

The type of the sender

Opções disponíveis:
Contact,
User,
AgentBot,
Captain::Assistant,
null
sender_id
number | null

The ID of the sender

external_source_ids
object

The external source IDs of the message

additional_attributes
object

The additional attributes of the message

processed_message_content
string | null

The processed message content

sentiment
object | null

The sentiment of the message

conversation
object | null

The conversation object

attachment
object | null

The file object attached to the image

sender
object

User/Agent/AgentBot object

sender_category
enum<string>

Who wrote the message: contact (incoming), human (an agent, or a WhatsApp message sent from the phone), bot (an agent bot, Captain, a Flow Builder flow, or no sender), rule (an automation rule), campaign or system (an activity)

Opções disponíveis:
contact,
human,
bot,
rule,
campaign,
system
campaign
object

The campaign that sent the message, only on messages sent by a campaign