{
  "openapi": "3.0.1",
  "info": {
    "title": "Freelance Proposal Writer (short, human, priced)",
    "description": "Turns freelance job posts from any platform into short, human-sounding proposals with a GO/MAYBE/SKIP verdict, a price inside your rate card and a delivery time. Works without an API key; optional LLM polishing with your own key.",
    "version": "0.1",
    "x-build-id": "PWaKUwLlsAC4gcaI9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/danielmichalek~freelance-proposal-writer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-danielmichalek-freelance-proposal-writer",
        "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/danielmichalek~freelance-proposal-writer/runs": {
      "post": {
        "operationId": "runs-sync-danielmichalek-freelance-proposal-writer",
        "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/danielmichalek~freelance-proposal-writer/run-sync": {
      "post": {
        "operationId": "run-sync-danielmichalek-freelance-proposal-writer",
        "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": {
          "jobs": {
            "title": "Jobs",
            "type": "array",
            "description": "Job posts from any platform. Each item: { \"title\", \"description\", \"budget\" (text like \"$150 - $250 USD\" or \"500 zł\", or budgetMin/budgetMax/currency), \"skills\" (optional list), \"deadlineDays\" (optional), \"url\", \"id\", \"platform\", \"language\" (optional en/pl/de) }. Up to 500 per run. Leave both jobs and profile empty to run the free built-in demo."
          },
          "profile": {
            "title": "Your profile and rate card",
            "type": "object",
            "description": "Who you are and what you sell. { \"name\", \"signature\", \"about\", \"discloseAi\", \"services\": [{ \"id\", \"name\", \"keywords\" [...], \"excludes\" [...], \"priceFrom\", \"priceTo\", \"currency\", \"daysFrom\", \"daysTo\", \"rights\" (TRANSFER or NONE), \"firstStep\", \"deliverables\", \"inputsNeeded\", \"sampleUrl\" }] }. Text fields can be a string or { \"en\", \"pl\", \"de\" }. Proposals only use facts from here: no invented experience, clients or guarantees."
          },
          "language": {
            "title": "Proposal language",
            "enum": [
              "auto",
              "en",
              "pl",
              "de"
            ],
            "type": "string",
            "description": "auto = the language of each job post.",
            "default": "auto"
          },
          "maxChars": {
            "title": "Maximum length (characters)",
            "minimum": 600,
            "maximum": 2000,
            "type": "integer",
            "description": "Short proposals get read. 900 characters is about 120 to 150 words.",
            "default": 900
          },
          "minDays": {
            "title": "Minimum delivery time (days)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Jobs whose deadline is shorter (or marked urgent / ASAP) are skipped, and your quoted delivery time is never shorter than this.",
            "default": 7
          },
          "discloseAi": {
            "title": "Mention that you work with AI tools",
            "type": "boolean",
            "description": "Adds one plain sentence that you use AI tools and check the results by hand. Honest and increasingly expected by clients.",
            "default": true
          },
          "includeSamples": {
            "title": "Include sample links from services",
            "type": "boolean",
            "description": "Adds the service sampleUrl when there is room.",
            "default": true
          },
          "writeMaybe": {
            "title": "Write proposals for MAYBE jobs",
            "type": "boolean",
            "description": "MAYBE = matched but with a soft warning (for example a service limit). SKIP jobs never get a proposal.",
            "default": true
          },
          "includeSkipped": {
            "title": "Include SKIP and MAYBE jobs in the dataset",
            "type": "boolean",
            "description": "Keeps the verdict and reasons for every job, also when no proposal was written.",
            "default": true
          },
          "excludeKeywords": {
            "title": "Extra keywords to skip",
            "type": "array",
            "description": "Jobs containing any of these words are skipped (case and accents ignored).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "llmBaseUrl": {
            "title": "LLM base URL (optional)",
            "type": "string",
            "description": "Any OpenAI-compatible endpoint, for example https://api.openai.com/v1 or https://openrouter.ai/api/v1. Leave empty to use the built-in template writer (free, deterministic)."
          },
          "llmModel": {
            "title": "LLM model (optional)",
            "type": "string",
            "description": "For example gpt-4o-mini or an OpenRouter model id."
          },
          "llmApiKey": {
            "title": "LLM API key (optional)",
            "type": "string",
            "description": "Stored encrypted by Apify, never logged or written to the output. LLM costs are billed by your provider."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}