Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Sink Validate Resource


There is no longer a need for validating a Sink. The status of Sinks is active by default.


SinkValidate Properties

sinkvalidate-properties page anchor
Property nameTypePIIDescription
resultstring
Not PII

Feedback indicating whether the given Sink was validated.


Create a SinkValidate resource

create-a-sinkvalidate-resource page anchor
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).

Path parameters

path-parameters page anchor
Property nameTypeRequiredPIIDescription
SidSID<DG>required

A 34 character string that uniquely identifies the Sink being validated.

Pattern: ^DG[0-9a-fA-F]{32}$Min length: 34Max length: 34
Property nameTypeRequiredPIIDescription
TestIdstringrequired

A 34 character string that uniquely identifies the test event for a Sink being validated.

Post Sink Validate

post-sink-validate page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_18
// Download the helper library from https://www.twilio.com/docs/node/install
_18
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18
_18
// Find your Account SID and Auth Token at twilio.com/console
_18
// and set the environment variables. See http://twil.io/secure
_18
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18
const authToken = process.env.TWILIO_AUTH_TOKEN;
_18
const client = twilio(accountSid, authToken);
_18
_18
async function createSinkValidate() {
_18
const sinkValidate = await client.events.v1
_18
.sinks("DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_18
.sinkValidate.create({ testId: "95001c1e-5b8e-45f5-830d-f9cbf1d16420" });
_18
_18
console.log(sinkValidate.result);
_18
}
_18
_18
createSinkValidate();

Output

_10
{
_10
"result": "valid"
_10
}


Rate this page: