{
  "openapi": "3.0.1",
  "info": {
    "title": "SMS Send Time Checker - Quiet Hours, Time Zones & Holidays",
    "description": "SMS send time checker: phone numbers in, time zone, local time, allowed now or not with the reason (quiet hours, weekend, public holiday) and the next legal slot out. 📱",
    "version": "1.0",
    "x-build-id": "xV0edHu4JO0RtMTVK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/helenisapi~sms-send-time-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-helenisapi-sms-send-time-checker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/helenisapi~sms-send-time-checker/runs": {
      "post": {
        "operationId": "runs-sync-helenisapi-sms-send-time-checker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/helenisapi~sms-send-time-checker/run-sync": {
      "post": {
        "operationId": "run-sync-helenisapi-sms-send-time-checker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "numbers": {
            "title": "Phone numbers to check",
            "type": "array",
            "description": "Phone numbers to check, one per item, in any format, e.g. [\"+1 212 555 0142\", \"+33 6 12 34 56 78\", \"0612345678\"]. National numbers without +country code need the country field. Required unless `datasetId` is set. Each number returns one row: time zone, local time, allowedNow, the reason and the next allowed slot (sendAtUtc, sendAtLocal). Nothing is sent to the numbers.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Default country",
            "type": "string",
            "description": "Default ISO two-letter country code for numbers written without +country code or 00, e.g. US, FR or GB. Leave empty when every number starts with + or 00."
          },
          "channel": {
            "title": "Channel",
            "enum": [
              "sms",
              "call"
            ],
            "type": "string",
            "description": "What you plan to send. sms (default): texts, WhatsApp or RCS. call: phone calls. Some countries regulate only one of them, so the allowed window can differ.",
            "default": "sms"
          },
          "policy": {
            "title": "Policy",
            "enum": [
              "auto",
              "daytime",
              "business",
              "us-tcpa",
              "ca-crtc",
              "fr-calls",
              "fr-sms",
              "es-calls",
              "au-calls"
            ],
            "type": "string",
            "description": "Sending window for each number. auto (default): the country's built-in legal or industry rule, else daytime. daytime: 09:00-20:00 local, every day. business: 09:00-18:00 local on working days. Or one preset for every number: us-tcpa (USA TCPA), ca-crtc (Canada calls), fr-calls (France telemarketing calls), fr-sms (France promotional SMS, af2m charter), es-calls (Spain commercial calls), au-calls (Australia telemarketing calls).",
            "default": "auto"
          },
          "hours": {
            "title": "Your own hours (optional)",
            "type": "string",
            "description": "Your own sending hours in each number's local time, up to 4 comma-separated ranges, e.g. 09:00-12:00,14:00-19:30. Replaces the policy's hours. Leave empty to keep the policy's hours."
          },
          "days": {
            "title": "Your own days (optional)",
            "type": "string",
            "description": "Your own sending days, e.g. mon-fri, mon,wed,sat, all, or workdays (each country's own working days). Leave empty to keep the policy's days."
          },
          "skipHolidays": {
            "title": "Avoid public holidays",
            "type": "boolean",
            "description": "true: never send on the national public holidays of each number's country. false: holidays are allowed. Leave unset to follow the policy (on for daytime, business and your own hours or days)."
          },
          "localRules": {
            "title": "Always respect the country's rule",
            "type": "boolean",
            "description": "true (default): your hours and days stay inside the country's built-in legal or industry window (US TCPA, France, Spain, Canada, Australia), so the result is never wider than the rule. false: your window is used as is.",
            "default": true
          },
          "at": {
            "title": "Check at (optional)",
            "type": "string",
            "description": "Moment to check instead of now, ISO 8601, e.g. 2026-12-01T15:00:00Z (UTC when no offset is given), to plan a campaign. Leave empty to check now; every number of a run is checked at the same moment."
          },
          "datasetId": {
            "title": "Dataset ID (optional)",
            "type": "string",
            "description": "ID of an existing Apify dataset whose rows hold phone numbers, e.g. the output of a lead, CRM or maps scraper; the field is set by datasetPhoneField. Required unless `numbers` is set."
          },
          "datasetPhoneField": {
            "title": "Phone field in the dataset",
            "type": "string",
            "description": "Name of the dataset field holding the number (a string or a list of strings), e.g. phoneNumber. Leave empty to try phone, phones, phoneNumber, phone_number, telephone, contactPhone and e164, in that order. Only used with datasetId."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}