{
  "openapi": "3.1.0",
  "info": {
    "title": "unmake API",
    "version": "1.1",
    "description": "File tools for people and agents. Live today: inspect (3D/CAD, DXF/DWG and map files by type), jobs for inspect, dxf_render, dwg_to_dxf, gis_inspect, gis_convert, einvoice_view, nc_inspect, mail_view, pdf_tables, ral_match, csv_fix, pdf_to_dxf, pdf_watermark, pdf_fill, pdf_sign, the steel equivalents lookup, the satellite API (own server in AWS us-west-2), keys, shares, notify, contact and feedback. 12 document checks are a free beta (x-status: beta: doc_service_charge, doc_mill_cert, doc_food_label, doc_pii_redact, doc_invoice_audit, doc_grid_pack, doc_tender_check, doc_preferential_origin, doc_ce_check, doc_subsidy_quote, doc_rohs_reach_matrix, doc_invoice_to_einvoice); the others are launching soon (x-status: coming). Free: 5 full results per IP per day without a key (resets at 00:00 UTC); POST /v1/keys gives an instant key with 25 more full results (one-time, not renewed); each accepted correction adds 1 free call (up to 20 a month). Uploaded files and results are kept up to 12 months to improve the tool, then deleted automatically; DELETE /v1/jobs/{id} deletes them at any time; retain=false deletes them 24 hours after upload. Files shared by link from the free viewers are kept 30 days.",
    "contact": {
      "url": "https://unmakelabs.com/en/contact/"
    }
  },
  "servers": [
    {
      "url": "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com",
      "description": "unmake API (AWS eu-central-1, Frankfurt)"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "API key um_... from POST /v1/keys"
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "retry_after_s": {
                "type": "integer"
              }
            },
            "required": [
              "code",
              "message"
            ]
          },
          "summary": {
            "type": "string"
          },
          "limits": {
            "type": [
              "object",
              "null"
            ]
          },
          "links": {
            "type": "object"
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "error"
        ]
      },
      "Limits": {
        "type": "object",
        "properties": {
          "caller": {
            "type": "string"
          },
          "free_full_results_left": {
            "type": "integer"
          },
          "free_full_results_reset": {
            "type": [
              "string",
              "null"
            ]
          },
          "requests_per_min": {
            "type": "integer"
          },
          "jobs_per_hour": {
            "type": "integer"
          },
          "max_file_mb": {
            "type": "integer"
          },
          "max_inline_mb": {
            "type": "integer"
          },
          "max_wait_s": {
            "type": "integer"
          },
          "max_runtime_s": {
            "type": "integer"
          }
        }
      },
      "Action": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "cost": {
            "type": "string"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "action",
          "method",
          "url"
        ]
      },
      "Job": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "awaiting_upload",
              "queued",
              "running",
              "done",
              "failed",
              "deleted"
            ]
          },
          "job_id": {
            "type": "string"
          },
          "job_token": {
            "type": "string",
            "description": "Returned once at creation for anonymous jobs"
          },
          "tool": {
            "type": "string"
          },
          "tool_version": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "timings": {
            "type": "object",
            "properties": {
              "queued_ms": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "run_ms": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "total_ms": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "cost_to_caller": {
            "type": "object",
            "properties": {
              "usd": {
                "type": "number"
              },
              "free_result_used": {
                "type": "boolean"
              }
            }
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "description": "free part; the full result and file links when allowed"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "limits": {
            "$ref": "#/components/schemas/Limits"
          },
          "links": {
            "type": "object"
          },
          "next_actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Action"
            }
          },
          "feedback": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "how": {
                "type": "string"
              },
              "reward": {
                "type": "string"
              }
            }
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "job_id",
          "tool"
        ]
      },
      "JobFeedback": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "item": {
                  "type": "string"
                },
                "verdict": {
                  "type": "string",
                  "enum": [
                    "right",
                    "wrong"
                  ]
                },
                "correct_value": {
                  "type": "string"
                }
              },
              "required": [
                "item",
                "verdict"
              ]
            }
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "rows"
        ]
      },
      "Tool": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "use_when": {
            "type": "string"
          },
          "not_for": {
            "type": "string"
          },
          "inputs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "max_file_mb": {
            "type": [
              "integer",
              "null"
            ]
          },
          "countries": {
            "type": [
              "string",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "licences": {
            "type": "string"
          },
          "create_job": {
            "type": "string",
            "description": "Job URL of a file tool"
          },
          "endpoint": {
            "type": "string",
            "description": "Own URL of a tool that is not a job (materials_lookup, recent_images)"
          },
          "status": {
            "type": "string",
            "description": "Only set when not open: coming = listed, not callable yet"
          },
          "available": {
            "type": "boolean"
          },
          "note": {
            "type": "string"
          },
          "options": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "required_options": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "tool"
        ]
      },
      "MaterialsLookup": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "normalized": {
            "type": "string"
          },
          "grades": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "en_number": {
                  "type": "string"
                },
                "en_name": {
                  "type": "string"
                },
                "common_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "equivalents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "system": {
                        "type": "string"
                      },
                      "designation": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "verified",
                          "read"
                        ]
                      },
                      "publishers_independent": {
                        "type": "integer"
                      },
                      "publishers": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "sources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "publisher": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "url": {
                              "type": "string"
                            },
                            "where": {
                              "type": "string"
                            },
                            "quote": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "notes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "composition": {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              }
            }
          },
          "suggestions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "checked": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "not_checked": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "links": {
            "type": "object"
          },
          "next_actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Action"
            }
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ]
      },
      "SatPasses": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "enum": [
              "ok",
              "no_clear_pass",
              "polar_night",
              "no_coverage",
              "no_valid_pixels",
              "partial"
            ]
          },
          "summary": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "passes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "datetime": {
                  "type": "string",
                  "format": "date-time"
                },
                "satellite": {
                  "type": "string"
                },
                "spot": {
                  "type": "object",
                  "properties": {
                    "valid_pct": {
                      "type": "number"
                    },
                    "cloud_pct": {
                      "type": "number"
                    },
                    "shadow_pct": {
                      "type": "number"
                    },
                    "obscured_pct": {
                      "type": "number"
                    }
                  }
                },
                "tile_cloud_pct": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "clear": {
                  "type": "boolean"
                },
                "selectable": {
                  "type": "boolean"
                },
                "links": {
                  "type": "object"
                }
              }
            }
          },
          "selected": {
            "type": [
              "object",
              "null"
            ]
          },
          "limits": {
            "type": "object"
          },
          "links": {
            "type": "object"
          },
          "next_actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Action"
            }
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ]
      },
      "SatJob": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "job_id": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "gif_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "frames": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "datetime": {
                  "type": "string"
                },
                "image_url": {
                  "type": "string"
                }
              }
            }
          },
          "links": {
            "type": "object"
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ]
      },
      "Tools": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tool"
            }
          },
          "limits": {
            "$ref": "#/components/schemas/Limits"
          },
          "next_actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Action"
            }
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "tools"
        ]
      },
      "Key": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "created"
            ]
          },
          "api_key": {
            "type": "string",
            "description": "Shown once; stored only as a hash"
          },
          "key_id": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "how_to_use": {
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/Limits"
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "api_key"
        ]
      },
      "ShareCreate": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "enum": [
              "3d",
              "cad",
              "exploded",
              "gis",
              "nc",
              "splat"
            ]
          },
          "files": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "size": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Bytes"
                }
              },
              "required": [
                "name",
                "size"
              ]
            }
          },
          "filename": {
            "type": "string",
            "description": "One file: instead of files"
          },
          "size": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "tool"
        ]
      },
      "ShareCreated": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "created"
            ]
          },
          "share_id": {
            "type": "string"
          },
          "delete_token": {
            "type": "string",
            "description": "Shown once; send as X-Delete-Token"
          },
          "tool": {
            "type": "string"
          },
          "expires": {
            "type": "string",
            "format": "date-time"
          },
          "expires_in_days": {
            "type": "integer"
          },
          "uploads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "size": {
                  "type": "integer"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "POST"
                  ]
                },
                "url": {
                  "type": "string"
                },
                "fields": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "file_field": {
                  "type": "string"
                }
              },
              "required": [
                "url",
                "fields"
              ]
            }
          },
          "upload_expires_in_s": {
            "type": "integer"
          },
          "summary": {
            "type": "string"
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "share_id",
          "delete_token",
          "uploads"
        ]
      },
      "Share": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "share_id": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "expires": {
            "type": "string",
            "format": "date-time"
          },
          "expires_in_days": {
            "type": "integer"
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "size": {
                  "type": "integer"
                },
                "url": {
                  "type": "string"
                },
                "expires_in_s": {
                  "type": "integer"
                }
              },
              "required": [
                "name",
                "url"
              ]
            }
          },
          "summary": {
            "type": "string"
          },
          "report": {
            "type": "string"
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "share_id",
          "files"
        ]
      },
      "ShareDeleted": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "deleted"
            ]
          },
          "share_id": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "data_policy": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ]
      },
      "FormResult": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "description": "In the form's language"
          },
          "code": {
            "type": "string"
          },
          "field": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "message"
        ]
      },
      "Notify": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{1,63}$",
            "description": "Tool slug, e.g. grid-pack, subsidy-quote-check, invoice-audit"
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "locale": {
            "type": "string",
            "pattern": "^[a-z]{2}(-[a-z]{2})?$"
          },
          "note": {
            "type": "string",
            "maxLength": 500
          }
        },
        "required": [
          "tool",
          "email"
        ]
      },
      "Contact": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "message": {
            "type": "string",
            "minLength": 2,
            "maxLength": 5000
          },
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "locale": {
            "type": "string",
            "pattern": "^[a-z]{2}(-[a-z]{2})?$"
          }
        },
        "required": [
          "email",
          "message"
        ]
      },
      "Feedback": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 2000
          },
          "rating": {
            "type": "integer",
            "enum": [
              1,
              2,
              3
            ],
            "description": "1 sad, 2 neutral, 3 happy"
          },
          "thumbs": {
            "type": "string",
            "enum": [
              "up",
              "down"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "pill",
              "thumbs",
              "error"
            ]
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Only if a reply is wanted"
          },
          "tool": {
            "type": "string"
          },
          "page": {
            "type": "string",
            "description": "Path, e.g. /en-us/dxf-viewer/"
          },
          "locale": {
            "type": "string"
          },
          "context": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "tool": {
                "type": "string"
              },
              "locale": {
                "type": "string"
              },
              "vw": {
                "type": "integer"
              },
              "vh": {
                "type": "integer"
              },
              "dpr": {
                "type": "number"
              },
              "step": {
                "type": "string"
              },
              "err": {
                "type": "string"
              },
              "code": {
                "type": "string"
              },
              "sid": {
                "type": "string"
              },
              "page_kind": {
                "type": "string",
                "enum": [
                  "tool",
                  "app",
                  "page"
                ]
              },
              "theme": {
                "type": "string",
                "enum": [
                  "light",
                  "dark"
                ]
              },
              "touch": {
                "type": "string",
                "enum": [
                  "0",
                  "1"
                ]
              }
            },
            "description": "Optional page context; never file contents"
          }
        },
        "description": "At least one of text, rating, thumbs"
      }
    }
  },
  "security": [
    {},
    {
      "bearer": []
    },
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/v1": {
      "get": {
        "x-status": "live",
        "summary": "Routes, tools, limits",
        "operationId": "index",
        "responses": {
          "200": {
            "description": "Index",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tools"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tools": {
      "get": {
        "x-status": "live",
        "summary": "List the tools that answer today",
        "operationId": "listTools",
        "responses": {
          "200": {
            "description": "Tools",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tools"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys": {
      "post": {
        "x-status": "live",
        "summary": "Create an instant API key",
        "description": "One-time grant of 25 free full results (not renewed). The optional email is stored only to link the key to an account later.",
        "operationId": "createKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Key created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Key"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/inspect": {
      "post": {
        "x-status": "live",
        "summary": "Inspect a file: the tool is picked by file type (waits up to 25 s)",
        "description": "Program-read metadata and PNG pictures. 3D/CAD (STL, OBJ, PLY, GLB/GLTF, 3MF, STEP, IGES) -> inspect; DXF -> dxf_render; DWG -> dwg_to_dxf; map files (Shapefile zip, KML, KMZ, GPX, GeoJSON, GeoPackage, FlatGeobuf, CSV) -> gis_inspect. 3D/CAD: units, bounding box, volume and area when the mesh is closed, part tree, triangle count, views front/top/side/iso. DXF/DWG: version, units, layouts, layers, blocks, dimension check, PNG (DWG also returns the DXF). Map files: layers, feature counts, coordinate system, extent, fields, lengths and areas, PNG preview.",
        "operationId": "inspect",
        "parameters": [
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after 25 s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "202": {
            "description": "Accepted, poll the job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "402": {
            "description": "Free quota used; body says how to get a free key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "File too big",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "File type not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/{tool}/jobs": {
      "post": {
        "x-status": "live",
        "summary": "Run a file tool on a file",
        "description": "tool: inspect (3D/CAD metadata and views), dxf_render (DXF to SVG/PDF/PNG plus layers and dimension check), dwg_to_dxf (DWG to DXF plus the same renders), gis_inspect (map file facts and preview), gis_convert (map file to GeoJSON, KML, KMZ, GPX, CSV, Shapefile, GeoPackage or FlatGeobuf with a read-back check; option `to` is required). Options per tool: GET /v1/tools. The document checks have their own paths below and are not callable yet.",
        "operationId": "createJob",
        "parameters": [
          {
            "name": "tool",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "inspect",
                "dxf_render",
                "dwg_to_dxf",
                "gis_inspect",
                "gis_convert",
                "einvoice_view",
                "nc_inspect",
                "mail_view",
                "pdf_tables",
                "ral_match",
                "csv_fix",
                "pdf_to_dxf",
                "pdf_watermark",
                "pdf_fill",
                "pdf_sign"
              ]
            }
          },
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "202": {
            "description": "Accepted, poll the job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "402": {
            "description": "Free quota used; body says how to get a free key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "File too big",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "File type not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_ce_check/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Declaration of conformity checker: free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_ce_check",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_grid_pack/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Grid registration pack: free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_grid_pack",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_invoice_audit/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Invoice audit: free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_invoice_audit",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_invoice_to_einvoice/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Invoice PDF to e-invoice: free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_invoice_to_einvoice",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_food_label/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Food label check: free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_food_label",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_mill_cert/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Mill certificate check: free beta",
        "description": "Tested before launch on 12 real certificates from 9 countries (EN and ASTM). Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_mill_cert",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_pii_redact/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Remove personal data: free beta",
        "description": "Removes about 99% of personal details in our tests; check the highlighted result before you share it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_pii_redact",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_preferential_origin/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Rules of origin calculator (UK-EU): free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_preferential_origin",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_rohs_reach_matrix/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "RoHS / REACH / PFAS declaration checker: free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_rohs_reach_matrix",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_service_charge/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Service-charge check: free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_service_charge",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_subsidy_quote/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Renovation subsidy quote check (MaPrimeRénov', CEE): free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_subsidy_quote",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/doc_tender_check/jobs": {
      "post": {
        "x-status": "beta",
        "summary": "Tender check: free beta",
        "description": "Free beta, tested on real documents before launch. Check the result before you rely on it. Same call, free quota and job links as the file tools.",
        "operationId": "createJob_doc_tender_check",
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            },
            "description": "Seconds to wait for the result before returning a queued job"
          },
          {
            "name": "retain",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: files and result are deleted 24 hours after upload"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "retain": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  },
                  "country": {
                    "type": "string"
                  },
                  "options": {
                    "type": "string",
                    "description": "Tool options as a JSON string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public http(s) URL of the file"
                  },
                  "file_base64": {
                    "type": "string",
                    "description": "The file, base64 (about 5 MB at most); needs filename"
                  },
                  "filename": {
                    "type": "string",
                    "description": "Name with extension, e.g. part.step"
                  },
                  "upload_url": {
                    "type": "boolean",
                    "description": "true: returns a presigned upload; then POST /v1/jobs/{id}/start"
                  },
                  "options": {
                    "type": "object",
                    "description": "Tool options (allowlist per tool in GET /v1/tools, at most 2 KB as JSON), e.g. {\"to\": \"kml\"} for gis_convert or {\"formats\": [\"pdf\"]} for dxf_render"
                  },
                  "retain": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done, or still running after wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Not open yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/materials/lookup": {
      "get": {
        "x-status": "live",
        "summary": "Steel grade equivalents with sources",
        "description": "A steel designation (EN number or name, AISI/UNS, JIS, GB, GOST, old DIN …) to every EN grade it is listed against, each equivalent with its sources, quoted lines and status (verified = two independent publishers; read = one), plus composition and strength limits with sources. No key, no job.",
        "operationId": "materialsLookup",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2
            },
            "description": "Designation, e.g. 1.4404, 316L, SS400"
          },
          {
            "name": "system",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Limit the match to one system, e.g. AISI, JIS, GB"
          },
          {
            "name": "composition",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "false: leave out composition limits"
          }
        ],
        "responses": {
          "200": {
            "description": "Equivalents",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialsLookup"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "post": {
        "x-status": "live",
        "summary": "Steel grade equivalents with sources (JSON body)",
        "operationId": "materialsLookupPost",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "q": {
                    "type": "string"
                  },
                  "system": {
                    "type": "string"
                  },
                  "composition": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "q"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Equivalents",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialsLookup"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jobs/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "Job id from the create call"
        },
        {
          "name": "X-Job-Token",
          "in": "header",
          "schema": {
            "type": "string"
          },
          "description": "job_token from the create call (anonymous jobs); keyed jobs use the API key instead"
        },
        {
          "name": "token",
          "in": "query",
          "schema": {
            "type": "string"
          },
          "description": "Same as X-Job-Token"
        }
      ],
      "get": {
        "x-status": "live",
        "summary": "Job status and the free part of the result",
        "operationId": "getJob",
        "responses": {
          "200": {
            "description": "Job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Wrong or missing job token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "x-status": "live",
        "summary": "Delete the input file, result and feedback now",
        "operationId": "deleteJob",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "403": {
            "description": "Wrong or missing job token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jobs/{id}/result": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "Job id from the create call"
        },
        {
          "name": "X-Job-Token",
          "in": "header",
          "schema": {
            "type": "string"
          },
          "description": "job_token from the create call (anonymous jobs); keyed jobs use the API key instead"
        },
        {
          "name": "token",
          "in": "query",
          "schema": {
            "type": "string"
          },
          "description": "Same as X-Job-Token"
        }
      ],
      "get": {
        "x-status": "live",
        "summary": "Full result and file links (uses a free full result)",
        "operationId": "getResult",
        "responses": {
          "200": {
            "description": "Full result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "402": {
            "description": "No free full result left",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Wrong or missing job token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jobs/{id}/start": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "Job id from the create call"
        },
        {
          "name": "X-Job-Token",
          "in": "header",
          "schema": {
            "type": "string"
          },
          "description": "job_token from the create call (anonymous jobs); keyed jobs use the API key instead"
        },
        {
          "name": "token",
          "in": "query",
          "schema": {
            "type": "string"
          },
          "description": "Same as X-Job-Token"
        }
      ],
      "post": {
        "x-status": "live",
        "summary": "Start a job created with upload_url after uploading the file",
        "operationId": "startJob",
        "responses": {
          "200": {
            "description": "Started",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "409": {
            "description": "File not uploaded yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jobs/{id}/feedback": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "Job id from the create call"
        },
        {
          "name": "X-Job-Token",
          "in": "header",
          "schema": {
            "type": "string"
          },
          "description": "job_token from the create call (anonymous jobs); keyed jobs use the API key instead"
        },
        {
          "name": "token",
          "in": "query",
          "schema": {
            "type": "string"
          },
          "description": "Same as X-Job-Token"
        }
      ],
      "post": {
        "x-status": "live",
        "summary": "Mark result rows right or wrong",
        "description": "Each accepted correction earns 1 free call (up to 20 a month).",
        "operationId": "jobFeedback",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobFeedback"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Feedback stored",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shares": {
      "post": {
        "x-status": "live",
        "summary": "Share files from a free viewer by link (30 days)",
        "description": "Returns one presigned POST per file: send every field in 'fields', then the file last as 'file'. Then GET the share once to check it.",
        "operationId": "createShare",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Share created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareCreated"
                }
              }
            }
          },
          "413": {
            "description": "Over the size limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "File type not accepted for this viewer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shares/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{22}$"
          },
          "description": "Share id"
        }
      ],
      "get": {
        "x-status": "live",
        "summary": "Open a share: 5-minute download links",
        "operationId": "getShare",
        "responses": {
          "200": {
            "description": "Share",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Share"
                }
              }
            }
          },
          "409": {
            "description": "Files not uploaded (yet)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Deleted or expired",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Upload is not the declared type; share removed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "x-status": "live",
        "summary": "Delete a share now",
        "operationId": "deleteShare",
        "parameters": [
          {
            "name": "X-Delete-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareDeleted"
                }
              }
            }
          },
          "403": {
            "description": "Wrong delete token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Already deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (the error says which field)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Internal error; nothing was charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/notify": {
      "post": {
        "x-status": "live",
        "summary": "One email when a launching-soon tool opens",
        "operationId": "notify",
        "security": [
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Notify"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Notify"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Stored",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid field (code and field say which)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "413": {
            "description": "Body over 16 KB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contact": {
      "post": {
        "x-status": "live",
        "summary": "Send a message to unmake",
        "operationId": "contact",
        "security": [
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Contact"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Contact"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Stored",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid field (code and field say which)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "413": {
            "description": "Body over 16 KB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/feedback": {
      "post": {
        "x-status": "live",
        "summary": "Feedback about any page or result (text, face rating or thumbs)",
        "operationId": "feedback",
        "security": [
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Feedback"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Feedback"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Stored",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid field (code and field say which)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "413": {
            "description": "Body over 16 KB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResult"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/satellite": {
      "servers": [
        {
          "url": "https://vpdi2t7kyg.execute-api.us-west-2.amazonaws.com",
          "description": "Satellite API (AWS us-west-2, Oregon)"
        }
      ],
      "get": {
        "x-status": "live",
        "summary": "Satellite API contract: routes, parameters, limits, attribution",
        "operationId": "satContract",
        "security": [
          {}
        ],
        "responses": {
          "200": {
            "description": "Contract",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "routes": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/satellite/recent-images": {
      "servers": [
        {
          "url": "https://vpdi2t7kyg.execute-api.us-west-2.amazonaws.com",
          "description": "Satellite API (AWS us-west-2, Oregon)"
        }
      ],
      "get": {
        "x-status": "live",
        "summary": "Latest Sentinel-2 passes of a place, newest first, with cloud and shadow % over that spot",
        "description": "Default pick: the newest pass with cloud + shadow under max_cloud, looking back up to 240 days. Each pass links its PNG/GeoTIFF crops. No key.",
        "operationId": "satRecentImages",
        "security": [
          {}
        ],
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Latitude, WGS 84"
          },
          {
            "name": "lon",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Longitude, WGS 84"
          },
          {
            "name": "radius_m",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 150,
              "maximum": 2500,
              "default": 500
            },
            "description": "Half side of the square"
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "area_hash of a polygon sent earlier (POST with polygon)"
          },
          {
            "name": "n",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 40,
              "default": 6
            }
          },
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 366,
              "default": 60
            }
          },
          {
            "name": "until",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "max_cloud",
            "in": "query",
            "schema": {
              "type": "number",
              "default": 30
            }
          },
          {
            "name": "look_back",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Passes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SatPasses"
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found / no pixels here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "post": {
        "x-status": "live",
        "summary": "Same with a GeoJSON polygon (bounding box up to 20 km)",
        "operationId": "satRecentImagesPost",
        "security": [
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "polygon": {
                    "type": "object",
                    "description": "GeoJSON Polygon, MultiPolygon, Feature or FeatureCollection"
                  },
                  "lat": {
                    "type": "number"
                  },
                  "lon": {
                    "type": "number"
                  },
                  "radius_m": {
                    "type": "integer"
                  },
                  "n": {
                    "type": "integer"
                  },
                  "days": {
                    "type": "integer"
                  },
                  "until": {
                    "type": "string"
                  },
                  "max_cloud": {
                    "type": "number"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Passes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SatPasses"
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found / no pixels here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/satellite/image": {
      "servers": [
        {
          "url": "https://vpdi2t7kyg.execute-api.us-west-2.amazonaws.com",
          "description": "Satellite API (AWS us-west-2, Oregon)"
        }
      ],
      "get": {
        "x-status": "live",
        "summary": "Picture of one pass over the area: PNG (default), GeoTIFF or JSON corners",
        "description": "Date, satellite and the Copernicus credit are burned in by default.",
        "operationId": "satImage",
        "security": [
          {}
        ],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Pass id from recent-images"
          },
          {
            "name": "lat",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Latitude, WGS 84"
          },
          {
            "name": "lon",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Longitude, WGS 84"
          },
          {
            "name": "radius_m",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 150,
              "maximum": 2500,
              "default": 500
            },
            "description": "Half side of the square"
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "area_hash of a polygon sent earlier (POST with polygon)"
          },
          {
            "name": "layer",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "true_color",
                "ndvi",
                "false_color"
              ]
            }
          },
          {
            "name": "view_m",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 600,
              "maximum": 24000
            }
          },
          {
            "name": "px",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 128,
              "maximum": 1600,
              "default": 900
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "png",
                "tif",
                "json"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Image or JSON",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/tiff": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found / no pixels here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/satellite/timelapse": {
      "servers": [
        {
          "url": "https://vpdi2t7kyg.execute-api.us-west-2.amazonaws.com",
          "description": "Satellite API (AWS us-west-2, Oregon)"
        }
      ],
      "post": {
        "x-status": "live",
        "summary": "Timelapse GIF of clear passes over a period (async)",
        "operationId": "satTimelapse",
        "security": [
          {}
        ],
        "parameters": [
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "area": {
                    "type": "string"
                  },
                  "lat": {
                    "type": "number"
                  },
                  "lon": {
                    "type": "number"
                  },
                  "radius_m": {
                    "type": "integer"
                  },
                  "since": {
                    "type": "string",
                    "format": "date"
                  },
                  "until": {
                    "type": "string",
                    "format": "date"
                  },
                  "frames": {
                    "type": "integer",
                    "minimum": 2,
                    "maximum": 36
                  },
                  "max_cloud": {
                    "type": "number"
                  },
                  "px": {
                    "type": "integer",
                    "minimum": 128,
                    "maximum": 800
                  },
                  "layer": {
                    "type": "string"
                  },
                  "delay_ms": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Done",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SatJob"
                }
              }
            }
          },
          "202": {
            "description": "Running; poll the job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SatJob"
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found / no pixels here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/satellite/timelapse/{id}": {
      "servers": [
        {
          "url": "https://vpdi2t7kyg.execute-api.us-west-2.amazonaws.com",
          "description": "Satellite API (AWS us-west-2, Oregon)"
        }
      ],
      "get": {
        "x-status": "live",
        "summary": "Timelapse status or result",
        "operationId": "satTimelapseGet",
        "security": [
          {}
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SatJob"
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found / no pixels here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  }
}