> ## 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](/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 [secret key](https://app.nango.dev/dev/environment-settings), [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-SECRET-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({ secretKey: '<NANGO-SECRET-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](/reference/sdks/node#get-a-connection-with-credentials) or [API](/reference/api/connection/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](/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](/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                                                                                                          |
| ----------------- | ------------------------------------------------------------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `cycles`          | Sync Linear cycles for planning and iteration tracking.                   | [Sync](/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](/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](/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](/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](/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](/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](/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](/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](/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/linear/syncs/workflow-states.ts) |

***
