All URIs are relative to https://app.chatwoot.com/
| Method | HTTP request | Description |
|---|---|---|
| create_an_account | POST /platform/api/v1/accounts | Create an Account |
| delete_an_account | DELETE /platform/api/v1/accounts/{account_id} | Delete an Account |
| get_details_of_an_account | GET /platform/api/v1/accounts/{account_id} | Get an account details |
| update_an_account | PATCH /platform/api/v1/accounts/{account_id} | Update an account |
PlatformAccount create_an_account(body)
Create an Account
Create an Account
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.AccountsApi(chatwoot_client.ApiClient(configuration))
body = chatwoot_client.AccountCreateUpdatePayload() # AccountCreateUpdatePayload |
try:
# Create an Account
api_response = api_instance.create_an_account(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->create_an_account: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | AccountCreateUpdatePayload |
- 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_account(account_id)
Delete an Account
Delete an Account
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.AccountsApi(chatwoot_client.ApiClient(configuration))
account_id = 56 # int | The numeric ID of the account
try:
# Delete an Account
api_instance.delete_an_account(account_id)
except ApiException as e:
print("Exception when calling AccountsApi->delete_an_account: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | int | The numeric ID of the account |
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]
PlatformAccount get_details_of_an_account(account_id)
Get an account details
Get the details of an account
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.AccountsApi(chatwoot_client.ApiClient(configuration))
account_id = 56 # int | The numeric ID of the account
try:
# Get an account details
api_response = api_instance.get_details_of_an_account(account_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->get_details_of_an_account: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | int | The numeric ID of the account |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PlatformAccount update_an_account(body, account_id)
Update an account
Update an account'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.AccountsApi(chatwoot_client.ApiClient(configuration))
body = chatwoot_client.AccountCreateUpdatePayload() # AccountCreateUpdatePayload |
account_id = 56 # int | The numeric ID of the account
try:
# Update an account
api_response = api_instance.update_an_account(body, account_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->update_an_account: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | AccountCreateUpdatePayload | ||
| account_id | int | The numeric ID of the account |
- 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]