Skip to content

Search projects in a workspace

API Reference

Required scope: projects:read

To mirror the functionality of the Asana web app's advanced search feature, the Asana API has a project search endpoint that allows you to build complex filters to find and retrieve the exact data you need.

Premium access

Like the Asana web product's advance search feature, this search endpoint will only be available to premium Asana users. A user is premium if any of the following is true:

  • The workspace in which the search is being performed is a premium workspace
  • The user is a member of a premium team inside the workspace

Even if a user is only a member of a premium team inside a non-premium workspace, search will allow them to find data anywhere in the workspace, not just inside the premium team. Making a search request using credentials of a non-premium user will result in a 402 Payment Required error.

Pagination

Search results are not stable; repeating the same query multiple times may return the data in a different order, even if the data do not change. Because of this, the traditional pagination available elsewhere in the Asana API is not available here. However, you can paginate manually by sorting the search results by their creation time and then modifying each subsequent query to exclude data you have already seen. Page sizes are limited to a maximum of 100 items, and can be specified by the limit query parameter.

Eventual consistency

Changes in Asana (regardless of whether they’re made though the web product or the API) are forwarded to our search infrastructure to be indexed. This process can take between 10 and 60 seconds to complete under normal operation, and longer during some production incidents. Making a change to a project that would alter its presence in a particular search query will not be reflected immediately. This is also true of the advanced search feature in the web product. Because of this delay, the search endpoint is not suited for use cases that require immediate consistency after writes. If you need read-your-write behavior or strongly consistent results, we recommend using Get multiple projects instead.

Rate limits

You may receive a 429 Too Many Requests response if you hit any of our rate limits.

Custom field parameters

Parameter nameCustom field typeAccepted type
custom_fields.{gid}.is_setAllBoolean
custom_fields.{gid}.valueTextString
custom_fields.{gid}.valueNumberNumber
custom_fields.{gid}.valueEnumEnum option ID
custom_fields.{gid}.starts_withText onlyString
custom_fields.{gid}.ends_withText onlyString
custom_fields.{gid}.containsText onlyString
custom_fields.{gid}.less_thanNumber onlyNumber
custom_fields.{gid}.greater_thanNumber onlyNumber

For example, if the gid of the custom field is 12345, the query parameter to find projects where it is set would be custom_fields.12345.is_set=true. To match an exact value for an enum custom field, use the gid of the desired enum option and not the name of the enum option: custom_fields.12345.value=67890.

Not Supported: searching for multiple exact matches of a custom field, searching for multi-enum custom field

OpenAPI definition

json
{
  "openapi": "3.0.0",
  "info": {
    "description": "This is the interface for interacting with the Asana Platform. Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).",
    "x-public-description": "This is the interface for interacting with the Asana Platform. Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).",
    "title": "Asana",
    "termsOfService": "https://asana.com/terms",
    "contact": {
      "name": "Asana Support",
      "url": "https://asana.com/support"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "version": "1.0",
    "x-docs-schema-whitelist": [
      "AsanaResource",
      "AsanaNamedResource",
      "AuditLogEvent",
      "AttachmentResponse",
      "AttachmentCompact",
      "BatchResponse",
      "CustomFieldSettingResponse",
      "CustomFieldSettingCompact",
      "CustomTypeResponse",
      "CustomTypeBase",
      "CustomTypeCompact",
      "CustomTypeStatusOptionResponse",
      "CustomTypeStatusOptionBase",
      "CustomTypeStatusOptionCompact",
      "CustomFieldResponse",
      "CustomFieldCompact",
      "CustomFieldMembershipCompact",
      "CustomFieldMembershipResponse",
      "EnumOption",
      "EventResponse",
      "ErrorResponse",
      "GoalResponse",
      "GoalCompact",
      "GoalMembershipCompact",
      "GoalMembershipBase",
      "GoalMembershipResponse",
      "GoalRelationshipResponse",
      "GoalRelationshipCompact",
      "GraphExportResponse",
      "GraphExportCompact",
      "JobResponse",
      "JobCompact",
      "OrganizationExportResponse",
      "OrganizationExportCompact",
      "PortfolioMembershipResponse",
      "PortfolioMembershipCompact",
      "PortfolioResponse",
      "PortfolioCompact",
      "ProjectBriefResponse",
      "ProjectBriefCompact",
      "ProjectMembershipCompactResponse",
      "ProjectMembershipNormalResponse",
      "ProjectMembershipCompact",
      "ProjectResponse",
      "ProjectCompact",
      "ProjectStatusResponse",
      "ProjectStatusCompact",
      "ProjectTemplateCompact",
      "ProjectTemplateResponse",
      "RuleTriggerResponse",
      "ResourceExportResponse",
      "ResourceExportCompact",
      "ResourceExportCompact",
      "RbacRoleResponse",
      "RbacRoleCompact",
      "SectionResponse",
      "SectionCompact",
      "StatusUpdateResponse",
      "StatusUpdateCompact",
      "StoryResponse",
      "StoryCompact",
      "TagResponse",
      "TagCompact",
      "TaskResponse",
      "TaskCompact",
      "TaskCountResponse",
      "TeamMembershipResponse",
      "TeamMembershipCompact",
      "TeamResponse",
      "TeamCompact",
      "TimePeriodResponse",
      "TimePeriodCompact",
      "TimeTrackingCategoryResponse",
      "TimeTrackingCategoryCompact",
      "UserTaskListResponse",
      "UserTaskListCompact",
      "UserResponse",
      "UserCompact",
      "WebhookFilter",
      "WebhookResponse",
      "WebhookCompact",
      "WorkspaceMembershipResponse",
      "WorkspaceMembershipCompact",
      "WorkspaceResponse",
      "WorkspaceCompact"
    ]
  },
  "servers": [
    {
      "url": "https://app.asana.com/api/1.0",
      "description": "Main endpoint."
    }
  ],
  "security": [
    {
      "personalAccessToken": []
    },
    {
      "oauth2": []
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  },
  "tags": [
    {
      "name": "Projects",
      "description": "A project represents a prioritized list of tasks in Asana or a board with columns of tasks represented as cards. A project exists in a single workspace or organization and is accessible to a subset of users in that workspace or organization, depending on its permissions.\n\nProjects in organizations are shared with a single team. Currently, the team of a project cannot be changed via the API. Non-organization workspaces do not have teams and so you should not specify the team of project in a regular workspace.\n\nFollowers of a project are a subset of the members of that project. Followers of a project will receive all updates including tasks created, added and removed from that project. Members of the project have access to and will receive status updates of the project. Adding followers to a project will add them as members if they are not already, removing followers from a project will not affect membership.\n\n**Note:** You can use certain project endpoints to operate on [user task lists](/reference/user-task-lists/user-task-lists) (My Tasks) by substituting the `{project_gid}` with the `{user_task_list_gid}`. For example, you can perform operations on the custom fields of a user task list by using the following projects endpoints: [Add a custom field to a project](/reference/custom-fields/addcustomfieldsettingforproject), [Remove a custom field from a project](/reference/custom-fields/removecustomfieldsettingforproject) and [Get a project's custom fields](/reference/custom-fields/getcustomfieldsettingsforproject)"
    }
  ],
  "components": {
    "parameters": {
      "pretty": {
        "name": "opt_pretty",
        "in": "query",
        "description": "Provides “pretty” output.\nProvides 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.",
        "required": false,
        "allowEmptyValue": true,
        "schema": {
          "type": "boolean"
        },
        "style": "form",
        "example": true
      },
      "workspace_path_gid": {
        "name": "workspace_gid",
        "in": "path",
        "description": "Globally unique identifier for the workspace or organization.",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "12345",
        "x-env-variable": "workspace"
      }
    },
    "responses": {
      "BadRequest": {
        "description": "This usually occurs because of a missing or malformed parameter. Check the documentation and the syntax of your request and try again.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "A valid authentication token was not provided with the request, so the API could not associate a user with the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "The request was valid, but the queried object or object mutation specified in the request is above your current premium level.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The authentication and request syntax was valid but the server is refusing to complete the request. This can happen if you try to read or write to objects or properties that the user does not have access to.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "NotFound": {
        "description": "Either the request method and path supplied do not specify a known action in the API, or the object specified by the request does not exist.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "There was a problem on Asana’s end. In the event of a server error the response body should contain an error phrase. These phrases can be used by Asana support to quickly look up the incident that caused the server error. Some errors are due to server load, and will not supply an error phrase.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "readOnly": true,
            "description": "Message providing more detail about the error that occurred, if available.",
            "example": "project: Missing input"
          },
          "help": {
            "type": "string",
            "readOnly": true,
            "description": "Additional information directing developers to resources on how to address and fix the problem, if available.",
            "example": "For more information on API status codes and how to handle them, read the docs on errors: https://asana.github.io/developer-docs/#errors'"
          },
          "phrase": {
            "type": "string",
            "readOnly": true,
            "description": "*500 errors only*. A unique error phrase which can be used when contacting developer support to help identify the exact occurrence of the problem in Asana's logs.",
            "example": "6 sad squid snuggle softly"
          }
        }
      },
      "ErrorResponse": {
        "description": "Sadly, sometimes requests to the API are not successful. Failures can\noccur for a wide range of reasons. In all cases, the API should return\nan HTTP Status Code that indicates the nature of the failure,\nwith a response body in JSON format containing additional information.\n\n\nIn the event of a server error the response body will contain an error\nphrase. These phrases are automatically generated using the\nnode-asana-phrase\nlibrary and can be used by\nAsana support to quickly look up the incident that caused the server\nerror.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ProjectCompact": {
        "description": "A *project* represents a prioritized list of tasks in Asana or a board with columns of tasks represented as cards. It exists in a single workspace or organization and is accessible to a subset of users in that workspace or organization, depending on its permissions.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "project",
            "x-insert-after": "gid"
          },
          "name": {
            "description": "Name of the project. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer.",
            "type": "string",
            "example": "Stuff to buy"
          }
        }
      }
    },
    "securitySchemes": {
      "personalAccessToken": {
        "type": "http",
        "description": "A personal access token allows access to the api for the user who created it. This should be kept a secret and be treated like a password.",
        "scheme": "bearer"
      },
      "oauth2": {
        "type": "oauth2",
        "description": "We require that applications designed to access the Asana API on behalf of multiple users implement OAuth 2.0.\nAsana supports the Authorization Code Grant flow.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://app.asana.com/-/oauth_authorize",
            "tokenUrl": "https://app.asana.com/-/oauth_token",
            "refreshUrl": "https://app.asana.com/-/oauth_token",
            "scopes": {
              "default": "Provides access to all endpoints documented in our API reference. If no scopes are requested, this scope is assumed by default.",
              "openid": "Provides access to OpenID Connect ID tokens and the OpenID Connect user info endpoint.",
              "email": "Provides access to the user’s email through the OpenID Connect user info endpoint.",
              "profile": "Provides access to the user’s name and profile photo through the OpenID Connect user info endpoint.",
              "attachments:read": "View access to attachments",
              "attachments:write": "Create and modify access to attachments",
              "attachments:delete": "Delete access to attachments",
              "custom_fields:read": "View access to custom fields",
              "custom_fields:write": "Create and modify access to custom fields",
              "goals:read": "View access to goals",
              "jobs:read": "View access to jobs",
              "ooo_entries:read": "View access to OOO entries",
              "ooo_entries:write": "Create and modify access to OOO entries",
              "ooo_entries:delete": "Delete access to OOO entries",
              "tasks:read": "View access to tasks",
              "tasks:write": "Create and modify access to tasks",
              "tasks:delete": "Delete access to tasks",
              "task_custom_types:read": "View access to task custom types",
              "task_templates:read": "View access to task templates",
              "team_memberships:read": "View access to team memberships",
              "portfolios:read": "View access to portfolios",
              "portfolios:write": "Create and modify access to portfolios",
              "project_templates:read": "View access to project templates",
              "project_portfolio_settings:read": "View access to project portfolio settings",
              "project_portfolio_settings:write": "Create and modify access to project portfolio settings",
              "projects:delete": "Delete access to projects",
              "projects:read": "View access to projects",
              "projects:write": "Create and modify access to projects",
              "roles:read": "View access to roles",
              "roles:write": "Create and modify access to roles",
              "roles:delete": "Delete access to roles",
              "users:read": "View access to users",
              "teams:read": "View access to teams",
              "time_tracking_categories:read": "View access to time tracking categories",
              "time_tracking_categories:write": "Create and modify access to time tracking categories",
              "time_tracking_categories:delete": "Delete access to time tracking categories",
              "time_tracking_entries:read": "View access to time tracking entries",
              "timesheet_approval_statuses:read": "View access to timesheet approval statuses",
              "timesheet_approval_statuses:write": "Create and modify access to timesheet approval statuses",
              "stories:read": "View access to stories",
              "stories:write": "Create and modify access to stories",
              "tags:read": "View access to tags",
              "tags:write": "Create and modify access to tags",
              "webhooks:read": "View access to webhooks",
              "webhooks:write": "Create and modify access to webhooks",
              "webhooks:delete": "Delete access to webhooks",
              "workspaces:read": "View access to workspaces"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/workspaces/{workspace_gid}/projects/search": {
      "parameters": [
        {
          "$ref": "#/components/parameters/workspace_path_gid"
        },
        {
          "$ref": "#/components/parameters/pretty"
        },
        {
          "name": "text",
          "in": "query",
          "description": "Performs full-text search on the project name.",
          "schema": {
            "type": "string"
          },
          "example": "Bugs"
        },
        {
          "name": "sort_by",
          "in": "query",
          "description": "One of `due_date`, `created_at`, `completed_at`, or `modified_at`, defaults to `modified_at`.",
          "schema": {
            "type": "string",
            "enum": [
              "due_date",
              "created_at",
              "completed_at",
              "modified_at"
            ],
            "default": "modified_at"
          },
          "example": "modified_at"
        },
        {
          "name": "sort_ascending",
          "in": "query",
          "description": "Default `false`.",
          "schema": {
            "type": "boolean",
            "default": false
          },
          "example": false
        },
        {
          "name": "completed",
          "in": "query",
          "description": "Filter on project completion status.",
          "schema": {
            "type": "boolean"
          },
          "example": false
        },
        {
          "name": "teams.any",
          "in": "query",
          "description": "Comma-separated list of team IDs.",
          "schema": {
            "type": "string"
          },
          "example": "12345,67890"
        },
        {
          "name": "owner.any",
          "in": "query",
          "description": "Comma-separated list of user identifiers to filter on as project owners. This can either be the string \"me\", an email, or the gid of a user.",
          "schema": {
            "type": "string"
          },
          "example": "12345,67890"
        },
        {
          "name": "members.any",
          "in": "query",
          "description": "Comma-separated list of user identifiers to filter on as members. This can either be the string \"me\", an email, or the gid of a user.",
          "schema": {
            "type": "string"
          },
          "example": "12345,67890"
        },
        {
          "name": "members.not",
          "in": "query",
          "description": "Comma-separated list of user identifiers to exclude as members. This can either be the string \"me\", an email, or the gid of a user.",
          "schema": {
            "type": "string"
          },
          "example": "12345,67890"
        },
        {
          "name": "portfolios.any",
          "in": "query",
          "description": "Comma-separated list of portfolio IDs to filter on.",
          "schema": {
            "type": "string"
          },
          "example": "12345,67890"
        },
        {
          "name": "completed_on",
          "in": "query",
          "description": "ISO 8601 date string or `null`.",
          "schema": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "example": "2019-09-15"
        },
        {
          "name": "completed_on.before",
          "in": "query",
          "description": "ISO 8601 date string.",
          "schema": {
            "type": "string",
            "format": "date"
          },
          "example": "2019-09-15"
        },
        {
          "name": "completed_on.after",
          "in": "query",
          "description": "ISO 8601 date string.",
          "schema": {
            "type": "string",
            "format": "date"
          },
          "example": "2019-09-15"
        },
        {
          "name": "completed_at.before",
          "in": "query",
          "description": "ISO 8601 datetime string.",
          "schema": {
            "type": "string",
            "format": "date-time"
          },
          "example": "2019-04-15T01:01:46.055Z"
        },
        {
          "name": "completed_at.after",
          "in": "query",
          "description": "ISO 8601 datetime string.",
          "schema": {
            "type": "string",
            "format": "date-time"
          },
          "example": "2019-04-15T01:01:46.055Z"
        },
        {
          "name": "created_on",
          "in": "query",
          "description": "ISO 8601 date string or `null`.",
          "schema": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "example": "2019-09-15"
        },
        {
          "name": "created_on.before",
          "in": "query",
          "description": "ISO 8601 date string.",
          "schema": {
            "type": "string",
            "format": "date"
          },
          "example": "2019-09-15"
        },
        {
          "name": "created_on.after",
          "in": "query",
          "description": "ISO 8601 date string.",
          "schema": {
            "type": "string",
            "format": "date"
          },
          "example": "2019-09-15"
        },
        {
          "name": "created_at.before",
          "in": "query",
          "description": "ISO 8601 datetime string.",
          "schema": {
            "type": "string",
            "format": "date-time"
          },
          "example": "2019-04-15T01:01:46.055Z"
        },
        {
          "name": "created_at.after",
          "in": "query",
          "description": "ISO 8601 datetime string.",
          "schema": {
            "type": "string",
            "format": "date-time"
          },
          "example": "2019-04-15T01:01:46.055Z"
        },
        {
          "name": "due_on",
          "in": "query",
          "description": "ISO 8601 date string or `null`.",
          "schema": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "example": "2019-09-15"
        },
        {
          "name": "due_on.before",
          "in": "query",
          "description": "ISO 8601 date string.",
          "schema": {
            "type": "string",
            "format": "date"
          },
          "example": "2019-09-15"
        },
        {
          "name": "due_on.after",
          "in": "query",
          "description": "ISO 8601 date string.",
          "schema": {
            "type": "string",
            "format": "date"
          },
          "example": "2019-09-15"
        },
        {
          "name": "due_at.before",
          "in": "query",
          "description": "ISO 8601 datetime string.",
          "schema": {
            "type": "string",
            "format": "date-time"
          },
          "example": "2019-04-15T01:01:46.055Z"
        },
        {
          "name": "due_at.after",
          "in": "query",
          "description": "ISO 8601 datetime string.",
          "schema": {
            "type": "string",
            "format": "date-time"
          },
          "example": "2019-04-15T01:01:46.055Z"
        },
        {
          "name": "start_on",
          "in": "query",
          "description": "ISO 8601 date string or `null`.",
          "schema": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "example": "2019-09-15"
        },
        {
          "name": "start_on.before",
          "in": "query",
          "description": "ISO 8601 date string.",
          "schema": {
            "type": "string",
            "format": "date"
          },
          "example": "2019-09-15"
        },
        {
          "name": "start_on.after",
          "in": "query",
          "description": "ISO 8601 date string.",
          "schema": {
            "type": "string",
            "format": "date"
          },
          "example": "2019-09-15"
        }
      ],
      "get": {
        "summary": "Search projects in a workspace",
        "description": "<b>Required scope: </b>projects:read\n\nTo mirror the functionality of the Asana web app's advanced search feature, the Asana API has a project search endpoint that allows you to build complex filters to find and retrieve the exact data you need.\n#### Premium access\nLike the Asana web product's advance search feature, this search endpoint will only be available to premium Asana users. A user is premium if any of the following is true:\n\n- The workspace in which the search is being performed is a premium workspace\n- The user is a member of a premium team inside the workspace\n\nEven if a user is only a member of a premium team inside a non-premium workspace, search will allow them to find data anywhere in the workspace, not just inside the premium team. Making a search request using credentials of a non-premium user will result in a `402 Payment Required` error.\n#### Pagination\nSearch results are not stable; repeating the same query multiple times may return the data in a different order, even if the data do not change. Because of this, the traditional [pagination](/docs/pagination) available elsewhere in the Asana API is not available here. However, you can paginate manually by sorting the search results by their creation time and then modifying each subsequent query to exclude data you have already seen. Page sizes are limited to a maximum of 100 items, and can be specified by the `limit` query parameter.\n#### Eventual consistency\nChanges in Asana (regardless of whether they’re made though the web product or the API) are forwarded to our search infrastructure to be indexed. This process can take between 10 and 60 seconds to complete under normal operation, and longer during some production incidents. Making a change to a project that would alter its presence in a particular search query will not be reflected immediately. This is also true of the advanced search feature in the web product.\nBecause of this delay, the search endpoint is not suited for use cases that require immediate consistency after writes. If you need read-your-write behavior or strongly consistent results, we recommend using [Get multiple projects](/reference/projects/getprojects) instead.\n#### Rate limits\nYou may receive a `429 Too Many Requests` response if you hit any of our [rate limits](/guides/platform/rate-limits).\n#### Custom field parameters\n| Parameter name | Custom field type | Accepted type |\n|---|---|---|\n| custom_fields.{gid}.is_set | All | Boolean |\n| custom_fields.{gid}.value | Text | String |\n| custom_fields.{gid}.value | Number | Number |\n| custom_fields.{gid}.value | Enum | Enum option ID |\n| custom_fields.{gid}.starts_with | Text only | String |\n| custom_fields.{gid}.ends_with | Text only | String |\n| custom_fields.{gid}.contains | Text only | String |\n| custom_fields.{gid}.less_than | Number only | Number |\n| custom_fields.{gid}.greater_than | Number only | Number |\n\n\nFor example, if the gid of the custom field is 12345, the query parameter to find projects where it is set would be `custom_fields.12345.is_set=true`. To match an exact value for an enum custom field, use the gid of the desired enum option and not the name of the enum option: `custom_fields.12345.value=67890`.\n\n**Not Supported**: searching for multiple exact matches of a custom field, searching for multi-enum custom field",
        "tags": [
          "Projects"
        ],
        "operationId": "searchProjectsForWorkspace",
        "parameters": [
          {
            "name": "opt_fields",
            "in": "query",
            "description": "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.",
            "required": false,
            "example": [
              "archived",
              "color",
              "completed",
              "completed_at",
              "completed_by",
              "completed_by.name",
              "created_at",
              "created_from_template",
              "created_from_template.name",
              "current_status",
              "current_status.author",
              "current_status.author.name",
              "current_status.color",
              "current_status.created_at",
              "current_status.created_by",
              "current_status.created_by.name",
              "current_status.html_text",
              "current_status.modified_at",
              "current_status.text",
              "current_status.title",
              "current_status_update",
              "current_status_update.resource_subtype",
              "current_status_update.title",
              "custom_field_settings",
              "custom_field_settings.custom_field",
              "custom_field_settings.custom_field.asana_created_field",
              "custom_field_settings.custom_field.created_by",
              "custom_field_settings.custom_field.created_by.name",
              "custom_field_settings.custom_field.currency_code",
              "custom_field_settings.custom_field.custom_label",
              "custom_field_settings.custom_field.custom_label_position",
              "custom_field_settings.custom_field.date_value",
              "custom_field_settings.custom_field.date_value.date",
              "custom_field_settings.custom_field.date_value.date_time",
              "custom_field_settings.custom_field.default_access_level",
              "custom_field_settings.custom_field.description",
              "custom_field_settings.custom_field.display_value",
              "custom_field_settings.custom_field.enabled",
              "custom_field_settings.custom_field.enum_options",
              "custom_field_settings.custom_field.enum_options.color",
              "custom_field_settings.custom_field.enum_options.enabled",
              "custom_field_settings.custom_field.enum_options.name",
              "custom_field_settings.custom_field.enum_value",
              "custom_field_settings.custom_field.enum_value.color",
              "custom_field_settings.custom_field.enum_value.enabled",
              "custom_field_settings.custom_field.enum_value.name",
              "custom_field_settings.custom_field.format",
              "custom_field_settings.custom_field.has_notifications_enabled",
              "custom_field_settings.custom_field.html_text_value",
              "custom_field_settings.custom_field.id_prefix",
              "custom_field_settings.custom_field.input_restrictions",
              "custom_field_settings.custom_field.is_formula_field",
              "custom_field_settings.custom_field.is_global_to_workspace",
              "custom_field_settings.custom_field.is_value_read_only",
              "custom_field_settings.custom_field.multi_enum_values",
              "custom_field_settings.custom_field.multi_enum_values.color",
              "custom_field_settings.custom_field.multi_enum_values.enabled",
              "custom_field_settings.custom_field.multi_enum_values.name",
              "custom_field_settings.custom_field.name",
              "custom_field_settings.custom_field.number_value",
              "custom_field_settings.custom_field.people_value",
              "custom_field_settings.custom_field.people_value.name",
              "custom_field_settings.custom_field.precision",
              "custom_field_settings.custom_field.privacy_setting",
              "custom_field_settings.custom_field.reference_value",
              "custom_field_settings.custom_field.reference_value.name",
              "custom_field_settings.custom_field.representation_type",
              "custom_field_settings.custom_field.resource_subtype",
              "custom_field_settings.custom_field.text_value",
              "custom_field_settings.custom_field.type",
              "custom_field_settings.is_important",
              "custom_field_settings.parent",
              "custom_field_settings.parent.name",
              "custom_field_settings.project",
              "custom_field_settings.project.name",
              "custom_fields",
              "custom_fields.date_value",
              "custom_fields.date_value.date",
              "custom_fields.date_value.date_time",
              "custom_fields.display_value",
              "custom_fields.enabled",
              "custom_fields.enum_options",
              "custom_fields.enum_options.color",
              "custom_fields.enum_options.enabled",
              "custom_fields.enum_options.name",
              "custom_fields.enum_value",
              "custom_fields.enum_value.color",
              "custom_fields.enum_value.enabled",
              "custom_fields.enum_value.name",
              "custom_fields.id_prefix",
              "custom_fields.input_restrictions",
              "custom_fields.is_formula_field",
              "custom_fields.multi_enum_values",
              "custom_fields.multi_enum_values.color",
              "custom_fields.multi_enum_values.enabled",
              "custom_fields.multi_enum_values.name",
              "custom_fields.name",
              "custom_fields.number_value",
              "custom_fields.representation_type",
              "custom_fields.text_value",
              "custom_fields.type",
              "default_access_level",
              "default_view",
              "due_date",
              "due_on",
              "followers",
              "followers.name",
              "html_notes",
              "icon",
              "members",
              "members.name",
              "minimum_access_level_for_customization",
              "minimum_access_level_for_sharing",
              "modified_at",
              "name",
              "notes",
              "owner",
              "permalink_url",
              "privacy_setting",
              "project_brief",
              "public",
              "start_on",
              "team",
              "team.name",
              "workspace",
              "workspace.name"
            ],
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "archived",
                  "color",
                  "completed",
                  "completed_at",
                  "completed_by",
                  "completed_by.name",
                  "created_at",
                  "created_from_template",
                  "created_from_template.name",
                  "current_status",
                  "current_status.author",
                  "current_status.author.name",
                  "current_status.color",
                  "current_status.created_at",
                  "current_status.created_by",
                  "current_status.created_by.name",
                  "current_status.html_text",
                  "current_status.modified_at",
                  "current_status.text",
                  "current_status.title",
                  "current_status_update",
                  "current_status_update.resource_subtype",
                  "current_status_update.title",
                  "custom_field_settings",
                  "custom_field_settings.custom_field",
                  "custom_field_settings.custom_field.asana_created_field",
                  "custom_field_settings.custom_field.created_by",
                  "custom_field_settings.custom_field.created_by.name",
                  "custom_field_settings.custom_field.currency_code",
                  "custom_field_settings.custom_field.custom_label",
                  "custom_field_settings.custom_field.custom_label_position",
                  "custom_field_settings.custom_field.date_value",
                  "custom_field_settings.custom_field.date_value.date",
                  "custom_field_settings.custom_field.date_value.date_time",
                  "custom_field_settings.custom_field.default_access_level",
                  "custom_field_settings.custom_field.description",
                  "custom_field_settings.custom_field.display_value",
                  "custom_field_settings.custom_field.enabled",
                  "custom_field_settings.custom_field.enum_options",
                  "custom_field_settings.custom_field.enum_options.color",
                  "custom_field_settings.custom_field.enum_options.enabled",
                  "custom_field_settings.custom_field.enum_options.name",
                  "custom_field_settings.custom_field.enum_value",
                  "custom_field_settings.custom_field.enum_value.color",
                  "custom_field_settings.custom_field.enum_value.enabled",
                  "custom_field_settings.custom_field.enum_value.name",
                  "custom_field_settings.custom_field.format",
                  "custom_field_settings.custom_field.has_notifications_enabled",
                  "custom_field_settings.custom_field.html_text_value",
                  "custom_field_settings.custom_field.id_prefix",
                  "custom_field_settings.custom_field.input_restrictions",
                  "custom_field_settings.custom_field.is_formula_field",
                  "custom_field_settings.custom_field.is_global_to_workspace",
                  "custom_field_settings.custom_field.is_value_read_only",
                  "custom_field_settings.custom_field.multi_enum_values",
                  "custom_field_settings.custom_field.multi_enum_values.color",
                  "custom_field_settings.custom_field.multi_enum_values.enabled",
                  "custom_field_settings.custom_field.multi_enum_values.name",
                  "custom_field_settings.custom_field.name",
                  "custom_field_settings.custom_field.number_value",
                  "custom_field_settings.custom_field.people_value",
                  "custom_field_settings.custom_field.people_value.name",
                  "custom_field_settings.custom_field.precision",
                  "custom_field_settings.custom_field.privacy_setting",
                  "custom_field_settings.custom_field.reference_value",
                  "custom_field_settings.custom_field.reference_value.name",
                  "custom_field_settings.custom_field.representation_type",
                  "custom_field_settings.custom_field.resource_subtype",
                  "custom_field_settings.custom_field.text_value",
                  "custom_field_settings.custom_field.type",
                  "custom_field_settings.is_important",
                  "custom_field_settings.parent",
                  "custom_field_settings.parent.name",
                  "custom_field_settings.project",
                  "custom_field_settings.project.name",
                  "custom_fields",
                  "custom_fields.date_value",
                  "custom_fields.date_value.date",
                  "custom_fields.date_value.date_time",
                  "custom_fields.display_value",
                  "custom_fields.enabled",
                  "custom_fields.enum_options",
                  "custom_fields.enum_options.color",
                  "custom_fields.enum_options.enabled",
                  "custom_fields.enum_options.name",
                  "custom_fields.enum_value",
                  "custom_fields.enum_value.color",
                  "custom_fields.enum_value.enabled",
                  "custom_fields.enum_value.name",
                  "custom_fields.id_prefix",
                  "custom_fields.input_restrictions",
                  "custom_fields.is_formula_field",
                  "custom_fields.multi_enum_values",
                  "custom_fields.multi_enum_values.color",
                  "custom_fields.multi_enum_values.enabled",
                  "custom_fields.multi_enum_values.name",
                  "custom_fields.name",
                  "custom_fields.number_value",
                  "custom_fields.representation_type",
                  "custom_fields.text_value",
                  "custom_fields.type",
                  "default_access_level",
                  "default_view",
                  "due_date",
                  "due_on",
                  "followers",
                  "followers.name",
                  "html_notes",
                  "icon",
                  "members",
                  "members.name",
                  "minimum_access_level_for_customization",
                  "minimum_access_level_for_sharing",
                  "modified_at",
                  "name",
                  "notes",
                  "owner",
                  "permalink_url",
                  "privacy_setting",
                  "project_brief",
                  "public",
                  "start_on",
                  "team",
                  "team.name",
                  "workspace",
                  "workspace.name"
                ]
              }
            },
            "style": "form",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved matching projects.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectCompact"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "language": "node",
              "install": "npm install asana",
              "code": "const Asana = require('asana');\n\nlet client = new Asana.ApiClient();\nclient.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';\n\nlet projectsApiInstance = new Asana.ProjectsApi(client);\nlet workspace_gid = \"12345\"; // String | Globally unique identifier for the workspace or organization.\nlet opts = { \n    'text': \"Bugs\", \n    'sort_by': \"modified_at\", \n    'sort_ascending': false, \n    'completed': false, \n    'teams.any': \"12345,67890\", \n    'owner.any': \"12345,67890\", \n    'members.any': \"12345,67890\", \n    'members.not': \"12345,67890\", \n    'portfolios.any': \"12345,67890\", \n    'completed_on': \"2019-09-15\", \n    'completed_on.before': \"2019-09-15\", \n    'completed_on.after': \"2019-09-15\", \n    'completed_at.before': \"2019-04-15T01:01:46.055Z\", \n    'completed_at.after': \"2019-04-15T01:01:46.055Z\", \n    'created_on': \"2019-09-15\", \n    'created_on.before': \"2019-09-15\", \n    'created_on.after': \"2019-09-15\", \n    'created_at.before': \"2019-04-15T01:01:46.055Z\", \n    'created_at.after': \"2019-04-15T01:01:46.055Z\", \n    'due_on': \"2019-09-15\", \n    'due_on.before': \"2019-09-15\", \n    'due_on.after': \"2019-09-15\", \n    'due_at.before': \"2019-04-15T01:01:46.055Z\", \n    'due_at.after': \"2019-04-15T01:01:46.055Z\", \n    'start_on': \"2019-09-15\", \n    'start_on.before': \"2019-09-15\", \n    'start_on.after': \"2019-09-15\", \n    'opt_fields': \"archived,color,completed,completed_at,completed_by,completed_by.name,created_at,created_from_template,created_from_template.name,current_status,current_status.author,current_status.author.name,current_status.color,current_status.created_at,current_status.created_by,current_status.created_by.name,current_status.html_text,current_status.modified_at,current_status.text,current_status.title,current_status_update,current_status_update.resource_subtype,current_status_update.title,custom_field_settings,custom_field_settings.custom_field,custom_field_settings.custom_field.asana_created_field,custom_field_settings.custom_field.created_by,custom_field_settings.custom_field.created_by.name,custom_field_settings.custom_field.currency_code,custom_field_settings.custom_field.custom_label,custom_field_settings.custom_field.custom_label_position,custom_field_settings.custom_field.date_value,custom_field_settings.custom_field.date_value.date,custom_field_settings.custom_field.date_value.date_time,custom_field_settings.custom_field.default_access_level,custom_field_settings.custom_field.description,custom_field_settings.custom_field.display_value,custom_field_settings.custom_field.enabled,custom_field_settings.custom_field.enum_options,custom_field_settings.custom_field.enum_options.color,custom_field_settings.custom_field.enum_options.enabled,custom_field_settings.custom_field.enum_options.name,custom_field_settings.custom_field.enum_value,custom_field_settings.custom_field.enum_value.color,custom_field_settings.custom_field.enum_value.enabled,custom_field_settings.custom_field.enum_value.name,custom_field_settings.custom_field.format,custom_field_settings.custom_field.has_notifications_enabled,custom_field_settings.custom_field.id_prefix,custom_field_settings.custom_field.input_restrictions,custom_field_settings.custom_field.is_formula_field,custom_field_settings.custom_field.is_global_to_workspace,custom_field_settings.custom_field.is_value_read_only,custom_field_settings.custom_field.multi_enum_values,custom_field_settings.custom_field.multi_enum_values.color,custom_field_settings.custom_field.multi_enum_values.enabled,custom_field_settings.custom_field.multi_enum_values.name,custom_field_settings.custom_field.name,custom_field_settings.custom_field.number_value,custom_field_settings.custom_field.people_value,custom_field_settings.custom_field.people_value.name,custom_field_settings.custom_field.precision,custom_field_settings.custom_field.privacy_setting,custom_field_settings.custom_field.reference_value,custom_field_settings.custom_field.reference_value.name,custom_field_settings.custom_field.representation_type,custom_field_settings.custom_field.resource_subtype,custom_field_settings.custom_field.text_value,custom_field_settings.custom_field.type,custom_field_settings.is_important,custom_field_settings.parent,custom_field_settings.parent.name,custom_field_settings.project,custom_field_settings.project.name,custom_fields,custom_fields.date_value,custom_fields.date_value.date,custom_fields.date_value.date_time,custom_fields.display_value,custom_fields.enabled,custom_fields.enum_options,custom_fields.enum_options.color,custom_fields.enum_options.enabled,custom_fields.enum_options.name,custom_fields.enum_value,custom_fields.enum_value.color,custom_fields.enum_value.enabled,custom_fields.enum_value.name,custom_fields.id_prefix,custom_fields.input_restrictions,custom_fields.is_formula_field,custom_fields.multi_enum_values,custom_fields.multi_enum_values.color,custom_fields.multi_enum_values.enabled,custom_fields.multi_enum_values.name,custom_fields.name,custom_fields.number_value,custom_fields.representation_type,custom_fields.text_value,custom_fields.type,default_access_level,default_view,due_date,due_on,followers,followers.name,html_notes,icon,members,members.name,minimum_access_level_for_customization,minimum_access_level_for_sharing,modified_at,name,notes,owner,permalink_url,privacy_setting,project_brief,public,start_on,team,team.name,workspace,workspace.name\"\n};\nprojectsApiInstance.searchProjectsForWorkspace(workspace_gid, opts).then((result) => {\n    console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));\n}, (error) => {\n    console.error(error.response.body);\n});",
              "name": "node-sdk-v3"
            },
            {
              "language": "python",
              "install": "pip install asana",
              "code": "import asana\nfrom asana.rest import ApiException\nfrom pprint import pprint\n\nconfiguration = asana.Configuration()\nconfiguration.access_token = '<YOUR_ACCESS_TOKEN>'\napi_client = asana.ApiClient(configuration)\n\n# create an instance of the API class\nprojects_api_instance = asana.ProjectsApi(api_client)\nworkspace_gid = \"12345\" # str | Globally unique identifier for the workspace or organization.\nopts = {\n    'text': \"Bugs\", # str | Performs full-text search on the project name.\n    'sort_by': \"modified_at\", # str | One of `due_date`, `created_at`, `completed_at`, or `modified_at`, defaults to `modified_at`.\n    'sort_ascending': False, # bool | Default `false`.\n    'completed': False, # bool | Filter on project completion status.\n    'teams.any': \"12345,67890\", # str | Comma-separated list of team IDs.\n    'owner.any': \"12345,67890\", # str | Comma-separated list of user identifiers to filter on as project owners. This can either be the string \\\"me\\\", an email, or the gid of a user.\n    'members.any': \"12345,67890\", # str | Comma-separated list of user identifiers to filter on as members. This can either be the string \\\"me\\\", an email, or the gid of a user.\n    'members.not': \"12345,67890\", # str | Comma-separated list of user identifiers to exclude as members. This can either be the string \\\"me\\\", an email, or the gid of a user.\n    'portfolios.any': \"12345,67890\", # str | Comma-separated list of portfolio IDs to filter on.\n    'completed_on': '2019-09-15', # date | ISO 8601 date string or `null`.\n    'completed_on.before': '2019-09-15', # date | ISO 8601 date string.\n    'completed_on.after': '2019-09-15', # date | ISO 8601 date string.\n    'completed_at.before': '2019-04-15T01:01:46.055Z', # datetime | ISO 8601 datetime string.\n    'completed_at.after': '2019-04-15T01:01:46.055Z', # datetime | ISO 8601 datetime string.\n    'created_on': '2019-09-15', # date | ISO 8601 date string or `null`.\n    'created_on.before': '2019-09-15', # date | ISO 8601 date string.\n    'created_on.after': '2019-09-15', # date | ISO 8601 date string.\n    'created_at.before': '2019-04-15T01:01:46.055Z', # datetime | ISO 8601 datetime string.\n    'created_at.after': '2019-04-15T01:01:46.055Z', # datetime | ISO 8601 datetime string.\n    'due_on': '2019-09-15', # date | ISO 8601 date string or `null`.\n    'due_on.before': '2019-09-15', # date | ISO 8601 date string.\n    'due_on.after': '2019-09-15', # date | ISO 8601 date string.\n    'due_at.before': '2019-04-15T01:01:46.055Z', # datetime | ISO 8601 datetime string.\n    'due_at.after': '2019-04-15T01:01:46.055Z', # datetime | ISO 8601 datetime string.\n    'start_on': '2019-09-15', # date | ISO 8601 date string or `null`.\n    'start_on.before': '2019-09-15', # date | ISO 8601 date string.\n    'start_on.after': '2019-09-15', # date | ISO 8601 date string.\n    'opt_fields': \"archived,color,completed,completed_at,completed_by,completed_by.name,created_at,created_from_template,created_from_template.name,current_status,current_status.author,current_status.author.name,current_status.color,current_status.created_at,current_status.created_by,current_status.created_by.name,current_status.html_text,current_status.modified_at,current_status.text,current_status.title,current_status_update,current_status_update.resource_subtype,current_status_update.title,custom_field_settings,custom_field_settings.custom_field,custom_field_settings.custom_field.asana_created_field,custom_field_settings.custom_field.created_by,custom_field_settings.custom_field.created_by.name,custom_field_settings.custom_field.currency_code,custom_field_settings.custom_field.custom_label,custom_field_settings.custom_field.custom_label_position,custom_field_settings.custom_field.date_value,custom_field_settings.custom_field.date_value.date,custom_field_settings.custom_field.date_value.date_time,custom_field_settings.custom_field.default_access_level,custom_field_settings.custom_field.description,custom_field_settings.custom_field.display_value,custom_field_settings.custom_field.enabled,custom_field_settings.custom_field.enum_options,custom_field_settings.custom_field.enum_options.color,custom_field_settings.custom_field.enum_options.enabled,custom_field_settings.custom_field.enum_options.name,custom_field_settings.custom_field.enum_value,custom_field_settings.custom_field.enum_value.color,custom_field_settings.custom_field.enum_value.enabled,custom_field_settings.custom_field.enum_value.name,custom_field_settings.custom_field.format,custom_field_settings.custom_field.has_notifications_enabled,custom_field_settings.custom_field.id_prefix,custom_field_settings.custom_field.input_restrictions,custom_field_settings.custom_field.is_formula_field,custom_field_settings.custom_field.is_global_to_workspace,custom_field_settings.custom_field.is_value_read_only,custom_field_settings.custom_field.multi_enum_values,custom_field_settings.custom_field.multi_enum_values.color,custom_field_settings.custom_field.multi_enum_values.enabled,custom_field_settings.custom_field.multi_enum_values.name,custom_field_settings.custom_field.name,custom_field_settings.custom_field.number_value,custom_field_settings.custom_field.people_value,custom_field_settings.custom_field.people_value.name,custom_field_settings.custom_field.precision,custom_field_settings.custom_field.privacy_setting,custom_field_settings.custom_field.reference_value,custom_field_settings.custom_field.reference_value.name,custom_field_settings.custom_field.representation_type,custom_field_settings.custom_field.resource_subtype,custom_field_settings.custom_field.text_value,custom_field_settings.custom_field.type,custom_field_settings.is_important,custom_field_settings.parent,custom_field_settings.parent.name,custom_field_settings.project,custom_field_settings.project.name,custom_fields,custom_fields.date_value,custom_fields.date_value.date,custom_fields.date_value.date_time,custom_fields.display_value,custom_fields.enabled,custom_fields.enum_options,custom_fields.enum_options.color,custom_fields.enum_options.enabled,custom_fields.enum_options.name,custom_fields.enum_value,custom_fields.enum_value.color,custom_fields.enum_value.enabled,custom_fields.enum_value.name,custom_fields.id_prefix,custom_fields.input_restrictions,custom_fields.is_formula_field,custom_fields.multi_enum_values,custom_fields.multi_enum_values.color,custom_fields.multi_enum_values.enabled,custom_fields.multi_enum_values.name,custom_fields.name,custom_fields.number_value,custom_fields.representation_type,custom_fields.text_value,custom_fields.type,default_access_level,default_view,due_date,due_on,followers,followers.name,html_notes,icon,members,members.name,minimum_access_level_for_customization,minimum_access_level_for_sharing,modified_at,name,notes,owner,permalink_url,privacy_setting,project_brief,public,start_on,team,team.name,workspace,workspace.name\", # list[str] | 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.\n}\n\ntry:\n    # Search projects in a workspace\n    api_response = projects_api_instance.search_projects_for_workspace(workspace_gid, opts)\n    for data in api_response:\n        pprint(data)\nexcept ApiException as e:\n    print(\"Exception when calling ProjectsApi->search_projects_for_workspace: %s\\n\" % e)",
              "name": "python-sdk-v5"
            }
          ]
        }
      }
    }
  }
}