feat: add sdk examples for team, inboxes and agents
This commit is contained in:
@@ -8,6 +8,24 @@ post:
|
||||
- userApiKey: []
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/account_id'
|
||||
x-codeSamples:
|
||||
- lang: python
|
||||
label: "Create an API inbox"
|
||||
source: |
|
||||
from chatwoot import ChatwootClient
|
||||
|
||||
client = ChatwootClient(
|
||||
base_url="https://app.chatwoot.com",
|
||||
api_token="your-api-token"
|
||||
)
|
||||
|
||||
inbox = client.inboxes.create(
|
||||
account_id=1,
|
||||
name="Support Inbox",
|
||||
channel_type="api"
|
||||
)
|
||||
|
||||
print(inbox.id, inbox.name)
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
|
||||
Reference in New Issue
Block a user