is_time_legal_to_call tool checks if it is currently legal to call a phone number based on the recipient’s local time and state regulations. Use this for real-time call decisions.
When to Use
- Before initiating an outbound call
- Real-time compliance checking in dialers
- Voice AI pre-call screening
Parameters
Array of objects containing phone numbers and proposed call times.
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
- Permitted
- Not Permitted
Usage Notes
- Use current UTC time for real-time decisions
secondsRemainingtells you how long you have before the calling window closes- Different states have different calling hour restrictions
- Some states have additional restrictions on Sundays and holidays
- For planning future calls, use
get_legal_call_timesinstead