CDR Records
Get all of the CDRs on your account
GET or POST Request
Get a list of all of your numbers on your account
You can either send the startdate and enddate or send progressive=yes to give you all of the new records since the last one you downloaded.
Argument
Required
Type
startdate
yes unless progressive
04/04/2024
enddate
yes unless progressive
04/06/2024
record_type
calls / sms
Send sms to get sms record
add_data
no
add_data=yes will add additional data
progressive
no
progressive=yes makes it so you don't need startdate / enddate
limit
no
set a limit of how many records to reply with for progressive
key
yes
your token/key
curl https://v1.api19.com/cdrs/download/csv \
-d 'startdate=04/04/2024' \
-d 'enddate=04/06/2024' \
-d 'record_type=calls' \
-d 'add_data=yes' \
-d 'key=api_token'
May also use record_type=sms for sms recordscurl https://v1.api19.com/cdrs/download/csv?key=apikey&startdate=04/04/2024&enddate=04/05/2024date,your_cost,your_permin,submaster_id,user_id,submaster_cost,user_cost,submaster_permin,user_permin,billsec,src,dst,did,call_type
with add_data=yes:
date,your_cost,your_permin,submaster_id,user_id,submaster_cost,user_cost,submaster_permin,user_permin,billsec,src,dst,did,call_type,sip_code,sip_reason,call_siddate,your_cost,surcharge,src,dst,message,direction,alpha,msg_type,uuidLast updated