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
Key | Datatype | Required | Description |
---|---|---|---|
Api-Token | string | (Required) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"bot":{"bot_token":"\u003cstring\u003e","bot_profile_url":"\u003cstring\u003e","bot_userid":"\u003cstring\u003e","bot_nickname":"\u003cstring\u003e","bot_type":"\u003cstring\u003e","bot_metadata":"\u003cobject\u003e"},"bot_callback_url":"\u003cstring\u003e","enable_mark_as_read":"\u003cboolean\u003e","is_privacy_mode":"\u003cboolean\u003e","show_member":"\u003cboolean\u003e","channel_invitation_preference":"\u003cnumber\u003e"}