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.

I'm using the API get inbox messages and notifications for various sites on the StackExchange network, but it doesn't seem to matter what site parameter I pass in the query string. I always get my global inbox. The following all return the same for me.

/2.1/me/inbox?site=stackoverflow

/2.1/me/inbox?site=stackapps

/2.1/me/inbox?site=windowsphone

Is this a bug? I don't think I'm doing anything silly...

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

As described in the /me/inbox documentation, the route is

...effectively an alias for /inbox. It is provided for consumers who make strong assumptions about operating within the context of a single site rather than the Stack Exchange network as a whole.

Since it's just more or less a convenience route for the global /inbox method, it doesn't actual behave as a per-site route and no filtering by site is performed. If you want to filter the items at the site level, you'll have to process the full set of results and just pick out what you want.

share|improve this answer
    
Cheers - didn't spot that sentence. What is the point of the site parameter then? I mean, what's the point of me making it clear to the API what context I'm using the inbox for? –  Spencerooni May 14 '13 at 10:07
add comment

You must log in to answer this question.

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