---
title: "Get Sentry Oauth Url"
method: POST
path: "/api/sentry/oauth/url"
---

# Get Sentry Oauth Url

`POST /api/sentry/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/sentry/oauth/url`
- Auth: none declared

Generate the Sentry OAuth authorization URL and return it to the frontend.
Implements manual PKCE/state with DB persistence so callback can be handled statelessly.

## Request body

- SentryOAuthURLRequest
  - `redirect_uri` string, nullable
  - `scope` string, nullable

## Response `200`

Successful Response

- SentryOAuthURLResponse
  - `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)
