Handle Notion Oauth

Handle Notion OAuth token upsert

Args: request: The FastAPI request object body: The request body containing the access token and metadata

Returns: Response indicating success

Raises: HTTPException: If there’s an error during the process

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
access_tokenstringRequired
metadatamap from strings to MetadataRequired
integrated_service_idstringOptionalDefaults to notion
codestring or nullOptional
redirect_uristring or nullOptional

Response

Successful Response

Errors