Skip to main content
DELETE
/
ai_chats
/
{id}
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});

const aiChat = await client.aiChats.delete('aich_xxxxxxxxxxxxx');

console.log(aiChat);
true

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required

The ID of the AI chat to delete

Example:

"aich_xxxxxxxxxxxxx"

Response

A successful response

Represents true or false values.