{
  "openapi": "3.0.1",
  "info": {
    "title": "Claims Evidence Packager — Photos, Invoices & Reports",
    "description": "Bundles claim evidence — photos, invoices, incident reports, policy excerpts — into structured, assessor-ready packages via API. Built for insurance claims teams and loss adjusters: cut hours of manual collation per claim to a single call.",
    "version": "0.1",
    "x-build-id": "YjY5PruO1EbNaogkM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/armourylabs~claims-evidence-packager/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-armourylabs-claims-evidence-packager",
        "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/armourylabs~claims-evidence-packager/runs": {
      "post": {
        "operationId": "runs-sync-armourylabs-claims-evidence-packager",
        "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/armourylabs~claims-evidence-packager/run-sync": {
      "post": {
        "operationId": "run-sync-armourylabs-claims-evidence-packager",
        "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": [
          "claim_id",
          "documents"
        ],
        "properties": {
          "claim_id": {
            "title": "Claim ID",
            "type": "string",
            "description": "Unique identifier for this claim (e.g. CL-2024-001). Required."
          },
          "claimant_name": {
            "title": "Claimant Name",
            "type": "string",
            "description": "Full name of the claimant."
          },
          "policy_number": {
            "title": "Policy Number",
            "type": "string",
            "description": "Insurance policy number (e.g. POL-99001). Used to cross-validate references found in document texts."
          },
          "incident_date": {
            "title": "Incident Date",
            "type": "string",
            "description": "Date the incident occurred. Accepts ISO format (2024-03-10), Australian format (10/03/2024), or long form (10 March 2024)."
          },
          "incident_description": {
            "title": "Incident Description",
            "type": "string",
            "description": "Brief narrative describing the incident (e.g. 'Vehicle damaged in hail storm')."
          },
          "documents": {
            "title": "Documents",
            "type": "array",
            "description": "List of document objects to include in the evidence bundle. Each document must have an id, type, and content_text.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "title": "Document ID",
                  "description": "Unique identifier for this document within the claim (e.g. 'doc1', 'invoice_march').",
                  "type": "string"
                },
                "type": {
                  "title": "Document Type",
                  "description": "Type of document. Accepted values: photo, image, invoice, receipt, tax_invoice, incident_report, report, police_report, policy, policy_excerpt, policy_schedule, correspondence, email, letter. Unknown values default to 'other'.",
                  "type": "string"
                },
                "content_text": {
                  "title": "Content Text",
                  "description": "Full text content of the document (OCR output, email body, PDF extract, etc.). Used for date detection, amount extraction, and policy number cross-referencing.",
                  "type": "string"
                },
                "source": {
                  "title": "Source",
                  "description": "Where the document was obtained (e.g. 'email', 'portal', 'fax', 'upload').",
                  "type": "string"
                },
                "filename": {
                  "title": "Filename",
                  "description": "Original filename of the document (e.g. 'invoice_march.pdf').",
                  "type": "string"
                },
                "date": {
                  "title": "Document Date (hint)",
                  "description": "Optional date hint for the document. If not supplied, a date is extracted from content_text automatically.",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "type",
                "content_text"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}