Messages
Messages belong to Conversations and can include media (video, audio) and/or text messages.
Create a message
A text-only message, or a message created from a message template (the template can have video, audio, and/or text).
Create a text-only message or template-based message
POST
https://app.clarityflow.com/api/v1/messages/create_message
Query Parameters
conversation_id*
integer
Pass the ID of the Conversation that this message will be added to.
text*
string
Pass the text for the content of the message. It can include HTML. If a full URL is included in the text, it will be automatically converted to a link.
message_template_id
integer
Pass the ID of a message template to use as the content for this message. If the message template contains text, then this text would override the value you pass along with the text parameter. If the message template does not contain text, then any text you pass in the query parameter will be added to the message underneath the media player. The message will be attributed to the user who created this message template.
user_email
String
Email address of the user that this message should be attributed to. This user with this email address must be an owner or team member in the account. If blank, then the message will be posted anonymously.
internal
boolean
If true
, then this message will be posted as an "internal" message, which is only visible to team members in the account. Internal messages are not visible to guests and non-logged-in users.
Get messages
Get messages
GET
https://app.clarityflow.com/api/v1/messages/get_messages
Query Parameters
conversation_slug
String
If the conversation_slug
is passed, then only messages from this conversation will be returned. If conversation_slug
is not present, then messages from all conversationsn will be returned.
page
integer
A maximum of 50 messages will be returned starting from th most recently created message. To retrieve messages further back than 50, pass the page number.
date_time
yyyy-mm-dd
If date_time
is passed, then only messages that were created after this date will be returned.
String
If email
is passed, only messages authored by the user who has this email will be returned.
Last updated