@os72 immediate publishing of a post via email needs to be done via a query param, POST .../posts/?send_email_when_published=true. Note that all API’s around the members beta feature are experimental and are subject to change without notice.
I tried POST w the parameter again, it’s not working for me (ghost 3.37.1). For some reason it needs the 2 transactions. (Value true or all doesn’t seem to matter) I wonder if the code somewhere looks at the transition from draft to published to trigger this
sorry for pointing you down the wrong path! The code was intended to work with POSTs but an omission meant that it only works with PUTs
For now I think you’ll have to stick with the draft creation then publish with the ?send_email_when_published query.
When is this part of the API expected to stabilize?
No concrete timeline at the moment as the members and bulk email functionality is moving from the early prototype/beta to first-class feature. Sometime in the new year I expect.
But I think there is a bug. On my test site, for the free option, it misses 1 user (both manual and API). On the manual publish preview it shows 3 free members, but then the email is sent only to 2
There is also an inconsistency issue because paid post with email_recipient_filter=all seems to deliver the post content (not just the title) to everyone, not just paid subscribers. I believe that wasn’t the case earlier
Delivering the notification (title + excerpt) would be expected/desired. The question is, should the content be delivered too. Note that the same free user wouldn’t be allowed to see the same content on the site