Bots
Create
Create a CometChat bot for an existing user with the REST API and relay its messages to your own webhook.
POST
Create
The
uid must already belong to a User. If no such user exists, the API returns ERR_UID_NOT_FOUND.
enabled defaults to false, so send enabled: true — or call the Update Bot API afterwards — before the bot will relay anything. groupChatSetting defaults to none, so a new bot receives no group messages until you set it. username and password are stored only when useBasicAuth is true; otherwise they are discarded.
A bot’s name and avatar belong to its user, not to the bot — set them with the Update User API.
Constraints
For the complete error reference, see Error Guide.
Authorizations
Body
application/json