There is no longer a need for validating a Sink. The status of Sinks is active
by default.
Feedback indicating whether the given Sink was validated.
POST https://events.twilio.com/v1/Sinks/{Sid}/Validate
A request to create a new Sink Validation Resource always returns a result
property with a value of valid
(to avoid disrupting existing customer workflows).
A 34 character string that uniquely identifies the Sink being validated.
^DG[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
application/x-www-form-urlencoded
A 34 character string that uniquely identifies the test event for a Sink being validated.
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 createSinkValidate() {11const sinkValidate = await client.events.v112.sinks("DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.sinkValidate.create({ testId: "95001c1e-5b8e-45f5-830d-f9cbf1d16420" });1415console.log(sinkValidate.result);16}1718createSinkValidate();
1{2"result": "valid"3}