import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.webhookEndpoints.test({
id: "<id>",
});
console.log(result);
}
run();{
"delivered": true,
"message": "<string>"
}Sends a test event to the webhook endpoint
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.webhookEndpoints.test({
id: "<id>",
});
console.log(result);
}
run();{
"delivered": true,
"message": "<string>"
}API key in the format: Bearer {api_token}
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
The event type to send as a test
Was this page helpful?