{
    "openapi": "3.1.0",
    "info": {
        "title": "AI Form-Filler API",
        "version": "0.1.0"
    },
    "servers": [
        {
            "url": "https://api.simplicity.ai",
            "description": "Production"
        },
        {
            "url": "http://localhost:8000",
            "description": "Local"
        }
    ],
    "paths": {
        "/v1/keys": {
            "get": {
                "tags": [
                    "auth",
                    "auth"
                ],
                "summary": "Get Api Keys Details",
                "operationId": "get_api_keys_details_v1_keys_get",
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "items": {
                                        "$ref": "#/components/schemas/APIKeysResponseModel"
                                    },
                                    "type": "array",
                                    "title": "Response Get Api Keys Details V1 Keys Get"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "OAuth2PasswordBearer": []
                    },
                    {
                        "APIKeyCookie": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "auth",
                    "auth"
                ],
                "summary": "Generate Api Key",
                "operationId": "generate_api_key_v1_keys_post",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/APIKeyCreationRequest"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/APIKeyCreationResponseModel"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "OAuth2PasswordBearer": []
                    },
                    {
                        "APIKeyCookie": []
                    }
                ]
            }
        },
        "/v1/usage": {
            "get": {
                "tags": [
                    "auth",
                    "auth"
                ],
                "summary": "Get Api Usage",
                "description": "Get API usage based on the user's environment and plan.",
                "operationId": "get_api_usage_v1_usage_get",
                "security": [
                    {
                        "OAuth2PasswordBearer": []
                    },
                    {
                        "APIKeyCookie": []
                    }
                ],
                "parameters": [
                    {
                        "name": "environment",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "$ref": "#/components/schemas/APIUsageType",
                            "default": "DEV"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/APIUsageAnalytics"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/keys/{id}": {
            "delete": {
                "tags": [
                    "auth",
                    "auth"
                ],
                "summary": "Delete Api Key",
                "operationId": "delete_api_key_v1_keys__id__delete",
                "security": [
                    {
                        "OAuth2PasswordBearer": []
                    },
                    {
                        "APIKeyCookie": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Id"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/tasks/{task_id}": {
            "get": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Get Task By Id",
                "description": "Retrieve the details of a specific task by its ID, including task type and current status.",
                "operationId": "get_task_by_id_v1_tasks__task_id__get",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "task_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Task Id"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TaskResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/tasks": {
            "get": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Get Tasks",
                "description": "Retrieve all tasks associated with the authenticated user, including task type (e.g. `document-upload`, `auto-fill`) and their corresponding details.",
                "operationId": "get_tasks_v1_tasks_get",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1,
                            "title": "Page"
                        }
                    },
                    {
                        "name": "page_size",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1,
                            "default": 10,
                            "title": "Page Size"
                        }
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": "desc",
                            "title": "Order"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PaginatedTasks"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/forms/autofill": {
            "post": {
                "tags": [
                    "forms"
                ],
                "summary": "Create And Autofill Form",
                "description": "Create a new form and automatically populate it with AI-extracted data. Pass the `document_id` of the uploaded form along with either a `context` (background information), `instructions` (explicit filling rules), or `source_document_ids` (IDs of previously uploaded documents the AI will extract data from to fill the form).",
                "operationId": "create_and_autofill_form_v1_forms_autofill_post",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AutofillFormRequest"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TaskCreateResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ]
            }
        },
        "/v1/forms/{form_id}/autofill": {
            "post": {
                "tags": [
                    "forms"
                ],
                "summary": "Autofill Existing Form",
                "description": "Autofill an existing form with new data. Pass the `form_id` of the existing form with either a `context` (background information), `instructions` (explicit filling rules).",
                "operationId": "autofill_existing_form_v1_forms__form_id__autofill_post",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "form_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Form Id"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "anyOf": [
                                    {
                                        "$ref": "#/components/schemas/AutofillExistingFormRequest"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ],
                                "title": "Request"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TaskCreateResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/forms/signatures/presigned-url": {
            "get": {
                "tags": [
                    "forms"
                ],
                "summary": "Get Signature Presigned Url",
                "description": "Retrieve a temporary presigned URL to securely access a signature image stored in the cloud.",
                "operationId": "get_signature_presigned_url_v1_forms_signatures_presigned_url_get",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "signature_key",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "The S3 key of the signature image",
                            "title": "Signature Key"
                        },
                        "description": "The S3 key of the signature image"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SignaturePresignedUrlResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/forms/{form_id}": {
            "get": {
                "tags": [
                    "forms"
                ],
                "summary": "Get Form",
                "description": "Retrieve a single form associated with the authenticated user.",
                "operationId": "get_form_v1_forms__form_id__get",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "form_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Form Id"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/FormDetailedResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "tags": [
                    "forms"
                ],
                "summary": "Delete Form",
                "description": "Permanently delete a form from the user's account.",
                "operationId": "delete_form_v1_forms__form_id__delete",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "form_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Form Id"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "tags": [
                    "forms"
                ],
                "summary": "Update Form",
                "description": "Update the details of an existing form. You can update your `form_title`, `form_description`, and especially the `source_document_ids` used to fill your form. ",
                "operationId": "update_form_v1_forms__form_id__put",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "form_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Form Id"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/FormBaseUpdate"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/FormDetailedResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/forms": {
            "get": {
                "tags": [
                    "forms"
                ],
                "summary": "Get Forms",
                "description": "Retrieve all forms associated with the authenticated user.",
                "operationId": "get_forms_v1_forms_get",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "description": "Page number",
                            "default": 1,
                            "title": "Page"
                        },
                        "description": "Page number"
                    },
                    {
                        "name": "page_size",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1,
                            "description": "Number of forms per page",
                            "default": 10,
                            "title": "Page Size"
                        },
                        "description": "Number of forms per page"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MultipleFormResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/documents/upload-document": {
            "post": {
                "tags": [
                    "Documents"
                ],
                "summary": "Upload Document",
                "description": "Upload a PDF form to be processed and made available for autofill.",
                "operationId": "upload_document_v1_documents_upload_document_post",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "document_type",
                        "in": "query",
                        "required": false,
                        "description": "Set to **FORM_DOCUMENT** for the PDF form to fill, or **SOURCE_DOCUMENT** for knowledge or reference files—including images.",
                        "schema": {
                            "anyOf": [
                                {
                                    "$ref": "#/components/schemas/DocumentSource"
                                },
                                {
                                    "type": "null"
                                }
                            ],
                            "default": "SOURCE_DOCUMENT",
                            "title": "Document Type"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/Body_upload_document_v1_documents_upload_document_post"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TaskCreateResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/documents/upload-document-url": {
            "post": {
                "tags": [
                    "Documents"
                ],
                "summary": "Upload Document From Url",
                "description": "Upload a PDF form via document URL to enable AI-powered autofill.",
                "operationId": "upload_document_from_url_v1_documents_upload_document_url_post",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "document_type",
                        "in": "query",
                        "required": false,
                        "description": "Set to **FORM_DOCUMENT** for the PDF form to fill, or **SOURCE_DOCUMENT** for knowledge or reference files—including images.",
                        "schema": {
                            "anyOf": [
                                {
                                    "$ref": "#/components/schemas/DocumentSource"
                                },
                                {
                                    "type": "null"
                                }
                            ],
                            "default": "SOURCE_DOCUMENT",
                            "title": "Document Type"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UploadDocumentUrlRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TaskCreateResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/documents/{document_id}": {
            "get": {
                "tags": [
                    "Documents"
                ],
                "summary": "Get Document By Id",
                "description": "Retrieves  a single document using the `document_id`",
                "operationId": "get_document_by_id_v1_documents__document_id__get",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "document_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Document Id"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DocumentResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "tags": [
                    "Documents"
                ],
                "summary": "Delete Document",
                "description": "Permanently delete a document from a user's account.",
                "operationId": "delete_document_v1_documents__document_id__delete",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "document_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Document Id"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeleteDocumentResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "tags": [
                    "Documents"
                ],
                "summary": "Update Document",
                "description": "Update the details or contents of an existing document.",
                "operationId": "update_document_v1_documents__document_id__put",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "document_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "title": "Document Id"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DocumentUpdate"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DocumentUpdateResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/documents": {
            "get": {
                "tags": [
                    "Documents"
                ],
                "summary": "Get Documents",
                "description": "Retrieve all documents belonging to a user.",
                "operationId": "get_documents_v1_documents_get",
                "security": [
                    {
                        "APIKeyHeader": []
                    }
                ],
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1,
                            "title": "Page"
                        }
                    },
                    {
                        "name": "page_size",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 1,
                            "default": 10,
                            "title": "Page Size"
                        }
                    },
                    {
                        "name": "document_type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "anyOf": [
                                {
                                    "type": "string"
                                },
                                {
                                    "type": "null"
                                }
                            ],
                            "title": "Document Type"
                        }
                    },
                    {
                        "name": "file_type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "anyOf": [
                                {
                                    "type": "string"
                                },
                                {
                                    "type": "null"
                                }
                            ],
                            "title": "File Type"
                        }
                    },
                    {
                        "name": "start_date",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "anyOf": [
                                {
                                    "type": "string",
                                    "format": "date-time"
                                },
                                {
                                    "type": "null"
                                }
                            ],
                            "title": "Start Date"
                        }
                    },
                    {
                        "name": "end_date",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "anyOf": [
                                {
                                    "type": "string",
                                    "format": "date-time"
                                },
                                {
                                    "type": "null"
                                }
                            ],
                            "title": "End Date"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "anyOf": [
                                {
                                    "type": "string"
                                },
                                {
                                    "type": "null"
                                }
                            ],
                            "title": "Search"
                        }
                    },
                    {
                        "name": "include_form_documents",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "default": false,
                            "title": "Include Form Documents"
                        }
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": "desc",
                            "title": "Order"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PaginatedDocumentResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/HTTPValidationError"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/up": {
            "get": {
                "summary": "Health Check",
                "description": "",
                "operationId": "health_check_up_get",
                "responses": {
                    "200": {
                        "description": "Successful Response",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "APIKeyCreationRequest": {
                "properties": {
                    "name": {
                        "type": "string",
                        "title": "Name"
                    },
                    "domain": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Domain"
                    },
                    "type": {
                        "$ref": "#/components/schemas/APIUsageType"
                    }
                },
                "type": "object",
                "required": [
                    "name",
                    "type"
                ],
                "title": "APIKeyCreationRequest"
            },
            "APIKeyCreationResponseModel": {
                "properties": {
                    "id": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "string"
                            }
                        ],
                        "title": "Id"
                    },
                    "name": {
                        "type": "string",
                        "title": "Name"
                    },
                    "status": {
                        "type": "string",
                        "title": "Status"
                    },
                    "key_type": {
                        "type": "string",
                        "title": "Key Type",
                        "default": "DEV"
                    },
                    "domain": {
                        "type": "string",
                        "title": "Domain",
                        "default": ""
                    },
                    "created": {
                        "type": "string",
                        "format": "date-time",
                        "title": "Created"
                    },
                    "api_key": {
                        "type": "string",
                        "title": "Api Key"
                    }
                },
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "status",
                    "created",
                    "api_key"
                ],
                "title": "APIKeyCreationResponseModel"
            },
            "APIKeysResponseModel": {
                "properties": {
                    "id": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "string"
                            }
                        ],
                        "title": "Id"
                    },
                    "name": {
                        "type": "string",
                        "title": "Name"
                    },
                    "status": {
                        "type": "string",
                        "title": "Status"
                    },
                    "key_type": {
                        "type": "string",
                        "title": "Key Type",
                        "default": "DEV"
                    },
                    "domain": {
                        "type": "string",
                        "title": "Domain",
                        "default": ""
                    },
                    "created": {
                        "type": "string",
                        "format": "date-time",
                        "title": "Created"
                    }
                },
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "status",
                    "created"
                ],
                "title": "APIKeysResponseModel"
            },
            "APIUsageAnalytics": {
                "properties": {
                    "plan_name": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Plan Name"
                    },
                    "number_of_pages_uploaded": {
                        "type": "string",
                        "title": "Number Of Pages Uploaded"
                    },
                    "number_of_files_uploaded": {
                        "type": "string",
                        "title": "Number Of Files Uploaded"
                    },
                    "number_of_filled_form": {
                        "type": "string",
                        "title": "Number Of Filled Form"
                    },
                    "number_of_forms_created": {
                        "type": "string",
                        "title": "Number Of Forms Created"
                    },
                    "number_of_file_size": {
                        "type": "string",
                        "title": "Number Of File Size"
                    }
                },
                "type": "object",
                "required": [
                    "number_of_pages_uploaded",
                    "number_of_files_uploaded",
                    "number_of_filled_form",
                    "number_of_forms_created",
                    "number_of_file_size"
                ],
                "title": "APIUsageAnalytics"
            },
            "APIUsageType": {
                "type": "string",
                "enum": [
                    "PROD",
                    "DEV"
                ],
                "title": "APIUsageType"
            },
            "AutofillExistingFormRequest": {
                "properties": {
                    "instructions": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Instructions",
                        "description": "Optional instructions to guide the AI filling process"
                    },
                    "context": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Context",
                        "description": "Optional text content to be used as context for filling the form using AI/LLM"
                    }
                },
                "type": "object",
                "title": "AutofillExistingFormRequest",
                "description": "Request body for autofilling an existing form with new context."
            },
            "AutofillFormRequest": {
                "properties": {
                    "form_file_document_id": {
                        "type": "string",
                        "title": "Form File Document Id",
                        "description": "The document ID of the PDF form to fill"
                    },
                    "source_document_ids": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array",
                        "title": "Source Document Ids",
                        "description": "Array of document IDs containing data to extract"
                    },
                    "instructions": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Instructions",
                        "description": "Optional instructions to guide the AI filling process"
                    },
                    "context": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Context",
                        "description": "Optional text content to be used as context for filling the form using AI/LLM"
                    }
                },
                "type": "object",
                "required": [
                    "form_file_document_id"
                ],
                "title": "AutofillFormRequest",
                "description": "Request body for creating and autofilling a form from a PDF with source documents."
            },
            "Body_upload_document_v1_documents_upload_document_post": {
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary",
                        "title": "File"
                    }
                },
                "type": "object",
                "required": [
                    "file"
                ],
                "title": "Body_upload_document_v1_documents_upload_document_post"
            },
            "DeleteDocumentResponse": {
                "properties": {
                    "message": {
                        "type": "string",
                        "title": "Message"
                    }
                },
                "type": "object",
                "required": [
                    "message"
                ],
                "title": "DeleteDocumentResponse"
            },
            "DocumentMetadata": {
                "properties": {
                    "title": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Title",
                        "description": "The title of the document"
                    },
                    "keywords": {
                        "anyOf": [
                            {
                                "items": {
                                    "type": "string"
                                },
                                "type": "array"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Keywords",
                        "description": "The keywords of the document"
                    },
                    "total_pages": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Total Pages",
                        "description": "The total pages of the document"
                    },
                    "file_size": {
                        "anyOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "File Size",
                        "description": "The file size of the document in MB"
                    },
                    "file_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/FileType"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "description": "The type of the document"
                    }
                },
                "type": "object",
                "title": "DocumentMetadata"
            },
            "DocumentResponse": {
                "properties": {
                    "document_id": {
                        "type": "string",
                        "title": "Document Id",
                        "description": "The unique identifier for the document"
                    },
                    "extension": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Extension",
                        "description": "The extension of the document"
                    },
                    "original_filename": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Original Filename",
                        "description": "The original filename of the document"
                    },
                    "document_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/DocumentSource"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "description": "Whether this file is the **FORM_DOCUMENT** (the form to fill) or a **SOURCE_DOCUMENT** (context for filling). See the DocumentSource schema for details.",
                        "default": "SOURCE_DOCUMENT"
                    },
                    "file_key": {
                        "type": "string",
                        "title": "File Key",
                        "description": "The file key for the document in the S3 bucket"
                    },
                    "original_document_url": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Original Document Url",
                        "description": "The original URL of the document that was supplied by the user"
                    },
                    "presigned_url": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Presigned Url",
                        "description": "The Presigned url of the document"
                    },
                    "metadata": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/DocumentMetadata"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "description": "The metadata of the document"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "title": "Created At"
                    },
                    "updated_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Updated At",
                        "description": "Date and time document was updated"
                    }
                },
                "type": "object",
                "required": [
                    "document_id",
                    "file_key"
                ],
                "title": "DocumentResponse"
            },
            "DocumentSource": {
                "type": "string",
                "enum": [
                    "FORM_DOCUMENT",
                    "SOURCE_DOCUMENT"
                ],
                "title": "DocumentSource",
                "description": "Classifies an uploaded document for the form-filling workflow.\n\n- **FORM_DOCUMENT** — The PDF form to be filled. Use this for the actual application, intake, or questionnaire file the AI should complete. Only PDF is supported for form documents.\n\n- **SOURCE_DOCUMENT** — Supporting material used as context when filling a form: PDFs, **images** (for example photos of IDs or receipts), and other reference files (policies, prior submissions, spreadsheets, notes). This is the default when the parameter is omitted. Upload multiple source documents and reference them when creating or autofilling a form alongside a **FORM_DOCUMENT**."
            },
            "DocumentUpdate": {
                "properties": {
                    "original_filename": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Original Filename",
                        "description": "The original filename of the document"
                    },
                    "metadata": {
                        "properties": {
                            "title": {
                                "anyOf": [
                                    {
                                        "type": "string"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ],
                                "title": "Document title",
                                "description": "The new title of the document"
                            },
                            "keywords": {
                                "anyOf": [
                                    {
                                        "items": {
                                            "type": "string"
                                        },
                                        "type": "array"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ],
                                "title": "Document title",
                                "description": "The new title of the document"
                            }
                        },
                        "title": "Metadata",
                        "description": "The metadata of the document"
                    }
                },
                "type": "object",
                "title": "DocumentUpdate"
            },
            "DocumentUpdateResponse": {
                "properties": {
                    "form_id": {
                        "type": "string",
                        "title": "Form ID"
                    },
                    "form_description": {
                        "type": "string",
                        "title": "Form Description"
                    },
                    "form_title": {
                        "type": "string",
                        "title": "Form Title"
                    },
                    "form_name": {
                        "type": "string",
                        "title": "Form Name"
                    },
                    "original_form_name": {
                        "type": "string",
                        "title": "Original Form Name"
                    },
                    "form_url": {
                        "type": "string",
                        "title": "Form URL"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "title": "Updated At"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "title": "Created At"
                    },
                    "last_filled_at": {
                        "type": "string",
                        "format": "date-time",
                        "title": "Last Filled At"
                    },
                    "file_size": {
                        "type": "integer",
                        "title": "File Size"
                    },
                    "fillable_field_count": {
                        "type": "integer",
                        "title": "Fillable Field Count"
                    },
                    "source_document_details": {
                        "type": "array",
                        "title": "Source Document Details",
                        "items": {
                            "type": "object",
                            "properties": {
                                "file_key": {
                                    "type": "string"
                                },
                                "external_document_id": {
                                    "type": "string"
                                },
                                "document_id": {
                                    "type": "string"
                                },
                                "extension": {
                                    "type": "string"
                                },
                                "original_filename": {
                                    "type": "string"
                                },
                                "metadata": {
                                    "type": "object",
                                    "additionalProperties": {}
                                },
                                "created_at": {
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "updated_at": {
                                    "type": "string",
                                    "format": "date-time"
                                }
                            }
                        }
                    }
                },
                "type": "object",
                "required": [
                    "form_id",
                    "form_name",
                    "original_form_name",
                    "created_at",
                    "updated_at"
                ],
                "title": "DocumentUpdateResponse"
            },
            "FileType": {
                "type": "string",
                "enum": [
                    "PDF",
                    "IMAGE",
                    "OTHER"
                ],
                "title": "FileType"
            },
            "FormBaseResponse": {
                "properties": {
                    "form_id": {
                        "type": "string",
                        "title": "Form Id"
                    },
                    "form_description": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Description"
                    },
                    "form_title": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Title"
                    },
                    "form_name": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Name"
                    },
                    "original_form_name": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Original Form Name"
                    },
                    "form_url": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Url"
                    },
                    "updated_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Updated At"
                    },
                    "created_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Created At"
                    },
                    "last_filled_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Last Filled At"
                    },
                    "file_size": {
                        "anyOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "File Size"
                    },
                    "fillable_field_count": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Fillable Field Count"
                    }
                },
                "type": "object",
                "required": [
                    "form_id"
                ],
                "title": "FormBaseResponse"
            },
            "FormBaseUpdate": {
                "properties": {
                    "form_description": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Description"
                    },
                    "form_title": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Title"
                    },
                    "source_document_ids": {
                        "anyOf": [
                            {
                                "items": {
                                    "type": "string"
                                },
                                "type": "array"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Source Document Ids"
                    }
                },
                "type": "object",
                "title": "FormBaseUpdate"
            },
            "FormDetailedResponse": {
                "properties": {
                    "form_id": {
                        "type": "string",
                        "title": "Form Id"
                    },
                    "form_description": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Description"
                    },
                    "form_title": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Title"
                    },
                    "form_name": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Name"
                    },
                    "original_form_name": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Original Form Name"
                    },
                    "form_url": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Form Url"
                    },
                    "updated_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Updated At"
                    },
                    "created_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Created At"
                    },
                    "last_filled_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Last Filled At"
                    },
                    "file_size": {
                        "anyOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "File Size"
                    },
                    "fillable_field_count": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Fillable Field Count"
                    },
                    "source_document_details": {
                        "items": {
                            "$ref": "#/components/schemas/SourceDocumentDetail"
                        },
                        "type": "array",
                        "title": "Source Document Details"
                    }
                },
                "type": "object",
                "required": [
                    "form_id",
                    "source_document_details"
                ],
                "title": "FormDetailedResponse"
            },
            "HTTPValidationError": {
                "properties": {
                    "detail": {
                        "items": {
                            "$ref": "#/components/schemas/ValidationError"
                        },
                        "type": "array",
                        "title": "Detail"
                    }
                },
                "type": "object",
                "title": "HTTPValidationError"
            },
            "MultipleFormResponse": {
                "properties": {
                    "total_pages": {
                        "type": "integer",
                        "title": "Total Pages"
                    },
                    "forms": {
                        "items": {
                            "$ref": "#/components/schemas/FormBaseResponse"
                        },
                        "type": "array",
                        "title": "Forms"
                    }
                },
                "type": "object",
                "required": [
                    "total_pages",
                    "forms"
                ],
                "title": "MultipleFormResponse"
            },
            "PaginatedDocumentResponse": {
                "properties": {
                    "page": {
                        "type": "integer",
                        "title": "Page"
                    },
                    "total_pages": {
                        "type": "integer",
                        "title": "Total Pages"
                    },
                    "documents": {
                        "items": {
                            "$ref": "#/components/schemas/DocumentResponse"
                        },
                        "type": "array",
                        "title": "Documents"
                    }
                },
                "type": "object",
                "required": [
                    "page",
                    "total_pages",
                    "documents"
                ],
                "title": "PaginatedDocumentResponse"
            },
            "PaginatedTasks": {
                "properties": {
                    "page": {
                        "type": "integer",
                        "title": "Page"
                    },
                    "total_pages": {
                        "type": "integer",
                        "title": "Total Pages"
                    },
                    "tasks": {
                        "items": {
                            "$ref": "#/components/schemas/TaskResponse"
                        },
                        "type": "array",
                        "title": "Tasks"
                    }
                },
                "type": "object",
                "required": [
                    "page",
                    "total_pages",
                    "tasks"
                ],
                "title": "PaginatedTasks"
            },
            "SignaturePresignedUrlResponse": {
                "properties": {
                    "signature_key": {
                        "type": "string",
                        "title": "Signature Key"
                    },
                    "presigned_url": {
                        "type": "string",
                        "title": "Presigned Url"
                    },
                    "expires_in": {
                        "type": "integer",
                        "title": "Expires In",
                        "default": 3600
                    }
                },
                "type": "object",
                "required": [
                    "signature_key",
                    "presigned_url"
                ],
                "title": "SignaturePresignedUrlResponse"
            },
            "SourceDocumentDetail": {
                "properties": {
                    "file_key": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "File Key"
                    },
                    "external_document_id": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "External Document Id"
                    },
                    "document_id": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Document Id"
                    },
                    "extension": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Extension"
                    },
                    "original_filename": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Original Filename"
                    },
                    "metadata": {
                        "anyOf": [
                            {
                                "additionalProperties": true,
                                "type": "object"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Metadata"
                    },
                    "created_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Created At"
                    },
                    "updated_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Updated At"
                    }
                },
                "type": "object",
                "title": "SourceDocumentDetail"
            },
            "TaskCreateResponse": {
                "properties": {
                    "task_id": {
                        "type": "string",
                        "title": "Task Id"
                    },
                    "status": {
                        "$ref": "#/components/schemas/TaskStatus",
                        "default": "processing"
                    }
                },
                "type": "object",
                "required": [
                    "task_id",
                    "status"
                ],
                "title": "TaskCreateResponse"
            },
            "TaskResponse": {
                "properties": {
                    "task_id": {
                        "type": "string",
                        "title": "Task Id",
                        "description": "Task ID who owns the task"
                    },
                    "task_type": {
                        "$ref": "#/components/schemas/TaskType",
                        "default": "document-upload"
                    },
                    "status": {
                        "$ref": "#/components/schemas/TaskStatus",
                        "default": "processing"
                    },
                    "progress": {
                        "type": "integer",
                        "maximum": 100.0,
                        "minimum": 0.0,
                        "title": "Progress",
                        "default": 0
                    },
                    "result_data": {
                        "anyOf": [
                            {
                                "additionalProperties": true,
                                "type": "object"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Result Data",
                        "description": "JSON result of the task"
                    },
                    "error_message": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Error Message"
                    },
                    "estimated_completion": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Estimated Completion"
                    },
                    "document_id": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Document Id",
                        "description": "Document ID who owns the task"
                    },
                    "updated_at": {
                        "anyOf": [
                            {
                                "type": "string",
                                "format": "date-time"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "title": "Updated At"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "title": "Created At"
                    }
                },
                "type": "object",
                "required": [
                    "task_id",
                    "created_at"
                ],
                "title": "TaskResponse"
            },
            "TaskStatus": {
                "type": "string",
                "enum": [
                    "pending",
                    "processing",
                    "completed",
                    "failed"
                ],
                "title": "TaskStatus"
            },
            "TaskType": {
                "type": "string",
                "enum": [
                    "document-upload",
                    "autofill",
                    "digital_form_creation"
                ],
                "title": "TaskType"
            },
            "UploadDocumentUrlRequest": {
                "properties": {
                    "url": {
                        "type": "string",
                        "maxLength": 2083,
                        "minLength": 1,
                        "format": "uri",
                        "title": "Url"
                    }
                },
                "type": "object",
                "required": [
                    "url"
                ],
                "title": "UploadDocumentUrlRequest"
            },
            "ValidationError": {
                "properties": {
                    "loc": {
                        "items": {
                            "anyOf": [
                                {
                                    "type": "string"
                                },
                                {
                                    "type": "integer"
                                }
                            ]
                        },
                        "type": "array",
                        "title": "Location"
                    },
                    "msg": {
                        "type": "string",
                        "title": "Message"
                    },
                    "type": {
                        "type": "string",
                        "title": "Error Type"
                    }
                },
                "type": "object",
                "required": [
                    "loc",
                    "msg",
                    "type"
                ],
                "title": "ValidationError"
            }
        },
        "securitySchemes": {
            "OAuth2PasswordBearer": {
                "type": "oauth2",
                "flows": {
                    "password": {
                        "scopes": {},
                        "tokenUrl": "auth/jwt/login"
                    }
                }
            },
            "APIKeyCookie": {
                "type": "apiKey",
                "in": "cookie",
                "name": "Authorization"
            },
            "APIKeyHeader": {
                "type": "apiKey",
                "in": "header",
                "name": "X-API-Key"
            }
        }
    }
}
