Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

After spending many hours trying to post a question using /questions/add and repeatedly getting the error message "The account associated with the access_token does not have a user on the site", I finally realized that users have to join individual sites to post to it. I was attempting to post a question to a site which I have not joined because my site selector displayed all Stack Exchange sites from /sites. Is there a way to return only the sites which the user has joined to prevent the interface from leading an unsuspecting user into a dead end as I, the programmer, was?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

If you already have a token, then you can use the /me/associated network route to get the associated site for the authorized user. There's a similar route that takes a network account ID and does not require an active access token.

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .