Skip to content

Notifications v2

Reference for the Notifications v2 endpoints on Roblox.

Base URL: https://notifications.roblox.com

MethodPathName
GET/v2/push-notifications/chrome-manifestgetPushNotificationsChromeManifest
POST/v2/push-notifications/deregister-all-devicespostPushNotificationsDeregisterAllDevices
POST/v2/push-notifications/deregister-current-devicepostPushNotificationsDeregisterCurrentDevice
POST/v2/push-notifications/deregister-current-device-ios-pushkitpostPushNotificationsDeregisterCurrentDeviceIosPushkit
GET/v2/push-notifications/get-current-device-destinationgetPushNotificationsGetCurrentDeviceDestination
GET/v2/push-notifications/get-destinationsgetPushNotificationsGetDestinations
GET/v2/push-notifications/metadatagetPushNotificationsMetadata
POST/v2/push-notifications/register-android-nativepostPushNotificationsRegisterAndroidNative
POST/v2/push-notifications/register-ios-nativepostPushNotificationsRegisterIosNative
POST/v2/push-notifications/register-ios-pushkitpostPushNotificationsRegisterIosPushkit
POST/v2/stream-notifications/clear-unreadpostStreamNotificationsClearUnread
GET/v2/stream-notifications/get-latest-game-updatesgetStreamNotificationsGetLatestGameUpdates
GET/v2/stream-notifications/get-recentgetStreamNotificationsGetRecent
GET/v2/stream-notifications/metadatagetStreamNotificationsMetadata
GET/v2/stream-notifications/unread-countgetStreamNotificationsUnreadCount

GET /v2/push-notifications/chrome-manifest

Get Chrome Manifest to link GCM project to Chrome Browser

Usage
import { fetchApi } from 'rozod';
import { getPushNotificationsChromeManifest } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(getPushNotificationsChromeManifest, undefined);
FieldTypeDescription
namestring
gcm_sender_idstring
StatusDescription
4010: Authorization has been denied for this request.

POST /v2/push-notifications/deregister-all-devices

De-register all devices to disable push notifications

Usage
import { fetchApi } from 'rozod';
import { postPushNotificationsDeregisterAllDevices } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(postPushNotificationsDeregisterAllDevices, undefined);
FieldTypeDescription
statusMessagestring
StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

postPushNotificationsDeregisterCurrentDevice

Section titled “postPushNotificationsDeregisterCurrentDevice”

POST /v2/push-notifications/deregister-current-device

De-register current device to disable push notifications

Usage
import { fetchApi } from 'rozod';
import { postPushNotificationsDeregisterCurrentDevice } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(postPushNotificationsDeregisterCurrentDevice, undefined);
FieldTypeDescription
statusMessagestring
StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

postPushNotificationsDeregisterCurrentDeviceIosPushkit

Section titled “postPushNotificationsDeregisterCurrentDeviceIosPushkit”

POST /v2/push-notifications/deregister-current-device-ios-pushkit

De-register current device to disable pushkit notifications

Usage
import { fetchApi } from 'rozod';
import { postPushNotificationsDeregisterCurrentDeviceIosPushkit } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(postPushNotificationsDeregisterCurrentDeviceIosPushkit, undefined);
FieldTypeDescription
statusMessagestring
StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

getPushNotificationsGetCurrentDeviceDestination

Section titled “getPushNotificationsGetCurrentDeviceDestination”

GET /v2/push-notifications/get-current-device-destination

Gets the current device destination

Usage
import { fetchApi } from 'rozod';
import { getPushNotificationsGetCurrentDeviceDestination } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(getPushNotificationsGetCurrentDeviceDestination, undefined);
FieldTypeDescription
destinationobjectSee below
statusMessagestring

destination fields:

FieldTypeDescription
userobjectSee below
namestring
notificationTokenstring
supportsUpdateNotificationsboolean
userPushNotificationDestinationIdnumber
applicationstring
platform`“ChromeOnDesktop""AndroidNative"

user fields:

FieldTypeDescription
namestring
userIdnumber
StatusDescription
4010: Authorization has been denied for this request.

GET /v2/push-notifications/get-destinations

Gets valid destinations associated with the signed user

Usage
import { fetchApi } from 'rozod';
import { getPushNotificationsGetDestinations } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(getPushNotificationsGetDestinations, undefined);
FieldTypeDescription
destinationsobject[]See below
statusMessagestring

destinations[] item fields:

FieldTypeDescription
userobjectSee below
namestring
notificationTokenstring
supportsUpdateNotificationsboolean
userPushNotificationDestinationIdnumber
applicationstring
platform`“ChromeOnDesktop""AndroidNative"

user fields:

FieldTypeDescription
namestring
userIdnumber
StatusDescription
4010: Authorization has been denied for this request.

GET /v2/push-notifications/metadata

Gets the corresponding metadata for the specified notification

Usage
import { fetchApi } from 'rozod';
import { getPushNotificationsMetadata } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(getPushNotificationsMetadata, {
notificationToken: /* string */,
notificationId: /* string */
});
NameTypeRequiredDescription
notificationTokenstringYesToken for the notification
notificationIdstringYesId of the specified notification
FieldTypeDescription
metadataobjectSee below
statusMessagestring

metadata fields:

FieldTypeDescription
notificationIdstring
typestring
detailobjectSee below
fallbackDeliveredboolean
StatusDescription
4010: Authorization has been denied for this request.

postPushNotificationsRegisterAndroidNative

Section titled “postPushNotificationsRegisterAndroidNative”

POST /v2/push-notifications/register-android-native

Register Android Native for push notifications

Usage
import { fetchApi } from 'rozod';
import { postPushNotificationsRegisterAndroidNative } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(postPushNotificationsRegisterAndroidNative, {
body: { /* ... */ }
});
FieldTypeDescription
notificationTokenstring
authorizeForUserboolean
oldNotificationTokenstring
deviceNamestring
FieldTypeDescription
registrationobjectSee below
statusMessagestring

registration fields:

FieldTypeDescription
userPushNotificationDestinationIdnumber
namestring
notificationTokenstring
applicationstring
platform`“ChromeOnDesktop""AndroidNative"
StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

POST /v2/push-notifications/register-ios-native

Registers IOS device for push notifications

Usage
import { fetchApi } from 'rozod';
import { postPushNotificationsRegisterIosNative } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(postPushNotificationsRegisterIosNative, {
body: { /* ... */ }
});
FieldTypeDescription
notificationTokenstring
destinationIdentifierstring
authorizeForUserboolean
oldNotificationTokenstring
deviceNamestring
FieldTypeDescription
registrationobjectSee below
statusMessagestring

registration fields:

FieldTypeDescription
userPushNotificationDestinationIdnumber
namestring
notificationTokenstring
applicationstring
platform`“ChromeOnDesktop""AndroidNative"
StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

POST /v2/push-notifications/register-ios-pushkit

Registers IOS device for pushkit notifications

Usage
import { fetchApi } from 'rozod';
import { postPushNotificationsRegisterIosPushkit } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(postPushNotificationsRegisterIosPushkit, {
body: { /* ... */ }
});
FieldTypeDescription
notificationTokenstring
destinationIdentifierstring
authorizeForUserboolean
oldNotificationTokenstring
deviceNamestring
FieldTypeDescription
registrationobjectSee below
statusMessagestring

registration fields:

FieldTypeDescription
userPushNotificationDestinationIdnumber
namestring
notificationTokenstring
applicationstring
platform`“ChromeOnDesktop""AndroidNative"
StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

POST /v2/stream-notifications/clear-unread

Clears the unread Notification stream count

Usage
import { fetchApi } from 'rozod';
import { postStreamNotificationsClearUnread } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(postStreamNotificationsClearUnread, undefined);
FieldTypeDescription
statusMessagestring
StatusDescription
4010: Authorization has been denied for this request.
4030: Token Validation Failed

getStreamNotificationsGetLatestGameUpdates

Section titled “getStreamNotificationsGetLatestGameUpdates”

GET /v2/stream-notifications/get-latest-game-updates

Get the latest non aggregated Game Updates sent to the logged in user

Usage
import { fetchApi } from 'rozod';
import { getStreamNotificationsGetLatestGameUpdates } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(getStreamNotificationsGetLatestGameUpdates, {
universeIds: /* number */,
sinceDateTime: /* string */
});
NameTypeRequiredDescription
universeIdsnumberYesList of universe IDs
sinceDateTimestringYesFor retrieving only updates that created after a time point.

Array of objects:

FieldTypeDescription
universeIdnumber
rootPlaceIdnumber
createdOnstring
createdOnKeystring
contentstring
universeNamestring
StatusDescription
4010: Authorization has been denied for this request.

GET /v2/stream-notifications/get-recent

Gets the recent entries from the notification stream

Usage
import { fetchApi } from 'rozod';
import { getStreamNotificationsGetRecent } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(getStreamNotificationsGetRecent, {
startIndex: /* integer? */,
maxRows: /* integer? = 10 */
});
NameTypeRequiredDescription
startIndexinteger?NoIndex to start the entries from. (Optional : Defaults to 0 which means the most recent entry)
maxRowsinteger? = 10NoNumber of entries to be returned. (Optional : Defaults to 10 entries)

Array of objects:

FieldTypeDescription
idstring
notificationSourceType`“Test""FriendRequestReceived"
eventDatestring
timestampstring
isInteractedboolean
metadataCollectionunknown[]
eventCountnumber
contentobjectSee below
StatusDescription
4010: Authorization has been denied for this request.

GET /v2/stream-notifications/metadata

Get Notification Stream metadata.

Usage
import { fetchApi } from 'rozod';
import { getStreamNotificationsMetadata } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(getStreamNotificationsMetadata, undefined);
FieldTypeDescription
bannerDismissTimeSpannumber
signalRDisconnectionResponseInMillisecondsnumber
canLaunchGameFromGameUpdateboolean
StatusDescription
4010: Authorization has been denied for this request.

GET /v2/stream-notifications/unread-count

Gets the count of unread Notification stream entries

Usage
import { fetchApi } from 'rozod';
import { getStreamNotificationsUnreadCount } from 'rozod/lib/endpoints/notificationsv2';
const data = await fetchApi(getStreamNotificationsUnreadCount, undefined);
FieldTypeDescription
unreadNotificationsnumber
statusMessagestring
StatusDescription
4010: Authorization has been denied for this request.