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.smsup.ch
Authorization: Bearer your.token
Accept: application/json
        
      

Result Format


{
    "status": 1,
    "message": "OK",
    "data_retention": {
      "mts_retention": "6m",
      "lists_retention": "26m",
      "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>