Conversations
Conversations in Clarityflow can contain one or several messages exchanged between multiple people.
Creating a new conversation
Create conversation.
POST
https://app.clarityflow.com/api/v1/conversations/create_conversation
Creates a new conversation.
Request Body
Name | Type | Description |
---|---|---|
title | string | If title is passed, the new conversation will have the passed value as title. If title is not passed, then the new conversation will use the default naming convention for new conversatons based in the account settings. |
slug | string | If slug is set, new conversation will be have the passed value as slug. This cannot contain spaces or special characters except for |
anyone_can_post | boolean | If |
allow_anonymous_messages | boolean | If |
allow_search_engines | boolean | If |
primary_intake_page | boolean | If |
intake_page_id | integer | If set to the ID of a secondary intake page, it will be as if this conversation was created by submitting the form on your that intake page. This is useful if you want to automatically apply the workflow that is set on your intake page to the conversation. |
Get a conversation(s)
Get a single conversation
GET
https://app.clarityflow.com/api/v1/conversations/get_conversation
Retrieves a single conversation the account. If neither title
nor slug
are passed, then this will return the most recently created conversation in the account.
Query Parameters
Name | Type | Description |
---|---|---|
title | String | If passed, the most recently created conversation with a title that exactly matches this string (case insensitive) will be returned. If not passed, or if the title doesn't match any conversatoins, then the most recently created conversation in the account will be returned. |
slug | String | If passed, the most recently created conversation with a slug that exactly matches this string (case insensitive) will be returned. If not passed, or if the title doesn't match any conversatoins, then the most recently created conversation in the account will be returned. |
Get conversations
GET
https://app.clarityflow.com/api/v1/conversations/get_conversations
Returns an array of conversations from the account.
Query Parameters
Name | Type | Description |
---|---|---|
page | integer | A maximum of 50 conversations will be returned starting from th most recently created conversation. To retrieve conversations further back than 50, pass the page number. |
Last updated