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

# Get Sentry Oauth Url

`POST /api/sentry/oauth/url`

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.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/1af581120ec0/schema)
