Typeahead Filtering or Field Selection

I need a way to call type ahead and either restrict to a project or be able to select the opt_fields=projects.id so I can parse response. I tried both below:

https://app.asana.com/api/1.0/workspaces/[XXXX]/typeahead?type=task&query=[XXXX]&opt_fields=id,name,projects.id,name,id&count=10

and

https://app.asana.com/api/1.0/projects/[XXXX]/typeahead?type=task&query=[XXXX]

Thanks

Hey @Raul_Reyes,

is not possible to filter typeahead by project. You will need to filter the response at your side.

You can use:
https://app.asana.com/api/1.0/workspaces/xxxx/typeahead?type=task&query=test&opt_pretty&opt_expand=id,name,this.memberships|project

Hope I helped,
D.