Contact Tasks

Delete Contact Task

Delete contact task

post
/v1/contact/{contactId}/task/{taskId}/delete

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

contactIdstring* Required

The ID of the contact the task belongs to

taskIdstring* Required

The ID of the task to be deleted

Request Body * Required

Request Body Schema: application/json

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.contact.task.delete(

contactId, taskId,
{}
)
{
"id":"string"
}
The contact task was deleted successfully