get_legal_call_times tool returns the legal calling windows (start and end times in UTC) for phone numbers on a given date. Use this to schedule calls in advance or display available calling times to agents.
When to Use
- Planning call schedules for future dates
- Displaying legal calling windows to agents
- Building call queues with time-aware scheduling
Parameters
Array of objects containing phone numbers and dates.
API key. Only required if not provided via the
x-dncscrub-api-key HTTP header.Response
Whether the API call succeeded.
Array of results, one per phone number.
Machine-readable error code (when failed).
Human-readable error description (when failed).
Examples
- Request
- Response
- No Window (Holiday)
Usage Notes
- Times are returned in UTC - convert to local time for display
- Some dates may have no legal windows (holidays, emergencies)
- Use
numberOfDaysto get windows for multiple consecutive days - For real-time “can I call now?” checks, use
is_time_legal_to_callinstead