cURL
curl --request POST \ --url http://localhost:8091/api/bots \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "username": "<string>", "serverId": "<string>", "displayName": "<string>" } '
{ "data": { "bot": { "id": "<string>", "username": "<string>", "displayName": "<string>", "status": "<string>", "bot": true, "createdAt": "2023-11-07T05:31:56Z", "avatarPath": "<string>" }, "token": "<string>" } }
Creates a new bot user and returns its authentication token. Only human users can create bots.
Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer
Bot username
1 - 32
Server to add the bot to
Bot display name
Bot created
Show child attributes