> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Asana

> Integrate your application with the Asana API

## 🚀 Quickstart

Connect to Asana with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Asana*.

> [!NOTE]
>
> Nango has a [Nango-managed OAuth app](https://nango.dev/docs/guides/auth/auth-guide.md#nango-managed-oauth-apps) you can use in development and production. Select it when you create the integration.

**2. Authorize Asana**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then log in to Asana. Later, you'll let your users do the same directly from your app.

**3. Call the Asana API**

Let's make your first request to the Asana API (fetch a list of workspaces). Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/api/1.0/workspaces" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>     endpoint: '/api/1.0/workspaces',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> console.log(res.data.data);
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/primitives/auth.md) to integrate Nango in your app.

To use your own OAuth app instead of the Nango-managed one, follow the setup guide linked below.

## 📚 Asana Integration Guides

Nango maintained guides for common use cases.

* [How to register your own Asana OAuth app](https://nango.dev/docs/api-integrations/asana/how-to-register-your-own-asana-api-oauth-app)\
  Register an OAuth app with Asana and obtain credentials to connect it to Nango

Official docs: [Asana API Documentation](https://developers.asana.com/reference/rest-api-reference)

## 🧩 Pre-built syncs & tools for Asana

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

### Others

| Function name | Description | Type |
| - | - | - |
| `add-project-to-task` | Add a task to a project, optionally into a section. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `add-tag-to-task` | Attach an existing tag to a task. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-project` | Create a project in a workspace or team. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-section` | Create a section in a project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-story-on-task` | Create a comment or story entry on a task. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-subtask` | Create a subtask under a parent task. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-tag` | Create a tag in a workspace. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-task` | Create a task in Asana. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-attachment` | Delete an attachment by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-project` | Delete a project by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-section` | Delete a section by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-story` | Delete a story or comment by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-tag` | Delete a tag by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-task` | Delete a task by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-project` | Fetch a single project by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-section` | Fetch a single section by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-tag` | Fetch a single tag by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-task` | Fetch a single task by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-team` | Fetch a single team by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-user` | Fetch a single user by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-workspace` | Fetch a single workspace by gid. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-attachments-for-object` | List attachments on a task or other supported object. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-projects-for-team` | List projects in a team. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-projects-for-workspace` | List projects in a workspace. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-sections-for-project` | List sections in a project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-stories-for-task` | List stories and comments on a task. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-subtasks-for-task` | List subtasks under a parent task. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-tags-for-workspace` | List tags in a workspace. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-tasks-for-project` | List tasks in a project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-tasks-for-section` | List tasks in a project section. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-teams-for-user` | List teams for a user. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-teams-for-workspace` | List teams in a workspace. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-users-for-team` | List users in a team. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-users-for-workspace` | List users in a workspace. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-workspaces` | List workspaces available to the authenticated user. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `remove-project-from-task` | Remove a task from a project | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `remove-tag-from-task` | Remove a tag from a task. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `search-tasks-in-workspace` | Search tasks in a workspace with filters. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-project` | Update mutable fields on a project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-section` | Update mutable fields on a section. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-tag` | Update mutable fields on a tag. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-task` | Update mutable fields on a task. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `projects` | Sync projects for workspaces or teams in scope. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `sections` | Sync sections for projects in scope | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `subtasks` | Sync subtasks for parent tasks in scope. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `tags` | Sync workspace tags. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `tasks` | Sync tasks for projects, sections, or workspace search scopes. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `teams` | Sync teams for workspaces in scope. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `users` | Sync users for workspaces or teams in scope. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `workspaces` | Sync workspaces visible to the authenticated Asana user. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.