{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    },
    "schemas": {
      "Manual576A0Ea506F3_connect_OPENALEX_DOWNLOAD_WORK_CONTENT": {
        "type": "object",
        "required": [
          "work_id",
          "format"
        ],
        "properties": {
          "format": {
            "enum": [
              "pdf",
              "tei_xml"
            ],
            "type": "string",
            "description": "Content format to download. Use pdf only when has_content.pdf=true; use tei_xml only when has_content.grobid_xml=true. TEI XML is returned as a gzip file."
          },
          "work_id": {
            "type": "string",
            "pattern": "^W\\d+$",
            "examples": [
              "W3038568908"
            ],
            "minLength": 2,
            "description": "Short OpenAlex work ID, such as W3038568908."
          }
        }
      },
      "Response576A0Ea506F3_connect_OPENALEX_DOWNLOAD_WORK_CONTENT__output__public_data": {
        "$ref": "#/components/schemas/Response576A0Ea506F3_connect_OPENALEX_DOWNLOAD_WORK_CONTENT__output__a403c77725622a39"
      },
      "Response576A0Ea506F3_connect_OPENALEX_DOWNLOAD_WORK_CONTENT__output__a403c77725622a39": {
        "type": "object",
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "$ref": "#/components/schemas/Response576A0Ea506F3_connect_OPENALEX_DOWNLOAD_WORK_CONTENT__output__2f7819863fd8478c"
          }
        }
      },
      "Response576A0Ea506F3_connect_OPENALEX_DOWNLOAD_WORK_CONTENT__output__2f7819863fd8478c": {
        "type": "object",
        "required": [
          "name",
          "mimetype",
          "s3url"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "s3url": {
            "type": "string"
          },
          "mimetype": {
            "type": "string"
          }
        }
      }
    },
    "responses": {},
    "parameters": {},
    "examples": {},
    "requestBodies": {},
    "headers": {},
    "links": {},
    "callbacks": {},
    "pathItems": {}
  },
  "info": {
    "description": "",
    "title": "OpenAlex",
    "version": "1",
    "x-aisa-capabilities": {
      "idempotency": "Idempotency-Key",
      "max_price": "X-AISA-Max-Price-USD",
      "quote": {
        "header": "X-AISA-Cost-Mode",
        "value": "quote"
      }
    },
    "x-aisa-configured-paths": [
      "/apis/v1/openalex/download-work-content"
    ],
    "x-aisa-document": {
      "facts_hash": "32069b88f7c16948a117fdde1455d751af6f47de2725f105a978f113ea81e2c5",
      "generator_version": "3",
      "protocol_version": "1",
      "schema_version": "1",
      "composer_version": "28",
      "response_pending": [],
      "document_hash": "sha256:7fb04e3f8aae54a42784961155657b5ba5705ec02b518e5d348f7379c397e1f6"
    },
    "x-aisa-plans": {
      "builder": 1.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
    },
    "x-aisa-provider": "openalex",
    "x-aisa-catalogs": {
      "openalex": {
        "title": "OpenAlex",
        "description": "",
        "x-aisa-document": {
          "facts_hash": "32069b88f7c16948a117fdde1455d751af6f47de2725f105a978f113ea81e2c5",
          "generator_version": "3",
          "protocol_version": "1",
          "schema_version": "1"
        },
        "x-aisa-plans": {
          "builder": 1.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
        },
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          }
        }
      }
    }
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "paths": {
    "/apis/v1/openalex/download-work-content": {
      "post": {
        "description": "<!-- aisa-pricing:start -->\n按用量计费；默认请求预估费用：$0.0103 USD（不是固定价格）。 声明的单位费率：每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。\n<!-- aisa-pricing:end -->",
        "operationId": "openalex.download-work-content",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "work_id",
                  "format"
                ],
                "properties": {
                  "format": {
                    "enum": [
                      "pdf",
                      "tei_xml"
                    ],
                    "type": "string",
                    "description": "Content format to download. Use pdf only when has_content.pdf=true; use tei_xml only when has_content.grobid_xml=true. TEI XML is returned as a gzip file."
                  },
                  "work_id": {
                    "type": "string",
                    "pattern": "^W\\d+$",
                    "examples": [
                      "W3038568908"
                    ],
                    "minLength": 2,
                    "description": "Short OpenAlex work ID, such as W3038568908."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response576A0Ea506F3_connect_OPENALEX_DOWNLOAD_WORK_CONTENT__output__public_data"
                }
              }
            }
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Download Work Content",
        "tags": [
          "OpenAlex"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": false,
          "mpp_methods": [],
          "x402": false
        },
        "x-aisa-category": "data",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "response_units",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "default_request_estimate_usd": 0.0103,
          "estimate_source": "profile_seed",
          "evidence_source": "response_body",
          "maximum_units": 10000000,
          "unit": "provider_credit",
          "unit_rate_usd": 1e-06
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": false
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "541c4271fcd0",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "af98391cded8"
        },
        "x-aisa-status": "enabled",
        "x-aisa-validation": "provider",
        "x-aisa-catalog-id": "openalex",
        "x-aisa-runtime-operation": {
          "operation_id": "openalex.download-work-content",
          "method": "POST",
          "path": "/apis/v1/openalex/download-work-content"
        },
        "x-aisa-source": {
          "kind": "manual",
          "url": "https://connect.composio.dev/mcp",
          "fetched_at": "unknown: historical capture did not retain an acquisition timestamp",
          "content_hash": "sha256:342defd4bbb364173f6f4dbfeeae2056fa539e0c0fd021df1d45b18d0003be5f",
          "converter": "scripts/prepare_composio_public_reference.py@1",
          "path_space": "public",
          "refresh_policy": "pinned",
          "refresh_reason": "Review captured provider argument schemas and the pinned owning HTTP request adapter together before replacement.",
          "source_git_revision": "3c55acbef31c1aae0648aaa48b0bc92184594500",
          "raw_content_hash": "sha256:f2b7e11cfb5bebbbe6dccf14f1e20bed99d24378de2ba765250101f592f999b7",
          "routes_content_hash": "sha256:60c8b6059312ec36d7cdfd57b8ee3d909da3c55d3956b408747b82fbc5f2d6aa",
          "source_pages": [
            {
              "url": "https://connect.composio.dev/mcp",
              "scope": "Captured input schemas only; no current-source review asserted"
            },
            {
              "url": "https://raw.githubusercontent.com/AIsa-team/AIsaServices/3c55acbef31c1aae0648aaa48b0bc92184594500/packages/integrationcatalog/vendors.json",
              "scope": "Exact provider tool slug to public route mapping"
            },
            {
              "url": "https://raw.githubusercontent.com/AIsa-team/AIsaServices/3c55acbef31c1aae0648aaa48b0bc92184594500/services/api-service/internal/httpapi/integration_gateway_body.go",
              "scope": "wrapGatewayBody: caller root arguments are wrapped internally; the internal envelope is not a public input"
            },
            {
              "url": "https://raw.githubusercontent.com/AIsa-team/AIsaServices/3c55acbef31c1aae0648aaa48b0bc92184594500/packages/composioconnect/workbench.go",
              "scope": "PublicResponse returns only the one completed tool response data as HTTP 200"
            }
          ],
          "qualification": "Historical pinned metadata conversion requiring independent source review. Public responses project the declared data property through the fixed HTTP adapter. No live acquisition or formal approval asserted.",
          "owner": "AIsa-team/docs",
          "review_period_days": 30,
          "policy_revision": "sha256:2eaa3a85fb7f3c50982c51dcede3aa2251e4f385404e955a0ee32072ef7f79da"
        },
        "x-aisa-response-source": {
          "kind": "upstream_success_contract",
          "source": {
            "kind": "manual",
            "url": "https://connect.composio.dev/mcp",
            "fetched_at": "unknown: historical capture did not retain an acquisition timestamp",
            "content_hash": "sha256:342defd4bbb364173f6f4dbfeeae2056fa539e0c0fd021df1d45b18d0003be5f",
            "converter": "scripts/prepare_composio_public_reference.py@1",
            "path_space": "public",
            "refresh_policy": "pinned",
            "refresh_reason": "Review captured provider argument schemas and the pinned owning HTTP request adapter together before replacement.",
            "source_git_revision": "3c55acbef31c1aae0648aaa48b0bc92184594500",
            "raw_content_hash": "sha256:f2b7e11cfb5bebbbe6dccf14f1e20bed99d24378de2ba765250101f592f999b7",
            "routes_content_hash": "sha256:60c8b6059312ec36d7cdfd57b8ee3d909da3c55d3956b408747b82fbc5f2d6aa",
            "source_pages": [
              {
                "url": "https://connect.composio.dev/mcp",
                "scope": "Captured input schemas only; no current-source review asserted"
              },
              {
                "url": "https://raw.githubusercontent.com/AIsa-team/AIsaServices/3c55acbef31c1aae0648aaa48b0bc92184594500/packages/integrationcatalog/vendors.json",
                "scope": "Exact provider tool slug to public route mapping"
              },
              {
                "url": "https://raw.githubusercontent.com/AIsa-team/AIsaServices/3c55acbef31c1aae0648aaa48b0bc92184594500/services/api-service/internal/httpapi/integration_gateway_body.go",
                "scope": "wrapGatewayBody: caller root arguments are wrapped internally; the internal envelope is not a public input"
              },
              {
                "url": "https://raw.githubusercontent.com/AIsa-team/AIsaServices/3c55acbef31c1aae0648aaa48b0bc92184594500/packages/composioconnect/workbench.go",
                "scope": "PublicResponse returns only the one completed tool response data as HTTP 200"
              }
            ],
            "qualification": "Historical pinned metadata conversion requiring independent source review. Public responses project the declared data property through the fixed HTTP adapter. No live acquisition or formal approval asserted.",
            "owner": "AIsa-team/docs",
            "review_period_days": 30,
            "policy_revision": "sha256:2eaa3a85fb7f3c50982c51dcede3aa2251e4f385404e955a0ee32072ef7f79da"
          },
          "content_hash": "sha256:0d5a09dffce9b915562a76dbe950b561bb738cfdaa53e82ef9376458e7e50a6c"
        },
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/openalex/openalex-download-work-content"
      }
    }
  }
}
