Skip to main content

Username/Password

Register

Creates a new user with a personal team.
Returns: { token, user: { id, username, email } }

Login

Returns: { token, user: { id, username, email, avatarUrl } }

Local Desktop Session

Creates or reuses a local desktop user without credentials. Requires the x-openlinear-client: desktop header. The username is auto-generated from your OS username (e.g., local-kaizen).
Returns: { token, user: { id, username, email, avatarUrl, githubId } }

GitHub OAuth

Browser Flow

Redirects to GitHub’s authorization page. After approval, GitHub redirects to the callback endpoint.

Callback

Exchanges the authorization code for a token. Desktop clients are redirected to openlinear://callback?token=<jwt>.

Desktop Local Login

Uses locally available GitHub credentials (from gh CLI or environment). Requires x-openlinear-client: desktop.

Check Local Auth

Returns whether local GitHub auth is available and its source.

Device Flow

For headless environments or when browser OAuth isn’t available.

Start

Returns a user code and verification URL. Requires x-openlinear-client: desktop.

Poll

Returns { status: "pending" } (202) or { status: "complete", token, user } (200).

GitHub Account Linking

Get Connect URL

Returns a GitHub authorization URL for linking a GitHub account to an existing user. Requires Bearer auth.

Confirm Connection

Links the GitHub account to the authenticated user.

Current User

Returns the authenticated user’s profile (excludes accessToken and passwordHash). Requires Bearer auth.

Logout

Returns { success: true }. Token invalidation is handled client-side.