Send message in conversation
POST
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.While another responder holds the conversation (shown as activeOwner type external
while its session is open), anything but a WhatsApp template fails with 422 and code
messaging_assignment_held_externally, and nothing is sent.
Authorization
Required scopes
- message:create
Allowed roles
- 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
Generated from the API spec.