STEP 01 / INSTALL
Install your SDK
Example package command. Replace the package name and version with your published SDK.
npm install @hookscope/node
Connect a test endpoint, send a sample event and inspect the delivery. These steps are example product documentation; replace endpoint URLs and SDK details with your real implementation.
Example package command. Replace the package name and version with your published SDK.
npm install @hookscope/node
Keep secrets in environment variables. Never commit production credentials into source control.
import { Hookscope } from "@hookscope/node";
const hookscope = new Hookscope({
apiKey: process.env.HOOKSCOPE_API_KEY
});
await hookscope.endpoints.create({
url: "https://your-app.example.com/webhooks"
});Send a representative event, then inspect its status, payload and retry history in your dashboard.
await hookscope.events.send({
type: "customer.created",
data: { customerId: "cus_demo_01" }
});