---
title: "Oauth Youtube Callback"
method: GET
path: "/api/oauth/youtube/callback"
---

# Oauth Youtube Callback

`GET /api/oauth/youtube/callback`

## Request

- Base URL: `https://sleipnir.tv` (the document declares no server; this is the origin it was published from)
- URL: `https://sleipnir.tv/api/oauth/youtube/callback`
- Auth: none declared

Google redirects here with code+state. Exchange code for tokens,
fetch the YouTube channel, save (replacing any existing active
connection for this Sleipnir user), redirect to account page.

## Query parameters

- `code` string, nullable
- `state` string, nullable
- `error` string, nullable

## Cookies

- `__Host-connect_nonce` string, nullable
- `relay_session` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sleipnir/apis/relay-control-plane.md) · [All operations](https://skmtc.dev/sleipnir/apis/relay-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/sleipnir/apis/relay-control-plane/revisions/79829f6945a4?raw)
