{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA New Authority & Insurance Leads — Trucking Sales Triggers",
    "description": "Daily trucking sales triggers from official FMCSA data: authority pending (needs insurance + BOC-3), insurance lapses, new MC authorities and new USDOT carriers — with contacts, coverage gaps, current & previous insurer and lead priority.",
    "version": "0.1",
    "x-build-id": "i6ZBMa2M0sTVBYhg7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/technicaldost~fmcsa-trucking-sales-triggers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-technicaldost-fmcsa-trucking-sales-triggers",
        "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/technicaldost~fmcsa-trucking-sales-triggers/runs": {
      "post": {
        "operationId": "runs-sync-technicaldost-fmcsa-trucking-sales-triggers",
        "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/technicaldost~fmcsa-trucking-sales-triggers/run-sync": {
      "post": {
        "operationId": "run-sync-technicaldost-fmcsa-trucking-sales-triggers",
        "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": {
          "triggerTypes": {
            "title": "Sales triggers",
            "type": "array",
            "description": "Which events to return. authority_pending = carrier applied for authority and must file insurance + BOC-3 (best for insurance agents). insurance_lapse = authority suspended because insurance was cancelled. boc3_lapse = suspended for missing process agent. authority_granted = newly active authority (factoring, dispatch, fuel cards, ELD). reinstated = authority reactivated. new_usdot = brand-new USDOT registrations (earliest signal).",
            "items": {
              "type": "string",
              "enum": [
                "authority_pending",
                "insurance_lapse",
                "boc3_lapse",
                "authority_granted",
                "reinstated",
                "new_usdot"
              ],
              "enumTitles": [
                "Authority pending (needs insurance/BOC-3)",
                "Insurance lapse (suspended)",
                "BOC-3 lapse (suspended)",
                "Authority granted (newly active)",
                "Authority reinstated",
                "New USDOT registrations"
              ]
            },
            "default": [
              "authority_pending",
              "insurance_lapse",
              "authority_granted"
            ]
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "2-letter US state codes of the carrier's physical address, e.g. TX, FL, GA. Leave empty for all states.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new since last run (recommended for schedules)",
            "type": "boolean",
            "description": "Remembers what this stream already delivered and returns only new triggers. Ideal for a daily schedule — you never pay twice for the same lead.",
            "default": true
          },
          "stateKey": {
            "title": "Stream name",
            "type": "string",
            "description": "Separate 'only new' memory per client, territory or pipeline (e.g. 'texas-agents'). Each stream de-duplicates independently.",
            "default": "default"
          },
          "lookbackDays": {
            "title": "Look-back window (days)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How many days back to search on the first run (or every run when 'Only new' is off). 1–60.",
            "default": 1
          },
          "authorityScope": {
            "title": "Authority holder type",
            "enum": [
              "motor-carriers",
              "brokers",
              "freight-forwarders",
              "all"
            ],
            "type": "string",
            "description": "Motor carriers (trucking companies, incl. household goods & passengers), freight brokers (need a $75k BMC-84/85 bond), freight forwarders, or all.",
            "default": "motor-carriers"
          },
          "fleetSize": {
            "title": "Fleet size (power units)",
            "enum": [
              "any",
              "1",
              "2-5",
              "6-20",
              "21+"
            ],
            "type": "string",
            "description": "Filter by number of power units (trucks/tractors) on the carrier's registration.",
            "default": "any"
          },
          "operation": {
            "title": "Operation type",
            "enum": [
              "any",
              "interstate",
              "intrastate",
              "intrastate-hazmat"
            ],
            "type": "string",
            "description": "Interstate carriers cross state lines and need federal operating authority; intrastate carriers operate within one state.",
            "default": "any"
          },
          "cargoTypes": {
            "title": "Cargo types",
            "type": "array",
            "description": "Keep carriers hauling any of these cargo types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "general_freight",
                "refrigerated_food",
                "household_goods",
                "motor_vehicles",
                "building_materials",
                "heavy_machinery",
                "produce",
                "intermodal",
                "dry_bulk",
                "liquids_gases",
                "chemicals",
                "construction",
                "beverages",
                "paper_products",
                "livestock",
                "grain_feed",
                "metal",
                "logs_poles",
                "oilfield_equipment",
                "passengers",
                "garbage",
                "farm_supplies",
                "driveaway_towaway",
                "coal_coke",
                "meat",
                "us_mail",
                "utilities",
                "mobile_homes",
                "water_well"
              ]
            }
          },
          "excludeHazmat": {
            "title": "Exclude hazmat carriers",
            "type": "boolean",
            "description": "Many insurers decline hazmat — tick to drop carriers flagged as hazmat.",
            "default": false
          },
          "requireEmail": {
            "title": "Only leads with email",
            "type": "boolean",
            "description": "Drop leads without an email address on file.",
            "default": false
          },
          "requirePhone": {
            "title": "Only leads with phone",
            "type": "boolean",
            "description": "Drop leads without a phone or cell number on file.",
            "default": false
          },
          "maxItems": {
            "title": "Max leads per run",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on leads returned (and charged) per run.",
            "default": 500
          },
          "usdotNumbers": {
            "title": "Lookup mode: USDOT numbers",
            "type": "array",
            "description": "Optional. Get a full carrier profile (contacts, authority, insurance on file, BOC-3, coverage gaps) for specific USDOT numbers. When set, triggers are ignored.",
            "items": {
              "type": "string"
            }
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Not required. A free data.transportation.gov app token raises rate limits for very large pulls."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}