cancel
Showing results for 
Search instead for 
Did you mean: 

Issue retrieving incoming messages

pedro_ribeiro
New Contributor

Hello. I'm having an issue retrieving incoming messages using the SMS api.

 

When using the Python example in here, with the service plan id, api token, and url displayed in my dashboard, I receive only an empty list.

 

Just in case, I checked that there were messages received in the dates I was querying, and several do show up in the dashboard as incoming messages.

 

I should note the reason I am trying to manually retrieve these messages is due to an error on our end with our callback server, which failed to receive the incoming message callbacks from the past two weeks. Not sure if that might be relevant to the problem.

 

Is there something that might be messing up this functionality?

2 REPLIES 2

Shahzad_Ismail
Community Manager
Community Manager

Hi Pedro,

I will reach out to our SMS support team and they will be able to assist you.

Shahzad Ismail
Head of Knowledge Management and Community Engagement, Sinch

Shahzad_Ismail
Community Manager
Community Manager

Firstly we request that you check the start and stop days you are querying because we only store messages for the last 14 days and so the dates in your request must fall into his period. By default we use the last 24 hours if a time period is not specified in the request.

 

Another thing to note is that the MO url (the callback) needs to be able to receive MO messages from us. Refer to: https://developers.sinch.com/docs/sms/guide/

 

This states:  “Inbound messages can be listed and retrieved like batch messages and they can also be delivered by callback requests like delivery reports.

 

If you are still encountering issues then please contact the Sinch Support team.

 

Shahzad Ismail
Head of Knowledge Management and Community Engagement, Sinch