Viewing notifications in inbox #181
Answered
by
schpet
simon-aira
asked this question in
Q&A
-
|
Thanks for this tool, very useful! I was wondering if anyone knows how to fetch (unread) inbox notifications? I'd be happy to use a raw API call, but can't quite figure out how (not too acquainted with GraphQL). |
Beta Was this translation helpful? Give feedback.
Answered by
schpet
Mar 18, 2026
Replies: 1 comment 1 reply
-
|
@simon-aira let me know if this works: Unread count (server-side)linear api '{ notificationsUnreadCount }'All notificationslinear api '
query {
notifications(first: 50) {
nodes {
id
type
title
subtitle
createdAt
readAt
url
actor { name }
... on IssueNotification {
issue { identifier title }
comment { body }
}
... on ProjectNotification {
project { name }
comment { body }
}
... on PullRequestNotification {
pullRequest { title number url }
}
... on DocumentNotification {
documentId
}
}
}
}
'Unread notifications (client-side filter)The linear api '
query {
notifications(first: 50) {
nodes {
id
type
title
subtitle
createdAt
readAt
url
actor { name }
... on IssueNotification {
issue { identifier title }
comment { body }
}
... on ProjectNotification {
project { name }
comment { body }
}
... on PullRequestNotification {
pullRequest { title number url }
}
... on DocumentNotification {
documentId
}
}
}
}
' | jq '[.data.notifications.nodes[] | select(.readAt == null)]'Bump |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
simon-aira
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@simon-aira let me know if this works:
Unread count (server-side)
linear api '{ notificationsUnreadCount }'All notifications
Unread notifications (client-side filter)
The