{
  "openapi": "3.0.1",
  "info": {
    "title": "Auto-Reply Alternate Contact Extractor",
    "description": "Turn out-of-office and left-the-company auto-replies into leads. Extracts each alternate contact (name, email, role, phone), the reason (OOO or LEFT), the return date and a relevance tag. Rules only, no AI fees, EN/ES/FR/DE.",
    "version": "0.1",
    "x-build-id": "TyCR9advqmF1cQT9A"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kingly_contest_7cb~autoreply-contact-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kingly_contest_7cb-autoreply-contact-extractor",
        "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/kingly_contest_7cb~autoreply-contact-extractor/runs": {
      "post": {
        "operationId": "runs-sync-kingly_contest_7cb-autoreply-contact-extractor",
        "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/kingly_contest_7cb~autoreply-contact-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-kingly_contest_7cb-autoreply-contact-extractor",
        "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": {
          "autoReplies": {
            "title": "Auto-reply texts",
            "type": "array",
            "description": "Each item is either a string (the raw auto-reply text, HTML is fine) or an object: {\"text\": \"...\", \"id\": \"optional\", \"fromEmail\": \"optional, the auto-reply sender\", \"subject\": \"optional\", \"receivedAt\": \"optional ISO date used to guess the year of the return date\"}. Give fromEmail when you have it so the sender's own address is never returned as a contact.",
            "default": [
              {
                "id": "ooo-maria",
                "fromEmail": "jordan.lee@brightbloom.example",
                "subject": "Automatic reply: Spring collab idea",
                "text": "Hi there,\n\nThanks for your email. I'm out of the office on annual leave and will return on Monday, November 23, 2026, with limited access to email.\n\nFor anything marketing related, please contact my colleague Maria Lopez, Head of Growth, at maria.lopez@brightbloom.example or +1 (555) 010-2233.\nFor invoices and payments, email billing@brightbloom.example.\n\nBest,\nJordan Lee\nBrand Manager | Brightbloom Skincare\njordan.lee@brightbloom.example | +1 555 010 9999"
              },
              {
                "id": "left-priya",
                "fromEmail": "priya.shah@northpeak.example",
                "subject": "Re: Wholesale pricing",
                "text": "Priya Shah is no longer with Northpeak Outdoor. Her last day was October 30.\n\nPlease direct partnership and wholesale questions to Daniel Okafor (Director of Business Development) at daniel.okafor@northpeak.example. For order status and shipping, contact our logistics team at logistics@northpeak.example.\n\nThis mailbox is no longer monitored."
              },
              {
                "id": "ooo-social",
                "fromEmail": "sam@loomandlark.example",
                "subject": "Out of Office",
                "text": "I'm currently travelling for a trade show and back in the office on 12/02.\n\nIn my absence, our Social Media Manager, Chloe Martin (chloe@loomandlark.example), is covering creator and influencer requests. Anything urgent can go to our founder Ben Hart on 07700 900123.\n\nCheers,\nSam"
              },
              {
                "id": "other-helpdesk",
                "fromEmail": "support@cartwheelgoods.example",
                "subject": "We received your message [Ticket #48213]",
                "text": "Thanks for contacting Cartwheel Goods! This is an automated confirmation that we received your message. Our team replies within 1 to 2 business days.\n\nPlease do not reply to this email. Sent from noreply@cartwheelgoods.example"
              },
              {
                "id": "ooo-plain-noalt",
                "fromEmail": "alex.wu@harborlane.example",
                "subject": "Automatic reply",
                "text": "Hello,\n\nI am on parental leave until 15 January 2027 and will not be checking email. I will respond to your message when I return.\n\nThank you,\nAlex Wu"
              },
              {
                "id": "es-ooo",
                "fromEmail": "lucia.fernandez@solymar.example",
                "subject": "Respuesta automática: Propuesta",
                "text": "Hola,\n\nEstoy fuera de la oficina de vacaciones hasta el 2 de diciembre de 2026, con acceso limitado al correo.\n\nPara temas urgentes, contacte con mi compañera Carmen Ruiz, responsable de marketing, en carmen.ruiz@solymar.example o al +34 912 345 678.\n\nSaludos,\nLucía Fernández"
              },
              {
                "id": "fr-left",
                "fromEmail": "julien.moreau@atelierlumen.example",
                "subject": "Réponse automatique",
                "text": "Bonjour,\n\nJulien Moreau ne fait plus partie de l'équipe Atelier Lumen.\n\nPour toute demande commerciale, veuillez contacter Élodie Bernard, directrice commerciale : elodie.bernard@atelierlumen.example.\nPour la comptabilité : compta@atelierlumen.example.\n\nCordialement"
              },
              {
                "id": "de-ooo",
                "fromEmail": "markus.becker@waldwerk.example",
                "subject": "Abwesenheitsnotiz",
                "text": "Guten Tag,\n\nich bin bis einschließlich 27.11.2026 nicht im Büro und habe keinen Zugriff auf meine E-Mails.\n\nIn dringenden Fällen wenden Sie sich bitte an meine Kollegin Anna Schmidt (Leiterin Logistik) unter anna.schmidt@waldwerk.example oder +49 30 1234567.\n\nMit freundlichen Grüßen\nMarkus Becker"
              },
              {
                "id": "html-left",
                "fromEmail": "kate.oneill@ferncrest.example",
                "subject": "Kate has left Ferncrest",
                "text": "<p>Hi,</p><p>Kate O'Neill has left Ferncrest Home as of November 6. Kate's accounts have been taken over by <a href=\"mailto:tom.becker@ferncrest.example\">Tom Becker</a>, our Ecommerce Director.</p><p>For press and PR, email <a href=\"mailto:press@ferncrest.example\">press@ferncrest.example</a>.</p>"
              },
              {
                "id": "ooo-card",
                "fromEmail": "nina@coastcandle.example",
                "subject": "OOO until Dec 1",
                "text": "Thanks for reaching out! I'm out of office until Tuesday, Dec 1 for a family event.\n\nIf you need something before then, please contact:\nRosa Diaz\nOperations Manager\nrosa.diaz@coastcandle.example\n(555) 010-4477\n\nTalk soon,\nNina Park\nFounder, Coast Candle Co.\nnina@coastcandle.example"
              }
            ]
          },
          "sourceDatasetId": {
            "title": "Source dataset ID (optional)",
            "type": "string",
            "description": "Read auto-replies from an existing Apify dataset too, for example the output of your inbox export. Each item needs the text in the field named below; id, fromEmail (or from), subject and receivedAt (or date) are picked up when present."
          },
          "textField": {
            "title": "Text field in the source dataset",
            "type": "string",
            "description": "Field that holds the reply text in the source dataset. If it is missing the Actor tries body, content, message, snippet, plainText and html.",
            "default": "text"
          },
          "referenceDate": {
            "title": "Reference date",
            "type": "string",
            "description": "Used to pick the year when a reply says 'back on Dec 3' without one. Defaults to today. Per-item receivedAt wins over this."
          },
          "includeNoContactRows": {
            "title": "Output a row for replies with no contact",
            "type": "boolean",
            "description": "On by default, so every input shows up once in the dataset (contactFound: false) with its reason and return date.",
            "default": true
          },
          "minConfidence": {
            "title": "Minimum confidence",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Drop contacts below this confidence. 0 keeps everything. Typical scores: 0.9+ named person with email, 0.7 to 0.8 team mailbox, 0.4 to 0.6 name or phone only.",
            "default": 0
          },
          "includeEvidence": {
            "title": "Include evidence snippet",
            "type": "boolean",
            "description": "Adds the sentence the contact came from, so you can spot-check results fast.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}