I'm using the REST API to create contacts and add them to an existing mailing group. I want to add them as pending and trigger the confirmation email but I can't find a way to do it via the API.
The extension org.civicoop.emailapi seems like it does what I need but it only supports up to 4.6 and I'm running 5.0.2.
Are there any other options?
edit - I've installed org.civicoop.emailapi and it's working under 5.0.2, but I can't make it send the group confirmation email as it's not a normal mailing template.
edit - If I create my own mailing template, I can't find a token that generates the confirmation link for a specific user and a specific group. To be clear, I want to recreate the {subscribe.url} token from the Subscription Confirmation Request automated message.