POST
/
evolutionBot
/
create
/
{instance}
Create Evolution Bot
curl --request POST \
  --url https://{server-url}/evolutionBot/create/{instance} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "enabled": true,
  "apiUrl": "<string>",
  "apiKey": "<string>",
  "triggerType": "<string>",
  "triggerOperator": "<string>",
  "triggerValue": "<string>",
  "expire": 123,
  "keywordFinish": "<string>",
  "delayMessage": 123,
  "unknownMessage": "<string>",
  "listeningFromMe": true,
  "stopBotFromMe": true,
  "keepOpen": true,
  "debounceTime": 123,
  "ignoreJids": [
    "<string>"
  ]
}'
{
  "message": "Sucess"
}

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

Name of the instance

Body

application/json
enabled
boolean
required

Enable Evolution Bot

apiUrl
string
required

API URL for the bot

triggerType
string
required

Trigger type, e.g., 'all' or 'keyword'

triggerOperator
string
required

Operator logic, e.g., 'contains', 'equals', 'startsWith', 'endsWith', 'regex'

triggerValue
string
required

Trigger value, e.g., 'test'

expire
number
required

Expiration time for the session (in seconds)

keywordFinish
string
required

Keyword to terminate the session

delayMessage
number
required

Delay time (in ms) for sending messages

unknownMessage
string
required

Message displayed when an unknown input is received

listeningFromMe
boolean
required

Listen to messages sent by the bot owner

stopBotFromMe
boolean
required

Stop bot when the owner sends a message

keepOpen
boolean
required

Keep the session open after processing messages

debounceTime
number
required

Time delay to debounce messages

apiKey
string

API Key for authentication (optional)

ignoreJids
string[]

List of JIDs to ignore

Response

200 - application/json

Evo bot criado com sucesso

message
string
Example:

"Sucess"