Username/Password
Register
{ token, user: { id, username, email } }
Login
Returns:
{ token, user: { id, username, email, avatarUrl } }
Local Desktop Session
x-openlinear-client: desktop header.
The username is auto-generated from your OS username (e.g., local-kaizen).
{ token, user: { id, username, email, avatarUrl, githubId } }
GitHub OAuth
Browser Flow
Callback
openlinear://callback?token=<jwt>.
Desktop Local Login
gh CLI or environment). Requires x-openlinear-client: desktop.
Check Local Auth
Device Flow
For headless environments or when browser OAuth isn’t available.Start
x-openlinear-client: desktop.
Poll
Returns
{ status: "pending" } (202) or { status: "complete", token, user } (200).
GitHub Account Linking
Get Connect URL
Confirm Connection
Links the GitHub account to the authenticated user.
Current User
accessToken and passwordHash). Requires Bearer auth.
Logout
{ success: true }. Token invalidation is handled client-side.
