Linear
Prefer guided AI setup?
Instead of following these steps manually, you can use the AI Credential Assistant — describe what you want to connect and the AI will walk you through the setup step by step, tailored to your account.
Overview
Connect your Linear workspace to Nirvai to manage issues, projects, and cycles programmatically using Linear's GraphQL API.
Supported Authentication Methods
- Personal API Key - Recommended for personal integrations
Prerequisites
- A Linear account (free or paid)
- Access to the workspace you want to connect
Setup Instructions
Generating a Personal API Key
- Log in to your Linear workspace
- Click your avatar (bottom-left)
- Go to Settings
- Navigate to Security & access > API
- Under "Personal API keys", click Create key
- Enter a label for your key (e.g., "Nirvai Integration")
- Click Create
- Important: Copy the API key immediately - it won't be shown again
- In Nirvai, create a new Linear credential and paste the key
Alternative Path
Access API settings directly at:
https://linear.app/settings/api
API Key Permissions
Personal API keys:
- Have full access to your Linear account
- Can read and write issues, projects, cycles, etc.
- Are scoped to workspaces you have access to
- Don't expire but can be revoked
GraphQL API
Linear uses a GraphQL API. Key features:
- Single endpoint:
https://api.linear.app/graphql - Flexible queries - request only the data you need
- Real-time subscriptions available
- Rich filtering and pagination
Troubleshooting
Common Issues
- 401 Unauthorized: API key is invalid or was revoked. Generate a new key.
- 403 Forbidden: You don't have permission for the requested resource.
- Rate limits: Linear enforces rate limits. Implement backoff strategies.
- Query complexity: GraphQL queries have complexity limits. Simplify if needed.
Managing API Keys
To view or revoke existing keys:
- Go to Settings > Security & access > API
- View all active keys under "Personal API keys"
- Click the delete icon to revoke a key
Rate Limits
Linear enforces these limits:
- 1500 requests per hour (basic)
- 6000 requests per hour (paid)
- Query complexity limits apply
- Headers indicate remaining quota
Best Practices
API Key Security
- Never share or expose your API key
- Don't commit keys to version control
- Use environment variables
- Revoke unused keys
Efficient Queries
- Request only fields you need
- Use pagination for large lists
- Leverage filtering at API level
- Consider webhooks for real-time updates
Related Resources
Adapted for Nirvai platform
Next Steps
Got your credential? Connect it to an agent
Use the AI Tool Creator to turn this credential into agent-callable tools. Describe what your agent should be able to do and the AI investigates the API, configures the endpoints, and gives you a reviewable toolkit before saving anything.