{
    "openapi": "3.1.0",
    "info": {
        "title": "iLoveAPI REST API",
        "version": "1.0",
        "contact": {
            "name": "iLoveAPI Support",
            "url": "https://www.iloveapi.com/contact"
        },
        "x-scalar-sdk-installation": [
            {
                "lang": "PHP",
                "description": "Official PHP library, [ilovepdf/ilovepdf-php](https://github.com/ilovepdf/ilovepdf-php) (PDF and Signature; images with ilovepdf/iloveimg-php).",
                "source": "composer require ilovepdf/ilovepdf-php"
            },
            {
                "lang": "Node.js",
                "description": "Official Node.js library, [ilovepdf/ilovepdf-nodejs](https://github.com/ilovepdf/ilovepdf-nodejs) (PDF and Signature).",
                "source": "npm install @ilovepdf/ilovepdf-nodejs"
            },
            {
                "lang": "Python",
                "description": "Official Python library, [ilovepdf/ilovepdf-python](https://github.com/ilovepdf/ilovepdf-python) (PDF and Signature; images with iloveimg).",
                "source": "pip install ilovepdf"
            },
            {
                "lang": "C#",
                "description": "Official .NET library, [ilovepdf/ilovepdf-net](https://github.com/ilovepdf/ilovepdf-net) (PDF and Signature; images with iLoveIMG).",
                "source": "dotnet add package ILove_PDF"
            },
            {
                "lang": "Ruby",
                "description": "Official Ruby library, [ilovepdf/ilovepdf-ruby](https://github.com/ilovepdf/ilovepdf-ruby) (PDF and Signature).",
                "source": "gem install ilovepdf"
            }
        ],
        "description": "# Introduction\n\nThe iLoveAPI API is organized around the [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer)\nstandard, having a predictable resource-oriented URLs through\n[HTTP methods](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods) where obtain the\ninformation in [JSON](http://www.json.org/) format.\n\nWe support [cross-origin resource sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing),\nallowing you to interact securely with our API from a client-side. Although you should never expose your\nsecret API key in the client-side code.\n\nTo start developing, [register to iLoveAPI Developers](/signup) and you will be provided with a free account.\nThis account comes with 2,500 free credits to use each month. However, if you need more, you can\nacquire more credits from our [Pricing page](/pricing).\n\n| PDF & Signature Libraries | |\n|---|---|\n| **PHP** | [See on GitHub](https://github.com/ilovepdf/ilovepdf-php) |\n| **.Net** | [See on GitHub](https://github.com/ilovepdf/ilovepdf-net) |\n| **Ruby** | [See on GitHub](https://github.com/ilovepdf/ilovepdf-ruby) |\n| **Node.js** | [See on GitHub](https://github.com/ilovepdf/ilovepdf-nodejs) |\n| **Python** | [See on GitHub](https://github.com/ilovepdf/ilovepdf-python) |\n\n| Image Libraries | |\n|---|---|\n| **PHP** | [See on GitHub](https://github.com/ilovepdf/iloveimg-php) |\n| **.Net** | [See on GitHub](https://github.com/ilovepdf/iloveimg-net) |\n| **Python** | [See on GitHub](https://github.com/ilovepdf/iloveimg-python) |\n\n# Quick Start\n\nThis Reference is for developers who wish to create their own API library or for those who don't find their\npreferred library in our library compatibility list. The quickest way to start using our API is to:\n\n- [Register as a developer](/signup).\n- Get a Project ID and its related Secret Key from the [API Keys](/user/projects) section of your console.\n- Download one of our API Libraries.\n- Try out our demos in the API Library.\n- Lastly, remember to read this documentation!\n\nIf you have any comments or suggestions for this documentation or the API, please don’t hesitate to\n[contact us](/contact).\n\n# Authentication\n\nYou can authenticate in two ways: with an **API key header** (the simplest, for server-side code) or with a\n**JWT signed token**. Both work on every authenticated endpoint; if a request has an `Authorization` header,\nthe token is used.\n\n## API key header\n\nSend your project **secret key** in the `X-Api-Key` header of every request. There is no token to sign or\nrenew:\n\n```bash\ncurl https://api.ilovepdf.com/v1/start/compress \\\n  -H \"X-Api-Key: secret_key_...\"\n```\n\nUse it only from your servers, over HTTPS, and keep the key out of browsers, apps and repositories: whoever\nhas it can use your credits. The key is only read from the header (never from the URL or the body), and if a\nrequest also sends an `Authorization` header, that token is used instead. It is not accepted for projects\nrestricted by domain (use a signed token there). For projects restricted by IP, it only works from the allowed\nIPs: a good way to limit what a leaked key can do. If a key is exposed, create a new project in your console\nand delete the old one.\n\n## JWT signed token\n\nWe are using a very simple but effective Authentication method: [JWT](https://jwt.io/), **JSON Web Tokens**.\nIt consists of sending a Bearer Header in every request with a signed token by your Secret Key provided in\nyour iLoveAPI API Developer Account. Your Secret Key may never be exposed, but the signed token can be exposed\nand you must send it in every header request parameter `Authorization: Bearer {signed_token}`. Take into\naccount that all signed tokens expire after 1 hour. All our API Libraries manage the authentication\nautomatically. You only need to set your Private Key and your Public Key in the API Library.\n\nIf you are developing your own library/requests, there are two methods for getting the signed token. One\nmethod is by **self signing it** (recommended for server side code) and the other is by **requesting it to\nour Authentication server** (recommended for client side code).\n\n### Self-signed token\n\nYou must use your secret and public key pair to generate the signed token to send in to the\n`Authorization: Bearer {signed_token}` header of every request. You can find the JWT libraries directly on\nthe [JWT](https://jwt.io/) official website. Remember: The claims *exp*, *nbf* and *iat* must be in\n**UTC timezone**.\n\n### Request signed token from our authentication server\n\nWhen you send a request to the /auth resource, you will receive the token to use in your\n`Authorization: Bearer {signed_token}` that you'll send in every request (**/start, /upload, /process,\n/download**). We strongly recommend that you activate filters by domain and IP if you need to request the\ntoken from our /auth server. This way, only the requests made from the domains you set will be accepted.\nRemember that the token has an expiration date and must be requested again.\n\nSee the **Authenticate** endpoint (`POST https://api.ilovepdf.com/v1/auth`) for its parameters and response.\n\n# Request workflow\n\nThe PDF and Image processing workflow with iLoveAPI is very simple and consists of 4 basic request\ninstructions: **Start task**, **Upload files**, **Process files** and **Download files** (see the **Start**,\n**Upload**, **Process** and **Download** endpoints). Once the API has executed these four steps, your PDF and\nImage files will have been processed with your desired tool and downloaded anywhere you like.\n\nBelow you will see a complete reference to these 4 requests and the parameters for each step.\n\n![Workflow diagram](/img/workflow_api.svg)\n\n# Security\n\nAs an API user, you will only have access to your tasks and files. The original and processed files are\ndeleted after an hour (depending on your tier, it can be more). After processing and downloading the output\nfiles you can also remove the task and the files involved in the process.\n\n## Rate Limiting\n\nAll endpoints are subject to API rate limiting, depending on the tier. As part of every response, the HTTP\nheaders will show your current rate limit status.\n\n## Open task limitation\n\nThe number of tasks that can be opened at one time is limited to 10% of your monthly subscription’s file\nlimits. If you reach this limit of opened tasks, an error will be sent warning you to close tasks (by\nprocessing or destroying them). Note that a task is opened from the moment an Upload is made until the\nProcess is executed, with the exception of password-protected files; in this case, the task will be closed\nwhen the Process can be completed with a correct password.\n\n## IP and domain filtering\n\nDepending on the tier you have, you can configure from where your API request must be allowed. All API\nrequests coming from other domains or IP that are not configured will be rejected.\n\n# Errors\n\niLoveAPI API uses conventional HTTP response codes to indicate the success or failure of an API request.\nIn general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed\ndue to the information provided (e.g. a required parameter was omitted, a process failed, etc.), and codes\nin the 5xx range indicate an error with iLoveAPI's servers. All error responses have the same structure, and\nyou’ll find all the arguments and errors specified in the param.\n\nFor ProcessingError in the param, you'll expect an Array of failed files and the reason for failure. When\nthe error is a 400 Bad request we can specify which type of error we are giving (see the **Error 400 types**\ntable below).\n\nThe error response format is described by the `Error` schema.\n\n## HTTP Error codes\n\n| Attribute | Description |\n|---|---|\n| **type** | The type of error returned. Can be: *HTTP Error*, *UploadError*, *ProcessingError*, *DownloadError*. |\n| **message**<br>optional | A human-readable message providing more details about the error. |\n| **code**<br>optional | HTTP Error code. |\n| **param**<br>optional | The parameter the error relates to if the error is parameter-specific. You can use this to display a message near the correct form field, for example. |\n\n| HTTP Error Codes | Description |\n|---|---|\n| **200 - OK** | Everything worked as expected. |\n| **400 - Bad Request** | The request was unacceptable, often due to missing a required parameter. |\n| **401 - Unauthorized** | No valid API key provided or not correct. |\n| **404 - Not found** | The requested resource doesn't exist. |\n| **429 - Too many requests** | Too many requests hit the API too quickly. We recommend an exponential backoff of your requests. |\n| **5xx - Server Errors** | Something went wrong on our API's end |\n\n| Error 400 types | Description |\n|---|---|\n| **UploadError** | Some parameter or the file is missed in the request or something went wrong. |\n| **ProcessingError** | Some parameter is missed in the request or the process was unsuccessful. |\n| **DownloadError** | The file may have already been removed or has expired. |\n\n# Credit consumption\n\n## How does credit consumption work?\n\niLovePDF’s subscriptions and pre-paid packages work using credits. These credits allow you to\n*process files*, use *Digital Signatures*, and add *SMS authentication* to Signature Requests.\n\nIn your monthly subscription, you can use a specific number of credits that are automatically renewed each\nmonth.\n\nAlternatively, or in addition to your monthly subscription, you can purchase pre-paid packages. Packages\nprovide you with additional credits to get the job done. Credits in your packages don’t expire, so you can\nuse them at any time from your account.\n\nCredits will always be consumed from your subscription first.\n\n## How are the credits consumed?\n\niLovePDF provides credits for *PDF & Image* processing, *Digital Signatures*, and *SMS authentication*.\nDepending on the tool, the credits consumed vary based on number of files, number of tasks or number of\npages. Please refer to the [pricing page](/pricing#credits) for detailed information.\n\n# Webhooks\n\nYou can configure the specific URLs to which you want to receive webhooks, ensuring that each event type is\ndirected to the appropriate endpoint within your application from your user area. Additionally, you have the\nflexibility to select which events your webhook should subscribe to, allowing you to tailor the\nnotifications to suit your application’s needs. This configurability ensures precise and relevant data\ndelivery, optimizing your system's interaction with our platform.\n\nAll of the webhooks have the same structure, a JSON with two keys: \"event\" and \"data\". The event is the\nevent name which is being sent, and \"data\" is the event related data.\n\nResponse example:\n\n```json\n{\n    \"event\": \"signature.created\",\n    \"data\": {\n        \"signature\": {\n            .....\n        }\n    }\n}\n```\n\n### Task webhooks\n\nThe tasks haves two related events, **\"task.completed\"** and **\"task.fail\"**. The \"data\" field always\ncontains the \"task\" key, which contains information similar to the following example:\n\nTask response example:\n\n```json\n{\n  \"event\": \"task.completed\",\n  \"data\": {\n    \"task\": {\n      \"tool\": \"compress\",\n      \"process_start\": \"2024-06-17 10:18:17\",\n      \"custom_int\": null,\n      \"custom_string\": null,\n      \"status\": \"TaskSuccess\",\n      \"status_message\": \"This task has been processed successfully.\",\n      \"timer\": \"0.206\",\n      \"filesize\": 13264,\n      \"output_filesize\": 9792,\n      \"output_filenumber\": 1,\n      \"output_extensions\": [\n        \"pdf\"\n      ],\n      \"server\": \"api70.ilovepdf.com\",\n      \"task\": \"xxxxxxxxxxxxxxxxxxxxxxxxx\",\n      \"file_number\": \"1\",\n      \"download_filename\": \"server.pdf\"\n    }\n  }\n}\n```\n\n### Signature event\n\nAll signature related events contains one mandatory key: \"signature\", which contains the same information\nas if you used the API call of **Get signature status** (see the Signatures endpoints).\n\nAdditionally, if an event is directly related to a signer / validator / witness, it also includes an\nadditional key called \"signed\", the result of which is the same as the API call **Get receiver info** (see\nthe Signatures endpoints).\n\nSignature response example:\n\n```json\n{\n  \"event\": \"signature.signer.completed\",\n  \"data\": {\n    \"signature\": {\n      \"expired\": false,\n      \"lock_order\": false,\n      \"expiring\": false,\n      \"notes\": null,\n      \"brand_name\": null,\n      \"language\": null,\n      \"subject_cc\": null,\n      \"message_signer\": null,\n      \"subject_signer\": null,\n      \"token_requester\": \"xxxxxxxxxxxxx\",\n      \"created\": \"2024-06-17 12:02:59\",\n      \"completed_on\": \"2024-06-17 12:39:34\",\n      \"expires\": \"2024-10-25 13:00:00\",\n      \"status\": \"completed\",\n      \"name\": \"test\",\n      \"email\": \"test@isfjdijasdifjdasfadsf.com\",\n      \"uuid_visible\": true,\n      \"certified\": true,\n      \"signer_reminders\": true,\n      \"signer_reminder_days_cycle\": 2,\n      \"verify_enabled\": true,\n      \"uuid\": \"9B41A389-6645-45FB-A72D-3A19CC3EF9F9\",\n      \"mode\": \"multiple\",\n      \"files\": [\n        {\n          \"filename\": \"a.pdf\",\n          \"pages\": 62,\n          \"filesize\": 2617649\n        }\n      ]\n    },\n    \"signer\": {\n      \"uuid\": \"5E4E6228-CF1E-4533-BC85-4FA660117EF5\",\n      \"name\": \"asdfadsfafas\",\n      \"email\": \"test2@8usijfas9yudsfsdf.com\",\n      \"phone\": null,\n      \"phone_retries_left\": 1,\n      \"type\": \"signer\",\n      \"token_requester\": \"xxxxxxxxxxxxxxxxxxx\",\n      \"status\": \"signed\",\n      \"access_code\": false,\n      \"force_signature_type\": \"all\",\n      \"notes\": null,\n      \"fix_email_needed\": false,\n      \"fix_phone_needed\": false\n    }\n  }\n}\n```\n\n# Fonts compatibility\n\nFor tools such as Add Page Numbers and Add Watermark, which allow you to set a font family for its content,\nthere is a list of compatible fonts to use with any alphabet. Take into account that if you use a font which\nisn’t on this list, it could cause spelling issues.\n\n| Alphabet | Font | Styles |\n|---|---|---|\n| Latin, Cirillic and Greek alphabets | **Arial** | Regular, Bold, Italic, Bold Italic |\n| Latin, Cirillic and Greek alphabets | **Courier** | Regular, Bold, Italic, Bold Italic |\n| Latin, Cirillic and Greek alphabets | **Times New Roman** | Regular, Bold, Italic, Bold Italic |\n| Latin, Cirillic and Greek alphabets | **Verdana** | Regular, Bold, Italic, Bold Italic |\n| Latin, Cirillic and Greek alphabets | **Comic Sans MS** | Regular, Bold |\n| Arabic alphabet | **Arial** | Regular |\n| Arabic alphabet | **Courier** | Regular |\n| Arabic alphabet | **Times New Roman** | Regular |\n| Chinese, Japanese and Korean alphabets | **WenQuanYi Zen Hei** | Regular |\n| Chinese, Japanese and Korean alphabets | **Arial Unicode MS** | Regular |\n| Hindi alphabets | **Lohit Marathi** | Regular |\n| Hindi alphabets | **Lohit Devanagari** | Regular |"
    },
    "servers": [
        {
            "url": "https://api.ilovepdf.com",
            "description": "Main API server (authentication and task start)"
        }
    ],
    "security": [
        {
            "bearerAuth": []
        },
        {
            "apiKeyAuth": []
        }
    ],
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "bearerFormat": "JWT",
                "description": "JWT token obtained from the `/v1/auth` endpoint or self-signed with your project secret key. Send it as `Authorization: Bearer {token}`."
            },
            "apiKeyAuth": {
                "type": "apiKey",
                "in": "header",
                "name": "X-Api-Key",
                "description": "Your project secret key, sent as `X-Api-Key: {secret_key}`. For server-side code only: never use it in browsers or apps. Not accepted together with an `Authorization` header, nor for projects restricted by domain; for projects restricted by IP, it only works from the allowed IPs."
            }
        },
        "schemas": {
            "Error": {
                "type": "object",
                "description": "All error responses have the same structure, and you’ll find all the arguments and errors specified in the\nparam. For ProcessingError in the param, you'll expect an Array of failed files and the reason for failure.\nSee the **Errors** section.\n",
                "required": [
                    "type"
                ],
                "properties": {
                    "type": {
                        "type": "string",
                        "description": "The type of error returned. Can be: *HTTP Error*, *UploadError*, *ProcessingError*, *DownloadError*.",
                        "examples": [
                            "HTTP Error",
                            "UploadError",
                            "ProcessingError",
                            "DownloadError"
                        ]
                    },
                    "message": {
                        "type": "string",
                        "description": "A human-readable message providing more details about the error."
                    },
                    "code": {
                        "type": "integer",
                        "description": "HTTP Error code."
                    },
                    "param": {
                        "type": [
                            "string",
                            "object",
                            "array"
                        ],
                        "description": "The parameter the error relates to if the error is parameter-specific. You can use this to display a\nmessage near the correct form field, for example. For ProcessingError, an Array of failed files and the\nreason for failure.\n"
                    }
                }
            },
            "WebhookTaskPayload": {
                "title": "Task webhook payload",
                "type": "object",
                "description": "The tasks haves two related events, `task.completed` and `task.fail`. The \"data\" field always contains\nthe \"task\" key, which contains information similar to the example.\n",
                "properties": {
                    "event": {
                        "type": "string",
                        "enum": [
                            "task.completed",
                            "task.fail"
                        ],
                        "description": "The event name which is being sent."
                    },
                    "data": {
                        "type": "object",
                        "description": "The event related data.",
                        "properties": {
                            "task": {
                                "type": "object",
                                "properties": {
                                    "tool": {
                                        "type": "string"
                                    },
                                    "process_start": {
                                        "type": "string"
                                    },
                                    "custom_int": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "custom_string": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "status": {
                                        "type": "string"
                                    },
                                    "status_message": {
                                        "type": "string"
                                    },
                                    "timer": {
                                        "type": "string"
                                    },
                                    "filesize": {
                                        "type": "integer"
                                    },
                                    "output_filesize": {
                                        "type": "integer"
                                    },
                                    "output_filenumber": {
                                        "type": "integer"
                                    },
                                    "output_extensions": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "server": {
                                        "type": "string"
                                    },
                                    "task": {
                                        "type": "string"
                                    },
                                    "file_number": {
                                        "type": "string"
                                    },
                                    "download_filename": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "example": {
                    "event": "task.completed",
                    "data": {
                        "task": {
                            "tool": "compress",
                            "process_start": "2024-06-17 10:18:17",
                            "custom_int": null,
                            "custom_string": null,
                            "status": "TaskSuccess",
                            "status_message": "This task has been processed successfully.",
                            "timer": "0.206",
                            "filesize": 13264,
                            "output_filesize": 9792,
                            "output_filenumber": 1,
                            "output_extensions": [
                                "pdf"
                            ],
                            "server": "api70.ilovepdf.com",
                            "task": "xxxxxxxxxxxxxxxxxxxxxxxxx",
                            "file_number": "1",
                            "download_filename": "server.pdf"
                        }
                    }
                }
            },
            "ProcessBase": {
                "type": "object",
                "title": "Common process parameters",
                "x-legacy-anchors": [
                    "ignore_errors",
                    "ignore_password",
                    "output_filename",
                    "packaged_filename",
                    "file_encryption_key"
                ],
                "description": "Parameters common to every tool of the Process resource. Each tool adds its extra parameters.",
                "required": [
                    "task",
                    "tool",
                    "files"
                ],
                "properties": {
                    "task": {
                        "type": "string",
                        "description": "Task ID to be processed."
                    },
                    "tool": {
                        "type": "string",
                        "description": "Accepted values for **PDF tools**: `merge`, `split`, `splitsmart`, `compress`, `pdfocr`, `pdfjpg`,\n`imagepdf`, `unlock`, `pagenumber`, `watermark`, `officepdf`, `repair`, `rotate`, `protect`, `pdfa`,\n`validatepdfa`, `htmlpdf`, `extract`, `summarize`, `pdfmarkdown`, `editpdf`, `formsdetect`,\n`organize`, `translate`.\n\n**Image tools**: `resizeimage`, `cropimage`, `compressimage`, `upscaleimage`, `removebackgroundimage`,\n`convertimage`, `watermarkimage`, `repairimage`, `rotateimage`, `htmlimage`, `blurfaceimage`.\n\nEach tool's schema (PDF tools / Image tools) fixes the exact `tool` value and lists its extra parameters.\n"
                    },
                    "files": {
                        "type": "array",
                        "description": "Files to process. The order of the array will be the order that files will be processed. The files has the following attributes: `server_filename`, `filename`, `rotate`, `password`.",
                        "items": {
                            "type": "object",
                            "x-legacy-anchors": [
                                "rotate",
                                "password"
                            ],
                            "description": "A file to process.",
                            "required": [
                                "server_filename",
                                "filename"
                            ],
                            "properties": {
                                "server_filename": {
                                    "type": "string",
                                    "description": "Server file name."
                                },
                                "filename": {
                                    "type": "string",
                                    "description": "Original filename of the file to process."
                                },
                                "rotate": {
                                    "type": "integer",
                                    "description": "Rotation to apply before process. Accepted values: `0`, `90`, `180`, `270`.",
                                    "enum": [
                                        0,
                                        90,
                                        180,
                                        270
                                    ],
                                    "default": 0
                                },
                                "password": {
                                    "type": "string",
                                    "description": "Password to open the file in case of having one."
                                }
                            }
                        }
                    },
                    "meta": {
                        "type": "object",
                        "description": "Optional PDF metadata information which can be inserted or modified. Type: `object<{[key: string]: string}>`.",
                        "additionalProperties": {
                            "type": "string"
                        },
                        "properties": {
                            "Title": {
                                "type": "string",
                                "description": "The title of the document."
                            },
                            "Author": {
                                "type": "string",
                                "description": "The name of the person who created the document."
                            },
                            "Subject": {
                                "type": "string",
                                "description": "The subject of the document."
                            },
                            "Keywords": {
                                "type": "string",
                                "description": "Keywords associated with the document."
                            },
                            "Creator": {
                                "type": "string",
                                "description": "If the document was converted to PDF from another format, the name of the application that created the original document from which it was converted."
                            },
                            "Producer": {
                                "type": "string",
                                "description": "If the document was converted to PDF from another format, the name of the application that converted it to PDF."
                            },
                            "CreationDate": {
                                "type": "string",
                                "description": "The date and time the document was created, in human-readable form."
                            },
                            "ModDate": {
                                "type": "string",
                                "description": "The date and time the document was most recently modified, in human-readable form."
                            },
                            "Trapped": {
                                "type": "string",
                                "description": "A name object indicating whether the document has been modified to include trapping information. Values `true`, `false` or `unknown`.",
                                "enum": [
                                    "true",
                                    "false",
                                    "unknown"
                                ]
                            }
                        }
                    },
                    "ignore_errors": {
                        "type": "boolean",
                        "default": true,
                        "description": "Force process although some of the files are damaged or throw an error. If damaged/error files are equal to total files to process, this value does not take effect. On successful response, all files with errors will be listed as warnings. Values: `true`, `false`."
                    },
                    "ignore_password": {
                        "type": "boolean",
                        "default": false,
                        "description": "Force process although some of the files require a password. If files that require a password are equal to total files to process, this value does not take effect. Values: `true`, `false`."
                    },
                    "output_filename": {
                        "type": "string",
                        "description": "`{date}`=current date, `{n}`=file number, `{filename}`=original filename, `{tool}`=the current processing action. **Example:** `file_{n}_{date}`.",
                        "example": "file_{n}_{date}"
                    },
                    "packaged_filename": {
                        "type": "string",
                        "default": "output",
                        "description": "If there are more than one output files, they will be compressed into a ZIP file. Specify the filename of the compressed file. `{date}`=current date, `{n}`=file number, `{filename}`=original filename, `{tool}`=the current processing action. **Example:** `file_{n}_{date}`.",
                        "example": "file_{n}_{date}"
                    },
                    "try_pdf_repair": {
                        "type": "boolean",
                        "default": true,
                        "description": "When a PDF file fails to be processed, we try to repair it automatically."
                    },
                    "custom_int": {
                        "type": "integer",
                        "description": "Use this parameter to store integers as you wish. You can use it to filter your tasks in the GET **/task** resource."
                    },
                    "custom_string": {
                        "type": "string",
                        "description": "Use this parameter to store integers as you wish. You can use it to filter your tasks in the GET **/task** resource."
                    },
                    "webhook": {
                        "type": "string",
                        "description": "Callback URL. If you don't want to maintain the connection open until the task processing is finished,\nsend webhook equal and a valid URL. The API will close the connection immediately and will POST all the\n/task resource information to the URL provided. Optionally this parameter can be equal to *empty\nstring*. When is equal to *empty string*, the behaviour will be the same but no callback will be sent,\nthis is useful if you don't want to wait the process to end or receive callbacks giving you the freedom\nof send periodic GET calls to **/task/{task}** to know the status of that task and if it has been\ncompleted.\n\n> **Note:** For security reasons, you need to register the webhook endpoint in your\n> [dashboard](https://www.iloveapi.com/user/webhooks).\n"
                    }
                }
            },
            "TaskStatus": {
                "type": "string",
                "title": "Task status types",
                "description": "| Status | Meaning |\n|---|---|\n| **TaskWaiting** | Files for the task have been uploaded but processing order has not been received yet |\n| **TaskProcessing** | The task is currently processing files. |\n| **TaskSuccess** | The task has already been processed successfully. |\n| **TaskSuccessWithWarnings** | The task has already been processed successfully with warnings. |\n| **TaskError** | The task has been processed unsuccessfully. |\n| **TaskDeleted** | The task has already been deleted. |\n| **TaskNotFound** | Task not found. |\n",
                "enum": [
                    "TaskWaiting",
                    "TaskProcessing",
                    "TaskSuccess",
                    "TaskSuccessWithWarnings",
                    "TaskError",
                    "TaskDeleted",
                    "TaskNotFound"
                ]
            },
            "FileStatus": {
                "type": "string",
                "title": "File status types",
                "description": "| Status | Meaning |\n|---|---|\n| **FileSuccess** | This file has been processed successfully. |\n| **FileWaiting** | This file is waiting to be processed. |\n| **WrongPassword** | This file has not been processed because needed a password and was not provided or incorrect. |\n| **TimeOut** | This file has not been processed correctly because it took more than your time limit to process it. |\n| **ServerFileNotFound** | This file has not been processed because has not been found in the server. |\n| **DamagedFile** | This file has not been processed because it was damaged or we were unable to read it. |\n| **NoImages** | This file has not been processed because we couldn't find any images to extract. Maybe there are vectors? |\n| **NoImagesPagesConverted** | PDF to JPG in `extract` mode: no images to extract, so the pages were converted to images instead. The file is processed and the task includes this warning. |\n| **OutOfRange** | This file has not been processed because some of the ranges do not match the number of pages. |\n| **NonConformant** | PDF file validation has not passed against PDF/A conformance provided. |\n| **UnknownError** | Unknown Error. |\n",
                "enum": [
                    "FileSuccess",
                    "FileWaiting",
                    "WrongPassword",
                    "TimeOut",
                    "ServerFileNotFound",
                    "DamagedFile",
                    "NoImages",
                    "NoImagesPagesConverted",
                    "OutOfRange",
                    "NonConformant",
                    "UnknownError"
                ]
            },
            "TaskInfo": {
                "title": "Task information",
                "type": "object",
                "description": "Information about a task and the metadata related of its uploaded and result files. The legacy reference does not list the fields of this object.",
                "additionalProperties": true,
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/TaskStatus"
                    }
                }
            },
            "ProcessMerge": {
                "title": "Merge PDF",
                "x-process-tool": "merge",
                "x-legacy-anchors": [
                    "merge-extra-parameters"
                ],
                "description": "Merge PDF has no extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "merge"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessSplit": {
                "title": "Split",
                "x-process-tool": "split",
                "x-legacy-anchors": [
                    "split-extra-parameters",
                    "ranges",
                    "fixed_range",
                    "remove_pages",
                    "merge_after"
                ],
                "description": "Split extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "split"
                            },
                            "split_mode": {
                                "type": "string",
                                "enum": [
                                    "ranges",
                                    "fixed_range",
                                    "remove_pages",
                                    "filesize"
                                ],
                                "default": "ranges",
                                "description": "Accepted values:\n\n- `ranges`: define different ranges of pages, `{ranges}` parameter is required.\n- `fixed_range`: define a fixed range of pages to split the PDF., `{fixed_range}` parameter is required.\n- `remove_pages`: remove pages from a PDF, `{remove_pages}` parameter is required.\n- `filesize`: split pdf in multiples pdf files with a maximum filesize per page range, `{filesize}` parameter is required.\n"
                            },
                            "ranges": {
                                "type": "string",
                                "description": "Page ranges to split the files. Every range will be saved as a different PDF file.\n\n**Example format:** `1,5,10-14`\n\nRequired if `split_mode` is `ranges`.\n",
                                "example": "1,5,10-14"
                            },
                            "fixed_range": {
                                "type": "integer",
                                "default": 1,
                                "description": "Page ranges to split the files. Every range will be saved as a different PDF file.\n\nRequired if `split_mode` is `fixed_range`.\n"
                            },
                            "remove_pages": {
                                "type": "string",
                                "description": "Pages to remove from a PDF. Accepted format: `1,4,8-12,16`.\n\nRequired if `split_mode` is `remove_pages`.\n",
                                "example": "1,4,8-12,16"
                            },
                            "merge_after": {
                                "type": "boolean",
                                "default": false,
                                "description": "Merge all ranges after being split. This param takes effect only when `{mode}` is `range`."
                            },
                            "filesize": {
                                "type": "integer",
                                "minimum": 1,
                                "description": "Maximum size of every output file, in **kilobytes** (KB, 1 KB = 1024 bytes). Decimal values are\nrounded to the nearest integer.\n\nRequired if `split_mode` is `filesize`.\n\n- The value must be at least half of the average page size of the input file\n  (`original filesize / number of pages / 2`); smaller values are rejected with a validation error\n  suggesting to compress the PDF first.\n- If the input file is already smaller than or equal to `filesize`, it is returned unchanged.\n- The PDF is split page by page and consecutive pages are grouped into parts\n  (`<filename>_part_<n>.pdf`) that do not exceed `filesize`. A single page that is still bigger than\n  the limit is returned as its own part, even if it exceeds `filesize`.\n",
                                "example": 2048
                            },
                            "allow_compress": {
                                "type": "boolean",
                                "default": true,
                                "description": "Only used when `split_mode` is `filesize`. If `true`, pages bigger than `filesize` are compressed\nbefore being grouped (up to the first 50 pages), and input files with more than 500 pages are\ncompressed before being split, to help keep every part under the limit. If `false`, pages are\nnever compressed.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessSplitsmart": {
                "title": "Smart Split",
                "x-process-tool": "splitsmart",
                "x-legacy-anchors": [
                    "smartsplit-extra-parameters"
                ],
                "description": "Smart Split extra parameters.\n\nSmart Split is an AI split: the PDF is divided into several PDF files according to the criteria given in\n`prompt`. Internally, a `splitsmart` request is processed as the Split tool (`tool=split`) with\n`split_mode=auto`. It consumes 10 credits per processed page.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "prompt"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "splitsmart"
                            },
                            "prompt": {
                                "type": "string",
                                "description": "Natural-language criteria describing how the document must be split.",
                                "example": "Split the document into one file per invoice"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessCompress": {
                "title": "Compress",
                "x-process-tool": "compress",
                "x-legacy-anchors": [
                    "compress-extra-parameters",
                    "compression_level"
                ],
                "description": "Compress extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "compress"
                            },
                            "compression_level": {
                                "type": "string",
                                "enum": [
                                    "extreme",
                                    "recommended",
                                    "low"
                                ],
                                "default": "recommended",
                                "description": "Compression level. Accepted values:\n\n- `extreme` = Extreme compression\n- `recommended` = Recommended compression\n- `low` = Low compression\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessPdfocr": {
                "title": "PDF OCR",
                "x-process-tool": "pdfocr",
                "x-legacy-anchors": [
                    "ocr-extra-parameters",
                    "ocr_languages"
                ],
                "description": "PDF OCR extra parameters.\n\nFiles with more than 1000 pages are rejected (`File too big`). Credits are charged per processed page:\n5 credits per page with `ocr_mode=standard` and 20 credits per page with `ocr_mode=advanced`.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "pdfocr"
                            },
                            "ocr_mode": {
                                "type": "string",
                                "enum": [
                                    "standard",
                                    "advanced"
                                ],
                                "default": "standard",
                                "description": "OCR engine to use.\n\n- `standard`: every page is rendered as an image at `dpi`, optionally pre-processed (`auto_rotate`,\n  `deskew`, `dewarp`, `color`) and recognized with the `ocr_languages`. 5 credits per page.\n- `advanced`: AI-based OCR engine. It uses `dpi`, `color`, `auto_rotate`, `deskew`, `dewarp` and\n  `textline_orientation`; `ocr_languages` is not used in this mode. 20 credits per page.\n"
                            },
                            "ocr_languages": {
                                "type": "array",
                                "description": "OCR languages to apply. A maximum of **3 languages** can be sent at the same time; more languages\nreturn a validation error.\n\nIn `standard` mode, `eng` is always added to the selected languages.\nA single language can also be sent as a plain value (`ocr_languages=spa`).\n",
                                "default": [
                                    "eng"
                                ],
                                "maxItems": 3,
                                "items": {
                                    "type": "string",
                                    "enum": [
                                        "eng",
                                        "afr",
                                        "amh",
                                        "ara",
                                        "asm",
                                        "aze",
                                        "aze_cyrl",
                                        "bel",
                                        "ben",
                                        "bod",
                                        "bos",
                                        "bre",
                                        "bul",
                                        "cat",
                                        "ceb",
                                        "ces",
                                        "chi_sim",
                                        "chi_tra",
                                        "chr",
                                        "cos",
                                        "cym",
                                        "dan",
                                        "deu",
                                        "deu_latf",
                                        "dzo",
                                        "ell",
                                        "enm",
                                        "epo",
                                        "equ",
                                        "est",
                                        "eus",
                                        "fao",
                                        "fas",
                                        "fil",
                                        "fin",
                                        "fra",
                                        "frm",
                                        "fry",
                                        "gla",
                                        "gle",
                                        "glg",
                                        "grc",
                                        "guj",
                                        "hat",
                                        "heb",
                                        "hin",
                                        "hrv",
                                        "hun",
                                        "hye",
                                        "iku",
                                        "ind",
                                        "isl",
                                        "ita",
                                        "ita_old",
                                        "jav",
                                        "jpn",
                                        "kan",
                                        "kat",
                                        "kat_old",
                                        "kaz",
                                        "khm",
                                        "kir",
                                        "kmr",
                                        "kor",
                                        "kor_vert",
                                        "lao",
                                        "lat",
                                        "lav",
                                        "lit",
                                        "ltz",
                                        "mal",
                                        "mar",
                                        "mkd",
                                        "mlt",
                                        "mon",
                                        "mri",
                                        "msa",
                                        "mya",
                                        "nep",
                                        "nld",
                                        "nor",
                                        "oci",
                                        "ori",
                                        "pan",
                                        "pol",
                                        "por",
                                        "pus",
                                        "que",
                                        "ron",
                                        "rus",
                                        "san",
                                        "sin",
                                        "slk",
                                        "slv",
                                        "snd",
                                        "spa",
                                        "spa_old",
                                        "sqi",
                                        "srp",
                                        "srp_latn",
                                        "sun",
                                        "swa",
                                        "swe",
                                        "syr",
                                        "tam",
                                        "tat",
                                        "tel",
                                        "tgk",
                                        "tgl",
                                        "tha",
                                        "tir",
                                        "ton",
                                        "tur",
                                        "uig",
                                        "ukr",
                                        "urd",
                                        "uzb",
                                        "uzb_cyrl",
                                        "vie",
                                        "yid",
                                        "yor"
                                    ]
                                }
                            },
                            "dpi": {
                                "type": "integer",
                                "minimum": 72,
                                "maximum": 600,
                                "default": 300,
                                "description": "Resolution (dots per inch) used to rasterize the pages before running OCR. Accepted integer range 72-600."
                            },
                            "color": {
                                "type": "string",
                                "enum": [
                                    "original",
                                    "bn",
                                    "greyscale"
                                ],
                                "default": "original",
                                "description": "Color mode of the page images used for OCR.\n\n- `original`: keep the original colors.\n- `bn`: black and white.\n- `greyscale`: greyscale.\n\nIn `standard` mode, any value other than `original` (as well as `deskew` or `dewarp`) enables a\npage image pre-processing step before recognition.\n"
                            },
                            "deskew": {
                                "type": "boolean",
                                "default": false,
                                "description": "Straighten pages that were scanned slightly tilted before running OCR."
                            },
                            "dewarp": {
                                "type": "boolean",
                                "default": false,
                                "description": "Correct curved or distorted pages (e.g. book scans or photos of pages) before running OCR."
                            },
                            "auto_rotate": {
                                "type": "boolean",
                                "default": false,
                                "description": "Detect the orientation of every page and rotate it (90, 180 or 270 degrees) before running OCR."
                            },
                            "textline_orientation": {
                                "type": "boolean",
                                "default": false,
                                "description": "Detect the orientation of individual text lines. Only used when `ocr_mode` is `advanced`."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessPdfjpg": {
                "title": "PDF to JPG",
                "x-process-tool": "pdfjpg",
                "x-legacy-anchors": [
                    "pdfjpg-extra-parameters",
                    "pdfjpg_mode"
                ],
                "description": "PDF to JPG extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "pdfjpg"
                            },
                            "pdfjpg_mode": {
                                "type": "string",
                                "enum": [
                                    "pages",
                                    "extract"
                                ],
                                "default": "pages",
                                "description": "Accepted values:\n\n- `pages` = Convert every PDF page to a JPG image\n- `extract` = extract all PDF's embedded images to separate JPG images. If a PDF has no images to\n  extract, its pages are converted instead and the file gets the `NoImagesPagesConverted` warning.\n"
                            },
                            "dpi": {
                                "type": "integer",
                                "minimum": 24,
                                "maximum": 500,
                                "default": 150,
                                "description": "Resolution (dots per inch) of the generated JPG images. Accepted integer range 24-500. Used when `pdfjpg_mode` is `pages`, and in `extract` mode when a PDF has no images and its pages are converted."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessImagepdf": {
                "title": "Image to PDF",
                "x-process-tool": "imagepdf",
                "x-legacy-anchors": [
                    "imagepdf-extra-parameters",
                    "orientation",
                    "margin",
                    "pagesize",
                    "merge_after-images-to-pdf"
                ],
                "description": "Image to PDF extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "imagepdf"
                            },
                            "orientation": {
                                "type": "string",
                                "enum": [
                                    "portrait",
                                    "landscape"
                                ],
                                "default": "portrait",
                                "description": "Accepted values: `portrait`, `landscape`."
                            },
                            "margin": {
                                "type": "integer",
                                "default": 0,
                                "description": "Define a margin in pixels for the image in the output PDF."
                            },
                            "pagesize": {
                                "type": "string",
                                "enum": [
                                    "fit",
                                    "A4",
                                    "letter"
                                ],
                                "default": "fit",
                                "description": "Page size of the output PDF.\n\n- `fit`: PDF page is the same size of image.\n- `A4`\n- `letter`\n"
                            },
                            "merge_after": {
                                "type": "boolean",
                                "default": true,
                                "description": "Serve all converted images in an unique PDF if true. If false, serve every image into a separate PDF."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessUnlock": {
                "title": "Unlock PDF",
                "x-process-tool": "unlock",
                "x-legacy-anchors": [
                    "unlock-extra-parameters"
                ],
                "description": "Unlock PDF has no extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "unlock"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessPagenumber": {
                "title": "Page numbers",
                "x-process-tool": "pagenumber",
                "x-legacy-anchors": [
                    "pagenumber-extra-parameters",
                    "facing_pages-pagenumbers",
                    "first_cover-pagenumbers",
                    "pages-pagenumbers",
                    "starting_number-pagenumbers",
                    "vertical_position-pagenumbers",
                    "horizontal_position-pagenumbers",
                    "vertical_position_adjustment-pagenumbers",
                    "horizontal_position_adjustment-pagenumbers",
                    "font_family-pagenumbers",
                    "font_size-pagenumbers",
                    "font_color-pagenumbers",
                    "text-pagenumbers"
                ],
                "description": "Page numbers extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "pagenumber"
                            },
                            "mode": {
                                "type": "string",
                                "enum": [
                                    "text",
                                    "multi"
                                ],
                                "default": "text",
                                "description": "- `text`: stamp one page number text defined by the top-level parameters.\n- `multi`: stamp several page number texts in a single pass, each one defined in `elements`.\n  In this mode `pages`, `first_cover`, `facing_pages` and `starting_number` apply to all the\n  elements, while position, `text` and font parameters are taken from every element (the top-level\n  ones are ignored).\n"
                            },
                            "elements": {
                                "type": "array",
                                "description": "**Required if `mode` is `multi`.**\n\nList of page number texts to stamp in one pass (see `PagenumberElement`). Every element is\nvalidated; the first invalid element makes the request fail.\n",
                                "items": {
                                    "title": "Page numbers element",
                                    "description": "Page number text to stamp (item of the `elements` array of the Page numbers tool when `mode` is `multi`).\n\nThe position of the element is defined by `gravity` plus the optional `vertical_adjustment` and\n`horizontal_adjustment` offsets. `pages`, `first_cover`, `facing_pages` and `starting_number` are taken from\nthe top-level parameters.\n",
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "enum": [
                                                "text"
                                            ],
                                            "default": "text",
                                            "description": "Element type. Page numbers elements are always `text`."
                                        },
                                        "text": {
                                            "type": "string",
                                            "description": "Text to stamp. Use `{n}` for the current page number and `{p}` for the total number of pages.",
                                            "example": "Page {n} of {p}"
                                        },
                                        "gravity": {
                                            "type": "string",
                                            "enum": [
                                                "NorthWest",
                                                "North",
                                                "NorthEast",
                                                "CenterWest",
                                                "Center",
                                                "CenterEast",
                                                "SouthWest",
                                                "South",
                                                "SouthEast"
                                            ],
                                            "default": "Center",
                                            "description": "Anchor position of the element on the page: `North*` = top, `Center*` = vertical center,\n`South*` = bottom; `*West` = left, `*East` = right, no suffix = horizontal center.\n"
                                        },
                                        "vertical_adjustment": {
                                            "type": "number",
                                            "default": 0,
                                            "description": "Vertical offset from the `gravity` position. Positive and negative values are accepted. The sign is\ninverted before stamping when `gravity` is `NorthEast`, `North`, `NorthWest` or `Center`.\n"
                                        },
                                        "horizontal_adjustment": {
                                            "type": "number",
                                            "default": 0,
                                            "description": "Horizontal offset from the `gravity` position. Positive and negative values are accepted. The sign is\ninverted before stamping when `gravity` is `NorthEast`, `SouthEast` or `CenterWest`.\n"
                                        },
                                        "font_family": {
                                            "type": "string",
                                            "enum": [
                                                "Arial",
                                                "Arial Unicode MS",
                                                "Verdana",
                                                "Courier",
                                                "Comic Sans MS",
                                                "Times New Roman",
                                                "WenQuanYi Zen Hei",
                                                "Lohit Marathi",
                                                "Lohit Devanagari"
                                            ],
                                            "default": "Arial Unicode MS",
                                            "description": "Font of the text. The slugs `arial`, `arial-unicode-ms`, `verdana`, `courier`, `comic`,\n`times-new-roman`, `wenquanyi-zen-hei`, `lohit-marathi` and `lohit-devanagari` are also accepted.\n`Impact` is not accepted inside elements.\n"
                                        },
                                        "font_style": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "enum": [
                                                null,
                                                "Regular",
                                                "Bold",
                                                "Italic",
                                                "Bold Italic"
                                            ],
                                            "default": "Regular",
                                            "description": "Accepted values: `null`, `Regular`, `Bold`, `Italic`, `Bold Italic`."
                                        },
                                        "bold": {
                                            "type": "boolean",
                                            "default": false,
                                            "description": "If `true`, `font_style` is forced to `Bold`."
                                        },
                                        "font_size": {
                                            "type": "integer",
                                            "default": 14
                                        },
                                        "font_color": {
                                            "type": "string",
                                            "default": "#000000",
                                            "description": "Hexadecimal color (`#RRGGBB`). `white` and `black` are also accepted."
                                        }
                                    },
                                    "example": {
                                        "type": "text",
                                        "gravity": "South",
                                        "text": "Page {n} of {p}",
                                        "font_size": 12,
                                        "font_color": "#000000"
                                    }
                                },
                                "example": [
                                    {
                                        "type": "text",
                                        "gravity": "South",
                                        "text": "Page {n} of {p}",
                                        "font_size": 12
                                    },
                                    {
                                        "type": "text",
                                        "gravity": "NorthEast",
                                        "text": "Confidential",
                                        "font_color": "#FF0000"
                                    }
                                ]
                            },
                            "facing_pages": {
                                "type": "boolean",
                                "default": false,
                                "description": "Define it to `true` if the PDF is in facing page mode."
                            },
                            "first_cover": {
                                "type": "boolean",
                                "default": false,
                                "description": "If the first page is a cover page, it will not be numbered."
                            },
                            "pages": {
                                "type": "string",
                                "default": "all",
                                "description": "Pages to be numbered. Accepted formats:\n\n- `all`\n- `3-end`\n- `1,3,4-9`\n- `-2-end`\n- `3-234`\n"
                            },
                            "starting_number": {
                                "type": "integer",
                                "default": 1,
                                "description": "Start page numbering with this number."
                            },
                            "vertical_position": {
                                "type": "string",
                                "enum": [
                                    "bottom",
                                    "top",
                                    "center"
                                ],
                                "default": "bottom",
                                "description": "Define if page number will be at top or bottom. Accepted values: `bottom`, `top`, `center` (vertical center of the page)."
                            },
                            "horizontal_position": {
                                "type": "string",
                                "enum": [
                                    "left",
                                    "center",
                                    "right",
                                    "middle"
                                ],
                                "default": "center",
                                "description": "Allows you to position the number on the left, in the center or on the right of the page.\nHowever, if the parameter `facing_pages` is set to true, facing pages will have their page\nnumbers positioned symmetrically, on the left and the right. Accepted values: `left`,\n`center`, `right`. `middle` is also accepted as an alias of `center`.\n"
                            },
                            "vertical_position_adjustment": {
                                "type": "integer",
                                "description": "Adjust the number of pixels displaced from the standard `vertical_position`. It accepts positive and negative values."
                            },
                            "horizontal_position_adjustment": {
                                "type": "integer",
                                "description": "Adjust the number of pixels displaced from the standard `horizontal_position`. It accepts positive and negative values."
                            },
                            "font_family": {
                                "type": "string",
                                "enum": [
                                    "Arial",
                                    "Arial Unicode MS",
                                    "Verdana",
                                    "Courier",
                                    "Impact",
                                    "Times New Roman",
                                    "Comic Sans MS",
                                    "WenQuanYi Zen Hei",
                                    "Lohit Marathi",
                                    "Lohit Devanagari"
                                ],
                                "default": "Arial Unicode MS",
                                "description": "Accepted values: `Arial`, `Arial Unicode MS`, `Verdana`, `Courier`, `Impact`, `Times New Roman`, `Comic Sans MS`, `WenQuanYi Zen Hei`, `Lohit Marathi`, `Lohit Devanagari`."
                            },
                            "font_style": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    null,
                                    "Regular",
                                    "Bold",
                                    "Italic"
                                ],
                                "default": null,
                                "description": "Accepted values: `null` (Regular/Normal), `Regular`, `Bold`, `Italic`."
                            },
                            "font_size": {
                                "type": "integer",
                                "default": 14
                            },
                            "font_color": {
                                "type": "string",
                                "default": "#000000",
                                "description": "Hexadecimal color."
                            },
                            "text": {
                                "type": "string",
                                "default": "{n}",
                                "description": "To define text in addition to the number, use `{n}` for current page number and `{p}` for total\nnumber of pages for the file. Example Page `{n}` of `{p}`. If null only the page number will be\nplaced.\n",
                                "example": "Page {n} of {p}"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessWatermark": {
                "title": "Watermark",
                "x-process-tool": "watermark",
                "x-legacy-anchors": [
                    "watermark-extra-parameters",
                    "mode",
                    "pages",
                    "vertical_position",
                    "horizontal_position",
                    "mosaic",
                    "rotation",
                    "font_family",
                    "font_style",
                    "font_size",
                    "font_color",
                    "transparency",
                    "layer"
                ],
                "description": "Watermark extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "watermark"
                            },
                            "mode": {
                                "type": "string",
                                "enum": [
                                    "text",
                                    "image",
                                    "multi"
                                ],
                                "default": "text",
                                "description": "Accepted values: `text`, `image`, `multi`.\n\n- `text`: stamp `text`.\n- `image`: stamp `image`.\n- `multi`: stamp several texts and/or images in a single pass, each one defined in `elements`.\n  In this mode only `pages` and `layer` are taken from the top-level parameters and apply to all the\n  elements; text, image, position, font, `rotation`, `transparency` and `mosaic` are taken from every\n  element (the top-level ones are ignored).\n"
                            },
                            "elements": {
                                "type": "array",
                                "description": "**Required if `mode` is `multi`.**\n\nList of stamps to apply in one pass (see `WatermarkElement`). Every element is validated; the\nfirst invalid element makes the request fail.\n",
                                "items": {
                                    "title": "Watermark element",
                                    "description": "Stamp to apply (item of the `elements` array of the Watermark tool when `mode` is `multi`).\n\nThe position of the element is defined by `gravity` plus the optional `vertical_adjustment` and\n`horizontal_adjustment` offsets. `pages` and `layer` are taken from the top-level parameters.\n\n- **`text`** elements use `text`, `font_family`, `font_style`, `bold`, `font_size` and `font_color`.\n- **`image`** elements use `image`.\n",
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "enum": [
                                                "text",
                                                "image"
                                            ],
                                            "default": "text",
                                            "description": "Element type. Accepted values: `text`, `image`."
                                        },
                                        "text": {
                                            "type": "string",
                                            "description": "Text to stamp (`text` elements)."
                                        },
                                        "image": {
                                            "type": "string",
                                            "description": "**Required if `type` is `image`.**\n\n`server_filename` of the image to stamp (JPG or PNG), previously uploaded with the `/upload` resource.\n"
                                        },
                                        "gravity": {
                                            "type": "string",
                                            "enum": [
                                                "NorthWest",
                                                "North",
                                                "NorthEast",
                                                "CenterWest",
                                                "Center",
                                                "CenterEast",
                                                "SouthWest",
                                                "South",
                                                "SouthEast"
                                            ],
                                            "default": "Center",
                                            "description": "Anchor position of the element on the page: `North*` = top, `Center*` = vertical center,\n`South*` = bottom; `*West` = left, `*East` = right, no suffix = horizontal center.\n"
                                        },
                                        "vertical_adjustment": {
                                            "type": "number",
                                            "default": 0,
                                            "description": "Vertical offset from the `gravity` position. Positive and negative values are accepted. The sign is\ninverted before stamping when `gravity` is `NorthEast`, `North`, `NorthWest` or `Center`.\n"
                                        },
                                        "horizontal_adjustment": {
                                            "type": "number",
                                            "default": 0,
                                            "description": "Horizontal offset from the `gravity` position. Positive and negative values are accepted. The sign is\ninverted before stamping when `gravity` is `NorthEast`, `SouthEast` or `CenterWest`.\n"
                                        },
                                        "rotation": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 360,
                                            "default": 0,
                                            "description": "Angle of rotation. Accepted integer range: 0-360. Note that in `multi` mode the element is rotated in\nthe opposite direction to the top-level `rotation` parameter.\n"
                                        },
                                        "transparency": {
                                            "type": "number",
                                            "default": 100,
                                            "description": "Percentage of opacity of the element (`100` = fully opaque)."
                                        },
                                        "image_resize": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 50,
                                            "default": 1,
                                            "description": "Scale factor of the element (`1` = original size, `0.5` = half size, `2` = double size). Accepted range 0-50."
                                        },
                                        "font_family": {
                                            "type": "string",
                                            "enum": [
                                                "Arial",
                                                "Arial Unicode MS",
                                                "Verdana",
                                                "Courier",
                                                "Comic Sans MS",
                                                "Times New Roman",
                                                "WenQuanYi Zen Hei",
                                                "Lohit Marathi",
                                                "Lohit Devanagari"
                                            ],
                                            "default": "Arial Unicode MS",
                                            "description": "Font of the text. The slugs `arial`, `arial-unicode-ms`, `verdana`, `courier`, `comic`,\n`times-new-roman`, `wenquanyi-zen-hei`, `lohit-marathi` and `lohit-devanagari` are also accepted.\n`Impact` is not accepted inside elements.\n"
                                        },
                                        "font_style": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "enum": [
                                                null,
                                                "Regular",
                                                "Bold",
                                                "Italic",
                                                "Bold Italic"
                                            ],
                                            "default": "Regular",
                                            "description": "Accepted values: `null`, `Regular`, `Bold`, `Italic`, `Bold Italic`."
                                        },
                                        "bold": {
                                            "type": "boolean",
                                            "default": false,
                                            "description": "If `true`, `font_style` is forced to `Bold`."
                                        },
                                        "font_size": {
                                            "type": "integer",
                                            "default": 14
                                        },
                                        "font_color": {
                                            "type": "string",
                                            "default": "#000000",
                                            "description": "Hexadecimal color (`#RRGGBB`). `white` and `black` are also accepted."
                                        }
                                    },
                                    "example": {
                                        "type": "text",
                                        "gravity": "Center",
                                        "text": "CONFIDENTIAL",
                                        "font_size": 60,
                                        "font_color": "#FF0000",
                                        "rotation": 45,
                                        "transparency": 40
                                    }
                                },
                                "example": [
                                    {
                                        "type": "text",
                                        "gravity": "Center",
                                        "text": "CONFIDENTIAL",
                                        "font_size": 60,
                                        "rotation": 45,
                                        "transparency": 40
                                    },
                                    {
                                        "type": "image",
                                        "gravity": "SouthEast",
                                        "image": "logo_server_filename.png",
                                        "image_resize": 0.5
                                    }
                                ]
                            },
                            "text": {
                                "type": "string",
                                "description": "**Required if `mode` is `text`.**\n\nText to be stamped. If `mode` is `image` this value does not take effect.\n"
                            },
                            "image": {
                                "type": "string",
                                "description": "**Required if `mode` is `image`.**\n\nThe image to stamp if mode is `image`. The stamped image must be uploaded in the `/upload`\nresource. This `image` parameter must refer to the `server_filename` (JPG or PNG) to stamp.\n"
                            },
                            "pages": {
                                "type": "string",
                                "default": "all",
                                "description": "Pages to be stamped. Accepted formats:\n\n- `all`\n- `3-end`\n- `1,3,4-9`\n- `-2-end`\n- `3-234`\n"
                            },
                            "vertical_position": {
                                "type": "string",
                                "enum": [
                                    "bottom",
                                    "top",
                                    "middle",
                                    "center"
                                ],
                                "default": "middle",
                                "description": "Accepted values: `bottom`, `top`, `middle`. `center` is also accepted as an alias of `middle`."
                            },
                            "horizontal_position": {
                                "type": "string",
                                "enum": [
                                    "left",
                                    "center",
                                    "right",
                                    "middle"
                                ],
                                "default": "center",
                                "description": "Accepted values: `left`, `center`, `right`. `middle` is also accepted as an alias of `center`."
                            },
                            "vertical_position_adjustment": {
                                "type": "integer",
                                "description": "Adjust the amount of offset pixels from the position defined in `vertical_position`. It accepts positive and negative values."
                            },
                            "horizontal_position_adjustment": {
                                "type": "integer",
                                "description": "Adjust the amount of offset pixels from the position defined in `horizontal_position`. It accepts positive and negative values."
                            },
                            "mosaic": {
                                "type": "boolean",
                                "default": false,
                                "description": "If `true`, this value overrides all position parameters and stamps the image or text 9 times per page."
                            },
                            "rotation": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 360,
                                "default": 0,
                                "description": "Angle of rotation. Accepted integer range: 0-360."
                            },
                            "font_family": {
                                "type": "string",
                                "enum": [
                                    "Arial",
                                    "Arial Unicode MS",
                                    "Verdana",
                                    "Courier",
                                    "Impact",
                                    "Times New Roman",
                                    "Comic Sans MS",
                                    "WenQuanYi Zen Hei",
                                    "Lohit Marathi",
                                    "Lohit Devanagari"
                                ],
                                "default": "Arial Unicode MS",
                                "description": "Accepted values: `Arial`, `Arial Unicode MS`, `Verdana`, `Courier`, `Impact`, `Times New Roman`, `Comic Sans MS`, `WenQuanYi Zen Hei`, `Lohit Marathi`, `Lohit Devanagari`."
                            },
                            "font_style": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    null,
                                    "Regular",
                                    "Bold",
                                    "Italic"
                                ],
                                "default": null,
                                "description": "Accepted values: `null` (Regular/Normal), `Regular`, `Bold`, `Italic`."
                            },
                            "bold": {
                                "type": "boolean",
                                "default": false,
                                "description": "Shortcut for bold text. If `true`, `font_style` is forced to `Bold` (it overrides any `font_style` value)."
                            },
                            "image_resize": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 50,
                                "default": 1,
                                "description": "Scale factor for the stamped image (`mode` = `image`). `1` keeps the image at its original size,\nvalues greater than `1` enlarge it and values lower than `1` reduce it (e.g. `0.5` = half size,\n`2` = double size). Internally the stamping resolution is set to `1 / image_resize` pixels per\npoint. With `0` the option is not sent to the stamping engine. Accepted range 0-50.\n"
                            },
                            "font_size": {
                                "type": "integer",
                                "default": 14
                            },
                            "font_color": {
                                "type": "string",
                                "default": "#000000",
                                "description": "Hexadecimal color."
                            },
                            "transparency": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 100,
                                "default": 100,
                                "description": "Percentage of opacity for stamping text or image. Accepted integer range 1-100."
                            },
                            "layer": {
                                "type": "string",
                                "enum": [
                                    "above",
                                    "below"
                                ],
                                "default": "above",
                                "description": "- `above` = Place stamp over content\n- `below` = Place stamp below content.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessOfficepdf": {
                "title": "Office to PDF",
                "x-process-tool": "officepdf",
                "x-legacy-anchors": [
                    "officepdf-extra-parameters"
                ],
                "description": "Office to PDF has no extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "officepdf"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessRepair": {
                "title": "Repair PDF",
                "x-process-tool": "repair",
                "x-legacy-anchors": [
                    "repair-extra-parameters"
                ],
                "description": "Repair PDF has no extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "repair"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessRotate": {
                "title": "Rotate PDF",
                "x-process-tool": "rotate",
                "x-legacy-anchors": [
                    "rotate-extra-parameters"
                ],
                "description": "Rotate PDF has no extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "rotate"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessProtect": {
                "title": "Protect",
                "x-process-tool": "protect",
                "x-legacy-anchors": [
                    "protect-extra-parameters",
                    "password-protect"
                ],
                "description": "Protect extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "protect"
                            },
                            "password": {
                                "type": "string",
                                "description": "Password with which the PDF file will be encrypted (user password, required to open the file).\n\n**Required if `owner_password` is not set.** At least one of `password` or `owner_password` must be\nsent.\n"
                            },
                            "owner_password": {
                                "type": "string",
                                "description": "Owner (permissions) password. It protects the permissions defined with the `allow_*` parameters.\n\n**Required if `password` is not set.** If only `owner_password` is sent, the file can be opened\nwithout a password but the permissions restrictions apply.\n"
                            },
                            "allow_print": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allow printing the document."
                            },
                            "allow_copy": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allow copying text and graphics from the document."
                            },
                            "allow_modify": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allow modifying the document contents."
                            },
                            "allow_annotate": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allow adding or modifying annotations (comments)."
                            },
                            "allow_fill": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allow filling in form fields."
                            },
                            "allow_accessibility": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allow extracting content for accessibility purposes (e.g. screen readers)."
                            },
                            "allow_assemble": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allow assembling the document (inserting, rotating or deleting pages, bookmarks and thumbnails)."
                            },
                            "allow_nothing": {
                                "type": "boolean",
                                "default": false,
                                "description": "If `true`, all permissions are denied and every `allow_*` parameter above is ignored.\n\nNote on permission values: the `allow_*` parameters are evaluated as truthy/falsy values. Send JSON\nbooleans (`true`/`false`) or `1`/`0`; any other non-empty string (including the string `\"false\"`)\nis treated as `true`.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessPdfa": {
                "title": "PDF to PDF/A",
                "x-process-tool": "pdfa",
                "x-legacy-anchors": [
                    "pdfa-extra-parameters",
                    "conformance",
                    "allow_downgrade"
                ],
                "description": "PDF to PDF/A extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "pdfa"
                            },
                            "conformance": {
                                "type": "string",
                                "enum": [
                                    "pdfa-1b",
                                    "pdfa-1a",
                                    "pdfa-2b",
                                    "pdfa-2u",
                                    "pdfa-2a",
                                    "pdfa-3b",
                                    "pdfa-3u",
                                    "pdfa-3a"
                                ],
                                "default": "pdfa-2b",
                                "description": "Set the PDF/A conformance level. Accepted values: `pdfa-1b`, `pdfa-1a`, `pdfa-2b`, `pdfa-2u`, `pdfa-2a`, `pdfa-3b`, `pdfa-3u`, `pdfa-3a`."
                            },
                            "allow_downgrade": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allows conformance downgrade in case of conversion error."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessValidatepdfa": {
                "title": "Validate PDF/A",
                "x-process-tool": "validatepdfa",
                "x-legacy-anchors": [
                    "validatepdfa-extra-parameters",
                    "conformance-validate-pdfa"
                ],
                "description": "Validate PDF/A extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "validatepdfa"
                            },
                            "conformance": {
                                "type": "string",
                                "enum": [
                                    "pdfa-1b",
                                    "pdfa-1a",
                                    "pdfa-2b",
                                    "pdfa-2u",
                                    "pdfa-2a",
                                    "pdfa-3b",
                                    "pdfa-3u",
                                    "pdfa-3a"
                                ],
                                "default": "pdfa-2b",
                                "description": "Set the PDF/A conformance level. Accepted values: `pdfa-1b`, `pdfa-1a`, `pdfa-2b`, `pdfa-2u`, `pdfa-2a`, `pdfa-3b`, `pdfa-3u`, `pdfa-3a`."
                            },
                            "allow_downgrade": {
                                "type": "boolean",
                                "default": true,
                                "description": "Allows conformance downgrade in case of conversion error."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessHtmlpdf": {
                "title": "HTML to PDF",
                "x-process-tool": "htmlpdf",
                "x-legacy-anchors": [
                    "htmlpdf-extra-parameters"
                ],
                "description": "HTML to PDF extra parameters.\n\nThe page is loaded in a headless Chromium browser (screen media), scrolled to the bottom to trigger lazy\nloaded content, and then printed to PDF or captured as an image. All the parameters below have a default\nvalue, so none of them has to be sent.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "htmlpdf"
                            },
                            "to_format": {
                                "type": "string",
                                "enum": [
                                    "pdf",
                                    "jpg",
                                    "svg"
                                ],
                                "default": "pdf",
                                "description": "Output format.\n\n- `pdf`: PDF document.\n- `jpg`: full-page screenshot of the web page as a JPG image. `page_size`, `page_orientation`,\n  `page_margin` and `single_page` do not apply.\n- `svg`: the page is rendered as a single-page PDF (`single_page` is forced to `true`) and then\n  converted to SVG.\n"
                            },
                            "single_page": {
                                "type": "boolean",
                                "default": true,
                                "description": "PDF output only. If `true`, the whole web page is rendered as one single long page (page height =\nheight of the web content, minimum 600 px) and `page_size` is ignored. If `false`, the content is\nsplit into pages using `page_size`.\n"
                            },
                            "page_size": {
                                "type": "string",
                                "enum": [
                                    "A0",
                                    "A1",
                                    "A2",
                                    "A3",
                                    "A4",
                                    "A5",
                                    "Letter"
                                ],
                                "default": "A4",
                                "description": "PDF output only, used when `single_page` is `false`. Page size of the output PDF. For `A3`, `A4`,\n`A5` and `Letter` the result is fitted to that paper size; for `A0`, `A1` and `A2` only the page\nproportions (A-series aspect ratio) are applied to the rendered width.\n"
                            },
                            "page_orientation": {
                                "type": "string",
                                "enum": [
                                    "portrait",
                                    "landscape"
                                ],
                                "default": "portrait",
                                "description": "PDF output only. Page orientation. Accepted values: `portrait`, `landscape`."
                            },
                            "page_margin": {
                                "type": "integer",
                                "default": 0,
                                "description": "PDF output only. Margin in pixels applied to the four sides of every page."
                            },
                            "view_width": {
                                "type": "integer",
                                "default": 2800,
                                "description": "Width in pixels of the browser viewport used to render the web page. It also determines the width of the rendered content."
                            },
                            "view_height": {
                                "type": "integer",
                                "default": 2800,
                                "description": "Height in pixels of the browser viewport used to load the web page. The height of the output is\ncalculated from the content (`single_page`), from `page_size`, or from the full page (`jpg`).\n"
                            },
                            "delay": {
                                "type": "integer",
                                "default": 2,
                                "description": "Extra waiting time in **seconds** after the page has loaded and before rendering it, to let\nanimations or delayed content finish. `0` or not set uses the default of 2 seconds.\n"
                            },
                            "remove_popups": {
                                "type": "boolean",
                                "default": false,
                                "description": "Hide pop-ups and overlays (fixed-position elements with a very high `z-index`, such as cookie banners or modals) before rendering."
                            },
                            "block_ads": {
                                "type": "boolean",
                                "default": false,
                                "description": "Block requests to known advertising domains (EasyList based) while loading the page. Send it as a\nJSON boolean `true`; string values have no effect.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessExtract": {
                "title": "Extract text",
                "x-process-tool": "extract",
                "x-legacy-anchors": [
                    "extract-extra-parameters",
                    "detailed-extract"
                ],
                "description": "Extract text extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "extract"
                            },
                            "detailed": {
                                "type": "boolean",
                                "description": "Includes the following PDF properties separated by a comma: *PageNo, XPos, YPos, Width, FontName, FontSize, Length and Text*"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessEditpdf": {
                "title": "Edit PDF",
                "x-process-tool": "editpdf",
                "x-legacy-anchors": [
                    "editpdf-extra-parameters"
                ],
                "description": "Edit PDF extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "elements"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "editpdf"
                            },
                            "elements": {
                                "type": "array",
                                "description": "Elements to be added into the PDF. They can have several properties including the element\ntype.\n\nEach element type has its own properties. See the following for Text, Image and SVG\n(see `EditPdfElement`).\n",
                                "items": {
                                    "title": "Edit PDF element",
                                    "x-legacy-anchors": [
                                        "pages-edit",
                                        "zindex-edit",
                                        "dimensions-edit",
                                        "coordinates-edit",
                                        "rotation-edit",
                                        "opacity-edit",
                                        "text-edit",
                                        "text_align-edit",
                                        "font_family-edit",
                                        "font_size-edit",
                                        "font_style-edit",
                                        "font_color-edit",
                                        "letter_spacing-edit",
                                        "underline_text-edit"
                                    ],
                                    "description": "Element to be added into the PDF (item of the `elements` array of the Edit PDF tool).\n\n`type`, `pages`, `zindex`, `dimensions`, `coordinates`, `rotation` and `opacity` are common to all\nelements. Each element type has its own properties:\n\n- **`text`**: The chosen element is a text and these are its properties: `text`, `text_align`,\n  `font_family`, `font_size`, `font_style`, `font_color`, `letter_spacing`, `underline_text`.\n- **`image`**: The chosen element is an image and these are its properties: `server_filename`.\n- **`svg`**: The chosen element is a SVG image type and these are its properties: `server_filename`.\n",
                                    "type": "object",
                                    "required": [
                                        "type",
                                        "pages",
                                        "zindex",
                                        "dimensions",
                                        "coordinates"
                                    ],
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "enum": [
                                                "bottom",
                                                "text",
                                                "image",
                                                "svg"
                                            ],
                                            "description": "Type of element to be added. Accepted values: `bottom`, `text`, `image`, `svg`."
                                        },
                                        "pages": {
                                            "type": "string",
                                            "description": "The page where the element will be inserted. Only numbers format is allowed."
                                        },
                                        "zindex": {
                                            "type": "number",
                                            "description": "Depth value to decide elements order in case of overlay."
                                        },
                                        "dimensions": {
                                            "type": "object",
                                            "description": "Size of the element following the format `{ w: 120, h: 200 }`.",
                                            "required": [
                                                "w",
                                                "h"
                                            ],
                                            "properties": {
                                                "w": {
                                                    "type": "number",
                                                    "format": "float"
                                                },
                                                "h": {
                                                    "type": "number",
                                                    "format": "float"
                                                }
                                            },
                                            "example": {
                                                "w": 120,
                                                "h": 200
                                            }
                                        },
                                        "coordinates": {
                                            "type": "object",
                                            "description": "Position of the element in X and Y coordinates following the format `{ x: 120, y: 200 }`.",
                                            "required": [
                                                "x",
                                                "y"
                                            ],
                                            "properties": {
                                                "x": {
                                                    "type": "number",
                                                    "format": "float"
                                                },
                                                "y": {
                                                    "type": "number",
                                                    "format": "float"
                                                }
                                            },
                                            "example": {
                                                "x": 120,
                                                "y": 200
                                            }
                                        },
                                        "rotation": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 360,
                                            "default": 0,
                                            "description": "Angle of rotation. Accepted integer range: 0-360."
                                        },
                                        "opacity": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 100,
                                            "default": 100,
                                            "description": "Percentage of opacity for stamping element. Accepted integer range 1-100."
                                        },
                                        "text": {
                                            "type": "string",
                                            "description": "**`text` elements only. Required if `type` is `text`.**\n\nText to be written in the document.\n"
                                        },
                                        "text_align": {
                                            "type": "string",
                                            "enum": [
                                                "left",
                                                "center",
                                                "right"
                                            ],
                                            "default": "left",
                                            "description": "**`text` elements only.**\n\nHorizontal text alignment. Accepted values: `left`, `center`, `right`.\n"
                                        },
                                        "font_family": {
                                            "type": "string",
                                            "default": "Arial Unicode MS",
                                            "description": "**`text` elements only.**\n\nFont type of text. See [Fonts compatibility](#description/fonts-compatibility) for complete list.\n"
                                        },
                                        "font_size": {
                                            "type": "integer",
                                            "default": 14,
                                            "description": "**`text` elements only.**\n\nSize of text font in pixels.\n"
                                        },
                                        "font_style": {
                                            "type": "string",
                                            "enum": [
                                                "Regular",
                                                "Bold",
                                                "Italic",
                                                "Bold italic"
                                            ],
                                            "default": "Regular",
                                            "description": "**`text` elements only.**\n\nText font styles. Accepted values: `Regular`, `Bold`, `Italic`, `Bold italic`\n"
                                        },
                                        "font_color": {
                                            "type": "string",
                                            "default": "#000000",
                                            "description": "**`text` elements only.**\n\nText font color. Can be set to `transparent`. Otherwise, the accepted value is hexadecimal.\n"
                                        },
                                        "letter_spacing": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "default": 0,
                                            "description": "**`text` elements only.**\n\nText letter spacing between characters. Accepted values from 0 to infinite.\n"
                                        },
                                        "underline_text": {
                                            "type": "boolean",
                                            "default": false,
                                            "description": "**`text` elements only.**\n\nText underline active or inactive. Values can be `true` or `false`.\n"
                                        },
                                        "server_filename": {
                                            "type": "string",
                                            "description": "**`image` and `svg` elements only. Required if `type` is `image` or `svg`.**\n\nUpload resource that identifies the image.\n\n- `image`: Accepted file formats: `png`, `jpg`, `jpeg`, `jfif` and `gif`.\n- `svg`: Accepted file formats: `svg`.\n"
                                        }
                                    },
                                    "example": {
                                        "type": "text",
                                        "pages": "1",
                                        "zindex": 1,
                                        "dimensions": {
                                            "w": 120,
                                            "h": 200
                                        },
                                        "coordinates": {
                                            "x": 120,
                                            "y": 200
                                        },
                                        "text": "Hello"
                                    }
                                }
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessSummarize": {
                "title": "AI Summarizer",
                "x-process-tool": "summarize",
                "x-legacy-anchors": [
                    "summarize-extra-parameters",
                    "language",
                    "output_format"
                ],
                "description": "AI Summarizer extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "language"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "summarize"
                            },
                            "language": {
                                "type": "string",
                                "enum": [
                                    "en",
                                    "es",
                                    "fr",
                                    "de",
                                    "it",
                                    "pt",
                                    "ja",
                                    "ru",
                                    "ko",
                                    "zh-cn",
                                    "zh-tw",
                                    "ar",
                                    "bg",
                                    "ca",
                                    "nl",
                                    "el",
                                    "hi",
                                    "id",
                                    "ms",
                                    "pl",
                                    "sv",
                                    "th",
                                    "tr",
                                    "uk",
                                    "vi"
                                ],
                                "description": "Accepted values: `en`, `es`, `fr`, `de`, `it`, `pt`, `ja`, `ru`, `ko`, `zh-cn`, `zh-tw`, `ar`, `bg`, `ca`, `nl`, `el`, `hi`, `id`, `ms`, `pl`, `sv`, `th`, `tr`, `uk`, `vi`."
                            },
                            "output_format": {
                                "type": "string",
                                "enum": [
                                    "pdf",
                                    "md"
                                ],
                                "default": "pdf",
                                "description": "Accepted values: `pdf`, `md`."
                            },
                            "summarize_length": {
                                "type": "string",
                                "enum": [
                                    "short",
                                    "medium",
                                    "long"
                                ],
                                "description": "Length of the summary. Accepted values: `short`, `medium`, `long`. If not set, `medium` is used.\n"
                            },
                            "summarize_tone": {
                                "type": "string",
                                "enum": [
                                    "formal",
                                    "informal",
                                    "original",
                                    "academic",
                                    "sarcastic",
                                    "professional"
                                ],
                                "description": "Tone of the summary. Accepted values: `formal`, `informal`, `original`, `academic`, `sarcastic`,\n`professional` (professional/business tone). If not set, no specific tone is requested.\n"
                            },
                            "ai_tier": {
                                "type": "string",
                                "enum": [
                                    "standard",
                                    "advanced"
                                ],
                                "description": "AI model tier. Accepted values: `standard`, `advanced`.\n\nNote: requests made through iLoveAPI are currently always processed with the `advanced` tier,\nregardless of this value.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessPdfmarkdown": {
                "title": "PDF to Markdown",
                "x-process-tool": "pdfmarkdown",
                "x-legacy-anchors": [
                    "pdfmarkdown-extra-parameters"
                ],
                "description": "No extra parameters are needed for this tool.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "pdfmarkdown"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessFormsdetect": {
                "title": "Detect Forms",
                "x-process-tool": "formsdetect",
                "x-legacy-anchors": [
                    "formsdetect-extra-parameters"
                ],
                "description": "Detect Forms has no extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "formsdetect"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessTranslate": {
                "title": "Translate PDF",
                "x-process-tool": "translate",
                "description": "Translate PDF extra parameters.\n\nAI tool that translates the text of a PDF from `language_input` to `language_output` and returns a\ntranslated PDF. Only one file per task is allowed. It consumes 30 credits per processed page.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "language_output"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "translate"
                            },
                            "language_input": {
                                "type": "string",
                                "default": "eng",
                                "description": "Language of the input document.",
                                "enum": [
                                    "eng",
                                    "afr",
                                    "amh",
                                    "ara",
                                    "asm",
                                    "aze",
                                    "aze_cyrl",
                                    "bel",
                                    "ben",
                                    "bod",
                                    "bos",
                                    "bre",
                                    "bul",
                                    "cat",
                                    "ceb",
                                    "ces",
                                    "chi_sim",
                                    "chi_tra",
                                    "chr",
                                    "cos",
                                    "cym",
                                    "dan",
                                    "dan_frak",
                                    "deu",
                                    "deu_frak",
                                    "deu_latf",
                                    "dzo",
                                    "ell",
                                    "enm",
                                    "epo",
                                    "equ",
                                    "est",
                                    "eus",
                                    "fao",
                                    "fas",
                                    "fil",
                                    "fin",
                                    "fra",
                                    "frk",
                                    "frm",
                                    "fry",
                                    "gla",
                                    "gle",
                                    "glg",
                                    "grc",
                                    "guj",
                                    "hat",
                                    "heb",
                                    "hin",
                                    "hrv",
                                    "hun",
                                    "hye",
                                    "iku",
                                    "ind",
                                    "isl",
                                    "ita",
                                    "ita_old",
                                    "jav",
                                    "jpn",
                                    "kan",
                                    "kat",
                                    "kat_old",
                                    "kaz",
                                    "khm",
                                    "kir",
                                    "kmr",
                                    "kor",
                                    "kor_vert",
                                    "kur",
                                    "lao",
                                    "lat",
                                    "lav",
                                    "lit",
                                    "ltz",
                                    "mal",
                                    "mar",
                                    "mkd",
                                    "mlt",
                                    "mon",
                                    "mri",
                                    "msa",
                                    "mya",
                                    "nep",
                                    "nld",
                                    "nor",
                                    "oci",
                                    "ori",
                                    "pan",
                                    "pol",
                                    "por",
                                    "pus",
                                    "que",
                                    "ron",
                                    "rus",
                                    "san",
                                    "sin",
                                    "slk",
                                    "slk_frak",
                                    "slv",
                                    "snd",
                                    "spa",
                                    "spa_old",
                                    "sqi",
                                    "srp",
                                    "srp_latn",
                                    "sun",
                                    "swa",
                                    "swe",
                                    "syr",
                                    "tam",
                                    "tat",
                                    "tel",
                                    "tgk",
                                    "tgl",
                                    "tha",
                                    "tir",
                                    "ton",
                                    "tur",
                                    "uig",
                                    "ukr",
                                    "urd",
                                    "uzb",
                                    "uzb_cyrl",
                                    "vie",
                                    "yid",
                                    "yor"
                                ]
                            },
                            "language_output": {
                                "type": "string",
                                "description": "**Required.** Language to translate the document into. Same accepted values as `language_input`.",
                                "enum": [
                                    "eng",
                                    "afr",
                                    "amh",
                                    "ara",
                                    "asm",
                                    "aze",
                                    "aze_cyrl",
                                    "bel",
                                    "ben",
                                    "bod",
                                    "bos",
                                    "bre",
                                    "bul",
                                    "cat",
                                    "ceb",
                                    "ces",
                                    "chi_sim",
                                    "chi_tra",
                                    "chr",
                                    "cos",
                                    "cym",
                                    "dan",
                                    "dan_frak",
                                    "deu",
                                    "deu_frak",
                                    "deu_latf",
                                    "dzo",
                                    "ell",
                                    "enm",
                                    "epo",
                                    "equ",
                                    "est",
                                    "eus",
                                    "fao",
                                    "fas",
                                    "fil",
                                    "fin",
                                    "fra",
                                    "frk",
                                    "frm",
                                    "fry",
                                    "gla",
                                    "gle",
                                    "glg",
                                    "grc",
                                    "guj",
                                    "hat",
                                    "heb",
                                    "hin",
                                    "hrv",
                                    "hun",
                                    "hye",
                                    "iku",
                                    "ind",
                                    "isl",
                                    "ita",
                                    "ita_old",
                                    "jav",
                                    "jpn",
                                    "kan",
                                    "kat",
                                    "kat_old",
                                    "kaz",
                                    "khm",
                                    "kir",
                                    "kmr",
                                    "kor",
                                    "kor_vert",
                                    "kur",
                                    "lao",
                                    "lat",
                                    "lav",
                                    "lit",
                                    "ltz",
                                    "mal",
                                    "mar",
                                    "mkd",
                                    "mlt",
                                    "mon",
                                    "mri",
                                    "msa",
                                    "mya",
                                    "nep",
                                    "nld",
                                    "nor",
                                    "oci",
                                    "ori",
                                    "pan",
                                    "pol",
                                    "por",
                                    "pus",
                                    "que",
                                    "ron",
                                    "rus",
                                    "san",
                                    "sin",
                                    "slk",
                                    "slk_frak",
                                    "slv",
                                    "snd",
                                    "spa",
                                    "spa_old",
                                    "sqi",
                                    "srp",
                                    "srp_latn",
                                    "sun",
                                    "swa",
                                    "swe",
                                    "syr",
                                    "tam",
                                    "tat",
                                    "tel",
                                    "tgk",
                                    "tgl",
                                    "tha",
                                    "tir",
                                    "ton",
                                    "tur",
                                    "uig",
                                    "ukr",
                                    "urd",
                                    "uzb",
                                    "uzb_cyrl",
                                    "vie",
                                    "yid",
                                    "yor"
                                ],
                                "example": "spa"
                            },
                            "translate_mode": {
                                "type": "string",
                                "enum": [
                                    "layout",
                                    "text"
                                ],
                                "default": "layout",
                                "description": "- `layout`: the translated text is placed in the original document, keeping its layout.\n- `text`: only the translated text is returned, as a new plain PDF generated from the extracted text\n  (images and links are not kept).\n"
                            },
                            "ai_tier": {
                                "type": "string",
                                "enum": [
                                    "standard",
                                    "advanced"
                                ],
                                "default": "standard",
                                "description": "AI translation workflow. Accepted values: `standard`, `advanced` (higher quality workflow)."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessOrganize": {
                "title": "Organize PDF",
                "x-process-tool": "organize",
                "description": "Organize PDF extra parameters.\n\nBuilds **one single output PDF** from the pages of one or several uploaded files: reorder pages, remove\npages (pages that are not referenced in `options` are not included in the output), rotate pages, combine\npages of several files and insert blank pages. The output is named `{filename}_organized.pdf` when one\nfile is uploaded, and `organized.pdf` when several files are uploaded.\n\n**Example:** with two uploaded files, take pages 1-3 of the first file, page 2 of the second file rotated\n90 degrees, an A4 blank page and pages 5-6 of the first file:\n\n```json\n{\n  \"tool\": \"organize\",\n  \"files_organize\": { \"A\": \"server_filename_1.pdf\", \"B\": \"server_filename_2.pdf\" },\n  \"options\": [\"A:1-3\", \"B:2#90\", \"blank:595x842\", \"A:5-6\"]\n}\n```\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "files_organize",
                            "options"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "organize"
                            },
                            "files_organize": {
                                "type": "object",
                                "description": "Map of file identifiers to uploaded files: every key is an identifier of your choice (letters,\ndigits, `_` and `-`; `blank` is reserved) and every value is the `server_filename` of a file of the\ntask's `files`. A JSON-encoded string of the object is also accepted.\n",
                                "additionalProperties": {
                                    "type": "string"
                                },
                                "example": {
                                    "A": "server_filename_1.pdf",
                                    "B": "server_filename_2.pdf"
                                }
                            },
                            "options": {
                                "type": "array",
                                "description": "Ordered list of the pages of the output PDF. A comma-separated string (e.g. `A:1-3,B:2#90`) is also\naccepted. Every item has the format `<identifier>:<pages>[#<rotation>]`:\n\n- `<identifier>`: a key of `files_organize`, or `blank` to insert a blank page.\n- `<pages>`: a single page (`3`) or a range (`1-5`) of that file. Only one page or range per item;\n  use several items for non-consecutive pages. For `blank`, the size of the blank page as\n  `<width>x<height>` (each value between 1 and 20000, e.g. `595x842` for A4 portrait).\n- `#<rotation>` (optional): rotation in degrees, a non-negative multiple of 90 (`90`, `180`,\n  `270`...). Default `0`.\n\nItems with an identifier that is not in `files_organize` are ignored, but at least one valid item is\nrequired.\n",
                                "items": {
                                    "type": "string"
                                },
                                "example": [
                                    "A:1-3",
                                    "B:2#90",
                                    "blank:595x842",
                                    "A:5-6"
                                ]
                            }
                        }
                    }
                ],
                "x-tags": [
                    "PDF tools"
                ]
            },
            "ProcessResizeimage": {
                "title": "Resize image",
                "x-process-tool": "resizeimage",
                "x-legacy-anchors": [
                    "resizeimage-extra-parameters",
                    "resize_mode-resize",
                    "pixels_width-resize",
                    "pixels_height-resize",
                    "percentage-resize"
                ],
                "description": "Resize image extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "resizeimage"
                            },
                            "resize_mode": {
                                "type": "string",
                                "enum": [
                                    "pixels",
                                    "percentage"
                                ],
                                "default": "pixels",
                                "description": "Choose the resize mode. Accepted values:\n\n- `pixels`: the resize will be set using pixels.\n- `percentage`: the resize will be set as a percentage of the original image.\n"
                            },
                            "pixels_width": {
                                "type": "integer",
                                "description": "**Required if `resize_mode` is `pixels`.**\n\nThe width in pixels of the resized image.\n"
                            },
                            "pixels_height": {
                                "type": "integer",
                                "description": "**Required if `resize_mode` is `pixels`.**\n\nThe height in pixels of the resized image.\n"
                            },
                            "percentage": {
                                "type": "integer",
                                "description": "**Required if `resize_mode` is `percentage`.**\n\nThe percentage value to resize.\n"
                            },
                            "maintain_ratio": {
                                "type": "boolean",
                                "default": true,
                                "description": "If set as true, resize will keep aspect ratio and images will not be distort."
                            },
                            "no_enlarge_if_smaller": {
                                "type": "boolean",
                                "default": true,
                                "description": "Controls if the image can be gigger than the original on resize."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessCropimage": {
                "title": "Crop image",
                "x-process-tool": "cropimage",
                "x-legacy-anchors": [
                    "cropimage-extra-parameters",
                    "width-crop",
                    "height-crop",
                    "x-crop",
                    "y-crop"
                ],
                "description": "Crop image extra parameters. Crops a `width` x `height` pixel area starting at the point\n(`x`, `y`) of every image. All four parameters are required. SVG files are not accepted.\n\nThe EXIF orientation is applied before cropping, so coordinates refer to the image as it is\ndisplayed. To rotate an image before cropping, set the `rotate` property (`0`, `90`, `180`,\n`270`, clockwise) on the file in `files[]`: it is applied before the crop, so `x`, `y`,\n`width` and `height` refer to the rotated image.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "width",
                            "height",
                            "x",
                            "y"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "cropimage"
                            },
                            "width": {
                                "type": "integer",
                                "description": "The width in pixels of the area to crop."
                            },
                            "height": {
                                "type": "integer",
                                "description": "The height in pixels of the area to crop."
                            },
                            "x": {
                                "type": "integer",
                                "description": "The horizontal point (pixels from the left edge) where the crop starts."
                            },
                            "y": {
                                "type": "integer",
                                "description": "The vertical point (pixels from the top edge) where the crop starts."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessCompressimage": {
                "title": "Compress image",
                "x-process-tool": "compressimage",
                "x-legacy-anchors": [
                    "compressimage-extra-parameters"
                ],
                "description": "Compress image extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "compression_level"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "compressimage"
                            },
                            "compression_level": {
                                "type": "string",
                                "enum": [
                                    "extreme",
                                    "recommended",
                                    "low"
                                ],
                                "default": "recommended",
                                "description": "Compression level. Accepted values: `extreme`=Extreme compression,\n`recommended`=Recommended compression, `low`=Low compression.\n\n**Note:** the compression level applies to PNG images. JPG and GIF images are\noptimized automatically (JPG quality is chosen automatically and GIF uses a fixed\nlossy setting), regardless of the `compression_level` value.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessUpscaleimage": {
                "title": "Upscale image",
                "x-process-tool": "upscaleimage",
                "x-legacy-anchors": [
                    "upscaleimage-extra-parameters",
                    "upscale_multiplier"
                ],
                "description": "Upscale image extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "multiplier"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "upscaleimage"
                            },
                            "multiplier": {
                                "type": "integer",
                                "enum": [
                                    2,
                                    4
                                ],
                                "description": "Upscale multiplier. Accepted values: `2`, `4`."
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessRemovebackgroundimage": {
                "title": "Remove background image",
                "x-process-tool": "removebackgroundimage",
                "x-legacy-anchors": [
                    "backgroundremoveimage-extra-parameters"
                ],
                "description": "Background remove image has no extra parameters.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "removebackgroundimage"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessConvertimage": {
                "title": "Convert image",
                "x-process-tool": "convertimage",
                "x-legacy-anchors": [
                    "convertimage-extra-parameters",
                    "to-convert",
                    "gif_time-convert",
                    "gif_loop-convert"
                ],
                "description": "Convert image extra parameters. The target format is set with `to` (`convert_to` is accepted\nas an alias; if both are sent, `to` is used).\n\n**To `jpg`** the accepted input formats are JPG/JPEG, PNG, GIF, TIF/TIFF, SVG, WEBP and HEIC;\nany other extension is handled as a RAW camera file (or PSD). Notes:\n\n- Transparent areas (PNG, TIF, SVG) are flattened on a white background.\n- Animated GIF and animated WEBP files produce one JPG per frame (when several GIF files are\n  converted, the frames of each one are packed in its own folder).\n- HEIC files containing several images produce a JPG of the first image only.\n- For RAW files the embedded preview is used unless `high_res` is `true`.\n\n**To `png`, `gif` and `gif_animation`** the source images are meant to be JPG.\n`gif_animation` joins **all** the files of the task, in the order of `files[]`, into a single\nanimated GIF. HEIC is only supported as an input format (converted to JPG); it can't be an\noutput format.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "convertimage"
                            },
                            "to": {
                                "type": "string",
                                "enum": [
                                    "jpg",
                                    "png",
                                    "gif",
                                    "gif_animation"
                                ],
                                "default": "jpg",
                                "description": "The format to convert to. Accepted values: `jpg`, `png`, `gif` (static) and\n`gif_animation` (one animated GIF made of all the task images).\n"
                            },
                            "convert_to": {
                                "type": "string",
                                "enum": [
                                    "jpg",
                                    "png",
                                    "gif",
                                    "gif_animation"
                                ],
                                "default": "jpg",
                                "description": "Alias of `to`, with the same values. If both are sent, `to` is used."
                            },
                            "gif_time": {
                                "type": "integer",
                                "default": 50,
                                "description": "Only for `gif_animation`: time each image is shown, in hundredths of a second\n(`50` = 0.5 seconds).\n"
                            },
                            "gif_loop": {
                                "type": "boolean",
                                "default": true,
                                "description": "Only for `gif_animation`: `true` loops the animation forever, `false` plays it once\nand stops at the end.\n"
                            },
                            "high_res": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only for RAW camera files converted to `jpg`. By default the JPG preview embedded in\nthe RAW file is extracted (fast, but it may be smaller than the full sensor\nresolution). If `true`, the full RAW data is decoded instead.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessWatermarkimage": {
                "title": "Watermark image",
                "x-process-tool": "watermarkimage",
                "x-legacy-anchors": [
                    "watermarkimage-extra-parameters",
                    "type-watermark",
                    "gravity-watermark",
                    "vertical_adjustment_percent-watermark",
                    "horizontal_adjustment_percent-watermark",
                    "rotation-watermark",
                    "font_family-watermark",
                    "font_style-watermark",
                    "font_size-watermark",
                    "font_color-watermark",
                    "transparency-watermark",
                    "mosaic-watermark"
                ],
                "description": "Watermark image extra parameters. Stamps one or more text or image elements on every image.\nSVG files are not accepted.\n\nEach element is placed at the anchor given by its `gravity` and moved by\n`horizontal_adjustment_percent` / `vertical_adjustment_percent`; its size is set with\n`width_percent`. Text elements are rendered as an image first, so they are scaled with\n`width_percent` too.\n\n**GIF images:** elements are drawn at their original size (a text uses `font_size`), without\n`width_percent` resizing, `rotation` or `opacity`.\n\nWith `mode` `outside` the canvas is extended with transparent bands above (`extra_north`)\nand/or below (`extra_south`) the image, so the elements can be stamped outside the original\npicture. Positions and sizes are then calculated on the extended canvas.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "elements"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "watermarkimage"
                            },
                            "elements": {
                                "type": "array",
                                "description": "An array of elements to stamp. This means you can set multiple elements to stamp.",
                                "items": {
                                    "type": "object",
                                    "title": "Watermark image element",
                                    "description": "An element to stamp with the `watermarkimage` tool.",
                                    "required": [
                                        "type",
                                        "x_pos_percent",
                                        "y_pos_percent",
                                        "width_percent",
                                        "height_percent"
                                    ],
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "enum": [
                                                "image",
                                                "text"
                                            ],
                                            "description": "The type for the element. Accepted values: `image` or `text`."
                                        },
                                        "text": {
                                            "type": "string",
                                            "description": "**Required if `type` is `text`.**\n\nThe text to stamp. Elements with an empty text are skipped. The `@` character is removed.\n"
                                        },
                                        "server_filename": {
                                            "type": "string",
                                            "description": "**Required if `type` is `image`.**\n\nThe `server_filename` returned by the Upload resource for the stamp image, uploaded to\nthe same task. It must be a JPG or PNG file (`.jpg` or `.png` extension).\n"
                                        },
                                        "x_pos_percent": {
                                            "type": "number",
                                            "description": "**Required** (must be a number). Currently not used to place the element: the position\ncomes from `gravity` and the adjustment parameters.\n"
                                        },
                                        "y_pos_percent": {
                                            "type": "number",
                                            "description": "**Required** (must be a number). Currently not used to place the element: the position\ncomes from `gravity` and the adjustment parameters.\n"
                                        },
                                        "width_percent": {
                                            "type": "number",
                                            "description": "**Required** (must be a number). Width of the stamped element as a percentage of the\nimage width. The element keeps its aspect ratio.\n"
                                        },
                                        "height_percent": {
                                            "type": "number",
                                            "description": "**Required** (must be a number). Currently not used to size the element: the height\nfollows from `width_percent` and the element aspect ratio.\n"
                                        },
                                        "gravity": {
                                            "type": "string",
                                            "enum": [
                                                "North",
                                                "NorthEast",
                                                "NorthWest",
                                                "Center",
                                                "East",
                                                "West",
                                                "South",
                                                "SouthEast",
                                                "SouthWest"
                                            ],
                                            "default": "Center",
                                            "description": "Anchor position of the element. Accepted values: `North`, `NorthEast`, `NorthWest`,\n`Center`, `East`, `West`, `South`, `SouthEast`, `SouthWest`. Any other value\n(including the legacy `CenterEast` and `CenterWest`) is replaced by `NorthWest`.\n"
                                        },
                                        "horizontal_adjustment_percent": {
                                            "type": "number",
                                            "default": 0,
                                            "description": "Horizontal offset from the position defined in `gravity`, as a percentage of the image\nwidth. The offset is applied towards the inside of the image from the anchored edge.\n"
                                        },
                                        "vertical_adjustment_percent": {
                                            "type": "number",
                                            "default": 0,
                                            "description": "Vertical offset from the position defined in `gravity`, as a percentage of the image\nheight. The offset is applied towards the inside of the image from the anchored edge.\n"
                                        },
                                        "rotation": {
                                            "type": "integer",
                                            "default": 0,
                                            "description": "Angle of rotation in degrees, clockwise (e.g. `0`-`360`)."
                                        },
                                        "opacity": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 100,
                                            "default": 100,
                                            "description": "Percentage of opacity for stamping the text or image (`100` = fully opaque). Values\noutside 0-100 are clamped.\n"
                                        },
                                        "font_family": {
                                            "type": "string",
                                            "enum": [
                                                "Arial",
                                                "Arial Unicode MS",
                                                "Verdana",
                                                "Courier",
                                                "Times New Roman",
                                                "Comic Sans MS",
                                                "WenQuanYi Zen Hei",
                                                "Lohit Marathi"
                                            ],
                                            "default": "Arial Unicode MS",
                                            "description": "Only for `text` elements. Accepted values: `Arial`, `Arial Unicode MS`, `Verdana`,\n`Courier`, `Times New Roman`, `Comic Sans MS`, `WenQuanYi Zen Hei`, `Lohit Marathi`.\n"
                                        },
                                        "font_style": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "enum": [
                                                null,
                                                "Normal",
                                                "Regular",
                                                "Bold",
                                                "Italic",
                                                "Bold-Italic"
                                            ],
                                            "default": "Normal",
                                            "description": "Only for `text` elements. Accepted values: `Normal`, `Regular`, `Bold`, `Italic`,\n`Bold-Italic`, or `null` (the plain font family is used). Sending `bold: true` or\n`font_weight: bold` on the element turns the style into `Bold` (or `Bold-Italic`).\n"
                                        },
                                        "font_size": {
                                            "type": "number",
                                            "default": 14,
                                            "description": "Only for `text` elements. Font size in points used to render the text. Except for GIF\nimages, the rendered text is then scaled to `width_percent`, so the final size depends\non `width_percent`.\n"
                                        },
                                        "font_color": {
                                            "type": "string",
                                            "default": "#000000",
                                            "description": "Only for `text` elements. Hexadecimal color (e.g. `#000000`)."
                                        },
                                        "color_shadow": {
                                            "type": "string",
                                            "description": "Optional. Color of a shadow drawn around the element (e.g. `#ffffff`). No shadow by default."
                                        },
                                        "mosaic": {
                                            "type": "boolean",
                                            "default": false,
                                            "description": "If `true`, this value overrides all position parameters and stamps the image or text\n9 times per image, once at each `gravity` position, with no adjustment offsets.\n"
                                        }
                                    }
                                }
                            },
                            "mode": {
                                "type": "string",
                                "enum": [
                                    "inside",
                                    "outside"
                                ],
                                "default": "inside",
                                "description": "- `inside`: the elements are stamped over the image.\n- `outside`: the image canvas is first extended by `extra_north` / `extra_south`, so\n  the elements can sit outside the original image.\n"
                            },
                            "extra_north": {
                                "type": "number",
                                "default": 0,
                                "description": "Only with `mode` `outside`. Height of the transparent band added **above** the\nimage, as a percentage of the original image height (e.g. `20` adds 20%).\n"
                            },
                            "extra_south": {
                                "type": "number",
                                "default": 0,
                                "description": "Only with `mode` `outside`. Height of the transparent band added **below** the\nimage, as a percentage of the original image height.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessRepairimage": {
                "title": "Repair image",
                "x-process-tool": "repairimage",
                "description": "Repair tool has no options.",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "repairimage"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessRotateimage": {
                "title": "Rotate image",
                "x-process-tool": "rotateimage",
                "x-legacy-anchors": [
                    "rotateimage-extra-parameters"
                ],
                "description": "Rotate tool has no options, just set the `rotate` property of each file in `files[]`.\nAccepted values: `0`, `90`, `180`, `270` (degrees, clockwise); any other value means no\nrotation. Rotation is applied to JPG, PNG and GIF files.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "rotateimage"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessHtmlimage": {
                "title": "HTML to image",
                "x-process-tool": "htmlimage",
                "description": "Renders a web page (with a headless Chrome browser) and saves it as an image.\n\n**Input:** the page is not uploaded as a file. Send its address to the Upload resource as\n`cloud_file` (e.g. `cloud_file=https://example.com`) in a `htmlimage` task; the response\n`server_filename` (a `.url` file) is the file to process.\n\nOutput by `to_format`:\n\n- `svg` (default): the page is printed as a single page and converted to SVG.\n- `jpg`: a full-page screenshot, `view_width` pixels wide (rendered at 2x pixel density).\n- `pdf`: a PDF, as in HTML to PDF.\n\n`page_size`, `page_orientation`, `page_margin` and `single_page` only apply to the\nprinted formats (`pdf`, and `svg` which is always a single page); they have no effect on\n`jpg`.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "htmlimage"
                            },
                            "to_format": {
                                "type": "string",
                                "enum": [
                                    "svg",
                                    "jpg",
                                    "pdf"
                                ],
                                "default": "svg",
                                "description": "Output format. Accepted values: `svg`, `jpg`, `pdf`."
                            },
                            "view_width": {
                                "type": "integer",
                                "description": "Width in pixels of the browser viewport used to render the page. If not set,\n`2800` is used.\n"
                            },
                            "view_height": {
                                "type": "integer",
                                "description": "Height in pixels of the browser viewport while the page loads. If not set, `2800`\nis used. The output height is determined by the page content (or `page_size`).\n"
                            },
                            "delay": {
                                "type": "integer",
                                "description": "Seconds to wait after the page has loaded before capturing it (e.g. to let\nanimations or lazy content finish). If not set (or `0`), `2` seconds are used.\n"
                            },
                            "single_page": {
                                "type": "boolean",
                                "default": true,
                                "description": "Only for `pdf`: `true` prints the whole web page as one long page; `false` splits it\ninto pages of `page_size`. `svg` output is always a single page.\n"
                            },
                            "page_size": {
                                "type": "string",
                                "enum": [
                                    "A0",
                                    "A1",
                                    "A2",
                                    "A3",
                                    "A4",
                                    "A5",
                                    "Letter"
                                ],
                                "default": "A4",
                                "description": "Only for `pdf` with `single_page` `false`: size of the output pages. Accepted values:\n`A0`, `A1`, `A2`, `A3`, `A4`, `A5`, `Letter`.\n"
                            },
                            "page_orientation": {
                                "type": "string",
                                "enum": [
                                    "portrait",
                                    "landscape"
                                ],
                                "default": "portrait",
                                "description": "Only for `pdf` and `svg`. Accepted values: `portrait`, `landscape`."
                            },
                            "page_margin": {
                                "type": "integer",
                                "description": "Only for `pdf` and `svg`. Margin, in pixels, applied to the four sides of the page. No margin by default."
                            },
                            "remove_popups": {
                                "type": "boolean",
                                "default": false,
                                "description": "If `true`, tries to hide pop-ups (e.g. cookie banners) by hiding the fixed-position\nelements with a very high `z-index`.\n"
                            },
                            "block_ads": {
                                "type": "boolean",
                                "default": false,
                                "description": "If `true`, requests to known ad servers (EasyList) are blocked while the page loads.\nSend it as a JSON boolean (`true`).\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "ProcessBlurfaceimage": {
                "title": "Blur faces",
                "x-process-tool": "blurfaceimage",
                "description": "Automatically detects the faces in every image (AI face detection) and blurs them. Images\nwhere no face is found are returned unchanged. SVG files are not accepted.\n\nOptionally, `face` enables face recognition against a reference face image, so only the\nmatching faces are blurred (`include`) or the matching faces are left untouched\n(`exclude`).\n\n**Manual regions:** instead of running the detection, a file in `files[]` can be sent with\n`processed: true` and an `elementArray` of regions to blur, each with `left`, `top`,\n`width_px` and `height_px` (in pixels; `width_px`/`height_px` greater than 0). If the\ncoordinates refer to a scaled preview, add `image_w` and `image_h` (the preview size) and\nthey are scaled to the original image.\n",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProcessBase"
                    },
                    {
                        "type": "object",
                        "required": [
                            "level"
                        ],
                        "properties": {
                            "tool": {
                                "type": "string",
                                "const": "blurfaceimage"
                            },
                            "level": {
                                "type": "string",
                                "enum": [
                                    "low",
                                    "recommended",
                                    "high"
                                ],
                                "description": "Face detection sensitivity. Accepted values: `low`, `recommended`, `high` (more\nsensitive: detects more faces). The aliases `low detection`/`light`,\n`recommended detection` and `high detection`/`forced` are also accepted\n(case-insensitive).\n"
                            },
                            "face": {
                                "oneOf": [
                                    {
                                        "type": "string",
                                        "description": "The `server_filename` of the reference face image (mode `include`)."
                                    },
                                    {
                                        "type": "object",
                                        "required": [
                                            "server_filename"
                                        ],
                                        "properties": {
                                            "server_filename": {
                                                "type": "string",
                                                "description": "The `server_filename` of the reference face image."
                                            },
                                            "mode": {
                                                "type": "string",
                                                "enum": [
                                                    "include",
                                                    "exclude"
                                                ],
                                                "default": "include",
                                                "description": "`include` blurs only the faces that match the reference; `exclude` blurs all the faces except the matching ones."
                                            }
                                        }
                                    }
                                ],
                                "description": "Optional. Reference face image for face recognition, uploaded to the same task\nwith the Upload resource. Send its `server_filename` as a string, or an object\n`{\"server_filename\": \"...\", \"mode\": \"include|exclude\"}` (`mode` defaults to\n`include`). If not set, every detected face is blurred.\n"
                            }
                        }
                    }
                ],
                "x-tags": [
                    "Image tools"
                ]
            },
            "Signature": {
                "title": "Signature request",
                "description": "A signature request (response attributes of [Get Signature status](#tag/signatures/GET/v1/signature/requesterview/{token_requester})).\n",
                "type": "object",
                "properties": {
                    "log": {
                        "type": "array",
                        "description": "Audit trail of the request, oldest first. Only returned by **Get Signature status** with `log=1`.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "action": {
                                    "type": "string",
                                    "description": "Event, for example `request`, `email_signed`, `email_opened`, `email_error`, `viewed`, `sms_sent`, `sms_code_success`, `sms_code_fail`, `completed`, `fixed_email`, `change_phone`, `request_voided`, `certify`."
                                },
                                "action_datetime": {
                                    "type": "string",
                                    "description": "Date and time of the event."
                                },
                                "who": {
                                    "type": "string",
                                    "description": "Who triggered the event (`requester`, `signer`, `system`...)."
                                },
                                "signer_id": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Receiver related to the event, if any."
                                },
                                "ip": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "IP address of the person who triggered the event, if available."
                                },
                                "browser": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Browser (user agent) of the person who triggered the event, if available."
                                }
                            }
                        }
                    },
                    "completed_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The date when this signature request was successfully signed by all of the signers.\nThe format is `YYYY-mm-dd MM-HH-SS`. By default, it is formatted in the timezone that it\nis in your user panel\n"
                    },
                    "created": {
                        "type": "string",
                        "description": "The date when this signature request was created. The format is `YYYY-mm-dd MM-HH-SS`.\nBy default, it is formatted in the timezone that it is in your user panel\n"
                    },
                    "email": {
                        "type": "string",
                        "description": "Email from which the signature request was sent. It should match your user's account."
                    },
                    "expires": {
                        "type": "string",
                        "description": "The date when this signature request is going to expire. The format is\n`YYYY-mm-dd MM-HH-SS`. By default, it is formatted in the timezone that it is in your\nuser panel\n"
                    },
                    "language": {
                        "type": "string",
                        "description": "The language from which the request was sent"
                    },
                    "mode": {
                        "type": "string",
                        "enum": [
                            "multiple",
                            "single"
                        ],
                        "description": "- `multiple`: Default and only available mode in the API. A signature request is created\n  by a requester and sends it to one or more receivers.\n\n  > **Note:** The request creator can be also a receiver\n- `single`: It is the type of signature where the creator is the only one signing. No\n  other receiver participates in the process.\n\n  It corresponds to the **Only me** signature mode on the website.\n\n  The `create_signature` endpoint does not allow you to create this kind of signature\n  process.\n"
                    },
                    "name": {
                        "type": "string",
                        "description": "Signature request creator's name. It should match your user's account."
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "It contains the reasons why a signature was declined by a receiver"
                    },
                    "signer_reminder_days_cycle": {
                        "type": "integer",
                        "description": "The number of days between each email remainder."
                    },
                    "subject_signer": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Custom subject of the initial email sent to each receiver."
                    },
                    "message_signer": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Custom body message of the initial email sent to each receiver."
                    },
                    "token_requester": {
                        "type": "string",
                        "description": "It is the internal identifier of the signature. You have to use it in subsequent\nrequests to perform actions on an already created signature request.\n\n> **Note:** We encourage not to share this ID outside from your systems of your company\n"
                    },
                    "uuid": {
                        "type": "string",
                        "description": "This is a public identifier of the signature."
                    },
                    "expiring": {
                        "type": "boolean",
                        "description": "If true, the request is about to expire: less than 2 days left when the request lifetime (from creation to expiration) is under 16 days, or less than 4 days left when it is 16 days or more."
                    },
                    "expired": {
                        "type": "boolean",
                        "description": "If true, the request has already expired."
                    },
                    "files": {
                        "type": "array",
                        "description": "An array of the files used on that signature.",
                        "items": {
                            "title": "Signature file info",
                            "description": "A file used on a signature request.",
                            "type": "object",
                            "properties": {
                                "filename": {
                                    "type": "string"
                                },
                                "pages": {
                                    "type": "integer"
                                },
                                "filesize": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "signers": {
                        "type": "array",
                        "description": "An array of the receivers of the signature request.",
                        "items": {
                            "$ref": "#/components/schemas/SignatureReceiver"
                        }
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "draft",
                            "sent",
                            "completed",
                            "declined",
                            "expired",
                            "void",
                            "deleted"
                        ],
                        "description": "It can be one of the following:\n\n- `draft`: Signature request was created and is being built in order to send the emails\n  to the receivers.\n- `sent`: All emails were sent to all of the receivers of the signature.\n- `completed`: Every receiver has finished the process and no further actions are needed.\n- `declined`: Either a `signer` or a `validator` rejected the signature request.\n- `expired`: The signature has expired.\n- `void`: The requester canceled the signature request process before it was completed.\n- `deleted`: The signature request is completed but it was deleted afterwards.\n"
                    },
                    "certified": {
                        "type": "boolean",
                        "description": "It is true if the request is a Digital Signature.\n\n> **Note:** All requests created through the API are Digital Signatures\n"
                    },
                    "verify_enabled": {
                        "type": "boolean",
                        "description": "- `false` = No QR code is added on the audit trail.\n- `true` = It adds a QR code on the audit trail from where you can visualize the\n  documents and dowload them (both the original and signed).\n"
                    },
                    "lock_order": {
                        "type": "boolean",
                        "description": "- `false` = allows signers to sign in any order at any time.\n- `true` = if set to true, for a signer to be able to sign, it is necessary that the one\n  that is before them sign first. Until then, it must wait.\n"
                    },
                    "signer_reminders": {
                        "type": "boolean",
                        "description": "- `false` = No email reminders will be sent to any receivers.\n- `true` = Email reminders are sent periodically to the receivers.\n"
                    },
                    "uuid_visible": {
                        "type": "boolean",
                        "description": "- `false` = UUID is not shown at the bottom of each signature element.\n- `true` = UUID is shown at the bottom of each signature element.\n"
                    },
                    "about_to_expire_reminder": {
                        "type": "boolean"
                    },
                    "disable_notifications": {
                        "type": [
                            "null",
                            "boolean"
                        ]
                    },
                    "subject_cc": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "SignatureReceiver": {
                "title": "Signature receiver",
                "description": "A receiver of a signature request (response attributes of\n[Get Receiver info](#tag/signature-receivers/GET/v1/signature/receiver/info/{receiver_token_requester})).\n",
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "This is a public identifier of the signature."
                    },
                    "name": {
                        "type": "string",
                        "description": "Name of the receiver."
                    },
                    "email": {
                        "type": "string",
                        "description": "Email of the receiver."
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Phone of the receiver"
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "signer",
                            "validator",
                            "witness"
                        ],
                        "description": "- `signer`: The signer is a receiver type that can reject or sign a document.\n- `validator`: The validator is a receiver type that has ability to validate a document.\n  This receiver type is commonly used to either validate the content of a document or the\n  signing process once it is completed. The validator can validate or reject a document.\n- `witness`: The witness is a receiver type that receives a copy of the original document\n  and the completely signed one as well. This type is used if someone must only receive\n  and view the document but they don't need to take any action on it.\n"
                    },
                    "token_requester": {
                        "type": "string",
                        "description": "It is the internal identifier of the receiver\n\n> **Note:** We encourage not to share this ID outside from your systems of your company\n"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "waiting",
                            "sent",
                            "viewed",
                            "signed",
                            "declined",
                            "validated",
                            "nonvalidated",
                            "error"
                        ],
                        "description": "- `waiting`: The receiver is waiting to receive the initial email.\n- `sent`: The initial email has been successfully sent to the receiver's email provider.\n- `viewed`: The receiver has viewed the documents\n- `signed`: The signer has signed the documents.\n- `declined`: The signer declined the request.\n- `validated`: The validator has successfully validated the request.\n- `nonvalidated`: The validator has rejected the request.\n- `error`: There was an error and further investigation on our side.\n"
                    },
                    "access_code": {
                        "type": "boolean",
                        "description": "`true` if the receiver must provide an access code in order to view the document(s).\n\n`false` otherwise.\n"
                    },
                    "force_signature_type": {
                        "type": "string",
                        "enum": [
                            "all",
                            "text",
                            "sign",
                            "image"
                        ],
                        "description": "- `all` : The signer can choose the preferred signature adoption.\n- `text` : The signer must sign with a pre-defined font.\n- `sign` : The signer must sign drawning a signature.\n- `image` : The signer must sign by uploading a signature.\n"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Reject reason if `signer` or `validator` rejected the request."
                    },
                    "phone_access_code": {
                        "type": "boolean"
                    }
                }
            }
        },
        "parameters": {
            "TaskServer": {
                "name": "server",
                "in": "path",
                "required": true,
                "description": "Server assigned to the task by the Start resource, e.g. `api11.ilovepdf.com`.",
                "schema": {
                    "type": "string",
                    "example": "api11.ilovepdf.com"
                }
            },
            "StartTool": {
                "name": "tool",
                "in": "path",
                "required": true,
                "description": "The tool you want to access.\n\nPDF tools: `compress`, `extract`, `htmlpdf`, `imagepdf`, `merge`, `officepdf`, `organize`, `pagenumber`,\n`pdfa`, `pdfjpg`, `pdfocr`, `protect`, `repair`, `rotate`, `split`, `unlock`, `validatepdfa`, `editpdf`,\n`watermark`.\n\nAI PDF tools: `splitsmart`, `summarize`, `translate`, `pdfmarkdown`, `formsdetect`.\n\nImage tools: `blurfaceimage`, `compressimage`, `cropimage`, `convertimage`, `htmlimage`,\n`removebackgroundimage`, `repairimage`, `resizeimage`, `rotateimage`, `upscaleimage`, `watermarkimage`.\n",
                "schema": {
                    "type": "string",
                    "enum": [
                        "compress",
                        "extract",
                        "htmlpdf",
                        "imagepdf",
                        "merge",
                        "officepdf",
                        "pagenumber",
                        "pdfa",
                        "pdfjpg",
                        "pdfocr",
                        "protect",
                        "repair",
                        "rotate",
                        "split",
                        "unlock",
                        "validatepdfa",
                        "watermark",
                        "editpdf",
                        "resizeimage",
                        "cropimage",
                        "compressimage",
                        "upscaleimage",
                        "removebackgroundimage",
                        "convertimage",
                        "watermarkimage",
                        "repairimage",
                        "rotateimage",
                        "organize",
                        "splitsmart",
                        "summarize",
                        "translate",
                        "pdfmarkdown",
                        "formsdetect",
                        "blurfaceimage",
                        "htmlimage"
                    ]
                }
            },
            "SignatureTokenRequester": {
                "name": "token_requester",
                "in": "path",
                "required": true,
                "description": "The `token_requester` of the signature request, i.e. the internal identifier of the\nsignature returned when it was created (see [Get Signature status](#tag/signatures/GET/v1/signature/requesterview/{token_requester})).\n",
                "schema": {
                    "type": "string"
                }
            },
            "SignatureReceiverTokenRequester": {
                "name": "receiver_token_requester",
                "in": "path",
                "required": true,
                "description": "The `token_requester` of the receiver, i.e. the internal identifier of the receiver (see\n[Get Receiver info](#tag/signature-receivers/GET/v1/signature/receiver/info/{receiver_token_requester})).\n",
                "schema": {
                    "type": "string"
                }
            }
        },
        "responses": {
            "StartResponse": {
                "description": "Your assigned server and the Task ID to use.",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "description": "Information about which server will be your assigned server and which Task ID to use.",
                            "properties": {
                                "server": {
                                    "type": "string",
                                    "description": "Assigned server for the task, to be used as `{server}` in the following requests.",
                                    "example": "api11.ilovepdf.com"
                                },
                                "task": {
                                    "type": "string",
                                    "description": "Task ID.",
                                    "example": "g27d4mrsg3ztmnzAgm5d..."
                                },
                                "remaining_credits": {
                                    "type": "integer",
                                    "example": 1234
                                }
                            }
                        },
                        "example": {
                            "server": "api11.ilovepdf.com",
                            "task": "g27d4mrsg3ztmnzAgm5d...",
                            "remaining_credits": 1234
                        }
                    }
                }
            },
            "CoreError": {
                "description": "Error response.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            }
        },
        "examples": {
            "SignatureStatusExample": {
                "summary": "Signature",
                "value": {
                    "completed_on": null,
                    "created": "2021-10-18 14:03:43",
                    "email": "email@email.com",
                    "expires": "2022-02-15 15:00:00",
                    "language": "en",
                    "mode": "multiple",
                    "name": "name",
                    "notes": null,
                    "signer_reminder_days_cycle": 2,
                    "subject_signer": null,
                    "message_signer": null,
                    "token_requester": "token-requester",
                    "uuid": "18B06FDC-8643-447C-BAFB-9D3F8CA421B6",
                    "expiring": false,
                    "expired": false,
                    "files": [
                        {
                            "filename": "sample.pdf",
                            "pages": 2,
                            "filesize": 22698
                        }
                    ],
                    "signers": [
                        {
                            "uuid": "FCE3CAB9-2320-44C1-B18B-0F23BE2CF2FD",
                            "name": "name",
                            "email": "email@email.com",
                            "phone": null,
                            "type": "signer",
                            "token_requester": "token-signer-requester",
                            "status": "waiting",
                            "access_code": false,
                            "phone_access_code": false,
                            "force_signature_type": "all",
                            "notes": null
                        }
                    ],
                    "status": "draft",
                    "certified": true,
                    "verify_enabled": true,
                    "lock_order": false,
                    "signer_reminders": true,
                    "about_to_expire_reminder": true,
                    "uuid_visible": true
                }
            },
            "SignatureReceiverExample": {
                "summary": "Receiver",
                "value": {
                    "uuid": "FCE3CAB9-2320-44C1-B18B-0F23BE2CF2FD",
                    "name": "name",
                    "email": "email@email.com",
                    "phone": null,
                    "type": "signer",
                    "token_requester": "tokenrequester",
                    "status": "waiting",
                    "access_code": false,
                    "force_signature_type": "all",
                    "notes": null
                }
            }
        }
    },
    "x-tagGroups": [
        {
            "name": "Authentication endpoint",
            "tags": [
                "Authentication"
            ]
        },
        {
            "name": "PDF & Image REST API",
            "tags": [
                "Start",
                "Upload",
                "Process",
                "Download",
                "Task",
                "PDF tools",
                "Image tools"
            ]
        },
        {
            "name": "Signature REST API",
            "tags": [
                "Signatures",
                "Signature receivers",
                "Signature files"
            ]
        },
        {
            "name": "Webhook subscriptions",
            "tags": [
                "Webhook subscriptions"
            ]
        }
    ],
    "tags": [
        {
            "name": "Authentication",
            "description": "Obtain the JWT signed token sent as `Authorization: Bearer {signed_token}` in every request. The token can be\nself-signed with your project secret key (recommended for server side code) or requested to the\nauthentication server (recommended for client side code). See the **Authentication** section.\nServer-side code can also send the project secret key in the `X-Api-Key` header instead of a token.\n"
        },
        {
            "name": "Start",
            "x-legacy-anchors": [
                "start"
            ],
            "description": "Retrieve the information about which server will be your assigned server and which Task ID to use.\nThe request must contain the tool you want to access.\n"
        },
        {
            "name": "Upload",
            "x-legacy-anchors": [
                "upload"
            ],
            "description": "This is the second step of the Task. Here is where you upload your files for a given task. The files\nwill be uploaded and stored in the server until the process order is sent (Step 3 of a Task).\n\nIt accepts chunk file upload. When uploading a chunk file, if the last chunk is sent and some of the\nprevious chunks are missing it will throw an error. Finally, files can be uploaded either from local\nor web sources.\n"
        },
        {
            "name": "Process",
            "description": "Once the files are uploaded for the Task, this resource initiates the processing of all files. In the\nrequest, you must specify which files you want to process from the uploaded ones in Step 2 (Upload). This\nmeans that you can request to process fewer files than the uploaded ones. If some files have an error while\nprocessing, you can check their status in the table of **File Status Types** (see `FileStatus`). If the error\nis **WrongPassword** the response will throw a 400 error. However, the [Task Status](#tag/task) would be kept\nas **TaskWaiting** so you can try to resend the request to process files using the required passwords.\n\nWhen sending the request, you need to wait until the process is finished. However, if you don't want to wait,\nyou can use the `webhook` parameter.\n\n**The request body changes per `tool`.** All tools share the common parameters (`ProcessBase`: `task`,\n`tool`, `files`, `meta`, `ignore_errors`, `ignore_password`, `output_filename`, `packaged_filename`,\n`try_pdf_repair`, `custom_int`, `custom_string`, `webhook`), and\neach tool adds its own extra parameters. Select the tool in the request body schema selector.\n\nAccepted values for **PDF tools**: `merge`, `split`, `splitsmart`, `compress`, `pdfocr`, `pdfjpg`,\n`imagepdf`, `unlock`, `pagenumber`, `watermark`, `officepdf`, `repair`, `rotate`, `protect`, `pdfa`,\n`validatepdfa`, `htmlpdf`, `extract`, `summarize`, `pdfmarkdown`, `editpdf`, `formsdetect`,\n`organize`, `translate`.\n\n**Image tools**: `resizeimage`, `cropimage`, `compressimage`, `upscaleimage`, `removebackgroundimage`,\n`convertimage`, `watermarkimage`, `repairimage`, `rotateimage`, `htmlimage`, `blurfaceimage`.\n"
        },
        {
            "name": "Download",
            "x-legacy-anchors": [
                "download"
            ],
            "description": "Download the output files for the given task. If there is only one output file, it is served\ndirectly. If there is more than one file, they are served in a compressed ZIP folder. If there is\nmore than one processed file, there will be multiple output files for every processed file. The ZIP\nwill contain a folder for every processed file.\n\n**Download without authentication.** If you enable *Allow access to /download resource without\nAuthentication needed* in your project settings (API dashboard), the Download endpoints can be called\nwithout a token. Anybody who knows a Task ID can then download its processed files, so only enable it if\nyou need public download links.\n"
        },
        {
            "name": "Task",
            "x-legacy-anchors": [
                "task"
            ],
            "description": "The **/task** resource gives information about processed tasks and the metadata related of their uploaded\nand result files.\n\nFor security reasons, only can be accessed by server side code providing your `secret_key` as a parameter.\n\nAll tasks and their related files are deleted after two hours of being processed. However, if you\nneed to delete the task and all related files immediately, you can do so by sending a DELETE request\nto `/task`.\n\nIf you need to apply different tools on the same files, **connected task** resource will allow you to\nexecute a new task on the files resulting from the previous tool. Using this resource means that you\ndon't need to upload your files again.\n\n## Task status types\n\n| Status | Meaning |\n|---|---|\n| **TaskWaiting** | Files for the task have been uploaded but processing order has not been received yet |\n| **TaskProcessing** | The task is currently processing files. |\n| **TaskSuccess** | The task has already been processed successfully. |\n| **TaskSuccessWithWarnings** | The task has already been processed successfully with warnings. |\n| **TaskError** | The task has been processed unsuccessfully. |\n| **TaskDeleted** | The task has already been deleted. |\n| **TaskNotFound** | Task not found. |\n"
        },
        {
            "name": "Webhook subscriptions",
            "description": "Subscribe a URL to webhook events from your code, without using the API dashboard (REST hooks, as used by\nautomation platforms). Subscriptions created this way appear in your dashboard as non-editable webhooks.\nEvents are delivered as described in the **Webhooks** section; you can have up to 3 active webhooks per\nevent type.\n"
        },
        {
            "name": "Signatures",
            "description": "Create and manage signature requests: create a request, list them, get their status,\nsend reminders, void them and increase their expiration days.\n\nSignature works in a different way than the other tools, it does have an Start and Upload,\nbut not a Process or Download, so, before creating a Signature, the following steps must be\ndone (please consider that all the files must be a PDF\\*):\n\n1. Call the [Start](#tag/start) with the tool `sign` (`https://api.ilovepdf.com/v1/start/sign`).\n2. [Upload](#tag/upload) the needed files for that signature.\n\n<small>\\* With the exception that you can upload a [brand logo](#tag/signatures/POST/v1/signature) file</small>\n\nThen call [Create signature request](#tag/signatures/POST/v1/signature) (`POST https://{server}/v1/signature`).\n"
        },
        {
            "name": "Signature receivers",
            "description": "Get the information of a receiver (signer, validator or viewer) of a signature request and\nfix its email address or phone number.\n"
        },
        {
            "name": "Signature files",
            "description": "Download the audit PDF, the original files and the signed files of a signature request.\n\nThese endpoints are served by the task server: call [start](#tag/start)\n(`https://api.ilovepdf.com/v1/start/sign`) and use the `{server}` parameter to get the server\nwhich you are going to do the API call.\n"
        },
        {
            "name": "PDF tools",
            "description": "Extra parameters of every PDF tool for the **Process** resource. Send them together with the common process parameters and `tool` set to the tool name."
        },
        {
            "name": "Image tools",
            "description": "Extra parameters of every image tool for the **Process** resource. Send them together with the common process parameters and `tool` set to the tool name."
        }
    ],
    "paths": {
        "/v1/auth": {
            "post": {
                "tags": [
                    "Authentication"
                ],
                "operationId": "authenticate",
                "summary": "Authenticate",
                "security": [],
                "description": "Request signed token from our authentication server.\n\nWhen you send a request to the /auth resource, you will receive the token to use in your\n`Authorization: Bearer {signed_token}` that you'll send in every request (**/start, /upload, /process,\n/download**). We strongly recommend that you activate filters by domain and IP if you need to request the\ntoken from our /auth server. This way, only the requests made from the domains you set will be accepted.\nRemember that the token has an expiration date and must be requested again.\n\nTake into account that all signed tokens expire after 1 hour.\n",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "public_key"
                                ],
                                "properties": {
                                    "public_key": {
                                        "type": "string",
                                        "description": "Project public key that you can find in [admin panel](/user/projects)."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Signed token.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "token": {
                                            "type": "string",
                                            "description": "Signed token to send as `Authorization: Bearer {signed_token}`."
                                        }
                                    }
                                },
                                "example": {
                                    "token": "eyJ0eXAiOiJKV1Q..."
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/start/{tool}": {
            "get": {
                "tags": [
                    "Start"
                ],
                "operationId": "startTask",
                "summary": "Get Server & Task ID",
                "description": "Retrieve the information about which server will be your assigned server and which Task ID to use. The\nrequest must contain the tool you want to access.\n\nEndpoint: `https://api.ilovepdf.com/v1/start/{tool}/{region}`. The `region` segment is optional\n(accepted values: `null` (default), `eu`, `us`, `fr`, `de`, `pl`, `in`, `sg`); this operation is the form\nwithout region, see **Get Server & Task ID in a region** for the form with it.\n",
                "servers": [
                    {
                        "url": "https://api.ilovepdf.com",
                        "description": "Main API server"
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/StartTool"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/StartResponse"
                    },
                    "400": {
                        "$ref": "#/components/responses/CoreError"
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/start/{tool}/{region}": {
            "get": {
                "tags": [
                    "Start"
                ],
                "operationId": "startTaskInRegion",
                "summary": "Get Server & Task ID in a region",
                "description": "Same as **Get Server & Task ID** (`https://api.ilovepdf.com/v1/start/{tool}/{region}`), specifying the\nregion / jurisdiction where the files will be uploaded and processed.\n",
                "servers": [
                    {
                        "url": "https://api.ilovepdf.com",
                        "description": "Main API server"
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/StartTool"
                    },
                    {
                        "name": "region",
                        "in": "path",
                        "required": true,
                        "description": "Optional (when omitted, use `/v1/start/{tool}`). Accepted values: `null` (default), `eu`, `us`, `ca`,\n`fr`, `de`, `pl`, `in`, `sg`.\n\nThe region / jurisdiction where the files will be uploaded and processed.\n\nAccepted regions: `eu` (Europe), `us` (United States), `ca` (Canada), `fr` (France), `de` (Germany),\n`pl` (Poland), `in` (India), `sg` (Singapore).\n",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "eu",
                                "us",
                                "ca",
                                "fr",
                                "de",
                                "pl",
                                "in",
                                "sg"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/StartResponse"
                    },
                    "400": {
                        "$ref": "#/components/responses/CoreError"
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/upload": {
            "post": {
                "tags": [
                    "Upload"
                ],
                "operationId": "uploadFile",
                "summary": "Upload file",
                "description": "This is the second step of the Task. Here is where you upload your files for a given task. The files\nwill be uploaded and stored in the server until the process order is sent (Step 3 of a Task).\n\nIt accepts chunk file upload. When uploading a chunk file, if the last chunk is sent and some of the\nprevious chunks are missing it will throw an error. Finally, files can be uploaded either from local\nor web sources.\n\n- **Source file is local**: if the uploaded source file is local, the data must be sent using\n  **form-data** request type (`multipart/form-data`) with `task`, `file` and, for chunk uploads,\n  `chunk` and `chunks`.\n- **Source file is from the cloud**: send `task` and `cloud_file` (public URL of the file).\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Start resource will assign the assigned server for the task. Example: `api1.ilovepdf.com` or `api1.iloveimg.com`."
                            }
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "title": "Source file is local",
                                "description": "If the uploaded source file is local, the data must be sent using **form-data** request type.",
                                "required": [
                                    "task",
                                    "file"
                                ],
                                "properties": {
                                    "task": {
                                        "type": "string",
                                        "description": "Task ID where the files must be uploaded."
                                    },
                                    "file": {
                                        "type": "string",
                                        "format": "binary",
                                        "description": "File to be uploaded."
                                    },
                                    "chunk": {
                                        "type": "integer",
                                        "description": "If it is a chunk upload this number indicates the number of chunks being uploaded. Always send the chunks in order. First chunk must be 0."
                                    },
                                    "chunks": {
                                        "type": "integer",
                                        "description": "If it is a chunk upload this number indicates the total number of chunks for this file."
                                    }
                                }
                            },
                            "example": {
                                "task": "g27d4mrsg3ztmnzAgm5d...",
                                "file": "@document.pdf"
                            }
                        },
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "title": "Source file is from the cloud",
                                "required": [
                                    "task",
                                    "cloud_file"
                                ],
                                "properties": {
                                    "task": {
                                        "type": "string",
                                        "description": "Task ID where the files must be uploaded."
                                    },
                                    "cloud_file": {
                                        "type": "string",
                                        "format": "uri",
                                        "description": "Public URL of the file."
                                    }
                                }
                            },
                            "example": {
                                "task": "g27d4mrsg3ztmnzAgm5d...",
                                "cloud_file": "https://example.com/document.pdf"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "title": "Source file is from the cloud",
                                "required": [
                                    "task",
                                    "cloud_file"
                                ],
                                "properties": {
                                    "task": {
                                        "type": "string",
                                        "description": "Task ID where the files must be uploaded."
                                    },
                                    "cloud_file": {
                                        "type": "string",
                                        "format": "uri",
                                        "description": "Public URL of the file."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The file has been uploaded. Use `server_filename` in the Process step.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "server_filename": {
                                            "type": "string",
                                            "description": "The assigned server filename. Use it in the `files` array of the Process resource.",
                                            "example": "cd29201ebe...5257c95d9843.pdf"
                                        }
                                    }
                                },
                                "example": {
                                    "server_filename": "cd29201ebe...5257c95d9843.pdf"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/CoreError"
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/upload/{task}/{server_filename}": {
            "delete": {
                "tags": [
                    "Upload"
                ],
                "operationId": "deleteFile",
                "summary": "Remove an already uploaded file from server",
                "description": "Remove an already uploaded file from server.",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Start resource will assign the assigned server for the task. Example: `api1.ilovepdf.com` or `api1.iloveimg.com`."
                            }
                        }
                    }
                ],
                "parameters": [
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task ID.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "server_filename",
                        "in": "path",
                        "required": true,
                        "description": "Upload resource will tell you the assigned server filename.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The file has been removed from the server."
                    },
                    "400": {
                        "$ref": "#/components/responses/CoreError"
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/process": {
            "post": {
                "tags": [
                    "Process"
                ],
                "operationId": "processTask",
                "summary": "Process files",
                "x-legacy-anchors": [
                    "process"
                ],
                "description": "Once the files are uploaded for the Task, this resource initiates the processing of all files. In the\nrequest, you must specify which files you want to process from the uploaded ones in Step 2 (Upload). This\nmeans that you can request to process fewer files than the uploaded ones. If some files have an error while\nprocessing, you can check their status in the table of **File Status Types** (`FileStatus`). If the error\nis **WrongPassword** the response will throw a 400 error. However, the [Task Status](#tag/task) would be\nkept as **TaskWaiting** so you can try to resend the request to process files using the required passwords.\n\nWhen sending the request, you need to wait until the process is finished. However, if you don't want to\nwait, you can use the `webhook` parameter.\n\nThe request body is made of the common parameters (`ProcessBase`) plus the extra parameters of the\nselected `tool`.\n\n## File status types\n\n| Status | Meaning |\n|---|---|\n| **FileSuccess** | This file has been processed successfully. |\n| **FileWaiting** | This file is waiting to be processed. |\n| **WrongPassword** | This file has not been processed because needed a password and was not provided or incorrect. |\n| **TimeOut** | This file has not been processed correctly because it took more than your time limit to process it. |\n| **ServerFileNotFound** | This file has not been processed because has not been found in the server. |\n| **DamagedFile** | This file has not been processed because it was damaged or we were unable to read it. |\n| **NoImages** | This file has not been processed because we couldn't find any images to extract. Maybe there are vectors? |\n| **NoImagesPagesConverted** | PDF to JPG in `extract` mode: no images to extract, so the pages were converted to images instead. The file is processed and the task includes this warning. |\n| **OutOfRange** | This file has not been processed because some of the ranges do not match the number of pages. |\n| **NonConformant** | PDF file validation has not passed against PDF/A conformance provided. |\n| **UnknownError** | Unknown Error. |\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Start resource will assign the assigned server for the task. Example: `api1.ilovepdf.com` or `api1.iloveimg.com`."
                            }
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "oneOf": [
                                    {
                                        "$ref": "#/components/schemas/ProcessMerge"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessSplit"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessSplitsmart"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessCompress"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessPdfocr"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessPdfjpg"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessImagepdf"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessUnlock"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessPagenumber"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessWatermark"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessOfficepdf"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessRepair"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessRotate"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessProtect"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessPdfa"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessValidatepdfa"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessHtmlpdf"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessExtract"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessEditpdf"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessSummarize"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessPdfmarkdown"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessFormsdetect"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessTranslate"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessOrganize"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessResizeimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessCropimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessCompressimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessUpscaleimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessRemovebackgroundimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessConvertimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessWatermarkimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessRepairimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessRotateimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessHtmlimage"
                                    },
                                    {
                                        "$ref": "#/components/schemas/ProcessBlurfaceimage"
                                    }
                                ],
                                "discriminator": {
                                    "propertyName": "tool",
                                    "mapping": {
                                        "merge": "#/components/schemas/ProcessMerge",
                                        "split": "#/components/schemas/ProcessSplit",
                                        "splitsmart": "#/components/schemas/ProcessSplitsmart",
                                        "compress": "#/components/schemas/ProcessCompress",
                                        "pdfocr": "#/components/schemas/ProcessPdfocr",
                                        "pdfjpg": "#/components/schemas/ProcessPdfjpg",
                                        "imagepdf": "#/components/schemas/ProcessImagepdf",
                                        "unlock": "#/components/schemas/ProcessUnlock",
                                        "pagenumber": "#/components/schemas/ProcessPagenumber",
                                        "watermark": "#/components/schemas/ProcessWatermark",
                                        "officepdf": "#/components/schemas/ProcessOfficepdf",
                                        "repair": "#/components/schemas/ProcessRepair",
                                        "rotate": "#/components/schemas/ProcessRotate",
                                        "protect": "#/components/schemas/ProcessProtect",
                                        "pdfa": "#/components/schemas/ProcessPdfa",
                                        "validatepdfa": "#/components/schemas/ProcessValidatepdfa",
                                        "htmlpdf": "#/components/schemas/ProcessHtmlpdf",
                                        "extract": "#/components/schemas/ProcessExtract",
                                        "editpdf": "#/components/schemas/ProcessEditpdf",
                                        "summarize": "#/components/schemas/ProcessSummarize",
                                        "pdfmarkdown": "#/components/schemas/ProcessPdfmarkdown",
                                        "formsdetect": "#/components/schemas/ProcessFormsdetect",
                                        "translate": "#/components/schemas/ProcessTranslate",
                                        "organize": "#/components/schemas/ProcessOrganize",
                                        "resizeimage": "#/components/schemas/ProcessResizeimage",
                                        "cropimage": "#/components/schemas/ProcessCropimage",
                                        "compressimage": "#/components/schemas/ProcessCompressimage",
                                        "upscaleimage": "#/components/schemas/ProcessUpscaleimage",
                                        "removebackgroundimage": "#/components/schemas/ProcessRemovebackgroundimage",
                                        "convertimage": "#/components/schemas/ProcessConvertimage",
                                        "watermarkimage": "#/components/schemas/ProcessWatermarkimage",
                                        "repairimage": "#/components/schemas/ProcessRepairimage",
                                        "rotateimage": "#/components/schemas/ProcessRotateimage",
                                        "htmlimage": "#/components/schemas/ProcessHtmlimage",
                                        "blurfaceimage": "#/components/schemas/ProcessBlurfaceimage"
                                    }
                                }
                            },
                            "example": {
                                "task": "g27d4mrsg3ztmnzAgm5d...",
                                "tool": "compress",
                                "files": [
                                    {
                                        "server_filename": "cd29201ebe...5257c95d9843.pdf",
                                        "filename": "document.pdf"
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The task has been processed.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "download_filename": {
                                            "type": "string",
                                            "example": "output.zip"
                                        },
                                        "filesize": {
                                            "type": "integer",
                                            "example": 0
                                        },
                                        "output_filesize": {
                                            "type": "integer",
                                            "example": 0
                                        },
                                        "output_filenumber": {
                                            "type": "integer",
                                            "example": 2
                                        },
                                        "output_extensions": {
                                            "type": "string",
                                            "description": "JSON-encoded array of the output file extensions.",
                                            "example": "[\"pdf\"]"
                                        },
                                        "timer": {
                                            "type": "string",
                                            "example": "0.028"
                                        },
                                        "status": {
                                            "$ref": "#/components/schemas/TaskStatus"
                                        }
                                    }
                                },
                                "example": {
                                    "download_filename": "output.zip",
                                    "filesize": 0,
                                    "output_filesize": 0,
                                    "output_filenumber": 2,
                                    "output_extensions": "[\"pdf\"]",
                                    "timer": "0.028",
                                    "status": "TaskSuccess"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad request. If a file error is **WrongPassword** the response will throw a 400 error; the Task Status\nis kept as **TaskWaiting** so you can resend the process request with the required passwords.\n",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/download/{task}": {
            "get": {
                "tags": [
                    "Download"
                ],
                "operationId": "downloadTask",
                "summary": "Download output files",
                "description": "Download the output files for the given task. If there is only one output file, it is served\ndirectly. If there is more than one file, they are served in a compressed ZIP folder. If there is\nmore than one processed file, there will be multiple output files for every processed file. The ZIP\nwill contain a folder for every processed file.\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Start resource will assign the assigned server for the task. Example: `api1.ilovepdf.com` or `api1.iloveimg.com`."
                            }
                        }
                    }
                ],
                "parameters": [
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task ID.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The output file (if there is only one) or a ZIP file with all the output files. Response body:\n`ArrayBuffer` (binary file content).\n",
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "application/zip": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/CoreError"
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/download/{task}/filename": {
            "get": {
                "tags": [
                    "Download"
                ],
                "operationId": "downloadFilename",
                "summary": "Get output filename",
                "description": "Returns the name of the file that **Download output files** will serve for the task (the output file,\nor the ZIP name when there are several), so you can name the file before downloading it.\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Start resource will assign the assigned server for the task. Example: `api1.ilovepdf.com` or `api1.iloveimg.com`."
                            }
                        }
                    }
                ],
                "parameters": [
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task ID.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The output filename, as a JSON string.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                },
                                "example": "output.zip"
                            }
                        }
                    },
                    "400": {
                        "description": "`DownloadError`: the task doesn't exist or wasn't processed successfully (status other than `TaskSuccess` / `TaskSuccessWithWarnings`).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/webhook/subscribe": {
            "post": {
                "tags": [
                    "Webhook subscriptions"
                ],
                "operationId": "subscribeWebhook",
                "summary": "Subscribe to an event",
                "description": "Sends the given event type to `url`. If the URL is already subscribed it is reused and the event is\nadded to it. Up to 3 active webhooks per event type.\n",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "url",
                                    "event_type"
                                ],
                                "properties": {
                                    "url": {
                                        "type": "string",
                                        "format": "uri",
                                        "description": "Endpoint that will receive the events (HTTP POST, JSON body)."
                                    },
                                    "event_type": {
                                        "type": "string",
                                        "description": "Event to subscribe to.",
                                        "enum": [
                                            "task.completed",
                                            "task.fail",
                                            "signature.created",
                                            "signature.completed",
                                            "signature.declined",
                                            "signature.expired",
                                            "signature.void",
                                            "signature.deleted",
                                            "signature.about_expire",
                                            "signature.signer.completed",
                                            "signature.signer.need_email_fix",
                                            "signature.signer.need_sms_fix",
                                            "signature.validator.completed",
                                            "signature.validator.need_email_fix",
                                            "signature.validator.need_sms_fix"
                                        ]
                                    },
                                    "event_name": {
                                        "type": "string",
                                        "description": "Name of the webhook, shown in your API dashboard."
                                    }
                                }
                            },
                            "example": {
                                "url": "https://example.com/webhooks/ilovepdf",
                                "event_type": "task.completed",
                                "event_name": "My integration"
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Subscribed."
                    },
                    "400": {
                        "description": "The subscription couldn't be saved (e.g. invalid URL or event type)."
                    }
                }
            }
        },
        "/v1/webhook/unsubscribe": {
            "post": {
                "tags": [
                    "Webhook subscriptions"
                ],
                "operationId": "unsubscribeWebhook",
                "summary": "Unsubscribe from an event",
                "description": "Stops sending the given event type to `url`. When the URL has no events left, the webhook is removed\nfrom your account. Always returns `204`, also when there was no such subscription.\n",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "url",
                                    "event_type"
                                ],
                                "properties": {
                                    "url": {
                                        "type": "string",
                                        "format": "uri",
                                        "description": "Subscribed endpoint."
                                    },
                                    "event_type": {
                                        "type": "string",
                                        "description": "Event to unsubscribe from.",
                                        "enum": [
                                            "task.completed",
                                            "task.fail",
                                            "signature.created",
                                            "signature.completed",
                                            "signature.declined",
                                            "signature.expired",
                                            "signature.void",
                                            "signature.deleted",
                                            "signature.about_expire",
                                            "signature.signer.completed",
                                            "signature.signer.need_email_fix",
                                            "signature.signer.need_sms_fix",
                                            "signature.validator.completed",
                                            "signature.validator.need_email_fix",
                                            "signature.validator.need_sms_fix"
                                        ]
                                    }
                                }
                            },
                            "example": {
                                "url": "https://example.com/webhooks/ilovepdf",
                                "event_type": "task.completed"
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Unsubscribed (or nothing to unsubscribe)."
                    }
                }
            }
        },
        "/v1/task": {
            "post": {
                "tags": [
                    "Task"
                ],
                "operationId": "listTasks",
                "summary": "List and filter all tasks",
                "x-legacy-anchors": [
                    "process-custom_int"
                ],
                "description": "The **/task** resource gives information about processed tasks and the metadata related of their uploaded\nand result files.\n\nFor security reasons, only can be accessed by server side code providing your `secret_key` as a parameter.\n\nEndpoint: `https://api.ilovepdf.com/v1/task`.\n",
                "servers": [
                    {
                        "url": "https://api.ilovepdf.com",
                        "description": "Main API server"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "secret_key"
                                ],
                                "properties": {
                                    "secret_key": {
                                        "type": "string",
                                        "description": "Your project secret key."
                                    },
                                    "page": {
                                        "type": "integer",
                                        "default": 1,
                                        "description": "Results are offered paginated in 50 results per page."
                                    },
                                    "tool": {
                                        "type": "string",
                                        "description": "Filter tasks by tool."
                                    },
                                    "status": {
                                        "allOf": [
                                            {
                                                "$ref": "#/components/schemas/TaskStatus"
                                            }
                                        ],
                                        "description": "Filter tasks by task status type. Accepted values: `TaskProcessing`, `TaskSuccess`, `TaskSuccessWithWarnings`, `TaskError`, `TaskDeleted`. Tasks waiting to be processed (`TaskWaiting`) can't be used as a filter: the request fails with `400` \"Invalid status name\"."
                                    },
                                    "custom_int": {
                                        "type": "integer",
                                        "description": "Filter tasks by [custom_int](#shared-objects/ProcessBase) (the `custom_int` Process parameter)."
                                    }
                                }
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "secret_key"
                                ],
                                "properties": {
                                    "secret_key": {
                                        "type": "string",
                                        "description": "Your project secret key."
                                    },
                                    "page": {
                                        "type": "integer",
                                        "default": 1,
                                        "description": "Results are offered paginated in 50 results per page."
                                    },
                                    "tool": {
                                        "type": "string",
                                        "description": "Filter tasks by tool."
                                    },
                                    "status": {
                                        "allOf": [
                                            {
                                                "$ref": "#/components/schemas/TaskStatus"
                                            }
                                        ],
                                        "description": "Filter tasks by task status type. Accepted values: `TaskProcessing`, `TaskSuccess`, `TaskSuccessWithWarnings`, `TaskError`, `TaskDeleted`. Tasks waiting to be processed (`TaskWaiting`) can't be used as a filter: the request fails with `400` \"Invalid status name\"."
                                    },
                                    "custom_int": {
                                        "type": "integer",
                                        "description": "Filter tasks by [custom_int](#shared-objects/ProcessBase) (the `custom_int` Process parameter)."
                                    }
                                }
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "secret_key"
                                ],
                                "properties": {
                                    "secret_key": {
                                        "type": "string",
                                        "description": "Your project secret key."
                                    },
                                    "page": {
                                        "type": "integer",
                                        "default": 1,
                                        "description": "Results are offered paginated in 50 results per page."
                                    },
                                    "tool": {
                                        "type": "string",
                                        "description": "Filter tasks by tool."
                                    },
                                    "status": {
                                        "allOf": [
                                            {
                                                "$ref": "#/components/schemas/TaskStatus"
                                            }
                                        ],
                                        "description": "Filter tasks by task status type. Accepted values: `TaskProcessing`, `TaskSuccess`, `TaskSuccessWithWarnings`, `TaskError`, `TaskDeleted`. Tasks waiting to be processed (`TaskWaiting`) can't be used as a filter: the request fails with `400` \"Invalid status name\"."
                                    },
                                    "custom_int": {
                                        "type": "integer",
                                        "description": "Filter tasks by [custom_int](#shared-objects/ProcessBase) (the `custom_int` Process parameter)."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The list of tasks, newest first, paginated in 50 results per page. When there are no tasks to show, the response is the plain string `\"Sorry, no tasks to show.\"` (still `200`).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/TaskInfo"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/CoreError"
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/task/{task}": {
            "get": {
                "tags": [
                    "Task"
                ],
                "operationId": "getTask",
                "summary": "Get task status",
                "description": "Send periodic GET calls to **/task/{task}** to know the status of that task and if it has been completed\n(for example when the Process request was sent with `webhook` equal to *empty string*).\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Start resource will assign the assigned server for the task. Example: `api1.ilovepdf.com` or `api1.iloveimg.com`."
                            }
                        }
                    }
                ],
                "parameters": [
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task ID.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The task information.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TaskInfo"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/CoreError"
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            },
            "delete": {
                "tags": [
                    "Task"
                ],
                "operationId": "deleteTask",
                "summary": "Delete task",
                "description": "All tasks and their related files are deleted after two hours of being processed. However, if you\nneed to delete the task and all related files immediately, you can do so by sending a DELETE request\nto `/task`.\n\nWhen deleting a task, you'll get the `TaskDeleted` status in the response, but if the previous status\nwas `TaskWaiting` the response will contain a `UploadDeleted`. If called again, it will throw the error\n`TaskNotFound` in the following requests.\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Start resource will assign the assigned server for the task. Example: `api1.ilovepdf.com` or `api1.iloveimg.com`."
                            }
                        }
                    }
                ],
                "parameters": [
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "description": "Task ID.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The task has been deleted: `TaskDeleted` status, or `UploadDeleted` if the previous status was\n`TaskWaiting`.\n",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "description": "When deleting a task, you'll get the `TaskDeleted` status in the response, but if the previous status was `TaskWaiting` the response will contain a `UploadDeleted`.",
                                    "additionalProperties": true,
                                    "properties": {
                                        "status": {
                                            "$ref": "#/components/schemas/TaskStatus"
                                        },
                                        "upload_status": {
                                            "type": "string",
                                            "enum": [
                                                "UploadDeleted"
                                            ],
                                            "description": "Returned instead of the task when the previous status was `TaskWaiting`."
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`TaskNotFound`: the task was already deleted or does not exist.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/task/next": {
            "post": {
                "tags": [
                    "Task"
                ],
                "operationId": "connectedTask",
                "summary": "Connect task",
                "description": "If you need to apply different tools on the same files, **connected task** resource will allow you to\nexecute a new task on the files resulting from the previous tool. Using this resource means that you\ndon't need to upload your files again.\n\nThe response will contain the new `task` ID and the files as an array of objects where the key is the\n`server_filename` and `filename` is the value. You will need this information for the process step.\n\nOnce the new connected task is created, you can add, remove files, and work just like another tool.\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Start resource will assign the assigned server for the task. Example: `api1.ilovepdf.com` or `api1.iloveimg.com`."
                            }
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "task",
                                    "tool"
                                ],
                                "properties": {
                                    "task": {
                                        "type": "string",
                                        "description": "The parent task id."
                                    },
                                    "tool": {
                                        "type": "string",
                                        "description": "The tool for the next task."
                                    }
                                }
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "task",
                                    "tool"
                                ],
                                "properties": {
                                    "task": {
                                        "type": "string",
                                        "description": "The parent task id."
                                    },
                                    "tool": {
                                        "type": "string",
                                        "description": "The tool for the next task."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The new connected task.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "task": {
                                            "type": "string",
                                            "description": "The new task ID."
                                        },
                                        "files": {
                                            "type": "object",
                                            "description": "The files, where the key is the `server_filename` and `filename` is the value. You will need this information for the process step.",
                                            "additionalProperties": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/CoreError"
                    },
                    "401": {
                        "$ref": "#/components/responses/CoreError"
                    }
                }
            }
        },
        "/v1/signature": {
            "post": {
                "tags": [
                    "Signatures"
                ],
                "operationId": "createSignature",
                "summary": "Create signature request",
                "x-legacy-anchors": [
                    "create-signature"
                ],
                "description": "This endpoint is used to create a signature request\n\n> **Note:** Signature works in a different way than the other tools, it does have an Start and\n> Upload, but not a Process or Download, so, before creating a Signature, the following steps\n> must be done (please consider that all the files must be a PDF\\*):\n>\n> 1. Call the [Start](#tag/start) with the tool `sign` (`https://api.ilovepdf.com/v1/start/sign`).\n> 2. [Upload](#tag/upload) the needed files for that signature.\n>\n> \\* With the exception that you can upload a [brand logo](#tag/signatures/POST/v1/signature) file\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Task server assigned by the Start resource (`/v1/start/sign`)",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Server assigned to the task by the Start resource, e.g. `api11.ilovepdf.com`."
                            }
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "title": "Create signature request",
                                "x-legacy-anchors": [
                                    "brand-name",
                                    "brand-logo",
                                    "create-signature-signer_reminders",
                                    "create-signature-signer-reminder-days-cycle"
                                ],
                                "type": "object",
                                "required": [
                                    "task",
                                    "files",
                                    "signers"
                                ],
                                "properties": {
                                    "task": {
                                        "type": "string",
                                        "description": "Use the same task ID obtained when calling the [start](#tag/start) API call"
                                    },
                                    "files": {
                                        "type": "array",
                                        "maxItems": 5,
                                        "description": "Files to be signed. The order of the array is the same order as the receivers will see\nit. *Maximum number allowed is 5*\n\nEach file has the following attributes: `server_filename`, `filename`.\n\n> **Note:** For each element on this files attribute, one e-Signature credit will be\n> consumed, please check the following [link](#description/credit-consumption) to see how credit\n> consumption works.\n",
                                        "items": {
                                            "title": "Signature file",
                                            "x-legacy-anchors": [
                                                "create-signature-files"
                                            ],
                                            "description": "A file to be signed (item of the `files` attribute of\n[Create signature request](#tag/signatures/POST/v1/signature)).\n\n> **Note:** For each element on this files attribute, one e-Signature credit will be\n> consumed, please check the following [link](#description/credit-consumption) to see how credit consumption\n> works.\n",
                                            "type": "object",
                                            "required": [
                                                "server_filename",
                                                "filename"
                                            ],
                                            "properties": {
                                                "server_filename": {
                                                    "type": "string",
                                                    "description": "Server file name. It must be one previously uploaded using the `upload` endpoint."
                                                },
                                                "filename": {
                                                    "type": "string",
                                                    "description": "Original filename of the file to process."
                                                }
                                            }
                                        }
                                    },
                                    "brand_name": {
                                        "type": "string",
                                        "description": "Name of your brand.\n\nDisplayed in email notifications along with `brand_logo`\n\n> **Note:** It is an optional parameter that becomes mandatory when its counterpart\n> parameter [`brand_logo`](#tag/signatures/POST/v1/signature) is also present\n"
                                    },
                                    "brand_logo": {
                                        "type": "string",
                                        "description": "Server filename of the uploaded logo file. See [`files`](#tag/signatures/POST/v1/signature).\n\nDisplayed in email notifications along with `brand_name`\n\n> **Note:** It is an optional parameter that becomes mandatory when its counterpart\n> parameter [`brand_name`](#tag/signatures/POST/v1/signature) is also present\n"
                                    },
                                    "signers": {
                                        "type": "array",
                                        "maxItems": 50,
                                        "description": "Receivers that participate in the signature process. Each signer has the following\nattributes: `name`, `email`, `phone`, `files`, `type`, `access_code`,\n`force_signature_type`.\n\n> **Note:** Maximum allowed signers (regardless of it's role) is *50*\n",
                                        "items": {
                                            "title": "Signature receiver (request)",
                                            "description": "A receiver that participates in the signature process (item of the `signers` attribute of\n[Create signature request](#tag/signatures/POST/v1/signature)).\n\n> **Note:** Maximum allowed signers (regardless of it's role) is *50*\n",
                                            "type": "object",
                                            "required": [
                                                "name",
                                                "email",
                                                "files"
                                            ],
                                            "properties": {
                                                "name": {
                                                    "type": "string",
                                                    "description": "Receiver full name."
                                                },
                                                "email": {
                                                    "type": "string",
                                                    "description": "Receiver email."
                                                },
                                                "phone": {
                                                    "type": "string",
                                                    "description": "Signer phone. Leave it empty or do not specify this attribute on the request if you\ndon't want to activate the SMS validation feature. It is only valid for type `signer`\n\n> **Note:** SMS validation doesn't consume any credits.\n"
                                                },
                                                "files": {
                                                    "type": "array",
                                                    "description": "Files that a receiver of type `signer` needs to sign.",
                                                    "items": {
                                                        "title": "Signer file",
                                                        "description": "A file that a receiver of type `signer` needs to sign, with its elements.",
                                                        "type": "object",
                                                        "required": [
                                                            "server_filename",
                                                            "elements"
                                                        ],
                                                        "properties": {
                                                            "server_filename": {
                                                                "type": "string",
                                                                "description": "Server filename of an uploaded PDF file. See [`files`](#tag/signatures/POST/v1/signature)"
                                                            },
                                                            "elements": {
                                                                "type": "array",
                                                                "maxItems": 1000,
                                                                "description": "Definition of the elements in a PDF document.\n\n> **Note:** The total amount of elements **on the request** (total) is *1000*\n",
                                                                "items": {
                                                                    "title": "Signature element",
                                                                    "description": "Definition of an element in a PDF document.\n\n> **Note:** The total amount of elements **on the request** (total) is *1000*\n",
                                                                    "type": "object",
                                                                    "required": [
                                                                        "position",
                                                                        "pages",
                                                                        "size"
                                                                    ],
                                                                    "properties": {
                                                                        "position": {
                                                                            "type": "string",
                                                                            "description": "Element position in a page (X, Y). It does have two types of formats:\n\n**Gravity positioning** which allows you to set the xPositioning and the yPosition, the\nleft value of the string is the \"X\" position, and the right is for the \"Y\". For instance\n`\"right bottom\"` or `\"center middle\"` (X first: `\"bottom right\"` is not valid).\n\nX values:\n\n1. `left`\n2. `center`\n3. `right`\n\nY values:\n\n1. `top`\n2. `middle`\n3. `bottom`\n\n**Standard positioning**: the position is \"X -Y\", the initial axis on a PDF starts at the\ntop left, therefore, all of the Y position should be equal to 0 or negative. A few\nexamples:\n\n1. `\"0 -30\"`\n2. `\"33.21 0\"`\n3. `\"254.98 -700.232\"`\n\n> **Note:** When using *Gravity positioning*, you can also use the additional parameter\n> `horizontal_position_adjustment` and `vertical_position_adjustment`\n",
                                                                            "examples": [
                                                                                "right bottom",
                                                                                "0 -30",
                                                                                "33.21 0",
                                                                                "254.98 -700.232"
                                                                            ]
                                                                        },
                                                                        "horizontal_position_adjustment": {
                                                                            "type": "integer",
                                                                            "default": 0,
                                                                            "description": "This parameter only works if the parameter **position** uses the **Gravity positioning**\n\nWhen value is greater than 0, it pushes the element to the right of the PDF.\n\n> **Note:** When selecting `left` on \"position\", if the value is less than 0 it'll be\n> ignored since this means the element would be outside of the PDF.\n>\n> When selecting `right` on \"position\", if the value more than 0 it'll be ignored since\n> this means the element would be outside of the PDF.\n"
                                                                        },
                                                                        "vertical_position_adjustment": {
                                                                            "type": "integer",
                                                                            "default": 0,
                                                                            "description": "This parameter only works if the parameter **position** uses the **Gravity positioning**\n\nWhen value is greater than 0, it pushes the element to the top of the PDF, since the\ninitial position of the PDF (0 0) is top left.\n\n> **Note:** When selecting `top` on \"position\", if the value is greater than 0 it'll be\n> ignored since this means the element would be outside of the PDF.\n>\n> When selecting `bottom` on \"position\", if the value less than 0 it'll be ignored since\n> this means the element would be outside of the PDF.\n"
                                                                        },
                                                                        "pages": {
                                                                            "type": "string",
                                                                            "description": "Page or pages where element will be placed\n\nMust have one of the following formats:\n\n1. `1`\n2. `3-12`\n3. `3,5,9-12`\n4. `-1,-2` **Note: negative numbers are allowed only on single pages, but it's not\n   allowed on ranges. -1 is the last page, whereas -2 is the second last page and so on.**\n",
                                                                            "examples": [
                                                                                "1",
                                                                                "3-12",
                                                                                "3,5,9-12",
                                                                                "-1,-2"
                                                                            ]
                                                                        },
                                                                        "content": {
                                                                            "type": "string",
                                                                            "description": "This property is **required** when the element type is either `date` or `text`.\n\n1. When the type is `text`, it specifies the text that will appear on the text box.\n2. When the type is `date`, it specifies the date format.\n\n   Allowed formats: **d-m-Y**, **d/m/Y**, **d.m.Y**, **Y-m-d**, **Y/m/d**, **Y.m.d**,\n   **m-d-Y**, **m/d/Y**, **m.d.Y**\n"
                                                                        },
                                                                        "size": {
                                                                            "type": "integer",
                                                                            "description": "Element size\n\nIt corresponds to the height of the element.\n\nWidth will adapt automatically according to its content\n"
                                                                        },
                                                                        "info": {
                                                                            "type": "string",
                                                                            "description": "This parameter only applies when the element type is `input`. It must be a JSON string\nwhere you can define the attributes of that element, an example is:\n\n**`{\"label\": \"my input label text\", \"description\": \"input description\"}`**\n",
                                                                            "examples": [
                                                                                "{\"label\": \"my input label text\", \"description\": \"input description\"}"
                                                                            ]
                                                                        },
                                                                        "type": {
                                                                            "type": "string",
                                                                            "enum": [
                                                                                "initials",
                                                                                "signature",
                                                                                "name",
                                                                                "date",
                                                                                "text",
                                                                                "input"
                                                                            ],
                                                                            "default": "signature",
                                                                            "description": "- `initials` : Signer initials.\n- `signature` : Signer signature.\n- `name` : Signer full name.\n- `date` : Date when the signature is applied.\n- `text` : Text to stamp above the pdf content.\n- `input` : The signer must fill the input.\n"
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "type": {
                                                    "type": "string",
                                                    "enum": [
                                                        "signer",
                                                        "validator",
                                                        "viewer"
                                                    ],
                                                    "default": "signer",
                                                    "description": "- `signer` : The signer is a receiver type that can reject or sign a document.\n- `validator` : The validator is a receiver type that has ability to validate a\n  document. This receiver type is commonly used to either validate the content of a\n  document or the signing process once it is completed. The validator can validate or\n  reject a document.\n- `viewer` : The viewer (also called witness in the rest of the document) is a receiver\n  type that receives a copy of the original document and the completely signed one as\n  well. Use this type if someone must only receive and view the document but they\n  don't need to take any action on it.\n"
                                                },
                                                "access_code": {
                                                    "type": "string",
                                                    "description": "If provided, all receivers will have to insert an access code. Otherwise the receiver\nwill not be able to access the document\n"
                                                },
                                                "force_signature_type": {
                                                    "type": "string",
                                                    "enum": [
                                                        "all",
                                                        "text",
                                                        "sign",
                                                        "image"
                                                    ],
                                                    "default": "all",
                                                    "description": "Use this field if you want to force this a receiver of type `signer` to use a specific\nsignature format.\n\n- `all` : The signer can choose the preferred signature adoption.\n- `text` : The signer must sign with a pre-defined font.\n- `sign` : The signer must sign drawing a signature.\n- `image` : The signer must sign by uploading a signature.\n"
                                                }
                                            }
                                        }
                                    },
                                    "language": {
                                        "type": "string",
                                        "description": "Receivers will receive emails in the provided language. Accepted values: `en-US`, `es`,\n`fr`, `it`, `ca`, `zh-cn`, `zh-tw`, `ar`, `ru`, `de`, `ja`, `pt`, `bg`, `ko`, `nl`, `el`,\n`hi`, `id`, `ms`, `pl`, `sv`, `th`, `tr`, `uk`, `vi`, `zh-Hans`, `zh-Hant`\n",
                                        "enum": [
                                            "en-US",
                                            "es",
                                            "fr",
                                            "it",
                                            "ca",
                                            "zh-cn",
                                            "zh-tw",
                                            "ar",
                                            "ru",
                                            "de",
                                            "ja",
                                            "pt",
                                            "bg",
                                            "ko",
                                            "nl",
                                            "el",
                                            "hi",
                                            "id",
                                            "ms",
                                            "pl",
                                            "sv",
                                            "th",
                                            "tr",
                                            "uk",
                                            "vi",
                                            "zh-Hans",
                                            "zh-Hant"
                                        ],
                                        "default": "en"
                                    },
                                    "lock_order": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "- `false` = allows receivers of `signer` type to sign in parallel.\n- `true` = receivers of `signer` type must sign sequentially in order.\n"
                                    },
                                    "message_signer": {
                                        "type": "string",
                                        "description": "Use this if you want to change the body of the initial email sent to the receivers."
                                    },
                                    "subject_signer": {
                                        "type": "string",
                                        "description": "Use this if you want to change the subject of the initial email sent to the receivers."
                                    },
                                    "uuid_visible": {
                                        "type": "boolean",
                                        "default": true,
                                        "description": "**It is highly recommend to enable this, otherwise it lowers the signatures validity.**\n\n- `false` = uuid is **not** shown at the bottom of each signature.\n- `true` = uuid is shown at the bottom of each signature element.\n"
                                    },
                                    "expiration_days": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 130,
                                        "default": 120,
                                        "description": "Days until the signature request will expire. (Value must be between `1` and `130`)"
                                    },
                                    "signer_reminders": {
                                        "type": "boolean",
                                        "default": true,
                                        "description": "- `false` = No email reminders will be sent to any receivers.\n- `true` = Email reminders are sent periodically to receivers.\n\nSee also [`signer_reminder_days_cycle`](#tag/signatures/POST/v1/signature).\n"
                                    },
                                    "signer_reminder_days_cycle": {
                                        "type": "integer",
                                        "default": 1,
                                        "description": "It is the time period that will wait between each reminder.\n\nSee also [`signer_reminders`](#tag/signatures/POST/v1/signature).\n"
                                    },
                                    "verify_enabled": {
                                        "type": "boolean",
                                        "default": true,
                                        "description": "- `false` = No QR code is added on the **audit trail**.\n- `true` = It adds a QR code on the **audit trail** that leads you to the original\n  documents and signed documents where you are free to download them\n"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Signature"
                                },
                                "example": {
                                    "about_to_expire_reminder": false,
                                    "completed_on": null,
                                    "created": "2021-10-18 14:03:43",
                                    "disable_notifications": null,
                                    "email": "email@email.com",
                                    "expires": "2022-02-15 15:00:00",
                                    "language": "en",
                                    "lock_order": false,
                                    "mode": "multiple",
                                    "name": "Guillem",
                                    "notes": null,
                                    "signer_reminder_days_cycle": 2,
                                    "signer_reminders": true,
                                    "subject_cc": null,
                                    "subject_signer": null,
                                    "timezone": null,
                                    "token_requester": "15928374asdf",
                                    "uuid": "18B06FDC-8643-447C-BAFB-9D3F8CA421B6",
                                    "uuid_visible": true,
                                    "verify_enabled": true,
                                    "expired": false,
                                    "expiring": false,
                                    "signers": [
                                        {
                                            "uuid": "FCE3CAB9-2320-44C1-B18B-0F23BE2CF2FD",
                                            "name": "name",
                                            "email": "emailsigner@email.com",
                                            "phone": null,
                                            "type": "signer",
                                            "token_requester": "1234asdf",
                                            "status": "waiting",
                                            "access_code": false,
                                            "phone_access_code": false,
                                            "force_signature_type": "all",
                                            "notes": null
                                        }
                                    ],
                                    "files": [
                                        {
                                            "filename": "sample.pdf",
                                            "pages": 2,
                                            "filesize": 22698
                                        }
                                    ],
                                    "certified": true,
                                    "status": "draft"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/{token_requester}": {
            "delete": {
                "tags": [
                    "Signatures"
                ],
                "operationId": "deleteSignature",
                "summary": "Delete Signature",
                "description": "Deletes a signature request: its status changes to `deleted` and all its files (original, signed and\naudit trail) are removed from our servers. It can be called at any time, also while the request is in\nprogress. Receivers are not notified and the credits are not refunded — to cancel an in-progress\nrequest and get the credits back, use **Void Signature** instead.\n\nA `signature.deleted` webhook event is sent.\n",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureTokenRequester"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The signature request was deleted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                },
                                "example": "Signature deleted"
                            }
                        }
                    },
                    "400": {
                        "description": "`SignatureError`: the signature request doesn't exist or couldn't be deleted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/list": {
            "get": {
                "tags": [
                    "Signatures"
                ],
                "operationId": "listSignatures",
                "summary": "List Signatures",
                "x-legacy-anchors": [
                    "list-signatures"
                ],
                "description": "List all created signature requests\n\nExample: `https://api.ilovepdf.com/v1/signature/list?page=0&per-page=100`\n",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Lookup page",
                        "schema": {
                            "type": "integer",
                            "default": 0
                        }
                    },
                    {
                        "name": "per-page",
                        "in": "query",
                        "required": false,
                        "description": "Paginator size\n\nAccepted values are in the range `[1, 100]`\n",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    },
                    {
                        "name": "text",
                        "in": "query",
                        "required": false,
                        "description": "Search text. Matches file names, receiver names and receiver emails (partial match).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "description": "Comma-separated list of statuses to filter by, e.g. `sent,expiring`. Accepted values: `draft`,\n`sent` (sent and not about to expire), `completed`, `void`, `declined`, `expired`, `deleted`, plus:\n\n- `expiring`: active requests about to expire (see `expiring` in the Signature request object).\n- `action_required`: requests with a receiver whose email couldn't be delivered (needs an email fix).\n\nUnknown values are ignored.\n",
                        "schema": {
                            "type": "string"
                        },
                        "example": "sent,expiring"
                    },
                    {
                        "name": "sort_field",
                        "in": "query",
                        "required": false,
                        "description": "Field to sort by.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "created",
                                "filename"
                            ],
                            "default": "created"
                        }
                    },
                    {
                        "name": "sort_direction",
                        "in": "query",
                        "required": false,
                        "description": "Sort direction.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "asc",
                                "desc"
                            ],
                            "default": "asc"
                        }
                    },
                    {
                        "name": "created_more_than",
                        "in": "query",
                        "required": false,
                        "description": "Only requests created on or after this date (`YYYY-MM-DD`). Invalid dates are ignored.",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "example": "2026-01-01"
                    },
                    {
                        "name": "created_less_than",
                        "in": "query",
                        "required": false,
                        "description": "Only requests created on or before this date (`YYYY-MM-DD`). Invalid dates are ignored.",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "example": "2026-12-31"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "description": "Total number of signature requests matching the filters.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-Pagination-Page-Count": {
                                "description": "Total number of pages.",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-Pagination-Current-Page": {
                                "description": "Current page (1-based).",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "X-Pagination-Per-Page": {
                                "description": "Page size.",
                                "schema": {
                                    "type": "integer"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Signature"
                                    }
                                },
                                "example": [
                                    {
                                        "completed_on": null,
                                        "created": "2021-10-18 14:03:43",
                                        "email": "email@email.com",
                                        "expires": "2022-02-15 15:00:00",
                                        "language": "en",
                                        "mode": "multiple",
                                        "name": "name",
                                        "notes": null,
                                        "signer_reminder_days_cycle": 2,
                                        "subject_cc": null,
                                        "subject_signer": null,
                                        "token_requester": "token-requester",
                                        "uuid": "18B06FDC-8643-447C-BAFB-9D3F8CA421B6",
                                        "expiring": false,
                                        "expired": false,
                                        "files": [
                                            {
                                                "filename": "sample.pdf",
                                                "pages": 2,
                                                "filesize": 22698
                                            }
                                        ],
                                        "signers": [
                                            {
                                                "uuid": "FCE3CAB9-2320-44C1-B18B-0F23BE2CF2FD",
                                                "name": "name",
                                                "email": "email@email.com",
                                                "phone": null,
                                                "type": "signer",
                                                "token_requester": "token-signer-requester",
                                                "status": "waiting",
                                                "access_code": false,
                                                "phone_access_code": false,
                                                "force_signature_type": "all",
                                                "notes": null
                                            }
                                        ],
                                        "status": "draft",
                                        "certified": true,
                                        "verify_enabled": true,
                                        "lock_order": false,
                                        "signer_reminders": true,
                                        "about_to_expire_reminder": true,
                                        "uuid_visible": true
                                    }
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/requesterview/{token_requester}": {
            "get": {
                "tags": [
                    "Signatures"
                ],
                "operationId": "getSignature",
                "summary": "Get Signature status",
                "x-legacy-anchors": [
                    "get-signature"
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureTokenRequester"
                    },
                    {
                        "name": "log",
                        "in": "query",
                        "required": false,
                        "description": "Send `log=1` to include the `log` attribute: the audit trail of the request (emails sent, opened and failed, documents viewed, SMS codes, signatures, voiding...).",
                        "schema": {
                            "type": "integer",
                            "enum": [
                                1
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Signature"
                                },
                                "examples": {
                                    "signature": {
                                        "$ref": "#/components/examples/SignatureStatusExample"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/receiver/info/{receiver_token_requester}": {
            "get": {
                "tags": [
                    "Signature receivers"
                ],
                "operationId": "getSignatureReceiver",
                "summary": "Get Receiver info",
                "x-legacy-anchors": [
                    "get-signer"
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureReceiverTokenRequester"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SignatureReceiver"
                                },
                                "examples": {
                                    "receiver": {
                                        "$ref": "#/components/examples/SignatureReceiverExample"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/{token_requester}/download-audit": {
            "get": {
                "tags": [
                    "Signature files"
                ],
                "operationId": "downloadSignatureAudit",
                "summary": "Download Audit",
                "x-legacy-anchors": [
                    "download-audit"
                ],
                "description": "It downloads the audit PDF file.\n\n> **Note:** The signature request status must be `completed`.\n\n> **Note:** Call [start](#tag/start) (`https://api.ilovepdf.com/v1/start/sign`) and use the\n> `{server}` parameter to get the server which you are going to do the API call.\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Server returned by the Start resource (`/v1/start/sign`)",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Server returned by calling `https://api.ilovepdf.com/v1/start/sign`, e.g. `api11.ilovepdf.com`."
                            }
                        }
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureTokenRequester"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The audit PDF file.",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/{token_requester}/download-original": {
            "get": {
                "tags": [
                    "Signature files"
                ],
                "operationId": "downloadSignatureOriginal",
                "summary": "Download Original files",
                "x-legacy-anchors": [
                    "download-original"
                ],
                "description": "It downloads the original files.\n\nIt returns a PDF file if a single file was uploaded. Otherwise a **zip file** with all\nuploaded files is returned.\n\n> **Note:** Call [start](#tag/start) (`https://api.ilovepdf.com/v1/start/sign`) and use the\n> `{server}` parameter to get the server which you are going to do the API call.\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Server returned by the Start resource (`/v1/start/sign`)",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Server returned by calling `https://api.ilovepdf.com/v1/start/sign`, e.g. `api11.ilovepdf.com`."
                            }
                        }
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureTokenRequester"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A PDF file if a single file was uploaded. Otherwise a **zip file** with all uploaded files.",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "application/zip": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/{token_requester}/download-signed": {
            "get": {
                "tags": [
                    "Signature files"
                ],
                "operationId": "downloadSignatureSigned",
                "summary": "Download Signed files",
                "x-legacy-anchors": [
                    "download-signed"
                ],
                "description": "It downloads the signed files.\n\nIt returns a PDF file if a single file was uploaded. Otherwise a **zip file** with all\nuploaded files is returned.\n\n> **Note:** If the Signature request status is different from `completed`, the call to this\n> API will not return any files and it will yield an HTTP status code `400`\n\n> **Note:** Call [start](#tag/start) (`https://api.ilovepdf.com/v1/start/sign`) and use the\n> `{server}` parameter to get the server which you are going to do the API call.\n",
                "servers": [
                    {
                        "url": "https://{server}",
                        "description": "Server returned by the Start resource (`/v1/start/sign`)",
                        "variables": {
                            "server": {
                                "default": "api11.ilovepdf.com",
                                "description": "Server returned by calling `https://api.ilovepdf.com/v1/start/sign`, e.g. `api11.ilovepdf.com`."
                            }
                        }
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureTokenRequester"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "A PDF file if a single file was uploaded. Otherwise a **zip file** with all uploaded files.",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "application/zip": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "The Signature request status is different from `completed`; no files are returned.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/receiver/fix-email/{receiver_token_requester}": {
            "put": {
                "tags": [
                    "Signature receivers"
                ],
                "operationId": "fixSignatureReceiverEmail",
                "summary": "Fix Receiver Email",
                "x-legacy-anchors": [
                    "fix-signer-email"
                ],
                "description": "Use this endpoint to correct the receiver's email address in the event that the email was\nnot delivered to a valid email address.\n",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureReceiverTokenRequester"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "email"
                                ],
                                "properties": {
                                    "email": {
                                        "type": "string",
                                        "description": "New valid email for the receiver"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SignatureReceiver"
                                },
                                "examples": {
                                    "receiver": {
                                        "$ref": "#/components/examples/SignatureReceiverExample"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/signer/fix-phone/{signer_token_requester}": {
            "put": {
                "tags": [
                    "Signature receivers"
                ],
                "operationId": "fixSignatureSignerPhone",
                "summary": "Fix Signer Phone",
                "x-legacy-anchors": [
                    "fix-signer-phone"
                ],
                "description": "Use this endpoint to correct the signers's mobile number in the event that the SMS was not\ndelivered to a valid mobile number.\n\n> **Note:** Only applicable to receivers of type `signer`\n",
                "parameters": [
                    {
                        "name": "signer_token_requester",
                        "in": "path",
                        "required": true,
                        "description": "The `token_requester` of the receiver (of type `signer`), see [Get Receiver info](#tag/signature-receivers/GET/v1/signature/receiver/info/{receiver_token_requester}).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "phone"
                                ],
                                "properties": {
                                    "phone": {
                                        "type": "string",
                                        "description": "New valid mobile number for the signer.\n\nIt must contain **only numbers**. Any other characters are not allowed. It is\nmandatory to specify the **international prefix** followed by the phone number.\n\nSeveral examples:\n\n- For +34 737 105 892 (Spain), the number sent to the API should be `34737105892`\n- For +64 (026) 2511-398 (New Zealand), the number sent to the API should be `640262511398`\n- For +44 077 8019 6390 (United Kingdom), the number sent to the API should be `4407780196390`\n- For +1 (379) 254-8609 (United States), the number sent to the API should be `13792548609`\n- For +55 955 730 5718 (Brazil), the number sent to the API should be `559557305718`\n",
                                        "examples": [
                                            "34737105892"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SignatureReceiver"
                                },
                                "examples": {
                                    "receiver": {
                                        "$ref": "#/components/examples/SignatureReceiverExample"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/sendReminder/{token_requester}": {
            "post": {
                "tags": [
                    "Signatures"
                ],
                "operationId": "sendSignatureReminders",
                "summary": "Send Reminder emails",
                "x-legacy-anchors": [
                    "send-reminders"
                ],
                "description": "When this endpoint is called, sends an email reminder to the receivers that did not\nfinished its action.\n\nIt is only available if the following conditions are met:\n\n- The signature status is `sent`\n- Signature mode is `multiple`. If you created the signature request from the API, then\n  this value is always set to `multiple`\n\n> **Note:** There is a daily limit of 2 calls\n\nReminders are only sent to signers and validators that haven't finished their action yet.\n",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureTokenRequester"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of reminder emails sent.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "remindersSend": {
                                            "type": "integer",
                                            "description": "Number of receivers that received a reminder email."
                                        }
                                    }
                                },
                                "example": {
                                    "remindersSend": 2
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "`SignatureError`: \"Signature reminder limit reached.\" when the daily limit is reached, or \"The signature can't be returned.\" when the request doesn't exist or isn't active.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/void/{token_requester}": {
            "put": {
                "tags": [
                    "Signatures"
                ],
                "operationId": "voidSignature",
                "summary": "Void Signature",
                "x-legacy-anchors": [
                    "signature-void"
                ],
                "description": "It voids a signature that it is currently in progress. Once voided, it will not be\naccessible for any receiver of the request.\n",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureTokenRequester"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Signature"
                                },
                                "examples": {
                                    "signature": {
                                        "$ref": "#/components/examples/SignatureStatusExample"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/signature/increase-expiration-days/{token_requester}": {
            "put": {
                "tags": [
                    "Signatures"
                ],
                "operationId": "increaseSignatureExpirationDays",
                "summary": "Increase Expiration Days",
                "x-legacy-anchors": [
                    "signature-increase-expiration-days"
                ],
                "description": "Increase the number of days in order to prevent the request from expiring and give\nreceivers extra time to perform remaining actions.\n",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/SignatureTokenRequester"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "days"
                                ],
                                "properties": {
                                    "days": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 130,
                                        "description": "The number of days to increase; a minimum of `1` and a maximum of `130`.\n\nThe signature cannot have an expiration date bigger than 130 days from now.\n"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Signature"
                                },
                                "examples": {
                                    "signature": {
                                        "$ref": "#/components/examples/SignatureStatusExample"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "webhooks": {
        "taskCompleted": {
            "post": {
                "summary": "task.completed",
                "operationId": "webhookTaskCompleted",
                "description": "Sent to your configured webhook URL when a task is completed. See the **Webhooks** section.",
                "security": [],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/WebhookTaskPayload"
                            }
                        }
                    }
                }
            }
        },
        "taskFailed": {
            "post": {
                "summary": "task.fail",
                "operationId": "webhookTaskFailed",
                "description": "Sent to your configured webhook URL when a task fails. See the **Webhooks** section.",
                "security": [],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/WebhookTaskPayload"
                            }
                        }
                    }
                }
            }
        },
        "signatureEvent": {
            "post": {
                "summary": "signature.*",
                "operationId": "webhookSignatureEvent",
                "description": "Sent to your configured webhook URL for signature related events (e.g. `signature.created`,\n`signature.signer.completed`). See the **Webhooks** section.\n",
                "security": [],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "description": "All signature related events contains one mandatory key: \"signature\", which contains the same information\nas if you used the API call of **Get signature status**. Additionally, if an event is directly related to a\nsigner / validator / witness, it also includes an additional key called \"signed\", the result of which is the\nsame as the API call **Get receiver info**.\n",
                                "properties": {
                                    "event": {
                                        "type": "string",
                                        "description": "The event name which is being sent, e.g. `signature.created`, `signature.signer.completed`."
                                    },
                                    "data": {
                                        "type": "object",
                                        "description": "The event related data.",
                                        "required": [
                                            "signature"
                                        ],
                                        "properties": {
                                            "signature": {
                                                "type": "object",
                                                "description": "Same information as the **Get signature status** API call."
                                            },
                                            "signer": {
                                                "type": "object",
                                                "description": "Present if the event is directly related to a signer / validator / witness (the docs call this key\n\"signed\"). Same information as the **Get receiver info** API call.\n"
                                            }
                                        }
                                    }
                                },
                                "example": {
                                    "event": "signature.signer.completed",
                                    "data": {
                                        "signature": {
                                            "expired": false,
                                            "lock_order": false,
                                            "expiring": false,
                                            "notes": null,
                                            "brand_name": null,
                                            "language": null,
                                            "subject_cc": null,
                                            "message_signer": null,
                                            "subject_signer": null,
                                            "token_requester": "xxxxxxxxxxxxx",
                                            "created": "2024-06-17 12:02:59",
                                            "completed_on": "2024-06-17 12:39:34",
                                            "expires": "2024-10-25 13:00:00",
                                            "status": "completed",
                                            "name": "test",
                                            "email": "test@isfjdijasdifjdasfadsf.com",
                                            "uuid_visible": true,
                                            "certified": true,
                                            "signer_reminders": true,
                                            "signer_reminder_days_cycle": 2,
                                            "verify_enabled": true,
                                            "uuid": "9B41A389-6645-45FB-A72D-3A19CC3EF9F9",
                                            "mode": "multiple",
                                            "files": [
                                                {
                                                    "filename": "a.pdf",
                                                    "pages": 62,
                                                    "filesize": 2617649
                                                }
                                            ]
                                        },
                                        "signer": {
                                            "uuid": "5E4E6228-CF1E-4533-BC85-4FA660117EF5",
                                            "name": "asdfadsfafas",
                                            "email": "test2@8usijfas9yudsfsdf.com",
                                            "phone": null,
                                            "phone_retries_left": 1,
                                            "type": "signer",
                                            "token_requester": "xxxxxxxxxxxxxxxxxxx",
                                            "status": "signed",
                                            "access_code": false,
                                            "force_signature_type": "all",
                                            "notes": null,
                                            "fix_email_needed": false,
                                            "fix_phone_needed": false
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
