Send an authenticated POST request to the following endpoint with an array of subscriber ids, make sure you've set up the Mailcoach API.
@php($url = action('\\' . \Spatie\Mailcoach\Http\Api\Controllers\Automations\TriggerAutomationController::class, [$this->automation]))
Example POST request:
$ MAILCOACH_TOKEN="your API token"
$ curl -x POST {{ action('\\' . \Spatie\Mailcoach\Http\Api\Controllers\Automations\TriggerAutomationController::class, [$this->automation]) }} \
-H "Authorization: Bearer $MAILCOACH_TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json'
-d '{"subscribers":[1, 2, 3]}'
The automation will only trigger for subscribed subscribers of the automation's email list & segment.