Calls: Recording Retention
Rules that automatically delete call recordings after a set retention period, scoped to an offer, schedule, buyer, or traffic source.
GET /call_recording_rules
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/call_recording_rules
List Call Recording Retention records.
Lists Call Recording Retention rules, which automatically delete call recordings once they exceed a configured age. Requires the setup_system permission; results default to newest first.
Params
| Param name | Description |
|---|---|
|
ids Optional |
Return records matching these ids.
|
|
page Optional |
Return the next page of results.
|
|
per_page Optional |
How many results to return per page. The default is 25.
|
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
fulltext Optional |
Search for any record that matches this text
|
|
time_zone Optional |
Date ranges will be parsed using this time zone.
|
|
columns Optional |
Specify the columns you would like returned by the API for a given resource.
Limiting the columns can significantly increase API response time since only the requested data will be processed.
columns=uuid,number,created_at
Must be any combination of:
|
|
root Optional |
Pass
|
GET /call_recording_rules/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/call_recording_rules/new
Build Call Recording Retention with defaults.
Builds a Call Recording Retention rule with default attributes without saving it.
Params
| Param name | Description |
|---|---|
|
description Optional Blank value allowed |
Description
|
|
recording_type Optional Blank value allowed |
This type of recording will be deleted once the retention period has passed.
|
|
retention_seconds Optional Blank value allowed |
If a recording is older than this many seconds, it will be deleted.
|
|
offer_id Optional Blank value allowed |
Only recordings matching this offer will be deleted after the retention period.
|
|
schedule_id Optional Blank value allowed |
Only recordings matching this Schedule will be deleted after the retention period.
|
|
buyer_id Optional Blank value allowed |
Only recordings matching this Buyer will be deleted after the retention period.
|
|
traffic_source_id Optional Blank value allowed |
Only recordings matching this Traffic Source will be deleted after the retention period.
|
POST /call_recording_rules
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/call_recording_rules
Create Call Recording Retention.
Creates a rule that deletes matching call recordings once they are older than retention_seconds. Can be scoped to a specific offer, schedule, buyer, or traffic source; unscoped rules apply company-wide.
Params
| Param name | Description |
|---|---|
|
description Optional Blank value allowed |
Description
|
|
recording_type Optional Blank value allowed |
This type of recording will be deleted once the retention period has passed.
|
|
retention_seconds Optional Blank value allowed |
If a recording is older than this many seconds, it will be deleted.
|
|
offer_id Optional Blank value allowed |
Only recordings matching this offer will be deleted after the retention period.
|
|
schedule_id Optional Blank value allowed |
Only recordings matching this Schedule will be deleted after the retention period.
|
|
buyer_id Optional Blank value allowed |
Only recordings matching this Buyer will be deleted after the retention period.
|
|
traffic_source_id Optional Blank value allowed |
Only recordings matching this Traffic Source will be deleted after the retention period.
|
GET /call_recording_rules/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/call_recording_rules/:id
Get Call Recording Retention by id.
Retrieves a Call Recording Retention rule by id.
PUT /call_recording_rules/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/call_recording_rules/:id
Update Call Recording Retention by id.
Updates a Call Recording Retention rule's retention period, recording_type, or the offer, schedule, buyer, or traffic source it applies to.
Params
| Param name | Description |
|---|---|
|
description Optional Blank value allowed |
Description
|
|
recording_type Optional Blank value allowed |
This type of recording will be deleted once the retention period has passed.
|
|
retention_seconds Optional Blank value allowed |
If a recording is older than this many seconds, it will be deleted.
|
|
offer_id Optional Blank value allowed |
Only recordings matching this offer will be deleted after the retention period.
|
|
schedule_id Optional Blank value allowed |
Only recordings matching this Schedule will be deleted after the retention period.
|
|
buyer_id Optional Blank value allowed |
Only recordings matching this Buyer will be deleted after the retention period.
|
|
traffic_source_id Optional Blank value allowed |
Only recordings matching this Traffic Source will be deleted after the retention period.
|
DELETE /call_recording_rules/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/call_recording_rules/:id
Destroy Call Recording Retention by id.
Deletes a Call Recording Retention rule by id.