# CDR Records

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/cdrs/download/csv>
{% endhint %}

Get a list of all of your numbers on your account

| Argument     | Required    | Type                       |
| ------------ | ----------- | -------------------------- |
| startdate    | yes         | 04/04/2024                 |
| enddate      | yes         | 04/06/2024                 |
| record\_type | calls / sms | Send sms to get sms record |
| key          | yes         | your token/key             |

{% tabs %}
{% tab title="Curl Post" %}

```javascript
curl https://v1.api19.com/cdrs/download/csv \
 -d 'startdate=04/04/2024' \
 -d 'enddate=04/06/2024' \
 -d 'record_type=calls' \
 -d 'key=api_token'
 
May also use record_type=sms for sms records
```

{% endtab %}

{% tab title="Curl Get" %}

```
curl https://v1.api19.com/cdrs/download/csv?key=apikey&startdate=04/04/2024&enddate=04/05/2024
```

{% endtab %}

{% tab title="Calls Response" %}

```
date,your_cost,your_permin,submaster_id,user_id,submaster_cost,user_cost,submaster_permin,user_permin,billsec,src,dst,did,call_type
```

{% endtab %}

{% tab title="SMS Response" %}

```
date,your_cost,surcharge,src,dst,message,direction,alpha,msg_type,uuid
```

{% endtab %}
{% endtabs %}
