Create a bot
Changed onCreate a bot
Creates a new bot within an application. Creating a bot is similar to creating a normal user, except a callback URL should be specified for a bot to receive events.
Note: The bot must first join a group channel to interact with users. In group channels, you can also invite a bot through the invite as members action.
https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot
Request
- Base URLhttps://api-APP_ID.sendbird.com
- Authnone declared
Headers
Request body
Response
Successful response
Example response
{
"show_member": true,
"enable_mark_as_read": true,
"is_privacy_mode": true,
"bot_callback_url": "bot_callback_url",
"bot": {
"feedback": true,
"bot_profile_url": "bot_profile_url",
"bot_userid": "bot_userid",
"bot_metadata": "{}",
"bot_type": "bot_type",
"bot_nickname": "bot_nickname",
"bot_token": "bot_token",
"bot_require_auth_for_profile_image": true,
"ai_agent_type": "ai_agent_type"
},
"bot_style": {
"color": {
"accent_color": "accent_color",
"bot_message_color": "bot_message_color",
"theme": "theme"
},
"toggle_button_type": "toggle_button_type",
"toggle_button_url": "toggle_button_url",
"auto_open": true
},
"created_at": 6,
"channel_invitation_preference": 0
}Changes
- breaking
the response property
/became nullable for the status
- breaking
- warning
deleted the
headerrequest parameterApi-Token - info
api operation id
createBotremoved and replaced withcreateABot - info
added the new optional
headerrequest parameterapi-token - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the response property
became required for the status - info
the response property
/became required for the status
- warning