# 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
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.didforsale.com/voice-and-sms-apis/sms/sms-apis/sms-cdr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
