{
  "openapi": "3.0.1",
  "info": {
    "title": "ForestTrace EUDR Compliance Checker",
    "description": "Batch-check suppliers, products, and locations for EUDR compliance. This Actor runs automated EUDR checks via ForestTrace APIs and generates structured results and compliance summaries for audits, reporting, and automation workflows.",
    "version": "1.0",
    "x-build-id": "xgnUmOLHyAbXkSYrF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quantifiable_bouquet~foresttrace-eudr-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quantifiable_bouquet-foresttrace-eudr-actor",
        "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/quantifiable_bouquet~foresttrace-eudr-actor/runs": {
      "post": {
        "operationId": "runs-sync-quantifiable_bouquet-foresttrace-eudr-actor",
        "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/quantifiable_bouquet~foresttrace-eudr-actor/run-sync": {
      "post": {
        "operationId": "run-sync-quantifiable_bouquet-foresttrace-eudr-actor",
        "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": [
          "jobs"
        ],
        "properties": {
          "backend": {
            "title": "Backend (optional)",
            "type": "object",
            "description": "Leave empty to run jobs in-Actor (no external API). Or set baseUrl to call your own HTTPS API. Auth optional; prefer env vars for secrets.",
            "properties": {
              "baseUrl": {
                "title": "Base URL",
                "type": "string",
                "description": "Leave empty for in-Actor mode. Or your API base URL (https only)."
              },
              "authHeaderName": {
                "title": "Auth header name",
                "type": "string",
                "description": "Optional auth header name when calling external API.",
                "enum": [
                  "X-Api-Key",
                  "Authorization",
                  "X-Proxy-Secret"
                ],
                "default": "Authorization"
              },
              "authHeaderValue": {
                "title": "Auth header value",
                "type": "string",
                "description": "Optional; prefer storing in Actor env. Never logged.",
                "editor": "hidden"
              }
            }
          },
          "jobs": {
            "title": "Jobs",
            "maxItems": 10000,
            "type": "array",
            "description": "One job = one endpoint call. Each item: endpoint path, method, optional body and query (max 10,000 jobs).",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "title": "Job ID",
                  "description": "Optional id for mapping results."
                },
                "endpoint": {
                  "type": "string",
                  "title": "Endpoint",
                  "description": "API path, e.g. /v1/geo/validate or /v1/due-diligence/prepare."
                },
                "method": {
                  "type": "string",
                  "title": "Method",
                  "description": "HTTP method for the endpoint.",
                  "enum": [
                    "GET",
                    "POST"
                  ],
                  "default": "POST"
                },
                "body": {
                  "type": "object",
                  "title": "Body",
                  "description": "JSON body for POST requests (max 1MB)."
                },
                "query": {
                  "type": "object",
                  "title": "Query",
                  "description": "Optional query parameters."
                }
              },
              "required": [
                "endpoint",
                "method"
              ]
            }
          },
          "execution": {
            "title": "Execution",
            "type": "object",
            "description": "Concurrency and retries",
            "properties": {
              "concurrency": {
                "type": "integer",
                "title": "Concurrency",
                "description": "Max number of jobs running at once.",
                "minimum": 1,
                "maximum": 50,
                "default": 5
              },
              "maxRetries": {
                "type": "integer",
                "title": "Max retries",
                "description": "Retries per job on 429 or 5xx.",
                "minimum": 0,
                "maximum": 10,
                "default": 3
              }
            }
          },
          "output": {
            "title": "Output",
            "type": "object",
            "description": "Whether to write results to the dataset and summary to KV store.",
            "properties": {
              "writeDataset": {
                "type": "boolean",
                "title": "Write dataset",
                "description": "Push each result to the default dataset.",
                "default": true
              },
              "writeSummary": {
                "type": "boolean",
                "title": "Write summary to KV",
                "description": "Write summary.json and report.md to KV store.",
                "default": true
              }
            }
          },
          "webhook": {
            "title": "Webhook",
            "type": "object",
            "description": "Optional HTTPS URL to notify at end (summary payload)",
            "properties": {
              "url": {
                "type": "string",
                "title": "URL",
                "description": "HTTPS URL to notify when the run finishes."
              },
              "method": {
                "type": "string",
                "title": "Method",
                "description": "HTTP method for the webhook request.",
                "enum": [
                  "POST",
                  "GET"
                ],
                "default": "POST"
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}