Trillet AI logo

Delete Call Disposition

Cancel a contact's queued callback, or delete a finished record.

DELETEhttps://api.trillet.ai/v1/api/call-dispositions/{id}

What happens depends on the record:

  • A callback is queued: the callback is cancelled. The record is kept with status: "cancelled".
  • The queued callback has already run: the record is kept and marked status: "completed".
  • No further attempts were due (currentAttempt is -1, or no callback is queued): the record is deleted.

Headers

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

idstringrequired

The record's _id, from List Call Dispositions.

Response Fields

messagestring

What happened: "Job cancelled successfully", "Job already completed." or "Record deleted successfully.".

Errors

StatusBodyWhen
400{"error": "Workspace ID is required"}The x-workspace-id header is missing
404{"message": "No call-disposition found for id <id>."}No record with that ID exists in this workspace
{
  "message": "Job cancelled successfully"
}

Last updated on