Unsubscribe Subscriber
Unsubscribe a subscriber without deleting their history
MethodPOST
/api/v1/subscribers/{subscriber}/unsubscribehttps://lumail.io/api/v1/subscribers/{subscriber}/unsubscribe
Marks the subscriber as unsubscribed and stops future mail. The subscriber row, send history, opens, clicks, and journal stay. Subscriber deletion is not a product operation; DELETE /api/v1/subscribers/{subscriber} returns 405.
Response
- Success (200 OK) - Returns the unsubscribed subscriber.
- Error (404 Not Found) - Returned if the subscriber does not exist.
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the operation was successful |
message | string | Confirms the subscriber was unsubscribed |
subscriber.id | string | Unique identifier for the subscriber |
subscriber.email | string | Email address of the subscriber |
subscriber.status | string | UNSUBSCRIBED, or the existing non-subscribed status |
Request Schema
No request body is required. Identify the subscriber by unique ID or email address in the URL path.
Usage Example
Use this endpoint when you need to:
- Stop sending to a subscriber who asked to leave
- Keep send history and deliverability data intact
- Mirror an unsubscribe from an integration