---
title: "Reopen conversation"
url: https://docs.gleap.ai/en/reference/conversations-api/reopen
method: POST
path: "/s2s/conversations/{conversationId}/reopen"
api: "Conversations API"
tag: "S2S Conversations"
operationId: "Reopen"
updatedAt: "2026-11-01T18:40:16.191Z"
language: en
---

# Reopen conversation

`POST https://api.gleap.io/v3/s2s/conversations/{conversationId}/reopen`

Reopen a closed conversation.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `conversationId` (string, required)

## Headers

- `Gleap-Version` (string): Pin a specific API version; defaults to the current version.
- `Idempotency-Key` (string): Makes the POST retryable: a completed successful response replays for 24 hours (Gleap-Idempotency-Replayed: true). Semantics are at-least-once — a retry that races a crashed or >60s-running original may re-execute. Error responses are never stored; retry them normally.

## Example request

```bash
curl --request POST \
  --url 'https://api.gleap.io/v3/s2s/conversations/{conversationId}/reopen' \
  --header 'Authorization: Bearer <token>'
```

## Responses

### 200 (`application/json`)

Ok

- `id` (string, required)
- `number` (number<double>)
- `title` (string)
- `type` (string)
- `status` (string)
- `closed` (boolean, required)
- `archived` (boolean, required)
- `unread` (boolean, required)
- `rating` (number<double>): CSAT rating 0-10 given by the contact (rateconversation step or POST …/rating).
- `workflowActive` (boolean, required)
- `workflowId` (string)
- `assignee` (object | null)
  - `type` (enum<string>, required): One of: `contact`, `agent`, `bot`, `system`.
  - `id` (string)
  - `name` (string)
  - `avatar` (string)
- `attributes` (object): Construct a type with a set of properties K of type T
- `contact` (object)
  - `userId` (string)
- `latestMessage` (object)
  - `id` (string, required)
  - `conversationId` (string, required)
  - `text` (string)
  - `author` (object, required)
    - `type` (enum<string>, required): One of: `contact`, `agent`, `bot`, `system`.
    - `id` (string)
    - `name` (string)
    - `avatar` (string)
  - `attachments` (object[], required)
    - `url` (string, required)
    - `name` (string)
    - `contentType` (string)
  - `replyToMessageId` (string)
  - `rating` (string)
  - `unread` (boolean, required)
  - `createdAt` (string<date-time>, required)
- `createdAt` (string<date-time>)
- `lastActivityAt` (string<date-time>)

```json
{
  "id": "string",
  "number": 0,
  "title": "string",
  "type": "string",
  "status": "string",
  "closed": true,
  "archived": true,
  "unread": true,
  "rating": 0,
  "workflowActive": true,
  "workflowId": "string",
  "assignee": {
    "type": "contact",
    "id": "string",
    "name": "string",
    "avatar": "string"
  },
  "attributes": {},
  "contact": {
    "userId": "string"
  },
  "latestMessage": {
    "id": "string",
    "conversationId": "string",
    "text": "string",
    "author": {
      "type": "contact",
      "id": "string",
      "name": "string",
      "avatar": "string"
    },
    "attachments": [
      {
        "url": "string",
        "name": "string",
        "contentType": "string"
      }
    ],
    "replyToMessageId": "string",
    "rating": "string",
    "unread": true,
    "createdAt": "2026-01-01T12:00:00Z"
  },
  "createdAt": "2026-01-01T12:00:00Z",
  "lastActivityAt": "2026-01-01T12:00:00Z"
}
```

### 401 (`application/problem+json`)

Missing, invalid or revoked service account token.

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```

### 404 (`application/problem+json`)

The addressed resource does not exist in this project.

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```

### 422 (`application/problem+json`)

Idempotency-Key reuse with a different request body.

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```

### 429 (`application/problem+json`)

Rate limit exceeded — honor the Retry-After header.

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```

### default (`application/problem+json`)

Any other error, including validation\_failed (400) and internal\_error (500).

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```
