---
title: "Notion Oauth Callback"
method: POST
path: "/api/notion/oauth/callback"
---

# Notion Oauth Callback

`POST /api/notion/oauth/callback`

Accept the OAuth callback URL, exchange code for tokens using stored PKCE/state, and persist to DB.

## Request body

- NotionOAuthCallbackRequest
  - `callback_url` string, required

## Response `200`

Successful Response

- NotionOAuthCallbackResponse
  - `success` boolean, 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)
