Skip to content
Docs

Creating Linear client-credentials (app-actor) tokens

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 — Client credentials tokens and OAuth actor authorization. Retrieved 2026-07-03.

Linear supports the client_credentials grant for OAuth2 apps that need server-to-server communication and cannot support a user-initiated OAuth flow with refresh tokens.

  1. Create a new OAuth2 application at linear.app/settings/api/applications/new (or edit an existing one).
  2. Toggle on client credentials tokens for the app while creating or editing it — without this, the token request fails with Client does not support the client_credentials grant type.
  3. Request a token: POST https://api.linear.app/oauth/token with grant_type=client_credentials and a required comma-separated scope list, authenticating with HTTP Basic (base64(client_id:client_secret)) or with client_id/client_secret as form parameters.
  4. The response contains an access token valid for 30 days (example expires_in: 2591999) and no refresh token — fetch a new token when a request returns 401.
  5. The token is an app-actor token with access to all public teams in the workspace; adjust the app user’s team access on the app details page at any point after the token is generated.
  6. Mind the fleet rules: up to 1000 active client-credentials tokens in parallel, provided each uses the same scopes. Requesting a token with different scopes revokes all existing app-actor tokens; app-actor tokens first generated via another grant type block parallel client-credentials tokens; rotating the client secret invalidates all of the app’s client-credentials tokens.
  7. Call the API: POST https://api.linear.app/graphql with Authorization: Bearer <ACCESS_TOKEN>.

Open Connections under Credentials, choose Linear, and pick Linear client credentials (app-actor tokens). 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.