Mobile API v1

Notifications

Read the inbox, mark notifications as read and resolve their destinations.

On this page

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

mobile/v1/notifications:destination

query · Arguments
{
  expectedTenantId?: string
  notificationId: string
}
Response type
Result
null | {
  kind: "grade" | "lesson"
  courseId: string
  enrollmentId: string
  activityId?: string
} | {
  kind: "conversation"
  threadId: string
} | {
  kind: "practice"
  occurrenceId: string
}

mobile/v1/notifications:list

query · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  notifications: Array<{
    notificationId: string
    title: string
    body: string
    status: "unread" | "read"
    deliveredAt: string
  }>
}

mobile/v1/notifications:markRead

mutation · Arguments
{
  expectedTenantId?: string
  notificationId: string
}
Response type
Result
{
  status: "read"
}

All API modules · OpenRPC 1.3.2 JSON