Get teams in a workspace
Changed on<b>Required scope: </b><code>teams:read</code>
Returns the compact records for all teams in the workspace visible to the authorized user.
Request
- Base URL: https://app.asana.com/api/1.0
- URL: https://app.asana.com/api/1.0/workspaces/{workspace_gid}/teams
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.asana.com/-/oauth_authorize, token URL https://app.asana.com/-/oauth_token, scopes: teams:read)
Query parameters
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. Properties can include nested fields. To learn more, see the input/output options guide.
Response
Returns the team records for all teams in the organization or workspace accessible to the authenticated user.
Example response
{
"data": [
{
"gid": "12345",
"resource_type": "team",
"name": "Marketing"
}
],
"next_page": {
"offset": "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
"path": "/tasks/12345/attachments?limit=2&offset=eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
"uri": "https://app.asana.com/api/1.0/tasks/12345/attachments?limit=2&offset=eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9"
}
}Changes
- info
added the enum value
custom_field_settings.parent.resource_subtypeto the propertyitems/of thequeryrequest parameteropt_fields - info
added the enum value
custom_field_settings.project.resource_subtypeto the propertyitems/of thequeryrequest parameteropt_fields
- info
- info
added the enum value
custom_field_settings.custom_field.html_text_valueto the propertyitems/of thequeryrequest parameteropt_fields
- info