---
title: "Generate takedown letter"
method: POST
path: "/generate-letter"
tags: ["Letter Generation"]
---

# Generate takedown letter

`POST /generate-letter`

Generates a personalized takedown letter based on user input and platform policies

## Request body

- LetterRequest
  - `initialQuestions` InitialQuestions, required
    - `contentLocationType` 'url' | 'description', required
    - `contentUrl` string — Required when contentLocationType is 'url'
    - `contentDescription` string — Required when contentLocationType is 'description'
    - `contentType` 'intimate' | 'personal' | 'private' | 'other', required
    - `contentContext` 'hacked' | 'impersonation' | 'relationship' | 'unknown' | 'other', required
    - `imageUploadDate` string, required
    - `imageTakenDate` string, required
    - `ownershipEvidence` string, required
    - `impactStatement` string, required
    - `imageIdentification` string, required
  - `platformInfo` PlatformInfo, required
    - `platformId` 'facebook' | 'instagram' | 'tiktok' | 'onlyfans' | 'pornhub' | 'other', required
    - `platformName` string, required
    - `isCustom` boolean, required
    - `customName` string — Required when isCustom is true
  - `reportingDetails` ReportingDetails
    - `standardProcessDetails` string
    - `escalatedProcessDetails` string
    - `responseReceived` string
    - `additionalStepsTaken` string
  - `followUp` object — Follow-up question answers as key-value pairs

## Response `200`

Successfully generated letter

- GeneratedLetter
  - `subject` string, required — Email subject line
  - `body` string, required — Letter body content with \n for newlines
  - `nextSteps` string[] — Recommended next steps for the user

## Other responses

- `400` — Invalid request data
- `500` — Internal server error

---

[API](https://skmtc.dev/chaynhq/apis/chayn-tools-api.md) · [All operations](https://skmtc.dev/chaynhq/apis/chayn-tools-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaynhq/chayn-tools-api/revisions/f835a1636ca2/schema)
