Skip to main content

notification_deliveries

Creates, updates, deletes, gets or lists a notification_deliveries resource.

Overview​

Namenotification_deliveries
TypeResource
Idrailway.observability.notification_deliveries

Fields​

The following fields are returned by SELECT queries:

One NotificationDelivery row.

NameDatatypeDescription
idstring
user_idstring
created_atstring (date-time)
notification_instanceobjectNotificationInstance object
read_atstring (date-time)
statusstring (FAILED, PENDING, SENT)
typestring (EMAIL, INAPP, WEBHOOK)
updated_atstring (date-time)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGets a notification delivery by ID for the authenticated user. Backed by the Railway GraphQL query notificationDelivery.
listselectenvironment_id, only_unread, project_id, status, type, workspace_idGets notification deliveries for the authenticated user. Backed by the Railway GraphQL query notificationDeliveries.
mark_as_readexecdelivery_idsMarks notification deliveries as read. Backed by the Railway GraphQL mutation notificationDeliveriesMarkAsRead.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstring
environment_idstring
only_unreadboolean
project_idstring
statusstring
typestring
workspace_idstring
delivery_idsarray

SELECT examples​

Gets a notification delivery by ID for the authenticated user. Backed by the Railway GraphQL query notificationDelivery.

SELECT
id,
user_id,
created_at,
notification_instance,
read_at,
status,
type,
updated_at
FROM railway.observability.notification_deliveries
WHERE id = '{{ id }}' -- required
;

Lifecycle Methods​

Marks notification deliveries as read. Backed by the Railway GraphQL mutation notificationDeliveriesMarkAsRead.

EXEC railway.observability.notification_deliveries.mark_as_read
@delivery_ids='{{ delivery_ids }}' --required
;