Create a new Notification for the corresponding Challenge
Create a new Notification for the corresponding Challenge
Path parameters
-
The unique SID identifier of the Service.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^VA[0-9a-fA-F]{32}$
. -
Customer unique identity for the Entity owner of the Challenge. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
-
The unique SID identifier of the Challenge.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^YC[0-9a-fA-F]{32}$
.
POST
/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{ChallengeSid}/Notifications
curl \
--request POST 'https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{ChallengeSid}/Notifications' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Ttl=150'
Request examples
Create with ttl
{"Ttl"=>150}
{"value"=>{}}
Response examples (201)
Create with ttl
{
"sid": "NTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ttl": 150,
"identity": "ff483d1ff591898a9942916050d2ca3f",
"priority": "high",
"entity_sid": "YEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"challenge_sid": "YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
{
"sid": "NTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ttl": 300,
"identity": "ff483d1ff591898a9942916050d2ca3f",
"priority": "high",
"entity_sid": "YEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"challenge_sid": "YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}