Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wanted a way to fetch unread messages ONLY #487

Open
yashvoladoddi37 opened this issue Feb 1, 2025 · 1 comment
Open

wanted a way to fetch unread messages ONLY #487

yashvoladoddi37 opened this issue Feb 1, 2025 · 1 comment

Comments

@yashvoladoddi37
Copy link

yashvoladoddi37 commented Feb 1, 2025

@dreamflasher @tbressers @mekahell @kjoconnor @tomquirk
Image
is there an api call to fetch only unread conversations like in the image that i have attached?

also does .get_conversations() fetch only first 20 or all? is there a way to fetch is based on pagination?

im trying to build a linkedin ai agent which manages inbox automatically based on knowledge base ingestion

@akshatmishra25
Copy link

Hey,
I was going through the network tab and the following endpoint for inbox
https://www.linkedin.com/voyager/api/voyagerMessagingGraphQL/graphql
queryId: messengerConversations.8656fb361a8ad0c178e8d3ff1a84ce26
variables: (query:(predicateUnions:List((conversationCategoryPredicate:(category:PRIMARY_INBOX)))),count:20,mailboxUrn:{ProfileURN},lastUpdatedBefore:1736674879969)

Returns the data in following format:-
data:{
_recipeType
_type
messengerConversationsByCategoryQuery: {
_recipeType
_type
metadata
elements:[array of objects]
}
}

The objects in elements array has a parameter of "read" which is boolean. If the "read" parameter is false that means the message is unread. Can be integrated I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants