Skip to main content

Asana

Supported Entities and Actions

EntityActions
TasksList, Get
Project TasksList
Workspace Task SearchList
ProjectsList, Get
Task ProjectsList
Team ProjectsList
Workspace ProjectsList
WorkspacesList, Get
UsersList, Get
Workspace UsersList
Team UsersList
TeamsGet
Workspace TeamsList
User TeamsList

Tasks

Tasks List

Returns a paginated list of tasks

Python SDK

asana.tasks.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tasks",
"action": "list"
}'

Params

Parameter NameTypeRequiredDescription
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
projectstringNoThe project to filter tasks on
workspacestringNoThe workspace to filter tasks on
sectionstringNoThe workspace to filter tasks on
assigneestringNoThe assignee to filter tasks on
completed_sincestringNoOnly return tasks that have been completed since this time
modified_sincestringNoOnly return tasks that have been completed since this time
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring
resource_subtypestring
created_byobject

Meta

Field NameTypeDescription
next_pageobject | null

Tasks Get

Get a single task by its ID

Python SDK

asana.tasks.get(
task_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tasks",
"action": "get",
"params": {
"task_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
task_gidstringYesTask GID
Response Schema

Records

Field NameTypeDescription
gidstring

Project Tasks

Project Tasks List

Returns all tasks in a project

Python SDK

asana.project_tasks.list(
project_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "project_tasks",
"action": "list",
"params": {
"project_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
project_gidstringYesProject GID to list tasks from
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
completed_sincestringNoOnly return tasks that have been completed since this time
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring
resource_subtypestring
created_byobject

Meta

Field NameTypeDescription
next_pageobject | null

Workspace Task Search List

Returns tasks that match the specified search criteria. Note - This endpoint requires a premium Asana account.

Python SDK

asana.workspace_task_search.list(
workspace_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "workspace_task_search",
"action": "list",
"params": {
"workspace_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
workspace_gidstringYesWorkspace GID to search tasks in
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
textstringNoSearch text to filter tasks
completedbooleanNoFilter by completion status
assignee.anystringNoComma-separated list of assignee GIDs
projects.anystringNoComma-separated list of project GIDs
sections.anystringNoComma-separated list of section GIDs
teams.anystringNoComma-separated list of team GIDs
followers.anystringNoComma-separated list of follower GIDs
created_at.afterstringNoFilter tasks created after this date (ISO 8601 format)
created_at.beforestringNoFilter tasks created before this date (ISO 8601 format)
modified_at.afterstringNoFilter tasks modified after this date (ISO 8601 format)
modified_at.beforestringNoFilter tasks modified before this date (ISO 8601 format)
due_on.afterstringNoFilter tasks due after this date (ISO 8601 date format)
due_on.beforestringNoFilter tasks due before this date (ISO 8601 date format)
resource_subtypestringNoFilter by task resource subtype (e.g., default_task, milestone)
sort_bystringNoField to sort by (e.g., created_at, modified_at, due_date)
sort_ascendingbooleanNoSort order (true for ascending, false for descending)
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring
resource_subtypestring
created_byobject

Meta

Field NameTypeDescription
next_pageobject | null

Projects

Projects List

Returns a paginated list of projects

Python SDK

asana.projects.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "projects",
"action": "list"
}'

Params

Parameter NameTypeRequiredDescription
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
workspacestringNoThe workspace to filter projects on
teamstringNoThe team to filter projects on
archivedbooleanNoFilter by archived status
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Projects Get

Get a single project by its ID

Python SDK

asana.projects.get(
project_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "projects",
"action": "get",
"params": {
"project_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
project_gidstringYesProject GID
Response Schema

Records

Field NameTypeDescription
gidstring
archivedboolean
colorstring | null
completedboolean
completed_atstring | null
created_atstring
current_statusobject | null
current_status_updateobject | null
custom_fieldsarray
default_access_levelstring
default_viewstring
due_onstring | null
due_datestring | null
followersarray<object>
membersarray<object>
minimum_access_level_for_customizationstring
minimum_access_level_for_sharingstring
modified_atstring
namestring
notesstring
ownerobject
permalink_urlstring
privacy_settingstring
publicboolean
resource_typestring
start_onstring | null
teamobject
workspaceobject

Task Projects

Task Projects List

Returns all projects a task is in

Python SDK

asana.task_projects.list(
task_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "task_projects",
"action": "list",
"params": {
"task_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
task_gidstringYesTask GID to list projects from
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Team Projects

Team Projects List

Returns all projects for a team

Python SDK

asana.team_projects.list(
team_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "team_projects",
"action": "list",
"params": {
"team_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
team_gidstringYesTeam GID to list projects from
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
archivedbooleanNoFilter by archived status
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Workspace Projects

Workspace Projects List

Returns all projects in a workspace

Python SDK

asana.workspace_projects.list(
workspace_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "workspace_projects",
"action": "list",
"params": {
"workspace_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
workspace_gidstringYesWorkspace GID to list projects from
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
archivedbooleanNoFilter by archived status
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Workspaces

Workspaces List

Returns a paginated list of workspaces

Python SDK

asana.workspaces.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "workspaces",
"action": "list"
}'

Params

Parameter NameTypeRequiredDescription
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Workspaces Get

Get a single workspace by its ID

Python SDK

asana.workspaces.get(
workspace_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "workspaces",
"action": "get",
"params": {
"workspace_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
workspace_gidstringYesWorkspace GID
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring
email_domainsarray<string>
is_organizationboolean

Users

Users List

Returns a paginated list of users

Python SDK

asana.users.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "users",
"action": "list"
}'

Params

Parameter NameTypeRequiredDescription
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
workspacestringNoThe workspace to filter users on
teamstringNoThe team to filter users on
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Users Get

Get a single user by their ID

Python SDK

asana.users.get(
user_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "users",
"action": "get",
"params": {
"user_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
user_gidstringYesUser GID
Response Schema

Records

Field NameTypeDescription
gidstring
emailstring
namestring
photoobject | null
resource_typestring
workspacesarray<object>

Workspace Users

Workspace Users List

Returns all users in a workspace

Python SDK

asana.workspace_users.list(
workspace_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "workspace_users",
"action": "list",
"params": {
"workspace_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
workspace_gidstringYesWorkspace GID to list users from
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Team Users

Team Users List

Returns all users in a team

Python SDK

asana.team_users.list(
team_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "team_users",
"action": "list",
"params": {
"team_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
team_gidstringYesTeam GID to list users from
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Teams

Teams Get

Get a single team by its ID

Python SDK

asana.teams.get(
team_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "teams",
"action": "get",
"params": {
"team_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
team_gidstringYesTeam GID
Response Schema

Records

Field NameTypeDescription
gidstring
namestring
organizationobject
permalink_urlstring
resource_typestring

Workspace Teams

Workspace Teams List

Returns all teams in a workspace

Python SDK

asana.workspace_teams.list(
workspace_gid="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "workspace_teams",
"action": "list",
"params": {
"workspace_gid": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
workspace_gidstringYesWorkspace GID to list teams from
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

User Teams

User Teams List

Returns all teams a user is a member of

Python SDK

asana.user_teams.list(
user_gid="<str>",
organization="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances/{your_connector_instance_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "user_teams",
"action": "list",
"params": {
"user_gid": "<str>",
"organization": "<str>"
}
}'

Params

Parameter NameTypeRequiredDescription
user_gidstringYesUser GID to list teams from
organizationstringYesThe workspace or organization to filter teams on
limitintegerNoNumber of items to return per page
offsetstringNoPagination offset token
Response Schema

Records

Field NameTypeDescription
gidstring
resource_typestring
namestring

Meta

Field NameTypeDescription
next_pageobject | null

Authentication

The Asana connector supports the following authentication methods:

Asana OAuth 2.0

Field NameTypeRequiredDescription
access_tokenstrYesOAuth access token for API requests
refresh_tokenstrYesOAuth refresh token for automatic token renewal
client_idstrYesConnected App Consumer Key
client_secretstrYesConnected App Consumer Secret

Example

Python SDK

AsanaConnector(
auth_config=AsanaAuthConfig(
access_token="<OAuth access token for API requests>",
refresh_token="<OAuth refresh token for automatic token renewal>",
client_id="<Connected App Consumer Key>",
client_secret="<Connected App Consumer Secret>"
)
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/instances' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"connector_definition_id": "d0243522-dccf-4978-8ba0-37ed47a0bdbf",
"auth_config": {
"access_token": "<OAuth access token for API requests>",
"refresh_token": "<OAuth refresh token for automatic token renewal>",
"client_id": "<Connected App Consumer Key>",
"client_secret": "<Connected App Consumer Secret>"
},
"name": "My Asana Connector"
}'