Posting a new topic via API

You must use the uploads endpoint: https://docs.discourse.org/#tag/Uploads
Then, use the returned short_url value to insert it in your post.