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

Documentation Index

Fetch the complete documentation index at: https://docs.zapthinker.com/llms.txt

Use this file to discover all available pages before exploring further.

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