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

<Steps>
  <Step title="Create the integration">
    In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Linear*. Nango doesn't provide a test OAuth app for Linear yet. You'll need to set up your own by following the [setup guide](/docs/api-integrations/linear/how-to-register-your-own-linear-api-oauth-app). After that, make sure to add the OAuth client ID, secret, and scopes in the integration settings in Nango.
  </Step>

  <Step title="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.
  </Step>

  <Step title="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](/docs/reference/backend/http-api/api-keys), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

    <Tabs>
      <Tab title="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>

      <Tab title="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));
        ```
      </Tab>
    </Tabs>

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

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

  <Step title="Implement Nango in your app">
    Follow our [Auth implementation guide](/docs/guides/primitives/auth) to integrate Nango in your app.

    To obtain your own production credentials, follow the setup guide linked below.
  </Step>
</Steps>

## 📚 Linear Integration Guides

Nango maintained guides for common use cases.

* [How to register your own Linear OAuth app](/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 & actions for Linear

Enable them in your dashboard. Extend and customize to fit your needs.

### Others

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

***


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