Creating a Linear OAuth 2.0 application
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from Linear’s own documentation: OAuth 2.0 authentication and OAuth actor authorization. Retrieved 2026-07-03.
Linear highly recommends creating a dedicated workspace for managing the OAuth2 application, because every admin user of the workspace has access to it.
- Create a new OAuth2 application at linear.app/settings/api/applications/new and configure the redirect callback URLs to point at the connect form’s callback.
- Copy the client ID and client secret from the application.
- Authorize by redirecting the user to
https://linear.app/oauth/authorizewithresponse_type=code,client_id,redirect_uri, a comma-separatedscopelist (readis the default and always present; other scopes:write,issues:create,comments:create,timeSchedule:write,admin), and a randomstatevalue (recommended — verify it on the callback). - Optional: add
actor=appto have all mutations (issues, comments, status changes) performed as the application itself instead of the authorizing user — Linear recommends this for agents and service accounts. The olderactor=applicationmode is deprecated in favor ofactor=app. Optional:prompt=consentforces the consent screen every time, useful for letting users connect multiple workspaces. - Optional (PKCE): add
code_challengeandcode_challenge_method(plainorS256) to the authorize request; the client secret then becomes optional at the token exchange. - Exchange the returned
codeatPOST https://api.linear.app/oauth/tokenwithgrant_type=authorization_code,code,redirect_uri,client_id, andclient_secret(orcode_verifierfor PKCE), all as a URL-encoded form body. - Store both tokens from the response: the access token is valid for 24 hours; the refresh token retrieves the next pair. (All OAuth2 apps were migrated to this refresh-token system on April 1, 2026.)
- Refresh at the same token endpoint with
grant_type=refresh_token— client authentication via HTTP Basic (base64(client_id:client_secret)) or form parameters; PKCE-issued tokens need onlyclient_id. Each refresh returns a new refresh token, with a 30-minute replay grace period if the response is lost. - Call the API:
POST https://api.linear.app/graphqlwithAuthorization: Bearer <ACCESS_TOKEN>. - To disconnect,
POST https://api.linear.app/oauth/revokewith the token in thetokenform field (optionallytoken_type_hint=access_token|refresh_token); 200 means revoked.
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose Linear, and pick Linear OAuth 2.0. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: Linear in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.