{
  "openapi": "3.0.1",
  "info": {
    "title": "BlazeSync",
    "version": "0.0",
    "x-build-id": "PejRCNx3ZGVmbMp0z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/medicare_tools~BlazeSync/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-medicare_tools-BlazeSync",
        "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/medicare_tools~BlazeSync/runs": {
      "post": {
        "operationId": "runs-sync-medicare_tools-BlazeSync",
        "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/medicare_tools~BlazeSync/run-sync": {
      "post": {
        "operationId": "run-sync-medicare_tools-BlazeSync",
        "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",
        "required": [
          "npn",
          "sunfireInstance",
          "firstName",
          "lastName",
          "dateOfBirth",
          "email",
          "zipCode",
          "usesPharmacy"
        ],
        "properties": {
          "npn": {
            "title": "NPN",
            "minLength": 1,
            "type": "string",
            "description": "National Producer Number"
          },
          "sunfireInstance": {
            "title": "Sunfire instance",
            "enum": [
              "https://www.sunfirematrix.com/app/blazesync/yourmedicare/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/bbi/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/mts/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/gom/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/ifg/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/int/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/jsa/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/ncc/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/pfs/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/sma/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/spa/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/tbr/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/uig/[NPN]/2025/",
              "https://www.sunfirematrix.com/app/blazesync/medicareadvocates/[NPN]/2025/"
            ],
            "type": "string",
            "description": "Select your Sunfire instance"
          },
          "firstName": {
            "title": "First Name",
            "minLength": 1,
            "type": "string",
            "description": "Your first name"
          },
          "lastName": {
            "title": "Last Name",
            "minLength": 1,
            "type": "string",
            "description": "Your last name"
          },
          "dateOfBirth": {
            "title": "Date of Birth",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Your date of birth (YYYY-MM-DD)"
          },
          "email": {
            "title": "Email",
            "type": "string",
            "description": "Your email address"
          },
          "phoneNumber": {
            "title": "Phone Number",
            "minLength": 14,
            "maxLength": 14,
            "type": "string",
            "description": "US phone number in format (XXX) XXX-XXXX"
          },
          "address1": {
            "title": "Street Address",
            "type": "string",
            "description": "Your street address"
          },
          "Address2": {
            "title": "Street Address Line 2",
            "type": "string",
            "description": "Additional address information"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Your city"
          },
          "state": {
            "title": "State/Province",
            "type": "string",
            "description": "Your state or province"
          },
          "zipCode": {
            "title": "Postal/Zip Code",
            "type": "string",
            "description": "Your postal or zip code"
          },
          "County": {
            "title": "County",
            "type": "string",
            "description": "Your county"
          },
          "doctor1FirstName": {
            "title": "Doctor 1 First Name",
            "type": "string",
            "description": "First name of doctor 1"
          },
          "doctor1LastName": {
            "title": "Doctor 1 Last Name",
            "type": "string",
            "description": "Last name of doctor 1"
          },
          "doctor2FirstName": {
            "title": "Doctor 2 First Name",
            "type": "string",
            "description": "First name of doctor 2"
          },
          "doctor2LastName": {
            "title": "Doctor 2 Last Name",
            "type": "string",
            "description": "Last name of doctor 2"
          },
          "doctor3FirstName": {
            "title": "Doctor 3 First Name",
            "type": "string",
            "description": "First name of doctor 3"
          },
          "doctor3LastName": {
            "title": "Doctor 3 Last Name",
            "type": "string",
            "description": "Last name of doctor 3"
          },
          "doctor4FirstName": {
            "title": "Doctor 4 First Name",
            "type": "string",
            "description": "First name of doctor 4"
          },
          "doctor4LastName": {
            "title": "Doctor 4 Last Name",
            "type": "string",
            "description": "Last name of doctor 4"
          },
          "doctor5FirstName": {
            "title": "Doctor 5 First Name",
            "type": "string",
            "description": "First name of doctor 5"
          },
          "doctor5LastName": {
            "title": "Doctor 5 Last Name",
            "type": "string",
            "description": "Last name of doctor 5"
          },
          "drug1Name": {
            "title": "Drug 1 Name",
            "type": "string",
            "description": "Name of medication 1"
          },
          "drug1Dosage": {
            "title": "Drug 1 Dosage",
            "type": "string",
            "description": "Dosage of medication 1"
          },
          "drug1RefillFrequency": {
            "title": "Drug 1 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 1"
          },
          "drug1Quantity": {
            "title": "Drug 1 Quantity",
            "type": "string",
            "description": "Quantity of medication 1"
          },
          "drug2Name": {
            "title": "Drug 2 Name",
            "type": "string",
            "description": "Name of medication 2"
          },
          "drug2Dosage": {
            "title": "Drug 2 Dosage",
            "type": "string",
            "description": "Dosage of medication 2"
          },
          "drug2RefillFrequency": {
            "title": "Drug 2 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 2"
          },
          "drug2Quantity": {
            "title": "Drug 2 Quantity",
            "type": "string",
            "description": "Quantity of medication 2"
          },
          "drug3Name": {
            "title": "Drug 3 Name",
            "type": "string",
            "description": "Name of medication 3"
          },
          "drug3Dosage": {
            "title": "Drug 3 Dosage",
            "type": "string",
            "description": "Dosage of medication 3"
          },
          "drug3RefillFrequency": {
            "title": "Drug 3 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 3"
          },
          "drug3Quantity": {
            "title": "Drug 3 Quantity",
            "type": "string",
            "description": "Quantity of medication 3"
          },
          "drug4Name": {
            "title": "Drug 4 Name",
            "type": "string",
            "description": "Name of medication 4"
          },
          "drug4Dosage": {
            "title": "Drug 4 Dosage",
            "type": "string",
            "description": "Dosage of medication 4"
          },
          "drug4RefillFrequency": {
            "title": "Drug 4 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 4"
          },
          "drug4Quantity": {
            "title": "Drug 4 Quantity",
            "type": "string",
            "description": "Quantity of medication 4"
          },
          "drug5Name": {
            "title": "Drug 5 Name",
            "type": "string",
            "description": "Name of medication 5"
          },
          "drug5Dosage": {
            "title": "Drug 5 Dosage",
            "type": "string",
            "description": "Dosage of medication 5"
          },
          "drug5RefillFrequency": {
            "title": "Drug 5 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 5"
          },
          "drug5Quantity": {
            "title": "Drug 5 Quantity",
            "type": "string",
            "description": "Quantity of medication 5"
          },
          "drug6Name": {
            "title": "Drug 6 Name",
            "type": "string",
            "description": "Name of medication 6"
          },
          "drug6Dosage": {
            "title": "Drug 6 Dosage",
            "type": "string",
            "description": "Dosage of medication 6"
          },
          "drug6RefillFrequency": {
            "title": "Drug 6 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 6"
          },
          "drug6Quantity": {
            "title": "Drug 6 Quantity",
            "type": "string",
            "description": "Quantity of medication 6"
          },
          "drug7Name": {
            "title": "Drug 7 Name",
            "type": "string",
            "description": "Name of medication 7"
          },
          "drug7Dosage": {
            "title": "Drug 7 Dosage",
            "type": "string",
            "description": "Dosage of medication 7"
          },
          "drug7RefillFrequency": {
            "title": "Drug 7 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 7"
          },
          "drug7Quantity": {
            "title": "Drug 7 Quantity",
            "type": "string",
            "description": "Quantity of medication 7"
          },
          "drug8Name": {
            "title": "Drug 8 Name",
            "type": "string",
            "description": "Name of medication 8"
          },
          "drug8Dosage": {
            "title": "Drug 8 Dosage",
            "type": "string",
            "description": "Dosage of medication 8"
          },
          "drug8RefillFrequency": {
            "title": "Drug 8 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 8"
          },
          "drug8Quantity": {
            "title": "Drug 8 Quantity",
            "type": "string",
            "description": "Quantity of medication 8"
          },
          "drug9Name": {
            "title": "Drug 9 Name",
            "type": "string",
            "description": "Name of medication 9"
          },
          "drug9Dosage": {
            "title": "Drug 9 Dosage",
            "type": "string",
            "description": "Dosage of medication 9"
          },
          "drug9RefillFrequency": {
            "title": "Drug 9 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 9"
          },
          "drug9Quantity": {
            "title": "Drug 9 Quantity",
            "type": "string",
            "description": "Quantity of medication 9"
          },
          "drug10Name": {
            "title": "Drug 10 Name",
            "type": "string",
            "description": "Name of medication 10"
          },
          "drug10Dosage": {
            "title": "Drug 10 Dosage",
            "type": "string",
            "description": "Dosage of medication 10"
          },
          "drug10RefillFrequency": {
            "title": "Drug 10 Refill Frequency",
            "type": "string",
            "description": "Refill frequency of medication 10"
          },
          "drug10Quantity": {
            "title": "Drug 10 Quantity",
            "type": "string",
            "description": "Quantity of medication 10"
          },
          "usesPharmacy": {
            "title": "Uses Pharmacy",
            "enum": [
              "Yes",
              "No",
              "Mail order"
            ],
            "type": "string",
            "description": "Do you use a pharmacy to fill prescriptions?",
            "default": "Yes"
          },
          "pharmacyName": {
            "title": "Pharmacy Name",
            "type": "string",
            "description": "Name of the pharmacy"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}