curl -u admin:admin -X POST http://localhost:9000/api/subscribers -H 'Content-Type: application/json' -d '{"email":"john@example.com","name":"John Doe","status":"enabled"}'

Category: Listmonk & Newsletters

curl -u admin:admin -X POST http://localhost:9000/api/subscribers -H 'Content-Type: application/json' -d '{"email":"john@example.com","name":"John Doe","status":"enabled"}'

Create a new subscriber via the API

Adds a subscriber with the given email and name; email and name are required, status defaults to enabled. Pass lists as an array of list ids to subscribe them immediately. Duplicate emails are rejected, so check for an existing record first or expect a 422 response.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.