GET /users/{user_gid}/favorites

Required scope: users:read

Returns all of a user's favorites within a specified workspace and of a given type. The results are ordered exactly as they appear in the user's Asana sidebar in the web application. Note that this endpoint currently only returns favorites for the current user (i.e., the user associated with the authentication token).

Servers

Path parameters

Name Type Required Description
user_gid String Yes

A string identifying a user. This can either be the string "me", an email, or the gid of a user.

Query parameters

Name Type Required Description
opt_pretty Boolean No

Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.

limit Integer No

Results per page. The number of objects to return per page. The value must be between 1 and 100.

resource_type String Yes

The resource type of favorites to be returned.

Valid values:

  • "project_template"
  • "project"
  • "task"
  • "user"
  • "portfolio"
  • "tag"

Default value: "project"

opt_fields[] Array No

This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.

workspace String Yes

The workspace in which to get favorites.

offset String No

Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. Note: You can only pass in an offset that was returned to you via a previously paginated request.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.