{"openapi":"3.1.0","info":{"title":"SMS Send Time - Local Time, Quiet Hours, Holidays","description":"For each phone number: time zone, local time, whether a text or call is allowed now (legal hours, weekends, holidays) and the next slot.","version":"v1"},"servers":[{"url":"https://sms-send-time-local-time-quiet-hours-holidays.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/send-time/check":{"get":{"tags":["Send Time"],"summary":"Can I text or call this number now? If not, when?","description":"Check whether a phone number can be texted or called now under the\ncountry rule, a preset or your own hours, days and holidays: local time and\nzone, why not, and the next allowed moment (UTC and local). Every time zone\nof the number is checked. Offline, instant. 1 credit.","operationId":"checkSendTime","parameters":[{"name":"number","in":"query","required":true,"schema":{"type":"string","maxLength":64,"description":"Phone number in any format: +1 212 555 0142, 0044..., or a national number with the country parameter.","examples":["+1 212 555 0142"],"title":"Number"},"description":"Phone number in any format: +1 212 555 0142, 0044..., or a national number with the country parameter."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO country for a number written without +country code.","examples":["US"],"title":"Country"},"description":"ISO country for a number written without +country code."},{"name":"channel","in":"query","required":false,"schema":{"enum":["sms","call"],"type":"string","description":"sms (texts, WhatsApp, RCS) or call.","default":"sms","title":"Channel"},"description":"sms (texts, WhatsApp, RCS) or call."},{"name":"policy","in":"query","required":false,"schema":{"type":"string","maxLength":40,"description":"auto: the country's legal or industry window when one is built in, else daytime (09:00-20:00). Or a preset id from Get Send Time Policies.","examples":["auto"],"default":"auto","title":"Policy"},"description":"auto: the country's legal or industry window when one is built in, else daytime (09:00-20:00). Or a preset id from Get Send Time Policies."},{"name":"hours","in":"query","required":false,"schema":{"type":"string","maxLength":60,"description":"Your own window, local time: up to 4 ranges, e.g. 09:00-12:00,14:00-19:30.","examples":["09:00-12:00,14:00-19:30"],"title":"Hours"},"description":"Your own window, local time: up to 4 ranges, e.g. 09:00-12:00,14:00-19:30."},{"name":"days","in":"query","required":false,"schema":{"type":"string","maxLength":40,"description":"Your own days: mon-fri, mon,wed,sat, all or workdays (the country's working days).","examples":["mon-fri"],"title":"Days"},"description":"Your own days: mon-fri, mon,wed,sat, all or workdays (the country's working days)."},{"name":"skip_holidays","in":"query","required":false,"schema":{"type":"boolean","description":"Avoid the country's public holidays (default: the preset's rule; true for your own window).","title":"Skip Holidays"},"description":"Avoid the country's public holidays (default: the preset's rule; true for your own window)."},{"name":"local_rules","in":"query","required":false,"schema":{"type":"boolean","description":"Also respect the country's built-in legal or industry window on top of yours.","default":true,"title":"Local Rules"},"description":"Also respect the country's built-in legal or industry window on top of yours."},{"name":"at","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Check this moment instead of now (ISO 8601, UTC when no offset).","examples":["2026-11-26T15:00:00Z"],"title":"At"},"description":"Check this moment instead of now (ISO 8601, UTC when no offset)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTime"},"examples":{"Check Send Time":{"summary":"Check Send Time (real response)","value":{"input":"+1 212 555 0142","valid":true,"e164":"+12125550142","region":"US","country":"United States","line_type":"fixed_line_or_mobile","timezone":"America/New_York","timezones":["America/New_York"],"local_time":"2026-11-26T06:30:00-05:00","local_weekday":"Thursday","holiday":{"date":"2026-11-26","name":"Thanksgiving Day"},"allowed_now":false,"reason":"before_hours","reason_text":"06:30 on Thursday in New York: too early, the window opens at 08:00. Next window: today at 08:00 local time.","send_at_utc":"2026-11-26T13:00:00Z","send_at_local":"2026-11-26T08:00:00-05:00","window_ends_utc":"2026-11-27T02:00:00Z","window_ends_local":"2026-11-26T21:00:00-05:00","wait_minutes":90,"rules":[{"id":"us-tcpa","name":"USA: TCPA calling hours","kind":"law","hours":"Every day 08:00-21:00","skip_holidays":false,"source":"47 CFR 64.1200(c)(1) (Telephone Consumer Protection Act)"}],"notes":["Several US states are stricter than the TCPA (an 8 p.m. end, Sunday or holiday limits): pass hours=09:00-20:00 to stay inside all of them.","Thanksgiving Day today in United States: allowed by the rules applied, but many people are off."]}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Check Send Time"}},"/v1/send-time/check/bulk":{"post":{"tags":["Send Time"],"summary":"Send-time check for up to 100 numbers","description":"The same check for up to 100 numbers with one window, in order, with a\nsummary: how many can be reached now, how many must wait, how many are\ninvalid. Schedule each message at its `send_at_utc`. 1 credit per number.","operationId":"checkSendTimeInBulk","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTimeBulkRequest"},"examples":{"Check Send Time in Bulk":{"summary":"Check Send Time in Bulk","value":{"channel":"sms","policy":"auto","hours":"09:00-20:00","days":"mon-sat","local_rules":true,"at":"2026-11-26T15:00:00Z","numbers":["+1 212 555 0142","+33 6 12 34 56 78","+61 412 345 678"],"country":"US"}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTimeBulkResponse"},"examples":{"Check Send Time in Bulk":{"summary":"Check Send Time in Bulk","value":{"results":[{"input":"+1 212 555 0142","e164":"+12125550142","region":"US","country":"United States","line_type":"fixed_line_or_mobile","timezone":"America/New_York","local_time":"2026-11-26T10:00:00-05:00","local_weekday":"Thursday","holiday":{"name":"Thanksgiving Day"},"reason":"allowed","reason_text":"10:00 on Thursday in New York: inside the window (08:00-21:00) until 21:00.","send_at_utc":"2026-11-26T15:00:00Z","wait_minutes":0,"rules":[{"id":"us-tcpa","name":"USA: TCPA calling hours","kind":"law","hours":"Every day 08:00-21:00","source":"47 CFR 64.1200(c)(1)"}]}],"summary":{"allowed_now":1,"invalid":0,"wait":2},"notice":"Informational, not legal advice: rules change and have exceptions (consent, existing customers, B2B, state laws). Check them for your case."}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Check Send Time in Bulk"}},"/v1/send-time/policies":{"get":{"tags":["Policies"],"summary":"Built-in calling and texting windows, with their sources","description":"Every preset: id, countries where `auto` applies it, channels, hours by\nweekday, whether public holidays are avoided, and the law or code it comes\nfrom. Informational, not legal advice. 1 credit.","operationId":"getSendTimePolicies","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyList"},"examples":{"Get Send Time Policies":{"summary":"Get Send Time Policies","value":{"policies":[{"id":"fr-calls","name":"France: telemarketing calls","kind":"law","countries":["FR","GP","MQ","GF","RE","YT"],"channels":["call"],"hours":"Monday-Friday 10:00-13:00, 14:00-20:00"}],"notice":"Informational, not legal advice: rules change and have exceptions (consent, existing customers, B2B, state laws). Check them for your case."}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Send Time Policies"}}},"components":{"schemas":{"AppliedRule":{"properties":{"id":{"type":"string","title":"Id","examples":["us-tcpa"]},"name":{"type":"string","title":"Name","examples":["USA: TCPA calling hours"]},"kind":{"type":"string","enum":["law","industry_code","best_practice","custom"],"title":"Kind","examples":["law"]},"hours":{"type":"string","title":"Hours","description":"The window, local time.","examples":["Every day 08:00-21:00"]},"skip_holidays":{"type":"boolean","title":"Skip Holidays"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","examples":["47 CFR 64.1200(c)(1)"]}},"type":"object","required":["id","name","kind","hours","skip_holidays"],"title":"AppliedRule"},"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"LocalHoliday":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"name":{"type":"string","title":"Name","examples":["Thanksgiving Day"]}},"type":"object","required":["date","name"],"title":"LocalHoliday"},"Policy":{"properties":{"id":{"type":"string","title":"Id","examples":["fr-calls"]},"name":{"type":"string","title":"Name","examples":["France: telemarketing calls"]},"kind":{"type":"string","enum":["law","industry_code","best_practice","custom"],"title":"Kind"},"countries":{"items":{"type":"string"},"type":"array","title":"Countries","description":"Where `auto` applies it (empty: never automatic).","examples":[["FR","GP","MQ","GF","RE","YT"]]},"channels":{"items":{"type":"string","enum":["sms","call"]},"type":"array","title":"Channels","examples":[["call"]]},"hours":{"type":"string","title":"Hours","examples":["Monday-Friday 10:00-13:00, 14:00-20:00"]},"skip_holidays":{"type":"boolean","title":"Skip Holidays"},"summary":{"type":"string","title":"Summary"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["id","name","kind","countries","channels","hours","skip_holidays","summary"],"title":"Policy"},"PolicyList":{"properties":{"count":{"type":"integer","title":"Count"},"policies":{"items":{"$ref":"#/components/schemas/Policy"},"type":"array","title":"Policies"},"notice":{"type":"string","title":"Notice","default":"Informational, not legal advice: rules change and have exceptions (consent, existing customers, B2B, state laws). Check them for your case."}},"type":"object","required":["count","policies"],"title":"PolicyList"},"SendTime":{"properties":{"input":{"type":"string","title":"Input","examples":["+1 212 555 0142"]},"valid":{"type":"boolean","title":"Valid","description":"The number fits its country's numbering plan."},"e164":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"E164","examples":["+12125550142"]},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"ISO country.","examples":["US"]},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","examples":["United States"]},"line_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Type","examples":["fixed_line_or_mobile"]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","description":"The time zone the answer is given in. With several candidates, the one that decides (the last to open, the first to close).","examples":["America/New_York"]},"timezones":{"items":{"type":"string"},"type":"array","title":"Timezones","description":"Every time zone the number may be in (one for most numbers)."},"local_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Local Time","description":"Now (or `at`) in `timezone`.","examples":["2026-11-26T10:00:00-05:00"]},"local_weekday":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Weekday","examples":["Thursday"]},"holiday":{"anyOf":[{"$ref":"#/components/schemas/LocalHoliday"},{"type":"null"}],"description":"Public holiday of the number's country on that local day."},"allowed_now":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allowed Now","description":"Inside the window in every candidate time zone. Null when the number is invalid or has no time zone."},"reason":{"type":"string","enum":["allowed","before_hours","after_hours","between_hours","weekend","day_excluded","holiday","invalid_number","unknown_timezone"],"title":"Reason","examples":["allowed"]},"reason_text":{"type":"string","title":"Reason Text","examples":["10:00 on Thursday in New York: inside the window (08:00-21:00) until 21:00."]},"send_at_utc":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Send At Utc","description":"When to send: now if allowed, else the next opening.","examples":["2026-11-26T15:00:00Z"]},"send_at_local":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Send At Local"},"window_ends_utc":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Window Ends Utc","description":"When that window closes."},"window_ends_local":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Window Ends Local"},"wait_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wait Minutes","description":"Minutes from now (or `at`) to `send_at_utc`.","examples":[0]},"rules":{"items":{"$ref":"#/components/schemas/AppliedRule"},"type":"array","title":"Rules","description":"The windows applied, all respected."},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["input","valid","reason","reason_text"],"title":"SendTime"},"SendTimeBulkRequest":{"properties":{"channel":{"type":"string","enum":["sms","call"],"title":"Channel","description":"sms (texts, WhatsApp, RCS) or call: some countries only regulate one of them.","default":"sms"},"policy":{"type":"string","maxLength":40,"title":"Policy","description":"auto (default): the country's legal or industry window for the channel when one is built in, else daytime. Or one preset id from Get Send Time Policies (daytime, business, us-tcpa, fr-calls...).","default":"auto","examples":["auto"]},"hours":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Hours","description":"Your own window, local time: up to 4 ranges such as 09:00-12:00,14:00-19:30 (end 24:00 allowed). Replaces the preset's hours.","examples":["09:00-20:00"]},"days":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Days","description":"Your own days: mon-fri, mon,wed,sat, all, or workdays (the country's working days: Sunday-Thursday in Saudi Arabia).","examples":["mon-sat"]},"skip_holidays":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip Holidays","description":"Avoid the public holidays of each number's country. Defaults to the preset's rule (true for a custom window)."},"local_rules":{"type":"boolean","title":"Local Rules","description":"Also respect the country's built-in legal or industry window (US TCPA, France, Spain, Canada, Australia) on top of your own: the result is never wider than the rule.","default":true},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At","description":"Check this moment instead of now (ISO 8601; UTC when no offset). For scheduling a campaign.","examples":["2026-11-26T15:00:00Z"]},"numbers":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Numbers","description":"Up to 100 phone numbers, any format.","examples":[["+1 212 555 0142","+33 6 12 34 56 78","+61 412 345 678"]]},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country","description":"ISO country for numbers written without +country code.","examples":["US"]}},"type":"object","required":["numbers"],"title":"SendTimeBulkRequest"},"SendTimeBulkResponse":{"properties":{"checked_at":{"type":"string","format":"date-time","title":"Checked At","description":"The moment checked, UTC."},"results":{"items":{"$ref":"#/components/schemas/SendTime"},"type":"array","title":"Results"},"summary":{"additionalProperties":{"type":"integer"},"type":"object","title":"Summary","examples":[{"allowed_now":1,"invalid":0,"wait":2}]},"notice":{"type":"string","title":"Notice","default":"Informational, not legal advice: rules change and have exceptions (consent, existing customers, B2B, state laws). Check them for your case."}},"type":"object","required":["checked_at","results","summary"],"title":"SendTimeBulkResponse"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"Send Time","description":"Can this number be texted or called now? If not, when? One or up to 100."},{"name":"Policies","description":"Built-in legal and industry windows by country, with sources."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}