Skip to main content
DELETE
/
api
/
campaigns
/
ai-chat-sessions
/
{id}
Delete a campaign AI chat session
curl --request DELETE \
  --url https://app.puffle.ai/api/campaigns/ai-chat-sessions/{id} \
  --header 'Authorization: Bearer <token>'
{ "success": true }

Overview

Hard-delete a session. The chat transcript, skeleton, drafts, and generated examples are all dropped. Does NOT cancel any in-flight Trigger.dev runs pinned to the session — if task_status is non-null at delete time, the orphaned task will still run to completion. Irreversible.
This operation shares the URL path /api/campaigns/ai-chat-sessions/{id} with other verbs. See the sibling page for related operations on the same resource.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

AI chat session UUID

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Session deleted.

success
enum<boolean>
required
Available options:
true