{
  "schemaVersion": "1.0",
  "item": {
    "slug": "linear-api",
    "name": "Linear",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/linear-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/linear-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/linear-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=linear-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "linear-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T23:23:55.186Z",
      "expiresAt": "2026-05-11T23:23:55.186Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=linear-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=linear-api",
        "contentDisposition": "attachment; filename=\"linear-api-1.0.4.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "linear-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/linear-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/linear-api",
    "agentPageUrl": "https://openagent3.xyz/skills/linear-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/linear-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/linear-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Linear",
        "body": "Access the Linear API with managed OAuth authentication. Query and manage issues, projects, teams, cycles, labels, and comments using GraphQL."
      },
      {
        "title": "Quick Start",
        "body": "# Get current user\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': '{ viewer { id name email } }'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/linear/graphql', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/linear/graphql\n\nAll requests use POST to the GraphQL endpoint. The gateway proxies requests to api.linear.app and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Linear OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=linear&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'linear'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"fda4dabb-9d62-47e3-9503-a2f29d0995df\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-04T23:03:22.676001Z\",\n    \"last_updated_time\": \"2026-02-04T23:03:51.239577Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"linear\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Linear connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': '{ viewer { id name } }'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/linear/graphql', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nreq.add_header('Maton-Connection', 'fda4dabb-9d62-47e3-9503-a2f29d0995df')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "API Reference",
        "body": "Linear uses a GraphQL API. All operations are sent as POST requests with a JSON body containing the query field."
      },
      {
        "title": "Viewer (Current User)",
        "body": "POST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ viewer { id name email } }\"}\n\nResponse:\n\n{\n  \"data\": {\n    \"viewer\": {\n      \"id\": \"4933b394-c42f-4623-904f-355fc40a4858\",\n      \"name\": \"Byungkyu Park\",\n      \"email\": \"byungkyujpark@gmail.com\"\n    }\n  }\n}"
      },
      {
        "title": "Organization",
        "body": "POST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ organization { id name urlKey } }\"}"
      },
      {
        "title": "Teams",
        "body": "List Teams\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ teams { nodes { id name key } } }\"}\n\nResponse:\n\n{\n  \"data\": {\n    \"teams\": {\n      \"nodes\": [\n        {\n          \"id\": \"70c49a0d-6973-4563-a743-8504f1a5171b\",\n          \"name\": \"Maton\",\n          \"key\": \"MTN\"\n        }\n      ]\n    }\n  }\n}\n\nGet Team\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ team(id: \\\"TEAM_ID\\\") { id name key issues { nodes { id identifier title } } } }\"}"
      },
      {
        "title": "Issues",
        "body": "List Issues\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issues(first: 10) { nodes { id identifier title state { name } priority createdAt } pageInfo { hasNextPage endCursor } } }\"}\n\nResponse:\n\n{\n  \"data\": {\n    \"issues\": {\n      \"nodes\": [\n        {\n          \"id\": \"565e2ee9-2552-48d8-bbf9-a8b79ca1baec\",\n          \"identifier\": \"MTN-527\",\n          \"title\": \"Shopify app verification\",\n          \"state\": { \"name\": \"In Progress\" },\n          \"priority\": 0,\n          \"createdAt\": \"2026-02-03T07:49:31.675Z\"\n        }\n      ],\n      \"pageInfo\": {\n        \"hasNextPage\": true,\n        \"endCursor\": \"4c7b33c8-dabf-47ce-9d30-7f286f9463be\"\n      }\n    }\n  }\n}\n\nGet Issue by ID or Identifier\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issue(id: \\\"MTN-527\\\") { id identifier title description state { name } priority assignee { name } team { key name } createdAt updatedAt } }\"}\n\nFilter Issues\n\nFilter by state type:\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issues(first: 10, filter: { state: { type: { eq: \\\"started\\\" } } }) { nodes { id identifier title state { name type } } } }\"}\n\nFilter by title:\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issues(first: 10, filter: { title: { containsIgnoreCase: \\\"bug\\\" } }) { nodes { id identifier title } } }\"}\n\nSearch Issues\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ searchIssues(first: 10, term: \\\"shopify\\\") { nodes { id identifier title } } }\"}\n\nCreate Issue\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"mutation { issueCreate(input: { teamId: \\\"TEAM_ID\\\", title: \\\"New issue title\\\", description: \\\"Issue description\\\" }) { success issue { id identifier title state { name } } } }\"}\n\nResponse:\n\n{\n  \"data\": {\n    \"issueCreate\": {\n      \"success\": true,\n      \"issue\": {\n        \"id\": \"9dff693f-27d2-4656-9b2d-baa4a828dc83\",\n        \"identifier\": \"MTN-528\",\n        \"title\": \"New issue title\",\n        \"state\": { \"name\": \"Backlog\" }\n      }\n    }\n  }\n}\n\nUpdate Issue\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"mutation { issueUpdate(id: \\\"ISSUE_ID\\\", input: { title: \\\"Updated title\\\", priority: 2 }) { success issue { id identifier title priority } } }\"}"
      },
      {
        "title": "Projects",
        "body": "List Projects\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ projects(first: 10) { nodes { id name state createdAt } } }\"}"
      },
      {
        "title": "Cycles",
        "body": "List Cycles\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ cycles(first: 10) { nodes { id name number startsAt endsAt } } }\"}"
      },
      {
        "title": "Labels",
        "body": "List Labels\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issueLabels(first: 20) { nodes { id name color } } }\"}\n\nResponse:\n\n{\n  \"data\": {\n    \"issueLabels\": {\n      \"nodes\": [\n        { \"id\": \"510edbdf-9f6e-43a0-80e5-c3b3bd82e26f\", \"name\": \"Blocked\", \"color\": \"#eb5757\" },\n        { \"id\": \"cb7a7ef2-d2d3-4da2-ad4e-7cea0f8a72c7\", \"name\": \"Feature\", \"color\": \"#BB87FC\" },\n        { \"id\": \"c795d04c-24d2-4d20-b3c1-9f9f1ce7b017\", \"name\": \"Improvement\", \"color\": \"#4EA7FC\" },\n        { \"id\": \"40ff69f9-4a93-40a2-b143-f3b94aa594b7\", \"name\": \"Bug\", \"color\": \"#EB5757\" }\n      ]\n    }\n  }\n}"
      },
      {
        "title": "Workflow States",
        "body": "POST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ workflowStates(first: 20) { nodes { id name type team { key } } } }\"}\n\nResponse:\n\n{\n  \"data\": {\n    \"workflowStates\": {\n      \"nodes\": [\n        { \"id\": \"f21dfa65-7951-4742-a202-00ceb0ff6e9f\", \"name\": \"Backlog\", \"type\": \"backlog\", \"team\": { \"key\": \"MTN\" } },\n        { \"id\": \"1ab9475f-eb91-4207-a5a3-1176e38b85be\", \"name\": \"Todo\", \"type\": \"unstarted\", \"team\": { \"key\": \"MTN\" } },\n        { \"id\": \"ee724a62-0212-4b53-af67-08297a5ae132\", \"name\": \"In Progress\", \"type\": \"started\", \"team\": { \"key\": \"MTN\" } },\n        { \"id\": \"427a9916-3849-4303-b982-f00f1d79c5ee\", \"name\": \"Done\", \"type\": \"completed\", \"team\": { \"key\": \"MTN\" } },\n        { \"id\": \"363df32a-f22d-4083-8efb-b3615c019925\", \"name\": \"Canceled\", \"type\": \"canceled\", \"team\": { \"key\": \"MTN\" } }\n      ]\n    }\n  }\n}"
      },
      {
        "title": "Users",
        "body": "POST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ users(first: 20) { nodes { id name email active } } }\"}"
      },
      {
        "title": "Comments",
        "body": "List Comments\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ comments(first: 10) { nodes { id body createdAt issue { identifier } user { name } } } }\"}\n\nCreate Comment\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"mutation { commentCreate(input: { issueId: \\\"ISSUE_ID\\\", body: \\\"Comment text here\\\" }) { success comment { id body } } }\"}"
      },
      {
        "title": "Pagination",
        "body": "Linear uses Relay-style cursor-based pagination with first/after and last/before arguments.\n\n# First page\nPOST /linear/graphql\n{\"query\": \"{ issues(first: 10) { nodes { id identifier title } pageInfo { hasNextPage endCursor } } }\"}\n\n# Next page using endCursor\nPOST /linear/graphql\n{\"query\": \"{ issues(first: 10, after: \\\"CURSOR_VALUE\\\") { nodes { id identifier title } pageInfo { hasNextPage endCursor } } }\"}\n\nResponse includes pageInfo:\n\n{\n  \"data\": {\n    \"issues\": {\n      \"nodes\": [...],\n      \"pageInfo\": {\n        \"hasNextPage\": true,\n        \"endCursor\": \"4c7b33c8-dabf-47ce-9d30-7f286f9463be\"\n      }\n    }\n  }\n}"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch('https://gateway.maton.ai/linear/graphql', {\n  method: 'POST',\n  headers: {\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n    'Content-Type': 'application/json'\n  },\n  body: JSON.stringify({\n    query: `{ issues(first: 10) { nodes { id identifier title state { name } } } }`\n  })\n});\nconst data = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/linear/graphql',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={\n        'query': '{ issues(first: 10) { nodes { id identifier title state { name } } } }'\n    }\n)\ndata = response.json()"
      },
      {
        "title": "Notes",
        "body": "Linear uses GraphQL exclusively (no REST API)\nIssue identifiers like MTN-527 can be used in place of UUIDs for the id parameter\nPriority values: 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low\nWorkflow state types: backlog, unstarted, started, completed, canceled\nThe GraphQL schema is introspectable at https://api.linear.app/graphql\nUse searchIssues(term: \"...\") for full-text search across issues\nSome mutations (delete, create labels/projects) may require additional OAuth scopes. If you receive a scope error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Linear connection or GraphQL validation error401Invalid or missing Maton API key403Insufficient OAuth scope for the operation429Rate limited4xx/5xxPassthrough error from Linear API\n\nGraphQL errors are returned in the errors array:\n\n{\n  \"errors\": [\n    {\n      \"message\": \"Invalid scope: `write` required\",\n      \"extensions\": {\n        \"type\": \"forbidden\",\n        \"code\": \"FORBIDDEN\",\n        \"statusCode\": 403\n      }\n    }\n  ]\n}"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with linear. For example:\n\nCorrect: https://gateway.maton.ai/linear/graphql\nIncorrect: https://gateway.maton.ai/graphql"
      },
      {
        "title": "Resources",
        "body": "Linear API Overview\nLinear GraphQL Getting Started\nLinear GraphQL Schema (Apollo Studio)\nLinear API and Webhooks\nMaton Community\nMaton Support"
      }
    ],
    "body": "Linear\n\nAccess the Linear API with managed OAuth authentication. Query and manage issues, projects, teams, cycles, labels, and comments using GraphQL.\n\nQuick Start\n# Get current user\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': '{ viewer { id name email } }'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/linear/graphql', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/linear/graphql\n\n\nAll requests use POST to the GraphQL endpoint. The gateway proxies requests to api.linear.app and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Linear OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=linear&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'linear'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"fda4dabb-9d62-47e3-9503-a2f29d0995df\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-04T23:03:22.676001Z\",\n    \"last_updated_time\": \"2026-02-04T23:03:51.239577Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"linear\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Linear connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'query': '{ viewer { id name } }'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/linear/graphql', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nreq.add_header('Maton-Connection', 'fda4dabb-9d62-47e3-9503-a2f29d0995df')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\n\nLinear uses a GraphQL API. All operations are sent as POST requests with a JSON body containing the query field.\n\nViewer (Current User)\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ viewer { id name email } }\"}\n\n\nResponse:\n\n{\n  \"data\": {\n    \"viewer\": {\n      \"id\": \"4933b394-c42f-4623-904f-355fc40a4858\",\n      \"name\": \"Byungkyu Park\",\n      \"email\": \"byungkyujpark@gmail.com\"\n    }\n  }\n}\n\nOrganization\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ organization { id name urlKey } }\"}\n\nTeams\nList Teams\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ teams { nodes { id name key } } }\"}\n\n\nResponse:\n\n{\n  \"data\": {\n    \"teams\": {\n      \"nodes\": [\n        {\n          \"id\": \"70c49a0d-6973-4563-a743-8504f1a5171b\",\n          \"name\": \"Maton\",\n          \"key\": \"MTN\"\n        }\n      ]\n    }\n  }\n}\n\nGet Team\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ team(id: \\\"TEAM_ID\\\") { id name key issues { nodes { id identifier title } } } }\"}\n\nIssues\nList Issues\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issues(first: 10) { nodes { id identifier title state { name } priority createdAt } pageInfo { hasNextPage endCursor } } }\"}\n\n\nResponse:\n\n{\n  \"data\": {\n    \"issues\": {\n      \"nodes\": [\n        {\n          \"id\": \"565e2ee9-2552-48d8-bbf9-a8b79ca1baec\",\n          \"identifier\": \"MTN-527\",\n          \"title\": \"Shopify app verification\",\n          \"state\": { \"name\": \"In Progress\" },\n          \"priority\": 0,\n          \"createdAt\": \"2026-02-03T07:49:31.675Z\"\n        }\n      ],\n      \"pageInfo\": {\n        \"hasNextPage\": true,\n        \"endCursor\": \"4c7b33c8-dabf-47ce-9d30-7f286f9463be\"\n      }\n    }\n  }\n}\n\nGet Issue by ID or Identifier\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issue(id: \\\"MTN-527\\\") { id identifier title description state { name } priority assignee { name } team { key name } createdAt updatedAt } }\"}\n\nFilter Issues\n\nFilter by state type:\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issues(first: 10, filter: { state: { type: { eq: \\\"started\\\" } } }) { nodes { id identifier title state { name type } } } }\"}\n\n\nFilter by title:\n\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issues(first: 10, filter: { title: { containsIgnoreCase: \\\"bug\\\" } }) { nodes { id identifier title } } }\"}\n\nSearch Issues\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ searchIssues(first: 10, term: \\\"shopify\\\") { nodes { id identifier title } } }\"}\n\nCreate Issue\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"mutation { issueCreate(input: { teamId: \\\"TEAM_ID\\\", title: \\\"New issue title\\\", description: \\\"Issue description\\\" }) { success issue { id identifier title state { name } } } }\"}\n\n\nResponse:\n\n{\n  \"data\": {\n    \"issueCreate\": {\n      \"success\": true,\n      \"issue\": {\n        \"id\": \"9dff693f-27d2-4656-9b2d-baa4a828dc83\",\n        \"identifier\": \"MTN-528\",\n        \"title\": \"New issue title\",\n        \"state\": { \"name\": \"Backlog\" }\n      }\n    }\n  }\n}\n\nUpdate Issue\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"mutation { issueUpdate(id: \\\"ISSUE_ID\\\", input: { title: \\\"Updated title\\\", priority: 2 }) { success issue { id identifier title priority } } }\"}\n\nProjects\nList Projects\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ projects(first: 10) { nodes { id name state createdAt } } }\"}\n\nCycles\nList Cycles\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ cycles(first: 10) { nodes { id name number startsAt endsAt } } }\"}\n\nLabels\nList Labels\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ issueLabels(first: 20) { nodes { id name color } } }\"}\n\n\nResponse:\n\n{\n  \"data\": {\n    \"issueLabels\": {\n      \"nodes\": [\n        { \"id\": \"510edbdf-9f6e-43a0-80e5-c3b3bd82e26f\", \"name\": \"Blocked\", \"color\": \"#eb5757\" },\n        { \"id\": \"cb7a7ef2-d2d3-4da2-ad4e-7cea0f8a72c7\", \"name\": \"Feature\", \"color\": \"#BB87FC\" },\n        { \"id\": \"c795d04c-24d2-4d20-b3c1-9f9f1ce7b017\", \"name\": \"Improvement\", \"color\": \"#4EA7FC\" },\n        { \"id\": \"40ff69f9-4a93-40a2-b143-f3b94aa594b7\", \"name\": \"Bug\", \"color\": \"#EB5757\" }\n      ]\n    }\n  }\n}\n\nWorkflow States\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ workflowStates(first: 20) { nodes { id name type team { key } } } }\"}\n\n\nResponse:\n\n{\n  \"data\": {\n    \"workflowStates\": {\n      \"nodes\": [\n        { \"id\": \"f21dfa65-7951-4742-a202-00ceb0ff6e9f\", \"name\": \"Backlog\", \"type\": \"backlog\", \"team\": { \"key\": \"MTN\" } },\n        { \"id\": \"1ab9475f-eb91-4207-a5a3-1176e38b85be\", \"name\": \"Todo\", \"type\": \"unstarted\", \"team\": { \"key\": \"MTN\" } },\n        { \"id\": \"ee724a62-0212-4b53-af67-08297a5ae132\", \"name\": \"In Progress\", \"type\": \"started\", \"team\": { \"key\": \"MTN\" } },\n        { \"id\": \"427a9916-3849-4303-b982-f00f1d79c5ee\", \"name\": \"Done\", \"type\": \"completed\", \"team\": { \"key\": \"MTN\" } },\n        { \"id\": \"363df32a-f22d-4083-8efb-b3615c019925\", \"name\": \"Canceled\", \"type\": \"canceled\", \"team\": { \"key\": \"MTN\" } }\n      ]\n    }\n  }\n}\n\nUsers\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ users(first: 20) { nodes { id name email active } } }\"}\n\nComments\nList Comments\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"{ comments(first: 10) { nodes { id body createdAt issue { identifier } user { name } } } }\"}\n\nCreate Comment\nPOST /linear/graphql\nContent-Type: application/json\n\n{\"query\": \"mutation { commentCreate(input: { issueId: \\\"ISSUE_ID\\\", body: \\\"Comment text here\\\" }) { success comment { id body } } }\"}\n\nPagination\n\nLinear uses Relay-style cursor-based pagination with first/after and last/before arguments.\n\n# First page\nPOST /linear/graphql\n{\"query\": \"{ issues(first: 10) { nodes { id identifier title } pageInfo { hasNextPage endCursor } } }\"}\n\n# Next page using endCursor\nPOST /linear/graphql\n{\"query\": \"{ issues(first: 10, after: \\\"CURSOR_VALUE\\\") { nodes { id identifier title } pageInfo { hasNextPage endCursor } } }\"}\n\n\nResponse includes pageInfo:\n\n{\n  \"data\": {\n    \"issues\": {\n      \"nodes\": [...],\n      \"pageInfo\": {\n        \"hasNextPage\": true,\n        \"endCursor\": \"4c7b33c8-dabf-47ce-9d30-7f286f9463be\"\n      }\n    }\n  }\n}\n\nCode Examples\nJavaScript\nconst response = await fetch('https://gateway.maton.ai/linear/graphql', {\n  method: 'POST',\n  headers: {\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n    'Content-Type': 'application/json'\n  },\n  body: JSON.stringify({\n    query: `{ issues(first: 10) { nodes { id identifier title state { name } } } }`\n  })\n});\nconst data = await response.json();\n\nPython\nimport os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/linear/graphql',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={\n        'query': '{ issues(first: 10) { nodes { id identifier title state { name } } } }'\n    }\n)\ndata = response.json()\n\nNotes\nLinear uses GraphQL exclusively (no REST API)\nIssue identifiers like MTN-527 can be used in place of UUIDs for the id parameter\nPriority values: 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low\nWorkflow state types: backlog, unstarted, started, completed, canceled\nThe GraphQL schema is introspectable at https://api.linear.app/graphql\nUse searchIssues(term: \"...\") for full-text search across issues\nSome mutations (delete, create labels/projects) may require additional OAuth scopes. If you receive a scope error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case\nError Handling\nStatus\tMeaning\n400\tMissing Linear connection or GraphQL validation error\n401\tInvalid or missing Maton API key\n403\tInsufficient OAuth scope for the operation\n429\tRate limited\n4xx/5xx\tPassthrough error from Linear API\n\nGraphQL errors are returned in the errors array:\n\n{\n  \"errors\": [\n    {\n      \"message\": \"Invalid scope: `write` required\",\n      \"extensions\": {\n        \"type\": \"forbidden\",\n        \"code\": \"FORBIDDEN\",\n        \"statusCode\": 403\n      }\n    }\n  ]\n}\n\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with linear. For example:\nCorrect: https://gateway.maton.ai/linear/graphql\nIncorrect: https://gateway.maton.ai/graphql\nResources\nLinear API Overview\nLinear GraphQL Getting Started\nLinear GraphQL Schema (Apollo Studio)\nLinear API and Webhooks\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/linear-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/linear-api",
    "owner": "byungkyu",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/linear-api",
    "downloadUrl": "https://openagent3.xyz/downloads/linear-api",
    "agentUrl": "https://openagent3.xyz/skills/linear-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/linear-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/linear-api/agent.md"
  }
}