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

# Get Linear Oauth Url

`POST /api/linear/oauth/url`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/linear/oauth/url`
- Auth: none declared

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.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
