> For the complete documentation index, see [llms.txt](https://docs.didforsale.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.didforsale.com/voice-and-sms-apis/sms/sms-apis/sms-cdr.md).

# SMS CDR

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.

The response will have a status parameter and it will be true or false. According to that, API will not depend upon the status code because the code is only used for herders.

**Sample Response** \ <br>

```
{ 
   "status": true,
    "message": "Success",
    "sms_cdr": [
              {
                "sender": "141XXXX5001",
                "reciever": "9199XXXXX261",
                "uuid": "1462XXXX74016",
                "message": "Fresh new test",
                "cost": 2.46611,
                "status": "sent",
                "direction": "outbound",
                "date": "2018-08-10 08:19:50"
              }
    ],
    "last_record_number": 0,
    "code": 100
}
```
