Validate that a test event for a Sink was received.

POST /v1/Sinks/{Sid}/Validate

Validate sink

Validate that a test event for a Sink was received.

Path parameters

  • Sid string Required

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

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^DG[0-9a-fA-F]{32}$.

application/x-www-form-urlencoded

Body

  • TestId string Required

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

Responses

  • 201 application/json

    Created

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attribute Show response attribute object
    • result string | null

      Feedback indicating whether the given Sink was validated.

POST /v1/Sinks/{Sid}/Validate
curl \
 --request POST 'https://events.twilio.com/v1/Sinks/{Sid}/Validate' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'TestId=TestID'
Request example
{"TestId"=>"TestID"}
Response examples (201)
{
  "result": "valid"
}