POST
/
openai
/
changeStatus
/
{instance}
Change OpenAI Bot Status
curl --request POST \
  --url https://{server-url}/openai/changeStatus/{instance} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "remoteJid": "<string>",
  "status": "opened"
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

Name of the instance

Body

application/json

Body for changing the status of the OpenAI bot

remoteJid
string
required

The JID (Jabber ID) of the remote contact

status
enum<string>
required

Status of the bot instance. Possible values: 'opened', 'paused', 'closed'

Available options:
opened,
paused,
closed

Response

Successfully changed the bot status

success
boolean

Indicates if the status change was successful

message
string

Details about the status change operation