---
title: "Generate a campaign brief and create Google Doc"
method: POST
path: "/api/campaign/generate-brief"
tags: ["Campaign", "Brief"]
---

# Generate a campaign brief and create Google Doc

`POST /api/campaign/generate-brief`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/campaign/generate-brief`
- Auth: HTTP bearer

Generates a comprehensive campaign brief using OpenAI and creates a Google Doc with the content. Supports multiple channels per campaign with channel-specific requirements.

## Request body

- object
  - `campaign_id` string, uuid, required: The unique identifier of the campaign

## Response `200`

Campaign brief generated successfully

- object
  - `brief` string: The generated campaign brief content with channel-specific requirements
  - `googleDocUrl` string, uri: URL to the created Google Doc
  - `folderId` string: Google Drive folder ID where the document is stored

## Other responses

- `400`: Bad request - missing required fields
- `404`: Campaign or requirements not found
- `409`: Conflict - document already exists
- `500`: Internal server error

---

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