Mobile API v1

Push notifications

Register devices and manage push notification preferences.

On this page

Call each function by its full path. A question mark marks an optional field.

mobile/v1/push:preferences

query · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  directMessages: boolean
  replies: boolean
  gradingReleased: boolean
  assignments: boolean
  adminBroadcasts: boolean
}

mobile/v1/push:registerDevice

mutation · Arguments
{
  expectedTenantId?: string
  token: string
  platform: "ios" | "android"
  appVersion?: string
  deviceId?: string
}
Response type
Result
{
  deviceId: string
  registered: true
}

mobile/v1/push:setPreferences

mutation · Arguments
{
  expectedTenantId?: string
  directMessages?: boolean
  replies?: boolean
  gradingReleased?: boolean
  assignments?: boolean
  adminBroadcasts?: boolean
}
Response type
Result
{
  directMessages: boolean
  replies: boolean
  gradingReleased: boolean
  assignments: boolean
  adminBroadcasts: boolean
}

mobile/v1/push:unregisterDevice

mutation · Arguments
{
  expectedTenantId?: string
  token: string
}
Response type
Result
{
  unregistered: true
}

All API modules · OpenRPC 1.3.2 JSON