Actually I realized that there are services to add files to a user's Private files area that were created for the Moodle App. Those could be used to upload the H5P to the user's Private files area and then the user could add them from there to either the content bank or as an activity on a course page. That may be a good place to start.
H5P
API access to content bank
This discussion has been locked so you can no longer reply to it.