Getting a user's discourse subscriptions through api

Hey everyone! i’m trying to get a user’s discourse subscriptions (through the official plugin) using the api. But anytime I try it returns

{"errors":["You need to be logged in to do that."],"error_type":"not_logged_in"}

I’m passing in their csrf token (which has been validated to work before making the request), I’ve found all this through reversing the api but it seems I might be missing something? Thanks to whoever provides a solution!

You should be passing in the API key and username:


Oh, thought it was like logging users in where you pass in a forum session and a csrf token and it just works. Thanks!

1 Like