Sink Validate resource
There is no longer a need for validating a Sink. The status of Sinks is active by default.
Property nameTypeRequiredPIIDescriptionChild properties
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).
Property nameTypeRequiredPIIDescription
A 34 character string that uniquely identifies the Sink being validated.
Pattern:
^DG[0-9a-fA-F]{32}$Min length: 34Max length: 34Encoding type:
application/x-www-form-urlencodedSchemaExample
Property nameTypeRequiredPIIDescriptionChild properties
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 at twilio.com/console5// Provision API Keys at twilio.com/console/runtime/api-keys6// and set the environment variables. See http://twil.io/secure7// For local testing, you can use your Account SID and Auth token8const accountSid = process.env.TWILIO_ACCOUNT_SID;9const apiKey = process.env.TWILIO_API_KEY;10const apiSecret = process.env.TWILIO_API_SECRET;11const client = twilio(apiKey, apiSecret, { accountSid: accountSid });1213async function createSinkValidate() {14const sinkValidate = await client.events.v115.sinks("DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")16.sinkValidate.create({ testId: "95001c1e-5b8e-45f5-830d-f9cbf1d16420" });1718console.log(sinkValidate.result);19}2021createSinkValidate();
Response
1{2"result": "valid"3}