Problem with Task Permissions via API

Hi All,

I’m having trouble with Asana Permissions in tasks.

I’ve create one task with my user (gid: XXXXXXX), and I’ve add a collaborator to that task (gid: YYYYYY).

I want to check that task status and his story with user YYYYY, i’m able to do it via web, but API gives me this:

curl -H "authorization:bearer 0/YYYYYYYYYYYYYYYYYYYYYYYY"
{"errors":[{"message":"You do not have access to this task.","help":"For more information on API status codes and how to handle them, read the docs on errors:"}]}

Any idea why?