---
title: "Disconnect Policy"
method: POST
path: "/api/tasks/disconnect-policy"
tags: ["Tasks"]
---

# Disconnect Policy

`POST /api/tasks/disconnect-policy`

## Request

- Base URL: `https://api.primetime.media` (the document declares no server; this is the origin it was published from)
- URL: `https://api.primetime.media/api/tasks/disconnect-policy`
- Auth: none declared

Daily (Rob 2026-11-16): creators whose YouTube grant stopped working get
a reconnect email; 7 days later, if still disconnected, the account is
deleted (same soft-delete as a GDPR request) and its channel blocked.
See services/disconnect_policy.py. ?dry_run=true changes nothing.

## Query parameters

- `dry_run` boolean
- `max_new_notices` integer, nullable

## Headers

- `x-cloudscheduler-secret` string, nullable
- `x-scheduler-secret` string, nullable
- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `401`: Unauthorized
- `422`: Validation Error
- `500`: Internal Server Error

## Changes

- **2026-11-17** `22fedaf579ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/primetime/apis/primetime-media-api/changes/api/tasks/disconnect-policy/post.md)

---

[API](https://skmtc.dev/primetime/apis/primetime-media-api.md) - [All operations](https://skmtc.dev/primetime/apis/primetime-media-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primetime/apis/primetime-media-api/revisions/22fedaf579ad?raw)
