---
title: "Change OpenAI Bot Status"
method: POST
path: "/openai/changeStatus/{instance}"
tags: ["OpenAI Controller"]
---

# Change OpenAI Bot Status

`POST /openai/changeStatus/{instance}`

## Request

- Base URL: `https://evolution-example`
- URL: `https://evolution-example/openai/changeStatus/{instance}`
- Auth: API key in header `apikey`

Changes the status of the OpenAI bot instance.

## Path parameters

- `instance` string, required

## Request body

- object
  - `remoteJid` string, required: The JID (Jabber ID) of the remote contact
  - `status` 'opened' | 'paused' | 'closed', required: Status of the bot instance. Possible values: 'opened', 'paused', 'closed'

## Response `200`

Successfully changed the bot status

- object
  - `success` boolean: Indicates if the status change was successful
  - `message` string: Details about the status change operation

## Other responses

- `400`: Bad Request - Invalid input parameters
- `500`: Internal Server Error

## Changes

- **2024-11-25** (v2) `ad43c2b657d9`: 1 info
  - endpoint added
- **2024-11-25** (v2) `c153448703e5`: 1 breaking
  - api path removed without deprecation
- **2024-09-09** (v2) `0c4620ca5ed5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/changes/openai/changeStatus/:instance/post.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/evolution-api-3.md) - [All operations](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/revisions/153363ee7f38?raw)
