Get data retention

This method allows you to get the values of your data retention.

GET

/retention

After a number the "d" matches with day and the "m" matches with month

Examples


GET /retention HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
        
      

Result Format


{
    "status": 1,
    "message": "OK",
    "data_retention": {
        "message": "2m",
        "list": "2d",
        "survey": "5m",
        "campaign": "5m"
    }
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>1</status>
  <message>OK</message>
  <data_retention>
    <message>2m</message>
    <list>2d</list>
    <survey>5m</survey>
    <campaign>5m</campaign>
  </data_retention>