Get only received messages



Hi, I’m working on a project where i need check if someone had DM me yet, so I found the GET direct_messages/events/list here but it returns me all my messages, including these that i had sent, so it exceed my rate. My question : is there a way to select only received messages?



There’s no way to do that as an API method - you’ll need to do that filtering in your own app.


Thank you for your answer but I can’t get more than 900 message every 15min, and I already filter them. I would like to get them all, I don’t care if I get them by 50, so I can do a loop to get them all.