---
title: "Get Linear Oauth Url"
method: POST
path: "/api/linear/oauth/url"
---

# Get Linear Oauth Url

`POST /api/linear/oauth/url`

Generate the Linear OAuth authorization URL and return it to the frontend.
Linear uses standard OAuth 2.0 with PKCE flow.

## Request body

- LinearOAuthURLRequest
  - `redirect_uri` string, nullable
  - `scope` string, nullable

## Response `200`

Successful Response

- LinearOAuthURLResponse
  - `authorization_url` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deeptrace/apis/fastapi.md) · [All operations](https://skmtc.net/deeptrace/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrace/fastapi/versions/2e2a6de8aeda/schema)
