The Sink Test Resource creates a test event. This test gives you a way to publish to yourself and programmatically ensure that your Sink is ready to receive events.
Feedback indicating whether the test event was generated.
POST https://events.twilio.com/v1/Sinks/{Sid}/Test
Initiates a test event on a Sink.
A 34 character string that uniquely identifies the Sink to be Tested.
^DG[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function createSinkTest() {11const sinkTest = await client.events.v112.sinks("DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.sinkTest.create();1415console.log(sinkTest.result);16}1718createSinkTest();
1{2"result": "submitted"3}