Apple didn't have to build an API for them, they simply provided documentation for how to use the existing API.
https://blog.fastmail.com/2015/07/17/push-email-now-availabl...
https://blog.fastmail.com/2015/07/17/push-email-now-availabl...