Messages

Send a direct message

Instagram and Facebook send text. WhatsApp sends an approved template, or free text (up to 4,096 characters) inside the 24-hour window after the customer's last message, never both. A reply outside a platform's 24-hour window is 409 window_closed.

post/api/v1/messages

Request

  • Base URL
    https://app.tryadeli.com
  • Auth
    HTTP bearer

Request body

OR
OR
OR

Response

Success

idstring required
providerIdstring nullable required
platform'instagram' | 'facebook' | 'whatsapp' required
accountIdstring uuid required
profileIdstring uuid required
direction'inbound' | 'outbound' required
type'text' | 'template' | 'unsupported' required
recipientstring nullable required
senderstring nullable required
bodystring required
statusstring required
occurredAtstring date-time required
createdAtstring date-time required
conversationKeystring nullable

<platform>:<counterparty id> (an IGSID, a PSID, or a WhatsApp wa_id in digits), scoped to accountId: with accountId it identifies one conversation. Pass it to listMessages to read that conversation. Null when the counterparty is unknown; optional so clients built before it existed still type-check.

Changes

No recorded changes to this operation across all 1 revision of this API.