Skip to main content
DELETE
Excluir mensagem enviada

Authorizations

Authorization
string
header
required

Chave de integração com prefixo wegly_, enviada em Authorization: Bearer . Não é JWT. A chave deve estar ativa, não excluída e dentro da validade. Com allowed_domain, Origin (ou Referer na ausência de Origin) precisa informar o hostname permitido. A empresa e as permissões são obtidas pela chave.

Path Parameters

id
string<uuid>
required

UUID da conversa.

messageId
string<uuid>
required

UUID local da mensagem (não o WAMID).

Response

Operação realizada.

id
string<uuid>
required
type
enum<string>
required

Tipos mais comuns. Mensagens recebidas guardam o tipo informado pelo provedor, de modo que outros valores podem aparecer.

Available options:
text,
reaction,
image,
video,
audio,
document,
template,
interactive,
location,
call,
contacts,
unsupported,
sticker,
button
origin
enum<string>
required
Available options:
INBOUND,
API_OUTBOUND,
MOBILE_APP_ECHO,
SYSTEM
from_me
boolean
required
sent_via
enum<string>
required
Available options:
CONTACT,
API,
MOBILE_DEVICE,
SYSTEM
status
enum<string>
required

Status persistido da mensagem; delivery_unknown indica que o resultado do envio ainda não foi confirmado.

Available options:
processing,
sent,
delivered,
read,
failed,
received,
deleted,
delivery_unknown
body_text
string | null
required
meta_timestamp
string<date-time>
required
transcription
string | null
required
created_at
string<date-time>
required
media
object | null
required
call
object | null
required
content_payload
object | null
reactions
object[]
is_history
boolean
history_phase
integer | null
history_chunk_order
integer | null
history_progress
integer | null
is_media_placeholder
boolean
agent
object | null
user
object | null
is_forwarded
boolean
error_code
integer | null
error_message
string | null
quoted_message
object
whatsapp_ai_agent_id
string<uuid> | null

Agente de IA que enviou a mensagem; null para pessoas e automações.