{
  "openapi": "3.1.0",
  "info": {
    "title": "Filepetal public converter lookup",
    "version": "2026-10-05-v2",
    "description": "Read-only public converter instructions. No file upload, conversion, account or payment operations."
  },
  "servers": [
    {
      "url": "https://filepetal.com"
    }
  ],
  "security": [],
  "paths": {
    "/api/agent/converters": {
      "get": {
        "operationId": "search_converters",
        "summary": "Find published converters",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "input_format",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "output_format",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded results; empty items means no match",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "total",
                    "returned",
                    "items",
                    "source_url"
                  ],
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "returned": {
                      "type": "integer"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "maxItems": 20,
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "input_format": {
                            "type": "string"
                          },
                          "output_format": {
                            "type": "string"
                          },
                          "source_url": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "source_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "updated_at": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid query or missing converter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/converters/{id}": {
      "get": {
        "operationId": "read_converter",
        "summary": "Read converter instructions and limits",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]+$",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A published converter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "title",
                    "source_url",
                    "limits",
                    "limitations",
                    "steps"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "input_format": {
                      "type": "string"
                    },
                    "output_format": {
                      "type": "string"
                    },
                    "source_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "updated_at": {
                      "type": "string"
                    },
                    "processing": {
                      "const": "local_browser"
                    },
                    "authentication_required": {
                      "const": false
                    },
                    "limits": {
                      "type": "object",
                      "additionalProperties": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Invalid query or missing converter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/health": {
      "get": {
        "operationId": "lookup_health",
        "responses": {
          "200": {
            "description": "Lookup service version",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "const": "ok"
                    },
                    "version": {
                      "type": "string"
                    },
                    "canonical_origin": {
                      "type": "string"
                    },
                    "public_read_only": {
                      "const": true
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
