Skip to main content
POST
/
api
/
bots
/
{botID}
/
regenerate-token
Regenerate bot token
curl --request POST \
  --url http://localhost:8091/api/bots/{botID}/regenerate-token \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer

Path Parameters

botID
string
required

Bot user ID

Response

200 - application/json

New token generated

data
object