2020-09-23 09:57:41 +00:00
get :
tags :
- Conversation
operationId : conversationSearch
description : Search for conversations containing a messages with the query string
summary : Conversations Search
parameters :
- name : q
in : query
type : string
- name : assignee_type
in : query
type : string
2021-07-14 17:21:27 +00:00
enum : [ 'me' , 'unassigned' , 'all' , 'assigned' ]
2020-09-23 09:57:41 +00:00
- name : status
in : query
type : string
enum : [ 'open' , 'resolved' , 'bot' ]
- name : page
in : query
type : integer
- name : inbox_id
in : query
type : integer
- name : labels
in : query
type : array
items :
type : string
2021-05-11 14:50:52 +00:00
- $ref : '#/parameters/account_id'
2020-09-23 09:57:41 +00:00
responses :
200 :
description : Success
schema :
$ref : '#/definitions/conversation_list'
400 :
description : Bad Request Error
schema :
$ref : '#/definitions/bad_request_error'
description : Access denied
2020-04-10 11:12:37 +00:00
post :
tags :
- Conversation
operationId : newConversation
summary : Create New Conversation
2021-05-11 17:08:46 +00:00
description : "Creating a conversation in chatwoot requires a source id. \n\n Learn more about source_id: https://github.com/chatwoot/chatwoot/wiki/Building-on-Top-of-Chatwoot:-Importing-Existing-Contacts-and-Creating-Conversations"
2020-06-25 18:05:16 +00:00
security :
- userApiKey : [ ]
- agentBotApiKey : [ ]
2020-04-10 11:12:37 +00:00
parameters :
2021-05-11 14:50:52 +00:00
- $ref : '#/parameters/account_id'
2020-04-10 11:12:37 +00:00
- name : data
in : body
required : true
schema :
type : object
properties :
2021-06-07 14:34:31 +00:00
source_id :
2021-05-11 17:08:46 +00:00
$ref : '#/parameters/source_id'
inbox_id :
type : string
description : "Id of inbox in which the conversation is created <br/> Allowed Inbox Types: Website, Phone, Api, Email "
contact_id :
2020-04-10 11:12:37 +00:00
type : string
2021-05-11 17:08:46 +00:00
description : Contact Id for which conversation is created
2021-01-07 08:17:38 +00:00
additional_attributes :
type : object
description : Lets you specify attributes like browser information
2021-06-07 14:34:31 +00:00
status :
type : string
enum : [ 'open' , 'resolved' , 'bot' ]
description : Specify the conversation whether it's bot, open, closed
2020-04-10 11:12:37 +00:00
responses :
200 :
description : Success
schema :
type : object
properties :
id :
type : number
description : ID of the conversation
account_id :
type : number
description : Account Id
inbox_id :
type : number
description : ID of the inbox
403 :
description : Access denied