With Api how do you create topics and posts so owned by particular user

You can use the All Users API key for everything to do with importing your data.