Guides

Profile notifications

๐Ÿšง

This Request is Protected by Authentication

hint: this means it requires an x-access-token header put in the request with your authentication token.

Fetch notifications.

Request

NotificationRequest

Invocation

const result = await client.notifications.fetch();
query Notifications($request: NotificationRequest!) {
  result: notifications(request: $request) {
    items {
      ... on ReactionNotification {
        ...ReactionNotification
      }
      ... on CommentNotification {
        ...CommentNotification
      }
      ... on MirrorNotification {
        ...MirrorNotification
      }
      ... on QuoteNotification {
        ...QuoteNotification
      }
      ... on ActedNotification {
        ...ActedNotification
      }
      ... on FollowNotification {
        ...FollowNotification
      }
      ... on MentionNotification {
        ...MentionNotification
      }
    }
    pageInfo {
      ...PaginatedResultInfo
    }
  }
}

Response

Paginated result with Notification


Full GraphQL API Example

๐Ÿ“˜

Notifications: GraphQL API Full Example