Skip to main content
The 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
required
Array of objects containing phone numbers and proposed call times.
string
API key. Only required if not provided via the x-dncscrub-api-key HTTP header.

Response

boolean
Whether the API call succeeded.
array
Array of results, one per phone number.
string
Machine-readable error code (when failed).
string
Human-readable error description (when failed).

Examples

Usage Notes

  • The callProposedDateTimeInUTC parameter is optional - if omitted, it defaults to the current UTC time
  • secondsRemaining tells 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_times instead