> ## Documentation Index
> Fetch the complete documentation index at: https://doc.evolution-api.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change status OpenAI

> Changes the status of the OpenAI bot instance.



## OpenAPI

````yaml openapi-v2 POST /openai/changeStatus/{instance}
openapi: 3.0.3
info:
  title: Evolution API
  version: 2.1.1
servers:
  - url: https://{server-url}
    variables:
      server-url:
        default: evolution-example
        description: The URL of your EvolutionAPI server
    description: Your instance domain
security: []
paths:
  /openai/changeStatus/{instance}:
    post:
      tags:
        - OpenAI Controller
      summary: Change OpenAI Bot Status
      description: Changes the status of the OpenAI bot instance.
      operationId: changeOpenAIStatus
      parameters:
        - name: instance
          in: path
          required: true
          description: Name of the instance
          schema:
            type: string
      requestBody:
        description: Body for changing the status of the OpenAI bot
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                remoteJid:
                  type: string
                  description: The JID (Jabber ID) of the remote contact
                status:
                  type: string
                  enum:
                    - opened
                    - paused
                    - closed
                  description: >-
                    Status of the bot instance. Possible values: 'opened',
                    'paused', 'closed'
              required:
                - remoteJid
                - status
      responses:
        '200':
          description: Successfully changed the bot status
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates if the status change was successful
                  message:
                    type: string
                    description: Details about the status change operation
        '400':
          description: Bad Request - Invalid input parameters
        '500':
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: Your authorization key header

````