How to use parameters in API queries


#1

I am able to obtain all of the projects for a given team with the following URI:

https://app.asana.com/api/1.0/teams/1234567890/projects

But I can’t figure out how to only return projects that are not archived. The docs say to simply used the “archived” parameter. But how? These don’t work:

https://app.asana.com/api/1.0/teams/1234567890/projects/archived/false
https://app.asana.com/api/1.0/teams/1234567890/projects&archived=false


#2

Typo in OP. This doesn’t work (? not &):
https://app.asana.com/api/1.0/teams/1234567890/projects?archived=false

Nor does this:
https://app.asana.com/api/1.0/teams/1234567890/projects/search?archived=false


#3

Ah, I see what’s happening.

The route to get the projects isn’t nested under teams, but rather you’d pass in a team or workspace parameter. Try something like

https://app.asana.com/api/1.0/projects?archived=false&team=1234567890