Files
chatwoot/swagger/paths/application/inboxes/get_agent_bot.yml
2026-02-19 13:09:06 +05:30

51 lines
1.2 KiB
YAML

get:
tags:
- Inboxes
operationId: getInboxAgentBot
summary: Show Inbox Agent Bot
description: See if an agent bot is associated to the Inbox
security:
- userApiKey: []
x-codeSamples:
- lang: python
label: "Get inbox agent bot"
source: |
from chatwoot import ChatwootClient
client = ChatwootClient(
base_url="https://app.chatwoot.com",
api_token="your-api-token"
)
bot = client.inboxes.get_agent_bot(account_id=1, inbox_id=5)
if bot:
print(bot["id"], bot["name"])
parameters:
- $ref: '#/components/parameters/account_id'
- name: id
in: path
schema:
type: number
description: ID of the inbox
required: true
responses:
'204':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/agent_bot'
'404':
description: Inbox not found, Agent bot not found
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'
'403':
description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'