Overview
The Linear integration enables Potpie agents to fetch issue details, update issue status, and manage project workflows directly within the development environment.Quick Start
Prerequisites
- Active Linear workspace
- Linear OAuth application credentials
Setup Steps
Create Linear OAuth App
Go to Linear Settings → API → OAuth ApplicationsCreate a new OAuth application with:
- Name: Potpie Integration
- Redirect URL:
https://app.potpie.ai/integrations/linear/callback - Scopes:
read(minimum required)
Connect the Workspace
In the Potpie dashboard:
- Navigate to Settings → Integrations
- Click Connect on Linear
- Authorize Potpie to access the Linear workspace
- Name the integration instance
Available Tools
The Linear integration provides 2 tools. See Linear Tools in the Tools Reference for full documentation.| Tool | Description |
|---|---|
| Issue Fetcher | Fetch issue details |
| Issue Updater | Update issue fields |
Self-Hosted Setup
Backend Configuration
Add Linear OAuth credentials to the environment:OAuth App Setup
-
Access Linear Settings
- Go to the Linear workspace
- Navigate to Settings → API
- Click OAuth Applications
-
Create New Application
The redirect URI is dynamically constructed from the deployment hostname. Replace
{your-deployment-hostname}with the actual hostname of your Potpie deployment. -
Save Credentials
- Copy the Client ID
- Copy the Client Secret
- Store both securely in environment variables
Authorization Flow
Scopes
| Scope | Access Level | Required |
|---|---|---|
read | Read issues, teams, projects | ✅ Yes |
API Integration Details
Authentication Type: OAuth 2.0 Authorization URL:https://linear.app/oauth/authorize
Token URL: https://api.linear.app/oauth/token
Token Storage:
- Encrypts access tokens at rest
- Stores tokens in the Potpie database
https://api.linear.app/graphql
Method: POST
Content-Type: application/json
Authentication Header:

