---
title: "Trigger a task"
method: POST
path: "/task/{taskId}/trigger"
tags: ["Task"]
---

# Trigger a task

`POST /task/{taskId}/trigger`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/task/{taskId}/trigger`
- Auth: HTTP bearer

Manually trigger a task to execute immediately.

## Path parameters

- `taskId` string, required

## Request body

- object: The request body for triggering a task

## Response `200`

The task was triggered successfully

- object
  - `id` string, required: The ID of the triggered task

## Other responses

- `default`: An error response

---

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