---
title: "Create search tasks for a campaign"
method: POST
path: "/api/create-task"
tags: ["Tasks"]
---

# Create search tasks for a campaign

`POST /api/create-task`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/create-task`
- Auth: HTTP bearer

Creates search tasks for a campaign based on search terms, hashtags, and YouTube terms stored in the database

## Request body

- object
  - `campaign_id` string, required: ID of the campaign to create tasks for

## Response `200`

Tasks created successfully

- object
  - `success` boolean
  - `message` string
  - `tasks` object[]
    - `id` string
    - `campaign_id` string
    - `content` string
    - `channel` string
    - `status` string

## Other responses

- `400`: Bad request - campaign_id is required or invalid
- `500`: 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)
