Get data retention

This method allows you to get the values of your data retention. Each value corresponds to the data retention period. Except for contact lists, where the value corresponds to the period of inactivity before deletion. A list is inactive if it is not modfied or used to create a campaign.

GET

/retention

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": {
      "mts_retention": "6m",
      "lists_retention": "14m",
      "surveys_retention": "26m",
      "mos_retention": "14m",
      "campaigns_retention": "14m",
      "lookups_retention": "6m"
    }
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>1</status>
  <message>OK</message>
  <data_retention>
    <mts_retention>2m</mts_retention>
    <lists_retention>2d</lists_retention>
    <surveys_retention>5m</surveys_retention>
    <mos_retention>5m</mos_retention>
    <campaigns_retention>5m</campaigns_retention>
    <lookups_retention>5m</lookups_retention>
  </data_retention>