Dev / Security / Ops
Examples
Copy-ready snippets that show how to call PantherIQ from different environments.
Node.js
import fetch from "node-fetch";
await fetch("https://api.pantheriq.com/v1/runs", {
method: "POST",
headers: {
"Authorization": \`Bearer \${process.env.PANTHERIQ_TOKEN}\`,
"Content-Type": "application/json",
},
body: JSON.stringify({ automation_id: "lead-gen", environment: "production" }),
});
cURL
curl https://api.pantheriq.com/v1/outcomes \
-H "Authorization: Bearer $PANTHERIQ_TOKEN" \
-G --data-urlencode "automation_id=customer-support"
Webhook handler
app.post("/pantheriq-webhook", (req, res) => {
verifySignature(req.headers, req.rawBody);
if (req.body.type === "run.completed") {
archiveOutcome(req.body.data);
}
res.sendStatus(200);
});