Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

List notifications

Lists what happened to your account’s place in organisations, with open invitations to your email address. An invitation stays unread until you answer it.

GET/_luna/auth/notifications
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Responses
200

The account's notifications.

notificationsNotificationItem[]required

Newest first.

Show properties
Array of NotificationItem
idstringrequired
kindstringrequired

invite for an open invitation, joined when someone took up yours, role when your role changed, or removed.

invitestring | null

The invitation's id, for an invite. Accept or decline it by this id.

orgstringrequired

The organisation's name.

orgSlugstringrequired
rolestring | null
bystring | null

Who did it, as they are shown to others.

createdMsinteger<int64>required
min 0
expiresMsinteger<int64> | null

When an invite expires, in milliseconds since the Unix epoch.

min 0
readbooleanrequired
unreadintegerrequired

How many are unread.

min 0
default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Request
curl -X GET 'https://luna.example.com/_luna/auth/notifications' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "notifications": [
    {
      "id": "string",
      "kind": "string",
      "invite": "string",
      "org": "string",
      "orgSlug": "string",
      "role": "string",
      "by": "string",
      "createdMs": 0,
      "expiresMs": 0,
      "read": true
    }
  ],
  "unread": 0
}

Was this page helpful?