---
title: "Get the YouTube sign-in link that connects a video destination."
method: GET
path: "/publishing/youtube/connect"
tags: ["Publishing"]
---

# Get the YouTube sign-in link that connects a video destination.

`GET /publishing/youtube/connect`

## Request

- Base URL: `https://docs.sleeperhit.studio/api/v1`
- URL: `https://docs.sleeperhit.studio/api/v1/publishing/youtube/connect`
- Auth: HTTP bearer

The sign-in link that connects a YouTube account (widescreen videos) or a TikTok account (vertical videos) as a video destination: open `authUrl` in a browser. With `seriesId`, that show's videos go there once the sign-in comes back; `returnTo` (http(s)) is where the browser lands afterwards. 409 `integration_unavailable` when Sleeper Hit's sign-in for that provider is not set up. Free.

## Query parameters

- `seriesId` string
- `returnTo` string, uri

## Response `200`

The sign-in link to open in a browser.

- PublishingConnectLink
  - `authUrl` string, uri, required: The provider's sign-in page. It expires in ten minutes.

## Other responses

- `400`: Request payload failed validation. The error message names the offending field.
- `401`: Missing, malformed, revoked, or expired API key.
- `403`: API key is valid but lacks the scope, is blocked by IP allowlist, or the account is disabled.
- `409`: `integration_unavailable` — Sleeper Hit's YouTube sign-in is not set up on this server; nothing was started.
- `429`: Rate limit for this API key + IP + route family was exceeded.
- `500`: The API failed unexpectedly. Safe to retry with the same Idempotency-Key.

---

[API](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api.md) · [All operations](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/revisions/4534f5d25540?raw)
