Create a bot

POST {{baseUrl}}/v3/bots

Create a bot

Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events.

Note: The bot must join a group channel first to interact with users. In group channels, you can invite a bot through the invite as members action instead.

https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot

Request Body

{"bot_userid"=>"<string>", "bot_nickname"=>"<string>", "bot_profile_url"=>"<string>", "bot_type"=>"<string>", "bot_callback_url"=>"<string>", "is_privacy_mode"=>"<boolean>", "enable_mark_as_read"=>"<boolean>", "show_member"=>"<boolean>", "channel_invitation_preference"=>"<integer>"}

HEADERS

KeyDatatypeRequiredDescription
Api-Tokenstring(Required)
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;bot&quot;:{&quot;bot_token&quot;:&quot;\u003cstring\u003e&quot;,&quot;bot_profile_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;bot_userid&quot;:&quot;\u003cstring\u003e&quot;,&quot;bot_nickname&quot;:&quot;\u003cstring\u003e&quot;,&quot;bot_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;bot_metadata&quot;:&quot;\u003cobject\u003e&quot;},&quot;bot_callback_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;enable_mark_as_read&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_privacy_mode&quot;:&quot;\u003cboolean\u003e&quot;,&quot;show_member&quot;:&quot;\u003cboolean\u003e&quot;,&quot;channel_invitation_preference&quot;:&quot;\u003cnumber\u003e&quot;}