Skip to content

DeviceService

Manages device registration for push notifications. Each user can have multiple devices with push tokens.

MethodDescription
RegisterRegister a device with a push token
DeactivateDeactivate a device
ListDevicesList the authenticated user’s devices
ListMemberDevicesList devices for a specific member (admin)

Register a device for push notifications. If the device ID already exists, the push token is updated.

Authorization: Authenticated user

FieldTypeDescription
device_idstringUnique device identifier. Max 200 characters.
push_tokenstringPush token. Max 500 characters.
platformPlatformDevice platform (IOS or ANDROID).
app_versionstringApplication version string. Max 50 characters.
FieldTypeDescription
deviceDeviceThe registered device.

TypeScript (Connect-Web)

const response = await deviceClient.register({
deviceId: "device-uuid",
pushToken: "push-token-string",
platform: Platform.IOS,
appVersion: "1.5.0",
});

Go (gRPC)

resp, err := deviceClient.Register(ctx, &pidgrv1.RegisterRequest{
DeviceId: "device-uuid",
PushToken: "push-token-string",
Platform: pidgrv1.Platform_IOS,
AppVersion: "1.5.0",
})

Deactivate a device. Deactivated devices no longer receive push notifications.

Authorization: Authenticated user (own devices only)

FieldTypeDescription
device_idstringDevice ID to deactivate.

Empty response on success.

List the authenticated user’s registered devices.

Authorization: Authenticated user

Empty request.

FieldTypeDescription
devicesDevice[]List of registered devices.

List devices for a specific member. Used by admins to troubleshoot push delivery issues.

Authorization: Requires MANAGE_MEMBERS permission

FieldTypeDescription
user_idstringUser ID to list devices for.
FieldTypeDescription
devicesDeviceSummary[]List of device summaries.
FieldTypeDescription
idstringUnique identifier.
device_idstringClient-provided device ID.
push_tokenstringPush token.
platformPlatformDevice platform.
app_versionstringApplication version.
is_activeboolWhether the device is active.
created_atTimestampRegistration timestamp.
updated_atTimestampLast update timestamp.