mailerlite-api-v2-php-sdk icon indicating copy to clipboard operation
mailerlite-api-v2-php-sdk copied to clipboard

Endpoint not found error with the new MailerLite

Open akosphp opened this issue 3 years ago • 1 comments

Hi all,

We've recently moved to the new MailerLite from the Classic version, and some endpoints are not working with the new version.

For example, there is a problem with the webhooks endpoint.

Client error: GET https://api.mailerlite.com/api/v2/webhooks resulted in a 404 Not Found response: {"error":{"message":"Endpoint not found"}}

We have the same problem wiht the unsubscription ($this->mailerLite->subscribers()->delete($subscriber->getEmail())).

Does anyone know the solution to this?

akosphp avatar Oct 10 '22 11:10 akosphp

I've just received an update from the MailerLite support team:

There is no endpoint for webhooks available for the new API at the moment, you can find all available endpoints on the main page here: https://developers.mailerlite.com/docs/#mailerlite-api "https://api.mailerlite.com/api/v2/webhooks" is an endpoint from the Classic version - it will only work with the classic API key. The card to create webhooks for the new Mailerlite as well, but it was created just a week ago, so it will take some time before it is released. Once it's out - it will be added to the documentation for new API.

akosphp avatar Oct 11 '22 09:10 akosphp