Event subscribed to in the parent Subscription
Retrieve a list of all Subscribed Event types for a Subscription.
Path parameters
-
The unique SID identifier of the Subscription.
Minimum length is
34, maximum length is34. Format should match the following pattern:^DF[0-9a-fA-F]{32}$.
GET
/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents
curl \
--request GET 'https://events.twilio.com/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents' \
--user "username:password"
Response examples (200)
Read empty
{
"types": [],
"meta": {
"page": 0,
"page_size": 10,
"first_page_url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents?PageSize=10&Page=0",
"previous_page_url": null,
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents?PageSize=10&Page=0",
"next_page_url": null,
"key": "types"
}
}
{
"types": [
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"type": "com.twilio.messaging.message.delivered",
"schema_version": 2,
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/com.twilio.messaging.message.delivered"
},
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"type": "com.twilio.messaging.message.failed",
"schema_version": 15,
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/com.twilio.messaging.message.failed"
}
],
"meta": {
"page": 0,
"page_size": 50,
"first_page_url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents?PageSize=50&Page=0",
"previous_page_url": null,
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents?PageSize=50&Page=0",
"next_page_url": null,
"key": "types"
}
}