curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" "https://[your-subdomain].trackdrive.com/api/v1/schedules?page=1&order=created_at"
| Param name |
Description
Validations
|
||||||
|---|---|---|---|---|---|---|---|
|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
||||||
|
page Optional |
Return the next page of results. Validations:
|
||||||
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500 Validations:
|
||||||
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500 Validations:
|
||||||
|
order Optional |
Sort results by this field. Validations:
|
||||||
|
order_dir Optional |
Sort results in ascending or descending order. Validations:
|
||||||
|
fulltext Optional |
Search for any record that matches this text Validations:
|
||||||
|
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:
Validations:
|
| Param name |
Description
Validations
|
||||||
|---|---|---|---|---|---|---|---|
|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
| Param name |
Description
Validations
|
||||||
|---|---|---|---|---|---|---|---|
|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
||||||
|
name Optional Blank Value Allowed |
Name Validations:
|
||||||
|
offer_id Optional Blank Value Allowed |
Offer Validations:
|
||||||
|
description Optional Blank Value Allowed |
A human readable description of the record. Validations:
|
||||||
|
paused Optional Blank Value Allowed |
Paused Validations:
|
Places an outbound call immediately. This is the endpoint to use for a “promote” / “call now” action.
Identifying who to call (choose one):
• lead_id — dials that exact existing Lead. Its number is used as to and its schedule is used to dial. Nothing new is created, so a promote never produces a duplicate lead. This is the recommended option.
• lead_token (a Schedule’s “Leads API Key”) or schedule_id — identifies the Schedule to dial from. You must also pass to (the number to dial).
Schedule / lead distribution routing:
The resolved schedule takes the same code path as POST /api/v1/leads. If it is a lead-distribution (“router”) schedule, the matching distribution is resolved from the submitted data (eg traffic_source_id) and the call is routed to that distribution’s downstream target schedule. If no distribution matches, the request is rejected.
Which lead gets dialed (when using lead_token/schedule_id + to):
• If a live lead is already enrolled in the resolved schedule for that number, it is reused and dialed — no duplicate is created (the “promote” case).
• Otherwise a one-off, offer-owned lead is created and dialed. This places a single call without enrolling the contact into the schedule’s dialing cadence.
Guards enforced before dialing:
• The schedule must be active.
• Account CPS (calls per second) limit.
• DNC / contact suppression rules.
• The same number cannot be dialed more than once every 30 seconds.
• The destination number must be valid.
Returns a serialized Call record on success. Raises errors for an unknown lead_id, an unresolvable or inactive schedule, no matching lead distribution, invalid numbers, suppressed contacts, exceeded CPS, recently-dialed numbers, or duplicate concurrent leads.
| Param name |
Description
Validations
|
|---|---|
|
lead_id Optional |
The TrackDrive ID (UUID) of an existing Lead to dial. When provided, the call uses this exact lead — its number is dialed and its schedule is used — so Validations:
|
|
schedule_id Optional |
The ID of the Schedule to dial from. Must belong to the current company and be active. Use this (or Validations:
|
|
lead_token Optional |
The token for the Schedule where you want lead to originate. Get it from: trackdrive.com/schedules Validations:
|
|
to Optional |
Destination phone number to dial. Must be a valid number and not suppressed. Required unless a Validations:
|
|
data Optional |
Optional hash of additional lead attributes (eg Validations:
|
| Param name |
Description
Validations
|
||||||
|---|---|---|---|---|---|---|---|
|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
| Param name |
Description
Validations
|
||||||
|---|---|---|---|---|---|---|---|
|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
||||||
|
name Optional Blank Value Allowed |
Name Validations:
|
||||||
|
offer_id Optional Blank Value Allowed |
Offer Validations:
|
||||||
|
description Optional Blank Value Allowed |
A human readable description of the record. Validations:
|
||||||
|
paused Optional Blank Value Allowed |
Paused Validations:
|
||||||
|
sortable_order Optional Blank Value Allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first. Validations:
|
||||||
|
lead_duplicate_timeframe Optional Blank Value Allowed |
Translation missing: en.api.lead_duplicate_timeframe Validations:
|
| Param name |
Description
Validations
|
||||||
|---|---|---|---|---|---|---|---|
|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|