listmonk
listmonk copied to clipboard
API HTTP 409 if mail is in unconfirmed state
Version:
- listmonk: 4.1.0
- OS: linux
Description of the bug and steps to reproduce: When attempting to add a subscriber to a list with double opt-in enabled, the API returns a 409 Conflict if the email already exists — even if the subscriber is in a pending (unconfirmed) state.
While a 409 makes sense when a subscriber is already confirmed, it becomes problematic for pending users. If the subscriber has not confirmed their email yet, it would be helpful if listmonk either:
- Resent the double opt-in confirmation email automatically, or
- Add a
resend_confirmation: trueoption to the api
Steps to reproduce:
- Subscribe a new email to a list with double opt-in enabled.
- Do not click the confirmation link.
- Attempt to subscribe the same email again via the API.
- A 409 Conflict is returned, but no confirmation email is resent.
Screenshots: If applicable, add screenshots to help explain your problem.