cURL
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>" }
Your authorization key header
Name of the instance
Body for changing the status of the OpenAI bot
The JID (Jabber ID) of the remote contact
Status of the bot instance. Possible values: 'opened', 'paused', 'closed'
opened
paused
closed
Successfully changed the bot status
Indicates if the status change was successful
Details about the status change operation