MCPcopy Create free account
hub / github.com/Open-Dev-Society/OpenStock / listForms

Function listForms

scripts/list-kit-forms.mjs:7–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const KIT_API_KEY = process.env.KIT_API_KEY;
6
7async function listForms() {
8 const url = `https://api.convertkit.com/v3/forms?api_key=${KIT_API_KEY}`;
9
10 try {
11 const response = await fetch(url);
12 const data = await response.json();
13
14 console.log("\n📋 Available Kit Forms:");
15 if (data.forms && data.forms.length > 0) {
16 data.forms.forEach(f => {
17 console.log(`- ID: ${f.id} | Name: ${f.name}`);
18 });
19 } else {
20 console.log("No forms found.");
21 }
22 } catch (e) {
23 console.error("Error:", e);
24 }
25}
26
27listForms();

Callers 1

list-kit-forms.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected