---
title: "Generate initial keywords for a campaign"
method: POST
path: "/api/keywords-init"
tags: ["Keywords"]
---

# Generate initial keywords for a campaign

`POST /api/keywords-init`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/keywords-init`
- Auth: HTTP bearer

Uses OpenAI to generate relevant search queries based on campaign name and description

## Request body

- object
  - `campaignName` string, required: Name of the campaign
  - `description` string, required: Detailed description of the campaign or product
  - `numberOfKeywords` integer: Number of keywords to generate

## Response `200`

Keywords generated successfully

- object
  - `success` boolean
  - `keywords` string[]: List of generated keywords

## Other responses

- `400`: Bad request, missing required parameters
- `500`: Server error or OpenAI API 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)
