> ## 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.

# Linear

> Integrate your application with the Linear API

## 🚀 Quickstart

Connect to Linear 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* -> *Linear*.

> [!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 Linear**

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

**3. Call the Linear API**

Let's make your first request to the Linear API (fetch a list of issues). 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/graphql" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>" \
>   -H "Content-Type: application/json" \
>   -d '{
>         "query": "query { issues(first: 10) { nodes { id title identifier } } }"
>       }'
> ```

> [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.post({
>   endpoint: '/graphql',
>   data: {
>     "query": "query { issues(first: 10) { nodes { id title identifier } } }"
>   },
>   providerConfigKey: '<INTEGRATION-ID>',
>   connectionId: '<CONNECTION-ID>'
> });
>
> console.log(JSON.stringify(res.data, 2, null));
> ```

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.

> [!NOTE]
>
> **Deleting a connection revokes its Linear access token by default.** If multiple Nango connections share the same Linear authorization, deleting one of them would revoke it for all connections using it. To opt out of this for a given connection, set `skipTokenRevocation: true` in that connection's metadata using the [update connection metadata endpoint](https://nango.dev/docs/reference/backend/http-api/connections/update-metadata.md) before deleting it.

## 📚 Linear Integration Guides

Nango maintained guides for common use cases.

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

Official docs: [Linear API docs](https://linear.app/developers)

## 🧩 Pre-built syncs & tools for Linear

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

### Others

| Function name | Description | Type |
| - | - | - |
| `add-issue-label` | Attach a label to a Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `archive-cycle` | Archive a Linear cycle. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `archive-issue` | Archive a Linear issue so it is removed from active workflows. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-attachment` | Create an attachment on a Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-comment` | Create a comment on a Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-cycle` | Create a cycle for a Linear team. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-issue-label` | Create a Linear issue label. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-issue-relation` | Create a relationship between two Linear issues. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-issue` | Create a new Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-project` | Create a Linear project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-attachment` | Delete an attachment from a Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-comment` | Delete a comment from a Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-issue-label` | Delete a Linear issue label. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-issue-relation` | Delete a relationship between two Linear issues. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-issue` | Delete a Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-attachment` | Retrieve a Linear attachment by attachment ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-comment` | Retrieve a Linear comment by comment ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-cycle` | Retrieve a Linear cycle by cycle ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-issue-label` | Retrieve a Linear issue label by label ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-issue` | Retrieve a Linear issue by issue ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-project` | Retrieve a Linear project by project ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-team` | Retrieve a Linear team by team ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-user` | Retrieve a Linear user by user ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-viewer` | Retrieve the currently authenticated Linear user. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-workflow-state` | Retrieve a Linear workflow state by state ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-attachments` | List Linear attachments with filtering and pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-comments` | List Linear comments with filtering and pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-cycles` | List Linear cycles with filtering and pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-issue-labels` | List Linear issue labels with filtering and pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-issues` | List Linear issues with filtering and pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-projects` | List Linear projects with filtering and pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-teams` | List Linear teams available to the authenticated user. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-users` | List Linear users with filtering and pagination. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-workflow-states` | List Linear workflow states across teams. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `remove-issue-label` | Remove a label from a Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `resolve-comment` | Resolve a Linear comment thread. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `search-issues` | Search Linear issues with full-text query support. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `unarchive-issue` | Restore an archived Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `unarchive-project` | Restore an archived Linear project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `unresolve-comment` | Reopen a previously resolved Linear comment thread. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-comment` | Update a comment on a Linear issue. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-cycle` | Update an existing Linear cycle. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-issue-label` | Update an existing Linear issue label. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-issue-relation` | Update fields on an existing Linear issue relation. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-issue` | Update fields on an existing Linear issue | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-project` | Update an existing Linear project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `cycles` | Sync Linear cycles for planning and iteration tracking. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `issue-labels` | Sync Linear issue labels across teams. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `issues` | Sync Linear issues with state, assignee, labels, project, and cycle data. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `milestones` | Sync Linear milestones for project planning. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `projects` | Sync Linear projects with lead, status, and progress fields | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `roadmaps` | Sync Linear roadmaps and their project relationships. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `teams` | Sync Linear teams visible to the authenticated user. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `users` | Sync Linear users with profile and active state fields. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `workflow-states` | Sync Linear workflow states across teams. | [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.