linear-and-github-extension

Linear API Key Setup Guide

Table of Contents


Overview

LAGE requires a Linear API key to authenticate and fetch issue data from your Linear workspace. This guide will walk you through generating and configuring your API key safely.

Time Required: ~2 minutes
Prerequisites: A Linear account with access to at least one workspace


Why LAGE Requires an API Key

The extension needs a Linear API key to:

What the API Key Allows

Read-only access to your Linear issues
No write permissions - LAGE cannot modify your issues
Scoped to your account - Only accesses data you can see
Revocable anytime - You have full control

Security & Privacy


How to Generate Your API Key

Follow these steps to create a personal API key in Linear:

  1. Click this link: Linear API Settings
  2. Skip to step 3 below

Option 2: Navigate Manually

  1. Go to Linear and log in
  2. Click on your profile icon in the bottom left
  3. Select Preferences (or Settings)
  4. In the left sidebar, click API

Create Your API Key

  1. Scroll down to the Personal API Keys section
  2. In the Label field, enter a descriptive name:

    • Example: LAGE Extension
    • Example: GitHub Integration
    • Example: Linear & GitHub Extension

    Tip: Use a descriptive label so you remember what it’s for

  3. Click the Create new API Key button

  4. Copy the generated API key immediately
    • The key looks like: lin_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    • Important: You won’t be able to see it again!
    • Save it temporarily in a secure place (password manager recommended)

How to Configure LAGE

After generating your API key:

First-Time Setup

  1. Open the LAGE extension

    • Click the LAGE icon in your browser toolbar
    • Or right-click the icon and select Options
  2. Navigate to Settings

    • Look for a Settings or Configuration button
    • This should open the extension’s options page
  3. Enter Your API Key

    • Find the Linear API Key input field
    • Paste your API key (starts with lin_api_)
    • Click Save or Apply
  4. Verify the Connection

    • The extension should confirm the key is valid
    • You may see your Linear workspace name displayed

Updating an Existing Key

  1. Open LAGE settings
  2. Clear the old API key
  3. Paste the new API key
  4. Save changes

API Key Permissions

What LAGE Can Access

With your API key, LAGE can:

What LAGE CANNOT Do

LAGE is read-only and cannot:

Note: Linear’s personal API keys inherit the permissions of your user account. LAGE only uses read operations.


Security Best Practices

✅ Do’s

❌ Don’ts

What If Your Key Is Compromised?

If you suspect your API key has been compromised:

  1. Immediately revoke the key in Linear settings
  2. Generate a new key following the steps above
  3. Update the key in LAGE settings
  4. Review your Linear audit logs for suspicious activity
  5. Report the incident if you believe it’s related to LAGE

Troubleshooting

“Invalid API Key” Error

Possible causes:

Solutions:

  1. Verify the key starts with lin_api_
  2. Try copying and pasting the key again
  3. Check your internet connection
  4. Generate a new key and try again
  5. Check Linear Status

For more troubleshooting help, see TROUBLESHOOTING.md.

Other Common Issues

For issues related to:


Revoking or Rotating Keys

When to Revoke a Key

How to Revoke a Key

  1. Go to Linear API Settings
  2. Find your key in the Personal API Keys section
  3. Click Revoke or the trash icon
  4. Confirm the revocation

After revoking: The key is immediately invalidated and LAGE will stop working until you configure a new key.

Key Rotation (Best Practice)

For enhanced security, rotate your API keys periodically:

  1. Generate a new API key (keep the old one active)
  2. Update LAGE with the new key
  3. Test that LAGE works with the new key
  4. Revoke the old key in Linear
  5. Document the rotation date for future reference

Recommended rotation schedule: Every 3-6 months or after any security incident.


FAQ

Do I need a paid Linear account?

No, LAGE works with free Linear accounts. API keys are available on all Linear plans.

Can I use the same key for multiple browsers/devices?

Yes, but for better security consider using separate keys to track usage per device and revoke access independently.

What if I lose my API key?

API keys cannot be retrieved after creation. Generate a new key, revoke the old one, and update LAGE.

Does the API key expire?

No, Linear personal API keys do not expire automatically. They remain active until you revoke them.

For more questions, see the main FAQ.


Need Help?

If you’re still having trouble:


Additional Resources


Happy integrating! 🎉