---
title: "Create a playlist on the channel"
method: POST
path: "/oauth/accounts/{id}/youtube/playlists"
tags: ["Accounts"]
---

# Create a playlist on the channel

`POST /oauth/accounts/{id}/youtube/playlists`

## Request

- Base URL: `https://preflight.social/v1`
- URL: `https://preflight.social/v1/oauth/accounts/{id}/youtube/playlists`
- Auth: HTTP bearer

A playlist of the same name that already exists is returned instead. Scope posts:publish.

## Request body

- object
  - `title` string, required
  - `privacy` 'public' | 'unlisted' | 'private'

## Response `201`

Created, or the existing one.

- object
  - `id` string
  - `title` string
  - `privacy` string
  - `duplicate` boolean

## Other responses

- `400`: The body did not validate (invalid_request; field says which).
- `401`: Missing, expired or unrecognised key.
- `403`: The key lacks the scope for this call.
- `404`: No such post, file or account in this workspace.

---

[API](https://skmtc.dev/preflight/apis/preflight-api.md) · [All operations](https://skmtc.dev/preflight/apis/preflight-api/llms.txt) · [OpenAPI document](https://skmtc.dev/preflight/apis/preflight-api/revisions/45ae7944ce71?raw)
