Message
Message record with content, delivery state, and channel delivery context.
Properties
- Name
revision- Type
- integer
- Name
id- Type
- string
- required
- Name
createdAt- Type
- string
- required
When Flownally stored the message. For inbound messages this is after Flownally received the message, not when the customer sent it. UTC with exactly six fractional digits (microseconds), for example2026-04-30T10:36:00.412305Z, so comparing the strings orders messages. Several messages can have the samecreatedAt; keep the order the API returns.- Name
updatedAt- Type
- string
- required
- Name
tenantId- Type
- string
- required
Workspace ID.- Name
conversationId- Type
- string
- required
- Name
sessionId- Type
- string
The session that handled the message. Only the customer and teammates start sessions, so a message sent while the conversation had no active session by anyone else, for example a journey, campaign, API key or connected inbox, has nosessionId. Neither does an observed message from such a time. A message never gains a session later.- Name
kind- Type
- enum
Timeline entry kind. Onlymessageentries travel over a channel.One of: message, observation, note, system- Name
senderType- Type
- enum
- required
Who caused the entry.systemmarks entries caused by Flownally itself, such as an automatic session close.externalmarks replies from a responder Flownally doesn't run that answers on the business's number, such as Meta Business Agent;senderIdnames it.One of: customer, user, journey, bot, campaign, service_account, inbox, system, external- Name
senderId- Type
- string
- required
- Name
content- Type
- object
- required
Message content, or null when the message has been deleted.- Name
deliveryStatus- Type
- enum
- required
Delivery state of the message. Statuses only move forward:pendingcan becomeunknown,sent,delivered,readorfailed.unknowncan becomesent,delivered,readorfailed.sentcan becomedelivered,readorfailed.deliveredcan becomeread.readandfailedare final.
unknownmeans the call to the channel ended without a clear result, so the message may have been delivered. Don't resend it automatically.One of: pending, sent, delivered, read, failed, unknown- Name
channelMessageId- Type
- string
The channel's own ID for the message, for example a WhatsAppwamid.- Name
clientMessageId- Type
- string
TheIdempotency-Keysent with an outbound message, so you can match the message to your request.- Name
failureCode- Type
- string
Why the delivery failed. Present only whendeliveryStatusisfailed. New values may be added, so treat an unknown value asdelivery_failed, and treat a failed message withoutfailureCodethe same way.messaging_window_closed: the customer's reply window closed.recipient_unavailable: the customer can't receive messages on this channel.recipient_opted_out: the customer opted out of these messages from the business, such as marketing.frequency_limited: the channel is limiting messages to this customer for now.reconnect_required: the channel needs to be reconnected.channel_restricted: the channel's business account is restricted.channel_payment_issue: the business account has a payment issue with Meta.contact_limit_reached: the workspace reached its active contacts limit.messaging_blocked: the workspace's plan or billing doesn't allow sending messages right now.content_unsupported: the channel doesn't support this message type or attachment.media_too_large: the attachment is too large for the channel.template_unavailable: the template is missing, paused or disabled, or its parameters don't match.private_reply_used: Instagram allows only one private reply to a comment.customer_banned: the customer is banned on this conversation.held_externally: the number is shared with another responder, such as Meta's AI agent, and Flownally doesn't control this conversation.delivery_failed: any other failure.
- Name
failureReason- Type
- string
One English sentence explainingfailureCode, present wheneverfailureCodeis. It never contains channel or provider error text. Don't parse it; branch onfailureCode.- Name
editedAt- Type
- string
- Name
deletedAt- Type
- string
- Name
reactions- Type
- array<Reaction>
- Name
contexts- Type
- array<MessageContext>