Conversation
A customer conversation as it appears in the shared Flownally inbox.
Properties
- Name
revision- Type
- integer
- Name
waitingSince- Type
- string | null
Use this to tell whether the conversation needs a reply: when the customer started waiting in the current session. A reply from a teammate, an API key or an inbox (the business's own phone or a connected desk) ends the wait once it is sent. A chatbot's reply doesn't end it but moves its start to the customer's first message the chatbot hasn't answered, or to their latest message, so a conversation a chatbot handed over shows as waiting. Journey and campaign messages are ignored.nullwhen nobody is waiting for a reply, or when the session is closed or owned by a chatbot, journey, API key or connected inbox.- Name
actionContext- Type
- InboxActionContext
- Name
id- Type
- string
- required
- Name
channel- Type
- string
- required
- Name
externalId- Type
- string
- required
The channel's identifier for the customer in this inbox. For WhatsApp it is the business-scoped user ID when available, otherwise the phone number digits without+. It can change; useidas the stable key.- Name
inboxId- Type
- string
- Name
name- Type
- string
- Name
contactId- Type
- string
- Name
contactName- Type
- string
- Name
status- Type
- enum
- required
Status of the conversation's session.pendingwhen the customer wrote after the last teammate or chatbot message, or a chatbot handed the conversation over;openwhen a teammate or chatbot wrote last. API key, inbox, journey and campaign messages don't change it. It changes when a message is accepted, so a reply that later fails to send leavesopenwhilewaitingSincestays set; usewaitingSincefor "needs a reply".coldwhen no session has handled it yet, for example outreach nobody has answered.One of: cold, pending, open, closed- Name
activeOwner- Type
- ConversationOwner
- Name
lastMessageAt- Type
- string
- required
- Name
lastMessagePreview- Type
- string
- required
- Name
lastMessageSender- Type
- string
- required
- Name
lastMessageSenderId- Type
- string
ID of the latest message's sender, when available.- Name
ban- Type
- ConversationBan
Used by
- POSTSend message/messages
- GETGet message/messages/{id}
- GETList conversations/conversations
- GETGet conversation/conversations/{id}
- GETList conversation messages/conversations/{id}/messages
- POSTSend message in conversation/conversations/{id}/messages
- POSTMark conversation as read/conversations/{id}:markRead
- POSTClose conversation/conversations/{id}:close
- POSTBan conversation customer/conversations/{id}:ban
- POSTUnban conversation customer/conversations/{id}:unban
- POSTWebhook payloads{configured webhook URL}