{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taskfuel-ai/json-schema/taskfuel-ai-call-request-schema.json",
  "title": "CallRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taskfuel-ai-openapi.yml#/components/schemas/CallRequest",
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "An operation URL returned by /v1/discover on an allowed domain."
    },
    "method": {
      "type": "string",
      "default": "GET"
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "body": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "array"
        },
        {
          "type": "string"
        }
      ],
      "description": "The upstream request body. Pass JSON as an object or array: it is serialized once and forwarded. A string is forwarded byte for byte, so do not JSON-encode the object yourself."
    },
    "dryRun": {
      "type": "boolean",
      "default": false,
      "description": "Read the upstream's 402 price without paying. Free endpoints execute at $0."
    },
    "maxAmountUsd": {
      "type": "number",
      "format": "double",
      "exclusiveMinimum": 0,
      "description": "Caller-selected USD ceiling. It can tighten but never raise the gateway cap."
    },
    "model": {
      "type": "string",
      "maxLength": 128,
      "description": "The caller's own model id, e.g. claude-opus-5. Recorded with the call and nothing else: it never affects pricing, routing, what is sent upstream, or whether the call succeeds."
    }
  },
  "additionalProperties": false
}