> For the complete documentation index, see [llms.txt](https://developer.acquire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.acquire.io/rest-apis/conversation/conversation-or-cases/close-case.md).

# Close Case

## Close a case

<mark style="color:green;">`POST`</mark> `https://{{account_id}}.acquire.io/api/v1/crm/messenger/chat/close`

Closes a case. The **caseId** must be passed in the body of the request.&#x20;

#### Headers

| Name                                            | Type   | Description         |
| ----------------------------------------------- | ------ | ------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer {{API\_KEY}} |

#### Request Body

| Name                                     | Type    | Description |
| ---------------------------------------- | ------- | ----------- |
| caseId<mark style="color:red;">\*</mark> | integer | The case ID |

{% tabs %}
{% tab title="200 " %}

```
{
  "data": {
    "0": {
      "foreverClosed": true,
      "leftUser": true,
      "caseId": 5,
      "contactId": 6
    },
    "userId": 1,
    "userType": "user"
  }
}
```

{% endtab %}
{% endtabs %}

**Body (raw)**

```
{
  "caseId": 5
}
```
