{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Contact Form Submitter: Auto-Fill & Send Website Forms",
    "description": "Fill in and submit the contact form on every website in your list with a personalized message. An alternative to email marketing and SMS/text marketing for B2B outreach and lead generation from URL lists or Google Maps leads. Solves CAPTCHAs. Try it free: https://contactformblaster.com",
    "version": "1.0",
    "x-build-id": "BmJ5MYabKe6OevdVb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/contactformblaster~bulk-contact-form-submitter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-contactformblaster-bulk-contact-form-submitter",
        "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/contactformblaster~bulk-contact-form-submitter/runs": {
      "post": {
        "operationId": "runs-sync-contactformblaster-bulk-contact-form-submitter",
        "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/contactformblaster~bulk-contact-form-submitter/run-sync": {
      "post": {
        "operationId": "run-sync-contactformblaster-bulk-contact-form-submitter",
        "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": {
          "apiKey": {
            "title": "Contact Form Blaster API key",
            "type": "string",
            "description": "Required to send anything. Your API key (starts with sk_live_): create one in the app under API Access: https://app.contactformblaster.com/api-access. Campaigns run on your account and use your credits. Without a key, the run only returns setup instructions."
          },
          "action": {
            "title": "Action",
            "enum": [
              "runCampaign",
              "sendToOneWebsite",
              "preview",
              "submitCampaign",
              "campaignStatus",
              "pauseCampaign",
              "resumeCampaign",
              "cancelCampaign",
              "deleteCampaign",
              "listCampaigns",
              "formFields",
              "checkCredits",
              "listCards",
              "setDefaultCard",
              "buyCredits",
              "checkSpamScore",
              "improveMessage",
              "apiKeyInfo",
              "rotateApiKey"
            ],
            "type": "string",
            "description": "What to do. \"Run a campaign\" (the default) creates, sends and tracks a campaign from your websites. The other actions manage campaigns and your account: everything the Contact Form Blaster API can do.",
            "default": "runCampaign"
          },
          "websites": {
            "title": "Websites",
            "type": "array",
            "description": "Website URLs to contact, one per line. Use this, or a dataset below, or both.",
            "items": {
              "type": "string"
            }
          },
          "reuseLast": {
            "title": "Re-use my last one-off send's settings",
            "type": "boolean",
            "description": "For \"Send to one website\": start from the sender details, message and AI settings of your last one-off send. Anything filled in below changes them for this send.",
            "default": false
          },
          "datasetId": {
            "title": "Dataset from another Actor",
            "type": "string",
            "description": "ID of a dataset to read websites from, e.g. the output of a Google Maps or directory scraper run. Each item's simple fields become columns you can use in your message as {contact_<field>}, e.g. {contact_title}."
          },
          "datasetUrlField": {
            "title": "Website field in the dataset",
            "type": "string",
            "description": "Which field of each dataset item holds the website URL.",
            "default": "website"
          },
          "campaignName": {
            "title": "Campaign name",
            "type": "string",
            "description": "Shown in your Contact Form Blaster dashboard.",
            "default": "Apify campaign"
          },
          "firstName": {
            "title": "First name",
            "type": "string",
            "description": "Your first name, entered in the first-name field of each contact form."
          },
          "lastName": {
            "title": "Last name",
            "type": "string",
            "description": "Your last name, entered in the last-name field of each contact form."
          },
          "email": {
            "title": "Email",
            "type": "string",
            "description": "Replies come here. A dedicated outreach address is recommended."
          },
          "phoneCountryCode": {
            "title": "Phone country code",
            "type": "string",
            "description": "Digits only, e.g. 1 for the US."
          },
          "phone": {
            "title": "Phone",
            "type": "string",
            "description": "Your phone number, for forms that ask for one."
          },
          "companyName": {
            "title": "Company name",
            "type": "string",
            "description": "Your company name, for forms that ask for one."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Your city, for forms that ask for a location."
          },
          "stateProvince": {
            "title": "State / province",
            "type": "string",
            "description": "Your state or province, for forms that ask for one."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Your country, for forms that ask for one."
          },
          "miscValue": {
            "title": "Fallback value",
            "type": "string",
            "description": "Used for any extra required form field that doesn't match the ones above (e.g. 'N/A' or your website)."
          },
          "team": {
            "title": "Team members (rotate)",
            "type": "array",
            "description": "Optional, for \"Run a campaign\" only (a one-off send goes out as one sender). Send each website as one of 2 to 25 real people from your team instead of one name, spread evenly across the list. Each person: {\"first_name\": \"...\", \"last_name\": \"...\"} (up to 35 characters each), optionally with their own \"email\" and \"phone_country_code\" (1-3 digits) + \"phone\" (7-15 digits); without them, the email and phone above are used. When set, it replaces First name / Last name. Leave empty to send as one person."
          },
          "fieldPreset": {
            "title": "Field preset",
            "type": "integer",
            "description": "Number of a field preset saved in the app (see the \"List form fields and field presets\" action). It fills in your details; anything you enter above overrides it."
          },
          "subject": {
            "title": "Subject",
            "type": "string",
            "description": "Max 100 characters. Can use tokens such as {company_name} or your dataset's columns ({contact_title}). Leave empty when AI personalization is on."
          },
          "message": {
            "title": "Message",
            "type": "string",
            "description": "Max 750 characters. Can use tokens such as {first_name} or your dataset's columns ({contact_title}). Leave empty when AI personalization is on."
          },
          "enableAi": {
            "title": "AI personalization",
            "type": "boolean",
            "description": "Let AI write a unique subject and message for every website, from your instructions (+1 credit per website).",
            "default": false
          },
          "aiInstructions": {
            "title": "AI instructions",
            "type": "string",
            "description": "What you offer, the tone, and anything to mention. Required when AI personalization is on."
          },
          "aiPreset": {
            "title": "AI preset",
            "type": "string",
            "description": "Number or ID of an AI preset (a built-in one or one you saved in the app's AI Templates). Used when AI personalization is on; your AI instructions, if any, override its instructions."
          },
          "extraFields": {
            "title": "Other form fields",
            "type": "object",
            "description": "Any other field tokens as {\"{token}\": \"value\"}, e.g. {\"{title}\": \"Founder\", \"{website}\": \"example.com\"}. See the API docs for the full list."
          },
          "submit": {
            "title": "Send the campaign",
            "type": "boolean",
            "description": "Turn off to only create and configure the campaign (no credits used); you can review it and send it from your dashboard.",
            "default": true
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. A URL Contact Form Blaster calls when the campaign finishes, e.g. to trigger your next step without waiting on this run."
          },
          "previewSamples": {
            "title": "Number of previews",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "For \"Preview messages\": how many sample websites to preview (1–10).",
            "default": 3
          },
          "waitForResults": {
            "title": "Wait for results",
            "type": "boolean",
            "description": "Keep the run going until every website is processed and save each result to the dataset. Off: the run ends once the campaign is submitted.",
            "default": true
          },
          "maxWaitMinutes": {
            "title": "Maximum wait (minutes)",
            "minimum": 1,
            "maximum": 1440,
            "type": "integer",
            "description": "Stop waiting after this long; the campaign keeps running on Contact Form Blaster. Run again with its campaign ID to collect the results.",
            "default": 240
          },
          "campaignId": {
            "title": "Campaign ID",
            "type": "string",
            "description": "For \"Run a campaign\": only collect results for a campaign that's already running or finished (nothing new is created or sent). Required for the actions that work on one campaign (submit, status, pause, resume, cancel, delete); optional for previews and form fields."
          },
          "improveType": {
            "title": "Improve: message, subject or both",
            "enum": [
              "message",
              "subject",
              "both"
            ],
            "type": "string",
            "description": "For \"Improve the message or subject\": what to rewrite (from the Message / Subject above, or the campaign's saved ones). \"Both\" rewrites the subject and message together and counts as two improvements toward the limits. Most contact forms have no subject field, so the message alone is usually enough.",
            "default": "message"
          },
          "saveImproved": {
            "title": "Save the improved text to the campaign",
            "type": "boolean",
            "description": "For \"Improve the message or subject\": replace the text in the campaign given in Campaign ID (only one that has not been sent). Off: the rewrite is only returned.",
            "default": false
          },
          "explanationLanguage": {
            "title": "Language of the spam-score explanations",
            "type": "string",
            "description": "Language code for issues and suggestions, e.g. en, es, de, fr (default English). Your message can be in any language."
          },
          "skipFlaggedRows": {
            "title": "Skip rows with prohibited language",
            "type": "boolean",
            "description": "Drop rows our content check flags instead of stopping the run.",
            "default": true
          },
          "preventRetargeting": {
            "title": "Skip websites contacted before",
            "type": "boolean",
            "description": "Leave out websites you've already contacted in earlier campaigns.",
            "default": false
          },
          "cardId": {
            "title": "Card ID",
            "type": "string",
            "description": "For \"Set the default card\": the card's ID from \"List saved cards\". Cards are added in the app's Billing page."
          },
          "planId": {
            "title": "Plan ID",
            "type": "string",
            "description": "For \"Buy credits\": the credit package's ID from \"Check credits and credit packages\"."
          },
          "confirmPurchase": {
            "title": "Confirm purchase",
            "type": "boolean",
            "description": "For \"Buy credits\": must be on. Charges your default card for the chosen package once per run.",
            "default": false
          },
          "confirmKeyRotation": {
            "title": "Confirm key rotation",
            "type": "boolean",
            "description": "For \"Rotate the API key\": must be on. Your current key stops working immediately, including in saved Apify tasks and schedules. The new key is saved to this run's OUTPUT record only.",
            "default": false
          },
          "newKeyName": {
            "title": "New key name",
            "type": "string",
            "description": "For \"Rotate the API key\": optional name for the new key."
          },
          "apiBaseUrl": {
            "title": "API base URL",
            "type": "string",
            "description": "Leave as is.",
            "default": "https://app.contactformblaster.com/api/v1"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}