---
title: "Logout an instance"
method: POST
path: "/v1/instance/{id}/logout"
tags: ["Instance"]
---

# Logout an instance

`POST /v1/instance/{id}/logout`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/v1/instance/{id}/logout`
- Auth: API key in header `apikey`

Disconnects the WhatsApp session for the given instance without deleting it

## Path parameters

- `id` string, required

## Response `200`

OK

- DtoDeleteInstanceResponse
  - `message` string

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

## Changes

- **2026-07-18** `f812473c5a89`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/changes/v1/instance/:id/logout/post.md)

---

[API](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api.md) - [All operations](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/revisions/b425ec589eb0?raw)
