Messaging
Send, receive, and follow customer conversations across connected channels. For outbound messaging, choose an inbox, optionally upload media, send a message, then poll the message resource for delivery state when you are not using webhooks. 14 endpoints in this resource.
Send flow
- Choose the sender inbox with GET /inboxes.
- Upload media first with POST /media/uploads when sending a file.
- Send POST /messages with a recipient and one concrete content variant.
- Poll GET /messages/{id} or conversation messages to follow delivery.
Send message
https://api.flownally.com/v1/messagesSends a message to the customer that recipient points to: an existing conversation, a
contact or a phone number. Choose the sending inbox with GET /inboxes and pass it as
inboxId; it's required for contact and phone recipients. To send a WhatsApp template,
find it with GET /inboxes/{id}/whatsapp/templates; to send a file, upload it first with
POST /media/uploads.The response is 202 Accepted. Poll GET /messages/{id} or
GET /conversations/{id}/messages to follow delivery state when you are not using
webhooks.A send to a conversation whose customer is banned fails with 422
messaging_customer_banned; a send by phone number or channel ID may instead be accepted
and fail later with failureCode customer_banned.
Authorization
- owner
- admin
- agent
Send an outbound message. Conversation and channel recipients require message:create in conversation scope; contact recipients also resolve through contact:read.
Parameters
- Name
Idempotency-Key- Type
- header · string
Client-generated key that makes a message send safe to retry. Use a new unique key for every message; without a key, a retried request can send the message twice.- Keys are scoped to the workspace, not to an API key or a conversation.
- Retrying with the same key and the same request from the same service account or user
returns the original message (same
id) instead of sending it again. - Reusing a key for a different request or sender within 24 hours returns
409with codemessaging_messaging_idempotency_conflict. - After 24 hours, a key whose message was accepted still returns that message and never sends it again, even if the new request has different content.
- After
503with codemessaging_messaging_send_result_pending, retry with the same key.
Body parameters
Send a application/json body. The body is required.
- Name
recipient- Type
- MessageRecipient
- required
- Name
content- Type
- OutboundMessageContent
- required
- Name
expectedContext- Type
- InboxActionContext
- Name
inboxId- Type
- string
Sending inbox ID. Required forcontactandphonerecipients. For aconversationrecipient it's optional and must match the conversation'sinboxId.- Name
contexts- Type
- array<SendMessageContext>
The message this one replies to, in the recipient's conversation. Not supported forphonerecipients, or forcontactrecipients without a conversation in the inbox.
Responses
- 202Message accepted for deliveryapplication/json
- defaultErrorapplication/json
Related schemas
- ProblemDetails
- FieldViolation
- Window
- CreateMessageRequest
- InboxActionContext
- MessageRecipient
- ConversationRecipient
- ContactRecipient
- PhoneRecipient
- OutboundMessageContent
- TextMessageContent
- TextContent
- MediaMessageContent
- Content
- TemplateMessageContent
- WhatsAppTemplateContent
- TemplateComponent
- TemplateParameter
- Parameter
- CurrencyParameter
- DateTimeParameter
- RichMessageContent
- RichMessage
- Card
- CardHeader
- CardBody
- CardFooter
- CardAction
- WhatsAppFlowAction
- WhatsAppMessageContent
- WhatsAppContent
- WhatsAppRequestContactInfoContent
- SendMessageContext
- MessageContextMessageReference
- SendMessageResponse
- Message
- MessageContent
- FormResponseMessageContent
- FormResponseContent
- LocationMessageContent
- LocationContent
- InteractiveReplyMessageContent
- InteractiveReplyContent
- SystemMessageContent
- SystemContent
- Reaction
- MessageContext
- MessageContextReference
- MessageContextResourceReference
- MessageContextUnavailableReference
- ExternalResourceSnapshot
- Conversation
- ConversationOwner
- ConversationBan
- ConversationBanActor
curl -X POST "https://api.flownally.com/v1/messages" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"inboxId": "ibx_d7pi2efp0k7nba4e1mt0",
"recipient": {
"type": "phone",
"phoneNumber": "+48123456789"
},
"content": {
"type": "text",
"text": {
"body": "Hi Anna, your order is ready for pickup."
}
}
}'{
"message": {
"id": "msg_d7pj3rljs4umccbo6tdg",
"createdAt": "2026-04-30T10:36:00.412305Z",
"updatedAt": "2026-04-30T10:36:00Z",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"conversationId": "cnv_d7pigoip4tfcdebp5mlg",
"senderType": "user",
"senderId": "usr_d7phosq4g7mv2l5b9l40",
"content": {
"type": "template",
"template": {
"name": "order_ready",
"language": "en"
}
},
"deliveryStatus": "pending"
},
"conversation": {
"id": "cnv_d7pigoip4tfcdebp5mlg",
"channel": "whatsapp",
"externalId": "US.13491208655302741918",
"inboxId": "ibx_d7pi2efp0k7nba4e1mt0",
"name": "Anna Kowalska",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"contactName": "Anna Kowalska",
"status": "open",
"lastMessageAt": "2026-04-30T10:36:00Z",
"lastMessagePreview": "order_ready",
"lastMessageSender": "user"
}
}Get message
https://api.flownally.com/v1/messages/{id}Returns a message with its delivery state and the conversation it belongs to. Use it to poll delivery state when you are not using webhooks.
Open as its own pageAuthorization
- conversation:read
- owner
- admin
- agent
Read a message through its conversation context.
Parameters
- Name
id- Type
- path · string
- required
Message ID.
Responses
- 200Messageapplication/json
- defaultErrorapplication/json
Related schemas
- ProblemDetails
- FieldViolation
- Window
- InboxActionContext
- TextMessageContent
- TextContent
- MediaMessageContent
- Content
- TemplateMessageContent
- WhatsAppTemplateContent
- TemplateComponent
- TemplateParameter
- Parameter
- CurrencyParameter
- DateTimeParameter
- RichMessageContent
- RichMessage
- Card
- CardHeader
- CardBody
- CardFooter
- CardAction
- WhatsAppFlowAction
- WhatsAppMessageContent
- WhatsAppContent
- WhatsAppRequestContactInfoContent
- MessageContextMessageReference
- Message
- MessageContent
- FormResponseMessageContent
- FormResponseContent
- LocationMessageContent
- LocationContent
- InteractiveReplyMessageContent
- InteractiveReplyContent
- SystemMessageContent
- SystemContent
- Reaction
- MessageContext
- MessageContextReference
- MessageContextResourceReference
- MessageContextUnavailableReference
- ExternalResourceSnapshot
- Conversation
- ConversationOwner
- ConversationBan
- ConversationBanActor
- GetMessageResponse
curl "https://api.flownally.com/v1/messages/$MESSAGE_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"message": {
"id": "msg_d7pj3rljs4umccbo6tdg",
"createdAt": "2026-04-30T10:36:00.412305Z",
"updatedAt": "2026-04-30T10:36:02Z",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"conversationId": "cnv_d7pigoip4tfcdebp5mlg",
"senderType": "user",
"senderId": "usr_d7phosq4g7mv2l5b9l40",
"content": {
"type": "text",
"text": {
"body": "Hi Anna, your order is ready for pickup."
}
},
"deliveryStatus": "delivered",
"channelMessageId": "wamid.HBgLMjQxMjM0NTY3ODkVAgARGBI",
"clientMessageId": "reply-4827-1"
},
"conversation": {
"id": "cnv_d7pigoip4tfcdebp5mlg",
"channel": "whatsapp",
"externalId": "US.13491208655302741918",
"inboxId": "ibx_d7pi2efp0k7nba4e1mt0",
"name": "Anna Kowalska",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"contactName": "Anna Kowalska",
"status": "open",
"activeOwner": {
"type": "user",
"id": "usr_d7phtlmtf1g6fu9aj6jg"
},
"lastMessageAt": "2026-04-30T10:35:00Z",
"lastMessagePreview": "Thanks, I will check it now.",
"lastMessageSender": "customer"
}
}Get message media
https://api.flownally.com/v1/media/{mediaId}Returns a short-lived download URL for a media file stored by Flownally. Use the
content.media.mediaId of a message or webhook payload, or the mediaId of an upload.Storing inbound media doesn't delay the message, and no message.updated event is sent
when the file is ready. The media metadata on the message isn't updated either: once the
file is ready, use the mimeType, filename and fileSize in this response.A response with ready: false has no url:
- Without
failureCode, Flownally is still storing the file. Poll again with backoff. - With
failureCode, the media failed permanently and will never become available. Stop polling.
Authorization
- conversation:read
- owner
- admin
- agent
Get an authorized download URL for message media.
Parameters
- Name
mediaId- Type
- path · string
- required
Media ID fromcontent.media.mediaIdor an upload response.
Responses
- 200Media download URL, when the object is ready.application/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/media/$MEDIA_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"ready": true,
"failureCode": "media_unavailable",
"url": "https://example.com",
"mimeType": "string",
"filename": "string",
"fileSize": 0
}Upload message media
https://api.flownally.com/v1/media/uploadsUploads a file and returns a mediaId to send it with. Pass it as
content.media.mediaId when you send media content. Empty files and HTML, XML or SVG
content return 400 with code gateway_media_upload_unsupported_type.
Authorization
- message:create
- owner
- admin
- agent
Upload media for a future message send.
Body parameters
Send a multipart/form-data body. The body is required.
- Name
file- Type
- string
- required
Image, document, video, or audio file to make available for message sending.
Responses
- 201Media uploadedapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/media/uploads" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-F "file=@invoice.pdf"{
"mediaId": "mda_d7pka1i9v5sfp2ud6chg",
"mediaType": "document",
"mimeType": "application/pdf",
"filename": "invoice-4827.pdf",
"fileSize": 184201
}List conversations
https://api.flownally.com/v1/conversationsReturns the conversations the caller can access, one page at a time. Pass nextPageToken
as pageToken to get the next page. Each page is read from a separate snapshot.
Authorization
- conversation:list
- owner
- admin
- agent
List conversations in the caller's conversation scope.
Parameters
- Name
skipBucketCounts- Type
- query · boolean
Set totrueto leavebucketCountsout of the response, for example on later pages. Defaults tofalse.- Name
pageSize- Type
- query · integer
Values above 100 are reduced to 100; 0 or omitted uses the default (50).- Name
pageToken- Type
- query · string
Token returned asnextPageTokenfrom the previous page.- Name
interacted- Type
- query · boolean
truereturns only conversations in which the customer has sent a message;falsereturns only those in which they haven't.- Name
banned- Type
- query · boolean
truereturns only conversations whose customer is banned;falsereturns only those whose customer isn't. Omitted returns both. Setting it orders by recent activity, likebucket. For the main inbox leave it unset: filtering onfalsemakes the counts slower.- Name
search- Type
- query · string
Case-insensitive substring match on the conversationnameandexternalId. A phone number also matches the customer's phone number, ignoring formatting.- Name
conversationIds- Type
- query · array<string>
Return only these conversations. Conversations the caller can't access are left out.- Name
status- Type
- query · array<enum>
Return only conversations with one of thesestatusvalues.- Name
ownerType- Type
- query · array<enum>
Return only conversations whose session owner has one of these types.unassignedmatches sessions without an owner.- Name
sort- Type
- query · enum
status: pending, then open, cold and closed conversations, each group ordered by the customer's latest message.recent: bylastMessageAt.waiting: bywaitingSince, followed by conversations that aren't waiting.
bucketormine,statusorders likerecent.- Name
bucket- Type
- query · enum
Return only conversations in this bucket:open: the session is pending or open and assigned to a teammate or unassigned.automated: the session isn't closed and is owned by a chatbot, journey, API key or connected inbox.done: every session is closed, or the conversation has no session.
- Name
mine- Type
- query · boolean
Return only conversations in theopenbucket that are assigned to the caller. Works only for a signed-in user; with an API key the request fails with400.- Name
orderDirection- Type
- query · enum
Direction of the time ordering thatsortuses.
Responses
- 200List of conversationsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/conversations" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"bucketCounts": {
"open": 0,
"automated": 0,
"done": 0,
"mine": 0
},
"conversations": [
{
"id": "cnv_d7pigoip4tfcdebp5mlg",
"channel": "whatsapp",
"externalId": "US.13491208655302741918",
"inboxId": "ibx_d7pi2efp0k7nba4e1mt0",
"name": "Anna Kowalska",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"contactName": "Anna Kowalska",
"status": "open",
"activeOwner": {
"type": "user",
"id": "usr_d7phtlmtf1g6fu9aj6jg"
},
"lastMessageAt": "2026-04-30T10:35:00Z",
"lastMessagePreview": "Thanks, I will check it now.",
"lastMessageSender": "customer"
}
],
"nextPageToken": "string"
}Get conversation
https://api.flownally.com/v1/conversations/{id}Returns a conversation with its current status, owner and reply window. On channels that
allow replies only for a limited time after the customer's last message, such as WhatsApp,
Messenger and Instagram, messagingWindow shows whether that window is open.messagingWindow is calculated for a teammate's reply (forActor is AGENT). Messages
sent with an API key follow the BOT window, which on Messenger and Instagram lasts 24
hours after the customer's last message instead of 7 days.
Authorization
- conversation:read
- owner
- admin
- agent
Read a conversation in the caller's conversation scope.
Parameters
- Name
id- Type
- path · string
- required
Conversation ID.
Responses
- 200Conversation detailsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/conversations/$CONVERSATION_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{}List conversation messages
https://api.flownally.com/v1/conversations/{id}/messagesReturns the conversation's messages, newest first (by createdAt, then id), together
with the conversation itself.Pass sessionId to list only the messages of one session, including a closed one. The
session must belong to this conversation and be accessible to the caller; otherwise the
request returns 404. With sessionId, conversation describes that session and its
latest message that isn't deleted: messagingWindow, automationOutcome and
actionContext are omitted and waitingSince is null. For a session without messages,
lastMessageAt is when the session started and lastMessagePreview is empty.To get the next page, pass nextPageToken as pageToken with the same conversation and
sessionId. pageSize can change between pages. Each page is read from a separate
snapshot, so later pages can reflect updates made after earlier pages were read.
Authorization
- conversation:read
- owner
- admin
- agent
List messages for a conversation in scope.
Parameters
- Name
id- Type
- path · string
- required
Conversation ID.- Name
sessionId- Type
- query · string
Return only messages from this session, for example thesessionIdof a message or webhook. Omit to list all of the conversation's messages.- Name
pageSize- Type
- query · integer
Values above 100 are reduced to 100; 0 or omitted uses the default (50).- Name
pageToken- Type
- query · string
Token returned asnextPageTokenfrom the previous page.
Responses
- 200List of messagesapplication/json
- defaultErrorapplication/json
Related schemas
- ProblemDetails
- FieldViolation
- Window
- InboxActionContext
- TextMessageContent
- TextContent
- MediaMessageContent
- Content
- TemplateMessageContent
- WhatsAppTemplateContent
- TemplateComponent
- TemplateParameter
- Parameter
- CurrencyParameter
- DateTimeParameter
- RichMessageContent
- RichMessage
- Card
- CardHeader
- CardBody
- CardFooter
- CardAction
- WhatsAppFlowAction
- WhatsAppMessageContent
- WhatsAppContent
- WhatsAppRequestContactInfoContent
- MessageContextMessageReference
- Message
- MessageContent
- FormResponseMessageContent
- FormResponseContent
- LocationMessageContent
- LocationContent
- InteractiveReplyMessageContent
- InteractiveReplyContent
- SystemMessageContent
- SystemContent
- Reaction
- MessageContext
- MessageContextReference
- MessageContextResourceReference
- MessageContextUnavailableReference
- ExternalResourceSnapshot
- Conversation
- ConversationOwner
- ConversationBan
- ConversationBanActor
- ConversationDetail
- ListMessagesResponse
curl "https://api.flownally.com/v1/conversations/$CONVERSATION_ID/messages" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"conversation": {},
"messages": [
{
"id": "msg_d7pj3rljs4umccbo6tdg",
"createdAt": "2026-04-30T10:36:00.412305Z",
"updatedAt": "2026-04-30T10:36:02Z",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"conversationId": "cnv_d7pigoip4tfcdebp5mlg",
"senderType": "user",
"senderId": "usr_d7phosq4g7mv2l5b9l40",
"content": {
"type": "text",
"text": {
"body": "Hi Anna, your order is ready for pickup."
}
},
"deliveryStatus": "delivered",
"channelMessageId": "wamid.HBgLMjQxMjM0NTY3ODkVAgARGBI",
"clientMessageId": "reply-4827-1"
}
],
"nextPageToken": "string"
}Send message in conversation
https://api.flownally.com/v1/conversations/{id}/messagesSends a message in an existing conversation through the conversation's inbox. inboxId
is optional; if you pass it, it must match the conversation's inboxId, or the request
fails with 400. The response is 202 Accepted as soon as Flownally accepts the message,
so poll GET /messages/{id} to follow delivery state when you are not using webhooks.
Authorization
- message:create
- owner
- admin
- agent
Send a message in a conversation in scope.
Parameters
- Name
id- Type
- path · string
- required
Conversation ID.- Name
Idempotency-Key- Type
- header · string
Client-generated key that makes a message send safe to retry. Use a new unique key for every message; without a key, a retried request can send the message twice.- Keys are scoped to the workspace, not to an API key or a conversation.
- Retrying with the same key and the same request from the same service account or user
returns the original message (same
id) instead of sending it again. - Reusing a key for a different request or sender within 24 hours returns
409with codemessaging_messaging_idempotency_conflict. - After 24 hours, a key whose message was accepted still returns that message and never sends it again, even if the new request has different content.
- After
503with codemessaging_messaging_send_result_pending, retry with the same key.
Body parameters
Send a application/json body. The body is required.
- Name
content- Type
- OutboundMessageContent
- required
- Name
expectedContext- Type
- InboxActionContext
- Name
inboxId- Type
- string
Optional. If set, it must match the conversation'sinboxId.- Name
contexts- Type
- array<SendMessageContext>
The message this one replies to. It must be in the same conversation.
Responses
- 202Message accepted for deliveryapplication/json
- defaultErrorapplication/json
Related schemas
- ProblemDetails
- FieldViolation
- Window
- InboxActionContext
- OutboundMessageContent
- TextMessageContent
- TextContent
- MediaMessageContent
- Content
- TemplateMessageContent
- WhatsAppTemplateContent
- TemplateComponent
- TemplateParameter
- Parameter
- CurrencyParameter
- DateTimeParameter
- RichMessageContent
- RichMessage
- Card
- CardHeader
- CardBody
- CardFooter
- CardAction
- WhatsAppFlowAction
- WhatsAppMessageContent
- WhatsAppContent
- WhatsAppRequestContactInfoContent
- SendMessageContext
- MessageContextMessageReference
- SendMessageResponse
- Message
- MessageContent
- FormResponseMessageContent
- FormResponseContent
- LocationMessageContent
- LocationContent
- InteractiveReplyMessageContent
- InteractiveReplyContent
- SystemMessageContent
- SystemContent
- Reaction
- MessageContext
- MessageContextReference
- MessageContextResourceReference
- MessageContextUnavailableReference
- ExternalResourceSnapshot
- Conversation
- ConversationOwner
- ConversationBan
- ConversationBanActor
- SendMessageRequest
curl -X POST "https://api.flownally.com/v1/conversations/$CONVERSATION_ID/messages" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"content": {
"type": "text",
"text": {
"body": "Thanks for reaching out. I am checking this now."
}
}
}'{
"message": {
"id": "msg_d7pj3rljs4umccbo6tdg",
"createdAt": "2026-04-30T10:36:00.412305Z",
"updatedAt": "2026-04-30T10:36:00Z",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"conversationId": "cnv_d7pigoip4tfcdebp5mlg",
"senderType": "user",
"senderId": "usr_d7phosq4g7mv2l5b9l40",
"content": {
"type": "template",
"template": {
"name": "order_ready",
"language": "en"
}
},
"deliveryStatus": "pending"
},
"conversation": {
"id": "cnv_d7pigoip4tfcdebp5mlg",
"channel": "whatsapp",
"externalId": "US.13491208655302741918",
"inboxId": "ibx_d7pi2efp0k7nba4e1mt0",
"name": "Anna Kowalska",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"contactName": "Anna Kowalska",
"status": "open",
"lastMessageAt": "2026-04-30T10:36:00Z",
"lastMessagePreview": "order_ready",
"lastMessageSender": "user"
}
}Add or remove reaction
https://api.flownally.com/v1/messages/{id}/reactionsAdds the caller's emoji reaction to a message, or removes it when removed is true. On
WhatsApp each sender can have one reaction per message, so a new emoji replaces the
previous one.
Authorization
- message:create
- owner
- admin
- agent
Add or remove a reaction in an authorized conversation context.
Parameters
- Name
id- Type
- path · string
- required
ID of the message to react to.- Name
Idempotency-Key- Type
- header · string
Key you generate so a retried request isn't applied twice. Use a new key for each new request and the same key for each retry of it.
Body parameters
Send a application/json body. The body is required.
- Name
emoji- Type
- string
- required
The emoji to add or remove.- Name
removed- Type
- boolean
Set totrueto remove the caller's reaction with thisemoji.
Responses
- 200Reaction sentapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/messages/$MESSAGE_ID/reactions" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"emoji": "string",
"removed": true
}'{
"reaction": {
"id": "string",
"messageId": "string",
"senderType": "string",
"senderId": "string",
"emoji": "string",
"createdAt": "2026-04-27T00:00:00.000Z"
}
}Reassign conversation
https://api.flownally.com/v1/conversations/{id}:reassignAssigns the conversation's open session to the teammate in userId. Returns 404 when
the conversation has no open session.
Authorization
- conversation:assign
- owner
- admin
- agent
Reassign a conversation in scope.
Parameters
- Name
id- Type
- path · string
- required
Conversation ID.
Body parameters
Send a application/json body. The body is required.
- Name
userId- Type
- string
- required
ID of the teammate to assign the conversation to.
Responses
- 204Conversation reassigned
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/conversations/$CONVERSATION_ID:reassign" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userId": "string"
}'Mark conversation as read
https://api.flownally.com/v1/conversations/{id}:markReadMarks the conversation as read for the caller, up to and including lastMessageId, and
returns the conversation. lastMessageId can be any message in this conversation,
incoming or outgoing; a message from another conversation returns 400.On channels that support read receipts, Flownally then marks the latest customer message
up to lastMessageId as read for the customer. This happens asynchronously and on a
best-effort basis: a successful response confirms the read state in Flownally, not that
the customer was notified. A receipt that can't be sent doesn't undo the read state.
Authorization
- conversation:read
- owner
- admin
- agent
Mark a conversation in scope as read.
Parameters
- Name
id- Type
- path · string
- required
Conversation ID.
Body parameters
Send a application/json body. The body is required.
- Name
lastMessageId- Type
- string
- required
ID of the newest message to mark as read.
Responses
- 200Conversation marked as readapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/conversations/$CONVERSATION_ID:markRead" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"lastMessageId": "string"
}'{
"id": "cnv_d7pigoip4tfcdebp5mlg",
"channel": "whatsapp",
"externalId": "US.13491208655302741918",
"inboxId": "ibx_d7pi2efp0k7nba4e1mt0",
"name": "Anna Kowalska",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"contactName": "Anna Kowalska",
"status": "open",
"activeOwner": {
"type": "user",
"id": "usr_d7phtlmtf1g6fu9aj6jg"
},
"lastMessageAt": "2026-04-30T10:35:00Z",
"lastMessagePreview": "Thanks, I will check it now.",
"lastMessageSender": "customer"
}Close conversation
https://api.flownally.com/v1/conversations/{id}:closeCloses the conversation's open session and returns the updated conversation. Returns 404
when the conversation has no open session, and 409 with code
messaging_inbox_context_changed when expectedContext no longer matches the conversation.
A closed session is never reopened: the next message from the customer or a teammate
starts a new session in the same conversation.Sessions also close automatically, depending on who owns them:
- Chatbot, API key (
service_account) or connected inbox (inbox): 1 hour after the owner's latest successful reply if the customer hasn't written since; otherwise 7 days after the customer's latest message. - Human agent (
user): 7 days after the latest successful agent reply if the customer hasn't written since. A session waiting for an agent's reply isn't closed automatically. - Unassigned: 7 days after the latest successful reply from a teammate or from the WhatsApp Business app on your number if the customer hasn't written since. Replies from chatbots, journeys, campaigns, API keys or connected inboxes don't count, and a session waiting for a teammate's reply isn't closed automatically.
deliveryStatus is sent, delivered or read.Open as its own pageAuthorization
- conversation:close
- owner
- admin
- agent
Close a conversation in scope.
Parameters
- Name
id- Type
- path · string
- required
Conversation ID.
Body parameters
Send a application/json body. The body is optional.
- Name
expectedContext- Type
- InboxActionContext
Responses
- 200Conversation closedapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/conversations/$CONVERSATION_ID:close" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"expectedContext": {
"sessionId": "string",
"ownerType": "string",
"ownerId": "string",
"lastSubstantiveMessageId": "string",
"substantiveVersion": "string"
}
}'{}Ban conversation customer
https://api.flownally.com/v1/conversations/{id}:banSets the ban's terms: expiresAt and reason replace any earlier ones, and omitting them
makes the ban permanent without a reason. Returns the updated conversation.The ban applies to this conversation's customer identity in this inbox only; the same
person on another channel or number isn't banned.While the customer is banned, their messages, reactions, history imports and edits or
deletions of earlier messages are discarded without being stored. Content stored before
the ban stays. The channel isn't told: on WhatsApp the customer can still write to the
number, and blocking them there is manual. Sending or reacting to the conversation returns
422 with code messaging_customer_banned; a message accepted earlier, a reply from a
connected help-desk app or a send by phone number or channel ID fails with failureCode
customer_banned.expiresAt ends the ban at that time and must be in the future
(400 messaging_conversation_ban_expiry_invalid); without it the ban lasts until the
customer is unbanned. Once a ban expires the conversation reads as not banned and messages
flow again; no conversation change is published at that moment. reason is an optional
note, trimmed, of at most 500 characters (400 messaging_conversation_ban_reason_too_long).Banning a customer who is already banned keeps the original bannedAt and bannedBy.
Banning after a ban expired starts a new ban. Returns 404 when the conversation doesn't
exist or the caller can't access it.
Authorization
- conversation:ban
- owner
- admin
- agent
Ban the customer of a conversation in scope.
Parameters
- Name
id- Type
- path · string
- required
Conversation ID.
Body parameters
Send a application/json body. The body is optional.
- Name
expiresAt- Type
- string
When the ban ends; must be in the future. Omit to ban until unbanned.- Name
reason- Type
- string
Why the customer is banned; trimmed, at most 500 characters.
Responses
- 200Customer bannedapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/conversations/$CONVERSATION_ID:ban" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"expiresAt": "2026-04-27T00:00:00.000Z",
"reason": "string"
}'{}Unban conversation customer
https://api.flownally.com/v1/conversations/{id}:unbanLifts the ban on the conversation's customer and returns the updated conversation.
Unbanning a customer who isn't banned, or whose ban has expired, succeeds and changes
nothing. Messages the customer
sent while banned are not recovered. Returns 404 when the conversation doesn't exist or
the caller can't access it.
Authorization
- conversation:ban
- owner
- admin
- agent
Unban the customer of a conversation in scope.
Parameters
- Name
id- Type
- path · string
- required
Conversation ID.
Responses
- 200Customer unbannedapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/conversations/$CONVERSATION_ID:unban" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{}