Is there something wrong in my syntax? I’m getting an Error 404:
{“errors”:[{“message”:“No matching route for request”,“help”:“For more information on API status codes and how to handle them, read the docs on errors: Build an app with Asana”}]}
According to the API docs, that route as you specified doesn’t exist. One does exist as you have it except without the “/tasks” at the end but that doesn’t help you find tasks, it only finds tags.
You can use this, however, to find tasks with a tag:
If you don’t want to use the “search” endpoint provided by @lpb, the classic method is to use that endpoint, more easy to use if you need paging results (for more than 100 results). https://app.asana.com/api/1.0/tags/xxxxx/tasks
You don’t need to enter the workspace id, your query was OK except for the /workspaces/xxxx/