# Reopen a chat (v2)

Reopen a previously closed conversation and assign it to the calling agent (resolved from your API key / session). Replaces toggling `conversationClosed=false` on the deprecated [Terminate or reopen a chat conversation](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/terminatechatparticipantchat).

Endpoint: POST /pl4chat-service/api/v2/chats/{id}/open
Version: 3.0.0
Security: apikeyAuth

## Security:

  - `apikeyAuth` (unknown)
    apiKey in header Authorization

## Path parameters:

  - `id` (string, required)
    Chat participant id.

## Response 200:

  - `200` (unknown)
    The reopened chat

## Response 200 fields (application/json):

  - `id` (string)
    Example: aef65b5a-23a4-462a-a275-9aa2f3e0e56e

  - `fullName` (string)
    Example: John Doe

  - `firstName` (string)
    Example: John

  - `lastName` (string)
    Example: Doe

  - `phoneNumber` (string)
    Example: 27821234567

  - `userId` (string)
    Customer's durable business-scoped user id (**BSUID**, alpha usernames). Stable across phone-number changes; present even when the phone is withheld.
    Example: ZA.1021033720668862

  - `username` (string)
    Customer's optional WhatsApp username (display only).
    Example: johndoe

  - `email` (string)
    Example: john.doe@example.com

  - `channel` (string)
    Enum: "WHATSAPP", "WEB", "FACEBOOK"

  - `conversationStatus` (string)
    Example: ACTIVE

  - `conversationClosed` (boolean)
    Example: false

  - `unread` (boolean)
    Example: true

  - `missedConversation` (boolean)
    Example: false

  - `chatBotConversation` (boolean)
    Example: false

  - `whatsAppClientNumber` (string)
    Example: +27123456789

  - `team` (string)
    Example: Support

  - `teamId` (string)
    Example: 288436ad-4522-4f27-95e9-c406a917894d

  - `lastMessageTime` (string)
    Example: 2026-01-15T10:31:00Z

  - `createdTime` (string)
    Example: 2026-01-15T10:00:00Z

  - `customerLastMessageTime` (string)
    Example: 2026-01-15T10:30:00Z

  - `assignedTo` (object)
    Lean reference to the agent who sent or owns a message.

  - `assignedTo.id` (string)
    Example: b2c3d4e5-f6a7-8901-b2c3-d4e5f6a78901

  - `assignedTo.firstName` (string)
    Example: Alice

  - `assignedTo.lastName` (string)
    Example: Smith

  - `assignedTo.email` (string)
    Example: alice.smith@example.com

  - `assignedTo.avatar` (string)
    URL of the agent's avatar image.
    Example: https://example.com/avatars/alice.png

  - `lastMessagePreview` (string)
    One-line preview of the most recent message, ready to render. Text is collapsed to a single line and cut at 120 characters; media and structured messages come back as a placeholder: `(document)`, `(image)`, `(audio)`, `(video)`, `(location)`, `(contact)`, or `(message)`. Only present on the list endpoint, and omitted for chats with no messages.
    Example: Hi, I need help with my order

  - `lastMessageDirection` (string)
    Direction of the previewed message. `OUTGOING` means an agent or the bot sent it.
    Enum: "INCOMING", "OUTGOING"

  - `lastMessageMediaType` (string)
    Media type of the previewed message, when it carried media.
    Enum: "DOCUMENT", "IMAGE", "VIDEO", "BUTTON", "FILE", "AUDIO", "VOICE", "URL", "STICKER"

  - `lastMessageSender` (string)
    Who sent an `OUTGOING` previewed message: the agent's first name, or `Bot` when the chatbot sent it. Absent for `INCOMING` messages.
    Example: Hayley

## Response 401:

  - `401` (unknown)
    Authentication failed — the API key sent in the `Authorization` header is missing,
invalid, or has been revoked.
**Verify your API key before changing anything else.** Check the key currently active
on your account either in the eCommunicate web UI (API key settings), or by calling
`POST /payless4messaging-service/WhatsApp/authenticate/retrieveApiKey` with your
account credentials — that endpoint needs no existing key, so it works while every
other call is returning `401`. Compare the result with the value your integration is
sending: pass the key on its own (no `Bearer` prefix), trimmed of whitespace, as a
36-character UUID.
Do not retry a `401` — it will fail identically until the key is corrected. See the
[Authentication guide](/guides/authentication#troubleshooting-a-401).

## Response 401 fields (application/json):

  - `status` (string)
    Example: ERROR

  - `message` (string)
    Example: Unauthorized user

  - `requestId` (string)
    Example: c3a1f8e2-4b6d-11ee-be56-0242ac120002

  - `timestamp` (string)
    Example: 2026-01-15T10:30:00Z

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `status` (string)
    Example: ERROR

  - `message` (string)
    Example: Forbidden

  - `requestId` (string)
    Example: c3a1f8e2-4b6d-11ee-be56-0242ac120002

  - `timestamp` (string)
    Example: 2026-01-15T10:30:00Z

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `status` (string)
    Example: ERROR

  - `message` (string)
    Example: Resource not found

  - `requestId` (string)
    Example: c3a1f8e2-4b6d-11ee-be56-0242ac120002

  - `timestamp` (string)
    Example: 2026-01-15T10:30:00Z

