All URIs are relative to https://app.chatwoot.com/
| Method | HTTP request | Description |
|---|---|---|
| create_an_agent_bot | POST /platform/api/v1/agent_bots | Create an Agent Bot |
| delete_an_agent_bot | DELETE /platform/api/v1/agent_bots/{id} | Delete an AgentBot |
| get_details_of_a_single_agent_bot | GET /platform/api/v1/agent_bots/{id} | Get an agent bot details |
| list_all_agent_bots | GET /platform/api/v1/agent_bots | List all AgentBots |
| update_an_agent_bot | PATCH /platform/api/v1/agent_bots/{id} | Update an agent bot |
AgentBot create_an_agent_bot(body)
Create an Agent Bot
Create an agent bot
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
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.AgentBotsApi(chatwoot_client.ApiClient(configuration))
body = chatwoot_client.AgentBotCreateUpdatePayload() # AgentBotCreateUpdatePayload |
try:
# Create an Agent Bot
api_response = api_instance.create_an_agent_bot(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AgentBotsApi->create_an_agent_bot: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | AgentBotCreateUpdatePayload |
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_an_agent_bot(id)
Delete an AgentBot
Delete an AgentBot
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
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.AgentBotsApi(chatwoot_client.ApiClient(configuration))
id = 56 # int | The ID of the agentbot to be updated
try:
# Delete an AgentBot
api_instance.delete_an_agent_bot(id)
except ApiException as e:
print("Exception when calling AgentBotsApi->delete_an_agent_bot: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the agentbot to be updated |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentBot get_details_of_a_single_agent_bot(id)
Get an agent bot details
Get the details of an agent bot
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
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.AgentBotsApi(chatwoot_client.ApiClient(configuration))
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_agent_bot(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AgentBotsApi->get_details_of_a_single_agent_bot: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The ID of the agentbot to be updated |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[AgentBot] list_all_agent_bots()
List all AgentBots
List all agent bots available
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
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.AgentBotsApi(chatwoot_client.ApiClient(configuration))
try:
# List all AgentBots
api_response = api_instance.list_all_agent_bots()
pprint(api_response)
except ApiException as e:
print("Exception when calling AgentBotsApi->list_all_agent_bots: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgentBot update_an_agent_bot(body, id)
Update an agent bot
Update an agent bot's attributes
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
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.AgentBotsApi(chatwoot_client.ApiClient(configuration))
body = chatwoot_client.AgentBotCreateUpdatePayload() # AgentBotCreateUpdatePayload |
id = 56 # int | The ID of the agentbot to be updated
try:
# Update an agent bot
api_response = api_instance.update_an_agent_bot(body, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AgentBotsApi->update_an_agent_bot: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | AgentBotCreateUpdatePayload | ||
| id | int | The ID of the agentbot to be updated |
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]