Skip to main content

Documentation Index

Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Back to API List Use this API to delete specific conversations by conversation IDs within the defined retention period or to delete all conversations associated with a specific channel user. The process is executed in two steps:
  1. Initiate a deletion job.
  2. Retrieve the deletion job status.
This API only initiates the deletion job. The actual deletion of conversation records is performed during off-peak hours.

Initiate a Deletion Job for Specific Conversations

Use this API to delete specific conversation records by conversation IDs.
FieldValue
MethodPOST
Endpointhttps://{{host}}/api/public/bot/{{botId}}/conversations/delete
Content Typeapplication/json
Authorizationauth: {{JWT}} See How to generate the JWT Token.
API ScopeApp Builder: Delete Conversations; Admin Console: Not Applicable

Path Parameters

ParameterRequiredDescription
hostRequiredEnvironment URL, for example, https://platform.kore.ai
botIdRequiredApp ID or Stream ID. You can access it by navigating to App SettingsApp Profile in the app.

Sample Request

curl --location 'https://{{host}}/api/public/bot/{{botId}}/conversations/delete' \
--header 'auth: {{jwt_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "conversationIds": [
        "69eb0c87ec444445976xxxxx",                                                                                                                                                                                                                  
        "69eb0b5c7cd98618e06xxxxx"      
      ]          
    }' 

Header Parameters

ParameterRequiredDescription
authRequiredEnvironment URL, for example, https://platform.kore.ai
botIdRequiredapplication/json;charset=UTF-8

Request Parameters

ParameterTypeRequiredDescription
conversationIdsarray of stringsrequiredList of conversation IDs to delete. Max 100 items per request. Takes precedence over date parameters.

Sample Response

{
    "status": "queued",
    "jobId": "cdj-e8c0d360-6b5b-50ab-bda1-ae54b18xxxxx",
    "message": "Deletion job queued successfully. The bot owner will be notified by email on completion.",
    "submittedAt": "2026-05-08T06:22:56.097Z"
}

Response Parameters

ParameterTypeDescription
statusstringIndicates the current status of the deletion job request. A value of queued indicates that the job was successfully accepted and scheduled for processing.
jobIdstringUnique job identifier to check the job status. Included in change logs and in the bot owner’s completion email for correlation.
messagestringResponse message indicating the result of the request.
submittedAtstring (date-time)UTC timestamp at which the request was received and queued

Initiate a Deletion Job to Delete a Channel User’s Conversation Records

Use this API to delete all conversation records associated with a specific channel user within the specified date range and retention period.
FieldValue
MethodPOST
Endpointhttps://{{host}}/api/public/bot/{{botId}}/conversations/delete
Content Typeapplication/json
Authorizationauth: {{JWT}} See How to generate the JWT Token.
API ScopeApp Builder: Delete Conversations; Admin Console: Not Applicable

Path Parameters

ParameterRequiredDescription
hostRequiredEnvironment URL, for example, https://platform.kore.ai
botIdRequiredApp ID or Stream ID. You can access it by navigating to App SettingsApp Profile in the app.

Sample Request

curl --location 'https://{{host}}/api/public/bot/{{botId}}/conversations/delete' \
--header 'auth: {{jwt_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "cId":"u-e64325ed-82dc-5dd4-88dd-54ac52exxxxx",
    "startDate": "2026-05-04T00:00:00.000Z",              
      "endDate": "2026-05-04T23:59:59.999Z"
    }' 

Header Parameters

HeaderDescriptionRequired/Optional
authJWT token for authentication.required
Content-Typeapplication/json;charset=UTF-8required

Request Parameters

ParameterTypeRequiredDescription
cIdstringYesA unique customer identifier whose conversation records must be deleted.
startDatestring (date)NoInclusive start of the deletion range. ISO 8601 format YYYY-MM-DD. Defaults to the user or bot creation date (whichever is later) when cId is used and this is omitted
endDatestring (date)NoInclusive end of the deletion range. ISO 8601 format YYYY-MM-DD. Must not be a future date. Defaults to the current date when omitted

Sample Response

{
    "status": "queued",
    "jobId": "cdj-1e905b0a-41be-5484-ac9b-3a31a41xxxxx",
    "message": "Deletion job queued successfully. The bot owner will be notified by email on completion.",
    "submittedAt": "2026-05-11T04:50:20.538Z"
}

Response Parameters

ParameterTypeDescription
statusstringIndicates the current status of the deletion job request. A value of queued indicates that the job was successfully accepted and scheduled for processing.
jobIdstringUnique job identifier to check the job status. Included in change logs and in the bot owner’s completion email for correlation.
messagestringResponse message indicating the result of the request.
submittedAtstring (date-time)UTC timestamp at which the request was received and queued

Retrieve Deletion Job Status

Use this API to retrieve the status and execution summary of a deletion job.
FieldValue
MethodGET
Endpointhttps://{{host}}/api/public/bot/{{botId}}/conversations/delete/{{jobId}}
Content Typeapplication/json
Authorizationauth: {{JWT}} See How to generate the JWT Token.
API ScopeApp Builder: Delete Conversations; Admin Console: Not Applicable

Path Parameters

ParameterTypeRequiredDescription
botIdstringYesThe Stream ID or App ID. You can access it from the bot’s App Settings —> App Profile page.
hoststringYesThe Environment URL. For example, https://platform.kore.ai
jobIdstringyesThe unique identifier of the job whose status needs to be retrieved.

Sample Request

curl --location 'https://{{host}}/api/public/bot/{{botId}}/conversations/delete/{{jobId}}' \
--header 'auth: {{jwt_token}}' \
--data '' 

Sample Response

The response includes the deleted records with the status as queued. After the job is run successfully and the records are deleted, the status changes to completed. When a job is queued
{
    "jobId": "cdj-2e5c62ad-df3a-542b-a59e-c72768xxxxx",
    "status": "queued",
    "requestType": "cId",
    "submittedAt": "2026-05-08T17:49:06.505Z",
    "scheduledAt": "2026-05-08T18:00:00.185Z",
    "startedAt": "2026-05-08T18:00:00.204Z",
    "completedAt": "2026-05-08T20:01:12.618Z",
    "result": {
        "totalConversations": 3,
        "processedCount": 3,
        "deletedCount": 89,
        "failedCount": 0,
        "skippedCount": 0,
        "retriesRemaining": 3
    }
} 
When a job is completed
{
    "jobId": "cdj-2e5c62ad-df3a-542b-a59e-c72768bxxxxx",
    "status": "completed",
    "requestType": "cId",
    "submittedAt": "2026-05-08T17:49:06.505Z",
    "scheduledAt": "2026-05-08T18:00:00.185Z",
    "startedAt": "2026-05-08T18:00:00.204Z",
    "completedAt": "2026-05-08T20:01:12.618Z",
    "result": {
        "totalConversations": 3,
        "processedCount": 3,
        "deletedCount": 89,
        "failedCount": 0,
        "skippedCount": 0,
        "retriesRemaining": 3
    }
} 

Response Parameters

ParameterDescriptionTypeExample
jobIdUnique identifier generated for the deletion job.stringcdj-31e88d3d-b687-5bb6-9eb4-4ee67f6xxxxx
statusCurrent status of the deletion job.stringcompleted
requestTypeType of deletion request submitted.stringcId
submittedAtTimestamp indicating when the job request was submitted.string (ISO 8601 timestamp)2026-05-04T19:43:14.534Z
scheduledAtTimestamp indicating when the job was scheduled for execution.string (ISO 8601 timestamp)2026-05-07T18:00:00.073Z
startedAtTimestamp indicating when job execution started.string (ISO 8601 timestamp)2026-05-07T18:00:00.091Z
completedAtTimestamp indicating when the job execution completed.string (ISO 8601 timestamp)2026-05-07T18:00:01.008Z
resultObject containing the deletion job execution summary.object
result.totalConversationsTotal number of conversations identified for processing.integer0
result.processedCountTotal number of conversations processed by the job.integer0
result.deletedCountTotal number of conversations successfully deleted.integer0
result.failedCountTotal number of conversations that failed deletion.integer0
result.skippedCountTotal number of conversations skipped during processing.integer0
result.retriesRemainingNumber of retry attempts remaining for failed deletions.integer3