Auth. HMAC v1 or bearer token — see Authentication.
Status. Live · Idempotent: No (leaving twice yields
1006 once the chat is no longer a group from your line’s perspective).Request
POST /api/v1/chats/{id}/leave
Response
Path parameters
Chat identifier (
ch_…).Response fields
The chat that was left.
Always
"left" on success.Errors
| Code | HTTP | When |
|---|---|---|
1002 | 400 | Group would have fewer than 3 members after leaving. |
1006 | 400 | Chat is a direct message. |
2002 | 404 | Chat not found. |
4001 | 502 | Delivery failed. |
4099 | 501 | Group is missing its chat key or has no pinned line. |

