undeliveredNotifications query
Retrieves undelivered notifications for a given event type, including the reason for the failure.
Syntax
1query {2 undeliveredNotifications(7}
Example
This example retrieves undelivered MessageThreadCreated
notifications.
- Request
- Response
1query {2 undeliveredNotifications(3 limit: 3,4 cursor: "9sjala03715723043xlld",5 filters: {6 eventType: "MessageThreadCreated",7 creationDateTime: {8 from: "2024-01-01T00:00:00Z",9 to: "2024-06-15T23:59:59Z",10 }11 }12 ) {13 totalCount14 cursor15 elements {16 notification {17 eventType18 creationDateTime19 notificationId20 payload21 }22 error {23 code24 message25 }26 }27 }28}
Arguments
Name | Description |
---|---|
| Cursor value for this set of results. Type: String |
| Required. Event type and creation date range to use to filter results. Type: UndeliveredNotificationsFiltersInput |
| Maximum number of notifications to be retrieved (up to 10). Type: Int |
Types
Name | Type | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
DateTime | DateTime | |||||||||
Scalar that represents a date-time string at UTC, such as 2007-12-03T10:15:30Z,
compliant with the | ||||||||||
DateTimeRangeFilterInput | InputObject | |||||||||
Date and time range.
| ||||||||||
Int | Int | |||||||||
The | ||||||||||
JSON | JSON | |||||||||
JSON values as specified by ECMA-404. | ||||||||||
Notification | Object | |||||||||
NotificationError | Object | |||||||||
RangeOperator | Enum | |||||||||
"Values that indicate whether the specified dates are inclusive or exclusive.
| ||||||||||
String | String | |||||||||
The | ||||||||||
UndeliveredNotification | Object | |||||||||
Undelivered notification and the reason why it could not be delivered.
| ||||||||||
UndeliveredNotificationsFiltersInput | InputObject | |||||||||
Event type and creation date range to use to filter results.
| ||||||||||
UndeliveredNotificationsResponse | Object | |||||||||
Number of undelivered notifications and details of each.
|