Have you seen this topic? Reverse engineer the Discourse API
And btw user notes are tied to a post, not to a topic.