---
name: "chat_close"
area: "chat"
title: "Close or reopen a chat"
price: "$0.001"
method: "POST"
url: "https://api.conecto.chat/v1/tools/chat_close"
mcp_server: "https://api.conecto.chat/mcp/chat"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/chat/chat_close"
---

# Close or reopen a chat (`chat_close`)

Closes a conversation once it is handled, or opens it again.

Close a conversation once it is handled, or reopen it.

Price: $0.001 a call. A call that fails costs nothing.

## Use it when

A conversation is handled, or a closed one needs more work.

## Say this to your agent

> The question about shipping times is answered. Close that chat.

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `conversation_id` | integer | yes | At least 1. |  |  |
| `status` | string | yes |  | `"closed"`, `"open"` |  |

## Example

Written for Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon.

MCP: call `chat_close` on the MCP server `https://api.conecto.chat/mcp/chat` with these arguments:

```json
{
  "conversation_id": 3187,
  "status": "closed"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/chat_close \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"conversation_id": 3187, "status": "closed"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "chat_close",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.001",
  "balance_usd": "$19.75",
  "result": {
    "conversation": {
      "conversation_id": 3187,
      "status": "closed",
      "channel": "web",
      "visitor": {
        "name": "Lisa Moreno",
        "email": "lisa.moreno@example.com"
      },
      "started_at": "2026-10-14T08:00:00+00:00",
      "last_message_at": "2026-10-14T08:00:00+00:00",
      "charge": "charged"
    }
  }
}
```

`result`: The conversation with its new status.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_found` | 404 | No chat conversation of the business has that conversation_id. | Find it with chat_list_conversations and use its conversation_id. |
| `conversation_open` | 409 | The visitor already has another open conversation, so this one cannot reopen. | Continue in the open conversation; the message gives its id. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [chat_setup](https://conecto.chat/tools/chat/chat_setup.md): Creates or changes the business's website chat widget and who answers it, and returns the snippet for the website. $0.001 a call.
- [chat_get_setup](https://conecto.chat/tools/chat/chat_get_setup.md): The website chat's settings, its embed snippet, how messages reach the agent and this month's cost. Free up to 1,000,000 reads a month.
- [chat_wait](https://conecto.chat/tools/chat/chat_wait.md): Waits for the next visitor message, for an agent without a server to receive webhooks. Free up to 1,000,000 reads a month.
- [chat_list_conversations](https://conecto.chat/tools/chat/chat_list_conversations.md): The website chat and email conversations, newest activity first, with who it is and the last message. Free up to 1,000,000 reads a month.
- [chat_get_conversation](https://conecto.chat/tools/chat/chat_get_conversation.md): One conversation with all its messages, from the visitor and from the business. Free up to 1,000,000 reads a month.
- [chat_typing](https://conecto.chat/tools/chat/chat_typing.md): Shows the visitor that the business is typing, for about 8 seconds. Free.
- [chat_reply](https://conecto.chat/tools/chat/chat_reply.md): Answers a website visitor as the business, with product cards, images or buttons if you like. Free.
- [chat_create_ticket](https://conecto.chat/tools/chat/chat_create_ticket.md): Opens a help desk ticket from a chat that needs follow-up by email, with the chat so far as the request. $0.01 a call.
