This is the API documentation for Chatwoot server.
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0.18
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import chatwoot_client Install via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import chatwoot_clientPlease follow the installation procedure and then run the following:
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: userApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.AccountAgentBotsApi(chatwoot_client.ApiClient(configuration))
body = chatwoot_client.AgentBotCreateUpdatePayload() # AgentBotCreateUpdatePayload |
account_id = 56 # int | The numeric ID of the account
try:
# Create an Agent Bot
api_response = api_instance.create_an_account_agent_bot(body, account_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountAgentBotsApi->create_an_account_agent_bot: %s\n" % e)
# Configure API key authorization: userApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.AccountAgentBotsApi(chatwoot_client.ApiClient(configuration))
account_id = 56 # int | The numeric ID of the account
id = 56 # int | The ID of the agentbot to be updated
try:
# Delete an AgentBot
api_instance.delete_an_account_agent_bot(account_id, id)
except ApiException as e:
print("Exception when calling AccountAgentBotsApi->delete_an_account_agent_bot: %s\n" % e)
# Configure API key authorization: userApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.AccountAgentBotsApi(chatwoot_client.ApiClient(configuration))
account_id = 56 # int | The numeric ID of the account
id = 56 # int | The ID of the agentbot to be updated
try:
# Get an agent bot details
api_response = api_instance.get_details_of_a_single_account_agent_bot(account_id, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountAgentBotsApi->get_details_of_a_single_account_agent_bot: %s\n" % e)
# Configure API key authorization: userApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.AccountAgentBotsApi(chatwoot_client.ApiClient(configuration))
account_id = 56 # int | The numeric ID of the account
try:
# List all AgentBots
api_response = api_instance.list_all_account_agent_bots(account_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountAgentBotsApi->list_all_account_agent_bots: %s\n" % e)
# Configure API key authorization: userApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.AccountAgentBotsApi(chatwoot_client.ApiClient(configuration))
body = chatwoot_client.AgentBotCreateUpdatePayload() # AgentBotCreateUpdatePayload |
account_id = 56 # int | The numeric ID of the account
id = 56 # int | The ID of the agentbot to be updated
try:
# Update an agent bot
api_response = api_instance.update_an_account_agent_bot(body, account_id, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountAgentBotsApi->update_an_account_agent_bot: %s\n" % e)All URIs are relative to https://app.chatwoot.com/
- Account
- AccountCreateUpdatePayload
- AccountIdAccountUsersBody
- AccountIdAccountUsersBody1
- AccountIdAgentsBody
- AccountIdConversationsBody
- AccountIdInboxMembersBody
- AccountIdInboxMembersBody1
- AccountIdInboxMembersBody2
- AccountIdInboxesBody
- AccountSummary
- AccountSummaryPrevious
- Agent
- AgentBot
- AgentBotCreateUpdatePayload
- AgentConversationMetrics
- AgentConversationMetricsMetric
- AgentsIdBody
- AllOfconversationFilterListPayloadItems
- Apiv1accountsaccountIdcontactsfilterPayload
- Apiv1accountsaccountIdconversationsMessage
- Apiv1accountsaccountIdconversationsMessageTemplateParams
- Apiv1accountsaccountIdinboxesChannel
- Apiv1accountsaccountIdinboxesidChannel
- Article
- ArticleCreateUpdatePayload
- AutomationRule
- AutomationRuleCreateUpdatePayload
- BadRequestError
- CannedResponse
- CannedResponseCreateUpdatePayload
- Category
- CategoryCreateUpdatePayload
- Contact
- ContactBase
- ContactConversations
- ContactCreate
- ContactInboxes
- ContactList
- ContactPayload
- ContactPayloadContact
- ContactUpdate
- ContactableInboxes
- ContactsFilterBody
- Conversation
- ConversationAssignee
- ConversationFilterList
- ConversationIdAssignmentsBody
- ConversationIdLabelsBody
- ConversationIdTogglePriorityBody
- ConversationIdToggleStatusBody
- ConversationLabels
- ConversationList
- ConversationListData
- ConversationListDataMeta
- ConversationListPayload
- ConversationListPayloadMeta
- ConversationMessageCreate
- ConversationSender
- ConversationShow
- ConversationShowMeta
- ConversationShowMetaSender
- ConversationStatusToggle
- ConversationStatusTogglePayload
- ConversationsFilterBody
- CustomAttribute
- CustomAttributeCreateUpdatePayload
- CustomFilter
- CustomFilterCreateUpdatePayload
- ExtendedContact
- GenericId
- IdContactInboxesBody
- IdSetAgentBotBody
- Inbox
- InboxesIdBody
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2005
- InlineResponse2006
- InlineResponse2007
- IntegrationsApp
- IntegrationsHook
- IntegrationsHookCreatePayload
- IntegrationsHookUpdatePayload
- Message
- MessageList
- PlatformAccount
- Portal
- PortalCreateUpdatePayload
- PublicContact
- PublicContactCreateUpdatePayload
- PublicConversation
- PublicConversationCreatePayload
- PublicInbox
- PublicInboxWorkingHours
- PublicMessage
- PublicMessageCreatePayload
- PublicMessageUpdatePayload
- RequestError
- Sender
- Team
- TeamCreateUpdatePayload
- TeamIdTeamMembersBody
- TeamIdTeamMembersBody1
- TeamIdTeamMembersBody2
- User
- UserCreateUpdatePayload
- Webhook
- WebhookCreateUpdatePayload
- Type: API key
- API key parameter name: api_access_token
- Location: HTTP header
- Type: API key
- API key parameter name: api_access_token
- Location: HTTP header
- Type: API key
- API key parameter name: api_access_token
- Location: HTTP header
