No, you did not miss anything. The API does not have software for creating Pages files and does not have public specifications for the format. If there is no specific reason, you need Pages files, it is best to create RTF files. You can write code to create formatted RTF files, and the pages will open them and you will see the correct formatting.
source share