This API also needs JSON data in the body with a date range. Example of date range with the parameter has been given on example tab of body text box.
API will give all messages that have been sent from your account.
This api has special parameter that last_record_number that will be responsible for next page. It works as a pagination so whenever it will give more than 0 value that means you have more than 500 hundred records. So for getting other record please send the value of last_record_number parameter in body.