Lens Hub
Sign in

lenshq/linear

Connector

Work with issues, projects, and cycles in a Linear workspace.

4.7k downloadsUpdated 19 days ago
{
  "apiVersion": "lns.run/v1",
  "kind": "connector",
  "name": "linear",
  "spec": {
    "description": "Work with issues, projects, and cycles in a Linear workspace.",
    "methods": [
      {
        "auth": {
          "authorizationEndpoint": "https://linear.app/oauth/authorize",
          "clientId": "1234fa448c70a6f558d0288df2cb8ea5",
          "help": "Sign in through your browser. lns listens on 127.0.0.1 for the callback.",
          "kind": "oauth_authorization_code",
          "redirect": {
            "kind": "loopback",
            "path": "/callback",
            "port": 53682
          },
          "scopeGroups": [
            {
              "label": "Access",
              "name": "access",
              "options": [
                {
                  "label": "Read issues, projects, and cycles",
                  "name": "read-only",
                  "scopes": [
                    "read"
                  ]
                },
                {
                  "label": "Read and write issues, projects, and cycles",
                  "name": "read-write",
                  "scopes": [
                    "read",
                    "write"
                  ]
                }
              ]
            }
          ],
          "tokenEndpoint": "https://api.linear.app/oauth/token"
        },
        "credentials": [
          {
            "envVar": "LINEAR_TOKEN",
            "injections": [
              {
                "domain": "api.linear.app",
                "kind": "bearer_header"
              }
            ],
            "placeholder": "lin_LNSPLACEHOLDER0000000000"
          }
        ],
        "egress": {
          "http": [
            {
              "match": "api.linear.app",
              "verdict": "allow"
            }
          ]
        },
        "label": "Linear account",
        "name": "browser"
      },
      {
        "auth": {
          "help": "Create a key in Linear under Settings, Account, Security and access.",
          "kind": "token"
        },
        "credentials": [
          {
            "envVar": "LINEAR_TOKEN",
            "injections": [
              {
                "domain": "api.linear.app",
                "header": "Authorization",
                "kind": "api_key_header"
              }
            ],
            "placeholder": "lin_LNSPLACEHOLDER0000000000"
          }
        ],
        "egress": {
          "http": [
            {
              "match": "api.linear.app",
              "verdict": "allow"
            }
          ]
        },
        "label": "Personal API key",
        "name": "token"
      }
    ],
    "serves": [
      "api.linear.app"
    ]
  }
}