provider OAuth POST /oauth/token
@utdk/linear /oauth/token
Exchange authorization code for access token
Exchange an OAuth 2.0 authorization code for an access token and refresh token. Used in the OAuth authorization code flow.

Try it

Authentication
Configure credentials for Linear API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

exchangeoauthtoken
POST/oauth/token
Exchange an OAuth 2.0 authorization code for an access token and refresh token. Used in the OAuth authorization code flow.

Input

required

Authorization code received from the OAuth callback

required

Redirect URI used in the authorization request

required

Application client ID

required

Application client secret

required

OAuth grant type

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import linear from '@utdk/linear';

await linear.exchangeoauthtoken()