@apifreaks/openapi-specs 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +156 -0
  3. package/dist/index.cjs +44663 -0
  4. package/dist/index.d.cts +30 -0
  5. package/dist/index.d.ts +30 -0
  6. package/dist/index.js +44631 -0
  7. package/package.json +81 -0
  8. package/specs/commodity/commodity-fluctuation.json +301 -0
  9. package/specs/commodity/commodity-prices.json +317 -0
  10. package/specs/commodity/commodity-symbols.json +215 -0
  11. package/specs/commodity/commodity-time-series.json +329 -0
  12. package/specs/commodity/historical-commodity-prices.json +273 -0
  13. package/specs/currency/currency-converter.json +261 -0
  14. package/specs/currency/currency-fluctuation.json +282 -0
  15. package/specs/currency/currency-historical-data-limit.json +158 -0
  16. package/specs/currency/currency-rate.json +229 -0
  17. package/specs/currency/currency-supported.json +234 -0
  18. package/specs/currency/currency-symbols.json +161 -0
  19. package/specs/currency/currency-time-series.json +325 -0
  20. package/specs/currency/geolocalized-currency-conversion.json +287 -0
  21. package/specs/currency/historical-currency-converter.json +269 -0
  22. package/specs/currency/historical-currency-rate.json +246 -0
  23. package/specs/dns/bulk-dns-lookup.json +624 -0
  24. package/specs/dns/dns-history-lookup.json +579 -0
  25. package/specs/dns/dns-lookup.json +466 -0
  26. package/specs/dns/reverse-dns-lookup.json +414 -0
  27. package/specs/domain/bulk-domain-checker.json +284 -0
  28. package/specs/domain/domain-search-with-suggestions.json +280 -0
  29. package/specs/domain/domain-search.json +206 -0
  30. package/specs/domain/subdomain-lookup.json +343 -0
  31. package/specs/email-validation/bulk-email-validation.json +534 -0
  32. package/specs/email-validation/email-checker.json +586 -0
  33. package/specs/financial/bulk-vat-rates-country.json +341 -0
  34. package/specs/financial/financial-apis-supported-countries.json +204 -0
  35. package/specs/financial/iban-validation.json +328 -0
  36. package/specs/financial/swift-code-finder.json +192 -0
  37. package/specs/financial/swift-code-lookup.json +220 -0
  38. package/specs/financial/vat-number-validation.json +283 -0
  39. package/specs/financial/vat-rates-by-ip.json +275 -0
  40. package/specs/financial/vat-rates-country.json +288 -0
  41. package/specs/general/usage-credits.json +218 -0
  42. package/specs/geocoding/forward-geocoding.json +402 -0
  43. package/specs/geocoding/reverse-geocoding.json +326 -0
  44. package/specs/geodb/administrative-units-details.json +250 -0
  45. package/specs/geodb/administrative-units-levels.json +198 -0
  46. package/specs/geodb/administrative-units.json +237 -0
  47. package/specs/geodb/cities.json +288 -0
  48. package/specs/geodb/countries-details.json +274 -0
  49. package/specs/geodb/countries.json +276 -0
  50. package/specs/geodb/flags-supported.json +166 -0
  51. package/specs/geodb/flags.json +227 -0
  52. package/specs/geodb/regions.json +109 -0
  53. package/specs/geodb/subregions.json +217 -0
  54. package/specs/ip-intelligence/bulk-ip-lookup.json +1162 -0
  55. package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +417 -0
  56. package/specs/ip-intelligence/ip-locator.json +941 -0
  57. package/specs/ip-intelligence/ip-threat-intelligence.json +316 -0
  58. package/specs/other/astronomy-data.json +803 -0
  59. package/specs/pdf/delete-pdf-page.json +286 -0
  60. package/specs/pdf/linearize-pdf.json +277 -0
  61. package/specs/pdf/merge-pdf.json +285 -0
  62. package/specs/pdf/pdf-compress.json +304 -0
  63. package/specs/pdf/pdf-decrypt.json +297 -0
  64. package/specs/pdf/pdf-encrypt.json +314 -0
  65. package/specs/pdf/pdf-extract-pages.json +295 -0
  66. package/specs/pdf/pdf-file-status.json +208 -0
  67. package/specs/pdf/pdf-file.json +190 -0
  68. package/specs/pdf/pdf-files.json +126 -0
  69. package/specs/pdf/pdf-resource-download.json +168 -0
  70. package/specs/pdf/pdf-resource-upload-binary.json +218 -0
  71. package/specs/pdf/pdf-resource-upload.json +248 -0
  72. package/specs/pdf/pdf-restrict.json +343 -0
  73. package/specs/pdf/pdf-split-pages.json +281 -0
  74. package/specs/pdf/pdf-task-status.json +252 -0
  75. package/specs/pdf/pdf-to-image.json +1219 -0
  76. package/specs/pdf/pdf-unrestrict.json +324 -0
  77. package/specs/pdf/rotate-pdf-pages.json +305 -0
  78. package/specs/phone-validation/bulk-phone-number-validation.json +518 -0
  79. package/specs/phone-validation/phone-number-validation.json +456 -0
  80. package/specs/scraper/web-scraper.json +674 -0
  81. package/specs/screenshot/bulk-screenshot.json +949 -0
  82. package/specs/screenshot/website-screenshot.json +1147 -0
  83. package/specs/ssl/ssl-certificate-chain-lookup.json +756 -0
  84. package/specs/ssl/ssl-certificate-lookup.json +634 -0
  85. package/specs/timezone/timezone-converter.json +362 -0
  86. package/specs/timezone/timezone-lookup.json +910 -0
  87. package/specs/user-agent/bulk-user-agent-parser.json +441 -0
  88. package/specs/user-agent/user-agent-parser.json +346 -0
  89. package/specs/weather/air-quality.json +779 -0
  90. package/specs/weather/bulk-live-weather.json +834 -0
  91. package/specs/weather/flood-forecast.json +693 -0
  92. package/specs/weather/historical-weather.json +1019 -0
  93. package/specs/weather/live-weather.json +789 -0
  94. package/specs/weather/marine-weather.json +940 -0
  95. package/specs/weather/time-series-weather.json +1056 -0
  96. package/specs/weather/weather-forecast.json +1202 -0
  97. package/specs/whois/asn-lookup.json +729 -0
  98. package/specs/whois/bulk-whois-lookup.json +698 -0
  99. package/specs/whois/domain-whois-history-lookup.json +500 -0
  100. package/specs/whois/reverse-whois.json +625 -0
  101. package/specs/whois/whois-domain-lookup.json +533 -0
  102. package/specs/whois/whois-ip-lookup.json +1110 -0
  103. package/specs/zip-code/bulk-zip-code-lookup.json +318 -0
  104. package/specs/zip-code/zip-code-api.json +299 -0
  105. package/specs/zip-code/zip-code-distance-match.json +311 -0
  106. package/specs/zip-code/zip-code-distance.json +307 -0
  107. package/specs/zip-code/zip-codes-by-city.json +279 -0
  108. package/specs/zip-code/zip-codes-by-region.json +278 -0
  109. package/specs/zip-code/zip-codes-radius-search.json +349 -0
@@ -0,0 +1,286 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "PDF Remove Pages API - Delete PDF Pages and Clean Up Documents Instantly",
5
+ "version": "1.0.0",
6
+ "description": "Remove specific pages from a PDF file. Specify page numbers to delete. Returns a task ID for tracking the deletion progress.",
7
+ "contact": {
8
+ "name": "APIFreaks Support",
9
+ "url": "https://apifreaks.com/contact",
10
+ "email": "support@apifreaks.com"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://api.apifreaks.com/v1.0",
16
+ "description": "PDF Remove Pages API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/pdf/remove-pages": {
21
+ "post": {
22
+ "tags": [
23
+ "PDF Operations APIs"
24
+ ],
25
+ "summary": "Delete specific pages from a PDF",
26
+ "description": "This API removes a selection or range of pages from a PDF file.",
27
+ "parameters": [
28
+ {
29
+ "name": "format",
30
+ "in": "query",
31
+ "required": false,
32
+ "schema": {
33
+ "type": "string",
34
+ "enum": [
35
+ "json",
36
+ "xml"
37
+ ],
38
+ "default": "json"
39
+ },
40
+ "description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
41
+ },
42
+ {
43
+ "name": "file_id",
44
+ "in": "query",
45
+ "required": false,
46
+ "schema": {
47
+ "type": "string"
48
+ },
49
+ "description": "The unique identifier of a PDF file already uploaded to the API Freaks server. Use this as an alternative to uploading a new file directly."
50
+ },
51
+ {
52
+ "name": "destroy",
53
+ "in": "query",
54
+ "required": false,
55
+ "schema": {
56
+ "type": "boolean"
57
+ },
58
+ "description": "If set to `true`, the input file(s) will be permanently deleted from the server immediately after the output PDF is generated."
59
+ },
60
+ {
61
+ "name": "output",
62
+ "in": "query",
63
+ "required": false,
64
+ "schema": {
65
+ "type": "string"
66
+ },
67
+ "description": "The desired name for the output PDF file after pages have been removed. If not provided, a default name will be assigned."
68
+ },
69
+ {
70
+ "name": "pages",
71
+ "in": "query",
72
+ "required": true,
73
+ "schema": {
74
+ "type": "string"
75
+ },
76
+ "description": "Specifies which pages to remove from the PDF. Accepts individual page numbers (e.g., '1,7') and/or ascending page ranges (e.g., '3-5'). Use commas to separate entries and hyphens for ranges. Reverse ranges (e.g., '5-3') are not allowed. Alternatively, you may provide only one of the following keywords: 'even' (removes all even-numbered pages), 'odd' (removes all odd-numbered pages), or 'last' (removes only the last page). The keyword 'all' is not supported for this operation. Examples: '1,3-5', 'even'. Mixing special keywords with specific pages/ranges is not allowed. Malformed values or page numbers exceeding the document's page count are not rejected on this call \u2014 the resulting task fails asynchronously (check task status)."
77
+ },
78
+ {
79
+ "name": "webhook_url",
80
+ "in": "query",
81
+ "required": false,
82
+ "schema": {
83
+ "type": "string"
84
+ },
85
+ "description": "The URL to which the webhook notification will be sent after the task is completed."
86
+ },
87
+ {
88
+ "name": "webhook_failure_notification",
89
+ "in": "query",
90
+ "required": false,
91
+ "schema": {
92
+ "type": "boolean"
93
+ },
94
+ "description": "If true, a notification will also be sent by email in case the webhook request fails all the retries. The email notification will be sent to the requesting user or their organization\u2019s admin if part of one."
95
+ },
96
+ {
97
+ "name": "X-Webhook-Authorization",
98
+ "in": "header",
99
+ "required": false,
100
+ "schema": {
101
+ "type": "string"
102
+ },
103
+ "description": "Optional custom header for webhook requests. Format: `Key:Value` (e.g., `Authorization:Bearer token123`). This will be sent as an HTTP header in the webhook call."
104
+ }
105
+ ],
106
+ "requestBody": {
107
+ "description": "Multipart form-data body carrying the PDF file to remove pages from. Alternatively, reference an already-uploaded file via the file_id query parameter instead of uploading here.",
108
+ "required": false,
109
+ "content": {
110
+ "multipart/form-data": {
111
+ "schema": {
112
+ "$ref": "#/components/schemas/PdfFileUploadRequest"
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "responses": {
118
+ "200": {
119
+ "description": "Remove task created successfully. Malformed or out-of-range page specifications are not rejected synchronously \u2014 the task is created, then fails asynchronously; poll the task status endpoint and check for status \"failed\" with an error/message pair.",
120
+ "content": {
121
+ "application/json": {
122
+ "schema": {
123
+ "$ref": "#/components/schemas/PDFResponse"
124
+ },
125
+ "examples": {
126
+ "success": {
127
+ "summary": "Task created",
128
+ "value": {
129
+ "taskId": "04a06cd5-158d-4191-a45b-6f58249c599d",
130
+ "inputIds": [
131
+ "7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"
132
+ ]
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ },
139
+ "400": {
140
+ "description": "Bad Request \u2014 Missing/invalid parameters or file ID",
141
+ "content": {
142
+ "application/json": {
143
+ "examples": {
144
+ "MissingPages": {
145
+ "summary": "Missing required pages parameter",
146
+ "value": {
147
+ "error": "Invalid Param Exception",
148
+ "message": "please pass correct parameters",
149
+ "path": "/v1.0/pdf/remove-pages",
150
+ "status": 400,
151
+ "timestamp": "2026-07-27T10:52:11.692Z"
152
+ }
153
+ },
154
+ "InvalidID": {
155
+ "summary": "file_id is malformed or does not exist",
156
+ "value": {
157
+ "timestamp": "2026-07-27T10:52:14.049Z",
158
+ "path": "/v1.0/pdf/remove-pages",
159
+ "status": 400,
160
+ "error": "Invalid File ID Provided",
161
+ "message": "Please provide a valid file ID"
162
+ }
163
+ }
164
+ },
165
+ "schema": {
166
+ "$ref": "#/components/schemas/ErrorResponse"
167
+ }
168
+ }
169
+ }
170
+ },
171
+ "415": {
172
+ "description": "Unsupported Media Type \u2014 File type not supported",
173
+ "content": {
174
+ "application/json": {
175
+ "examples": {
176
+ "InvalidPDF": {
177
+ "summary": "Uploaded file is not a supported type",
178
+ "value": {
179
+ "timestamp": "2026-07-27T10:52:14.649Z",
180
+ "path": "/v1.0/pdf/remove-pages",
181
+ "status": 415,
182
+ "error": "Unsupported File Type",
183
+ "message": "The provided file type is not supported. Refer to the documentation for valid file types."
184
+ }
185
+ }
186
+ },
187
+ "schema": {
188
+ "$ref": "#/components/schemas/ErrorResponse"
189
+ }
190
+ }
191
+ }
192
+ }
193
+ },
194
+ "operationId": "deletePdfPage"
195
+ }
196
+ }
197
+ },
198
+ "components": {
199
+ "securitySchemes": {
200
+ "ApiKeyAuthHeader": {
201
+ "type": "apiKey",
202
+ "in": "header",
203
+ "name": "X-apiKey",
204
+ "description": "Pass your API key via the X-apiKey request header."
205
+ },
206
+ "ApiKeyAuthQuery": {
207
+ "type": "apiKey",
208
+ "in": "query",
209
+ "name": "apiKey",
210
+ "description": "Pass your API key via the apiKey query parameter."
211
+ }
212
+ },
213
+ "schemas": {
214
+ "PDFResponse": {
215
+ "type": "object",
216
+ "description": "Response containing the task ID and input file IDs for a PDF processing task.",
217
+ "required": [
218
+ "taskId"
219
+ ],
220
+ "properties": {
221
+ "taskId": {
222
+ "type": "string",
223
+ "description": "Task ID of the requested task, used to check the task status."
224
+ },
225
+ "inputIds": {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "string"
229
+ },
230
+ "description": "File IDs for the input files provided for the task. Not returned when destroy parameter is true."
231
+ }
232
+ }
233
+ },
234
+ "PdfFileUploadRequest": {
235
+ "type": "object",
236
+ "description": "Multipart form-data request body containing the PDF file to process.",
237
+ "required": [],
238
+ "properties": {
239
+ "file": {
240
+ "type": "string",
241
+ "format": "binary",
242
+ "description": "Raw PDF file bytes sent as a multipart/form-data field named 'file'. Omit this field entirely and pass file_id in the query string instead to use an already-uploaded file."
243
+ }
244
+ }
245
+ },
246
+ "ErrorResponse": {
247
+ "type": "object",
248
+ "description": "Standard error envelope returned by the API on failed requests.",
249
+ "required": [
250
+ "message"
251
+ ],
252
+ "properties": {
253
+ "error": {
254
+ "type": "string",
255
+ "description": "Short error category or exception type."
256
+ },
257
+ "message": {
258
+ "type": "string",
259
+ "description": "Human-readable error message describing the failure."
260
+ },
261
+ "path": {
262
+ "type": "string",
263
+ "description": "API endpoint path that produced the error."
264
+ },
265
+ "status": {
266
+ "type": "integer",
267
+ "description": "HTTP status code returned with the error."
268
+ },
269
+ "timestamp": {
270
+ "type": "string",
271
+ "format": "date-time",
272
+ "description": "Timestamp when the error occurred (ISO 8601)."
273
+ }
274
+ }
275
+ }
276
+ }
277
+ },
278
+ "security": [
279
+ {
280
+ "ApiKeyAuthHeader": []
281
+ },
282
+ {
283
+ "ApiKeyAuthQuery": []
284
+ }
285
+ ]
286
+ }
@@ -0,0 +1,277 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "PDF Linearize API - Optimize PDFs for Fast Web Viewing",
5
+ "version": "1.0.0",
6
+ "description": "Linearize (web-optimize) a PDF file for faster viewing in web browsers. Optimized PDFs load page-by-page without downloading the entire file.",
7
+ "contact": {
8
+ "name": "APIFreaks Support",
9
+ "url": "https://apifreaks.com/contact",
10
+ "email": "support@apifreaks.com"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://api.apifreaks.com/v1.0",
16
+ "description": "Linearize PDF API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/pdf/linearize": {
21
+ "post": {
22
+ "tags": [
23
+ "PDF Operations APIs"
24
+ ],
25
+ "summary": "Linearize a PDF",
26
+ "description": "API endpoint that linearizes any given PDF, restructuring it for faster loading and page-by-page viewing in web browsers.",
27
+ "parameters": [
28
+ {
29
+ "name": "format",
30
+ "in": "query",
31
+ "required": false,
32
+ "schema": {
33
+ "type": "string",
34
+ "enum": [
35
+ "json",
36
+ "xml"
37
+ ],
38
+ "default": "json"
39
+ },
40
+ "description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
41
+ },
42
+ {
43
+ "name": "file_id",
44
+ "in": "query",
45
+ "required": false,
46
+ "schema": {
47
+ "type": "string"
48
+ },
49
+ "description": "The unique ID of a PDF file already uploaded to the API Freaks server. Use this as an alternative to uploading a new file directly."
50
+ },
51
+ {
52
+ "name": "destroy",
53
+ "in": "query",
54
+ "required": false,
55
+ "schema": {
56
+ "type": "boolean"
57
+ },
58
+ "description": "If set to `true`, the input file(s) will be permanently deleted from the server immediately after the output PDF is generated."
59
+ },
60
+ {
61
+ "name": "output",
62
+ "in": "query",
63
+ "required": false,
64
+ "schema": {
65
+ "type": "string"
66
+ },
67
+ "description": "The desired name for the output PDF file after pages have been extracted. If not provided, a default name will be assigned."
68
+ },
69
+ {
70
+ "name": "webhook_url",
71
+ "in": "query",
72
+ "required": false,
73
+ "schema": {
74
+ "type": "string"
75
+ },
76
+ "description": "The URL to which the webhook notification will be sent after the task is completed."
77
+ },
78
+ {
79
+ "name": "webhook_failure_notification",
80
+ "in": "query",
81
+ "required": false,
82
+ "schema": {
83
+ "type": "boolean"
84
+ },
85
+ "description": "If true, a notification will also be sent by email in case the webhook request fails all the retries. The email notification will be sent to the requesting user or their organization\u2019s admin if part of one."
86
+ },
87
+ {
88
+ "name": "X-Webhook-Authorization",
89
+ "in": "header",
90
+ "required": false,
91
+ "schema": {
92
+ "type": "string"
93
+ },
94
+ "description": "Optional custom header for webhook requests. Format: `Key:Value` (e.g., `Authorization:Bearer token123`). This will be sent as an HTTP header in the webhook call."
95
+ }
96
+ ],
97
+ "requestBody": {
98
+ "description": "Multipart form-data body carrying the PDF file to linearize. Alternatively, reference an already-uploaded file via the file_id query parameter instead of uploading here.",
99
+ "required": false,
100
+ "content": {
101
+ "multipart/form-data": {
102
+ "schema": {
103
+ "$ref": "#/components/schemas/PdfFileUploadRequest"
104
+ }
105
+ }
106
+ }
107
+ },
108
+ "responses": {
109
+ "200": {
110
+ "description": "Linearize task created successfully",
111
+ "content": {
112
+ "application/json": {
113
+ "schema": {
114
+ "$ref": "#/components/schemas/PDFResponse"
115
+ },
116
+ "examples": {
117
+ "success": {
118
+ "summary": "Task created",
119
+ "value": {
120
+ "taskId": "8750f9bb-4cb9-45fd-80a6-e1adf6556618",
121
+ "inputIds": [
122
+ "5f214118-f848-41f8-809d-8c6058b4b74a"
123
+ ]
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "400": {
131
+ "description": "Bad Request \u2014 Missing/invalid file or file ID",
132
+ "content": {
133
+ "application/json": {
134
+ "examples": {
135
+ "MissingFileOrID": {
136
+ "summary": "Neither a file nor a file ID was provided",
137
+ "value": {
138
+ "timestamp": "2026-07-27T10:55:07.695Z",
139
+ "path": "/v1.0/pdf/linearize",
140
+ "status": 400,
141
+ "message": "Please provide either a file or a file ID.",
142
+ "error": "Missing File or ID"
143
+ }
144
+ },
145
+ "InvalidID": {
146
+ "summary": "file_id is malformed or does not exist",
147
+ "value": {
148
+ "error": "Invalid File ID Provided",
149
+ "message": "Please provide a valid file ID",
150
+ "path": "/v1.0/pdf/linearize",
151
+ "status": 400,
152
+ "timestamp": "2026-07-27T10:55:08.238Z"
153
+ }
154
+ }
155
+ },
156
+ "schema": {
157
+ "$ref": "#/components/schemas/ErrorResponse"
158
+ }
159
+ }
160
+ }
161
+ },
162
+ "415": {
163
+ "description": "Unsupported Media Type \u2014 File type not supported",
164
+ "content": {
165
+ "application/json": {
166
+ "examples": {
167
+ "UnsupportedFileType": {
168
+ "summary": "Uploaded file is not a supported type",
169
+ "value": {
170
+ "timestamp": "2026-07-27T10:55:08.869Z",
171
+ "path": "/v1.0/pdf/linearize",
172
+ "status": 415,
173
+ "error": "Unsupported File Type",
174
+ "message": "The provided file type is not supported. Refer to the documentation for valid file types."
175
+ }
176
+ }
177
+ },
178
+ "schema": {
179
+ "$ref": "#/components/schemas/ErrorResponse"
180
+ }
181
+ }
182
+ }
183
+ }
184
+ },
185
+ "operationId": "linearizePdf"
186
+ }
187
+ }
188
+ },
189
+ "components": {
190
+ "securitySchemes": {
191
+ "ApiKeyAuthHeader": {
192
+ "type": "apiKey",
193
+ "in": "header",
194
+ "name": "X-apiKey",
195
+ "description": "Pass your API key via the X-apiKey request header."
196
+ },
197
+ "ApiKeyAuthQuery": {
198
+ "type": "apiKey",
199
+ "in": "query",
200
+ "name": "apiKey",
201
+ "description": "Pass your API key via the apiKey query parameter."
202
+ }
203
+ },
204
+ "schemas": {
205
+ "PDFResponse": {
206
+ "type": "object",
207
+ "description": "Response containing the task ID and input file IDs for a PDF processing task.",
208
+ "required": [
209
+ "taskId"
210
+ ],
211
+ "properties": {
212
+ "taskId": {
213
+ "type": "string",
214
+ "description": "Task ID of the requested task, used to check the task status."
215
+ },
216
+ "inputIds": {
217
+ "type": "array",
218
+ "items": {
219
+ "type": "string"
220
+ },
221
+ "description": "File IDs for the input files provided for the task. Not returned when destroy parameter is true."
222
+ }
223
+ }
224
+ },
225
+ "PdfFileUploadRequest": {
226
+ "type": "object",
227
+ "description": "Multipart form-data request body containing the PDF file to process.",
228
+ "required": [],
229
+ "properties": {
230
+ "file": {
231
+ "type": "string",
232
+ "format": "binary",
233
+ "description": "Raw PDF file bytes sent as a multipart/form-data field named 'file'. Omit this field entirely and pass file_id in the query string instead to use an already-uploaded file."
234
+ }
235
+ }
236
+ },
237
+ "ErrorResponse": {
238
+ "type": "object",
239
+ "description": "Standard error envelope returned by the API on failed requests.",
240
+ "required": [
241
+ "message"
242
+ ],
243
+ "properties": {
244
+ "error": {
245
+ "type": "string",
246
+ "description": "Short error category or exception type."
247
+ },
248
+ "message": {
249
+ "type": "string",
250
+ "description": "Human-readable error message describing the failure."
251
+ },
252
+ "path": {
253
+ "type": "string",
254
+ "description": "API endpoint path that produced the error."
255
+ },
256
+ "status": {
257
+ "type": "integer",
258
+ "description": "HTTP status code returned with the error."
259
+ },
260
+ "timestamp": {
261
+ "type": "string",
262
+ "format": "date-time",
263
+ "description": "Timestamp when the error occurred (ISO 8601)."
264
+ }
265
+ }
266
+ }
267
+ }
268
+ },
269
+ "security": [
270
+ {
271
+ "ApiKeyAuthHeader": []
272
+ },
273
+ {
274
+ "ApiKeyAuthQuery": []
275
+ }
276
+ ]
277
+ }