import ModerationAPI from '@moderation-api/sdk';
const client = new ModerationAPI({
secretKey: process.env['MODAPI_SECRET_KEY'], // This is the default and can be omitted
});
const wordlists = await client.wordlist.list();
console.log(wordlists);
List all wordlists for the authenticated organization
GET
/
wordlist
JavaScript
Copy
import ModerationAPI from '@moderation-api/sdk';
const client = new ModerationAPI({
secretKey: process.env['MODAPI_SECRET_KEY'], // This is the default and can be omitted
});
const wordlists = await client.wordlist.list();
console.log(wordlists);