POST
/
create_bot
curl --request POST \
  --url https://botsettings.messagesimproved.com/create_bot \
  --header 'Content-Type: application/json' \
  --header 'admin-email: <admin-email>' \
  --header 'api-key: <api-key>' \
  --data '{
  "name": "BobBot",
  "openingMessage": "Hello! How can I assist you today?",
  "prompt": "Please assist users with common queries about our services."
}'
{
  "bot_id": "74b96c5b-7376-430c-a6d7-b78cfd6aa32c"
}

Headers

api-key
string
required

API key for authentication.

admin-email
string
required

Email of the admin making the request.

Body

application/json

Response

200
application/json

Bot created successfully

The response is of type object.

POST
/
create_bot
curl --request POST \
  --url https://botsettings.messagesimproved.com/create_bot \
  --header 'Content-Type: application/json' \
  --header 'admin-email: <admin-email>' \
  --header 'api-key: <api-key>' \
  --data '{
  "name": "BobBot",
  "openingMessage": "Hello! How can I assist you today?",
  "prompt": "Please assist users with common queries about our services."
}'
{
  "bot_id": "74b96c5b-7376-430c-a6d7-b78cfd6aa32c"
}

Headers

api-key
string
required

API key for authentication.

admin-email
string
required

Email of the admin making the request.

Body

application/json

Response

200
application/json

Bot created successfully

The response is of type object.