Both self-hosted Mailcoach and Mailcoach Cloud offer https://mailcoach.app/docs/cloud/using-mailcoach/using-the-api/introduction to integrate Mailcoach's functionalities in your app. To hit the ground running, we now offer a https://github.com/mailcoach-sdk-php and a https://github.com/spatie/laravel-mailcoach-sdk to use our API easily.
You can find both the API key and the Mailcoach API endpoint in the "API Tokens" screen of the Mailcoach settings. Most endpoints of our API require a UUID to fetch subscribers, email lists, and campaigns.
Adding a subscriber to an email list is easy: $mailcoach->createSubscriber([ 'email_list_uuid' => ' ', 'email' => 'john@example', ]); Here is how to get the details of an email list: $emailList = $mailcoach->emailList('