Create a new Notification for the corresponding Challenge
TODO: Resource-level docs
Create a new Notification for the corresponding Challenge
Path parameters
-
The unique SID identifier of the Service.
-
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.
Body
-
Ttl integer
How long, in seconds, the notification is valid. Can be an integer between 0 and 300. Default is 300. Delivery is attempted until the TTL elapses, even if the device is offline. 0 means that the notification delivery is attempted immediately, only once, and is not stored for future delivery.
POST /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{ChallengeSid}/Notifications
curl \
-X POST https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{ChallengeSid}/Notifications \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Ttl=42'
Request example
{
"Ttl": 42
}
Request examples
{
"Ttl": 42
}
Response examples (201)
{
"account_sid": "string",
"challenge_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"entity_sid": "string",
"identity": "string",
"priority": "string",
"service_sid": "string",
"sid": "string",
"ttl": 42
}
Response examples (201)
{
"account_sid": "string",
"challenge_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"entity_sid": "string",
"identity": "string",
"priority": "string",
"service_sid": "string",
"sid": "string",
"ttl": 42
}