@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,297 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "PDF Decrypt API Reference",
5
+ "version": "1.0.0",
6
+ "description": "Remove all encryption from a PDF file, including open passwords and permission restrictions. Accepts a file upload or an existing file ID with the file password. Returns a task ID for tracking the decryption 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 Decrypt API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/pdf/decrypt": {
21
+ "post": {
22
+ "tags": [
23
+ "PDF Security APIs"
24
+ ],
25
+ "summary": "Remove all encryption from a PDF",
26
+ "description": "This API decrypts PDF files, removing all encryption, including open passwords and permission restrictions.",
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 decrypted PDF file. If not provided, a default name will be assigned."
68
+ },
69
+ {
70
+ "name": "file_password",
71
+ "in": "query",
72
+ "required": true,
73
+ "schema": {
74
+ "type": "string"
75
+ },
76
+ "description": "The password to unlock the input file if it is protected. Either the owner password or user password can be provided. The owner password takes precedence. Password Length should be between 6 and 128 characters."
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 decrypt. 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": "Decrypt task created successfully. An incorrect file_password is not rejected synchronously \u2014 the task is created, then fails asynchronously; poll the task status endpoint and check for status \"failed\" with error \"Invalid PDF Password\".",
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": "f91ec747-1dc6-4be5-be4b-4d6ff66ed386",
130
+ "inputIds": [
131
+ "a5f8aca9-d19a-4ee0-90e3-d15f62df1e06"
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
+ "MissingPassword": {
145
+ "summary": "Missing required file_password parameter",
146
+ "value": {
147
+ "error": "Invalid Param Exception",
148
+ "message": "please pass correct parameters",
149
+ "path": "/v1.0/pdf/decrypt",
150
+ "status": 400,
151
+ "timestamp": "2026-07-27T10:56:16.863Z"
152
+ }
153
+ },
154
+ "MissingFileOrID": {
155
+ "summary": "Neither a file nor a file ID was provided",
156
+ "value": {
157
+ "timestamp": "2026-07-27T10:56:17.498Z",
158
+ "path": "/v1.0/pdf/decrypt-pdf",
159
+ "status": 400,
160
+ "error": "Missing File or ID",
161
+ "message": "Please provide either a file or a file ID."
162
+ }
163
+ },
164
+ "InvalidID": {
165
+ "summary": "file_id is malformed or does not exist",
166
+ "value": {
167
+ "timestamp": "2026-07-27T10:56:18.138Z",
168
+ "path": "/v1.0/pdf/decrypt",
169
+ "status": 400,
170
+ "error": "Invalid File ID Provided",
171
+ "message": "Please provide a valid file ID"
172
+ }
173
+ }
174
+ },
175
+ "schema": {
176
+ "$ref": "#/components/schemas/ErrorResponse"
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "415": {
182
+ "description": "Unsupported Media Type \u2014 File type not supported",
183
+ "content": {
184
+ "application/json": {
185
+ "schema": {
186
+ "$ref": "#/components/schemas/ErrorResponse"
187
+ },
188
+ "examples": {
189
+ "UnsupportedFileType": {
190
+ "summary": "Uploaded file is not a supported type",
191
+ "value": {
192
+ "timestamp": "2026-07-27T10:56:50.780Z",
193
+ "path": "/v1.0/pdf/decrypt-pdf",
194
+ "status": 415,
195
+ "error": "Unsupported File Type",
196
+ "message": "The provided file type is not supported. Refer to the documentation for valid file types."
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "operationId": "decryptPdf"
205
+ }
206
+ }
207
+ },
208
+ "components": {
209
+ "securitySchemes": {
210
+ "ApiKeyAuthHeader": {
211
+ "type": "apiKey",
212
+ "in": "header",
213
+ "name": "X-apiKey",
214
+ "description": "Pass your API key via the X-apiKey request header."
215
+ },
216
+ "ApiKeyAuthQuery": {
217
+ "type": "apiKey",
218
+ "in": "query",
219
+ "name": "apiKey",
220
+ "description": "Pass your API key via the apiKey query parameter."
221
+ }
222
+ },
223
+ "schemas": {
224
+ "PDFResponse": {
225
+ "type": "object",
226
+ "required": [
227
+ "taskId",
228
+ "inputIds"
229
+ ],
230
+ "properties": {
231
+ "taskId": {
232
+ "type": "string",
233
+ "description": "Task ID of the requested task, used to check the task status."
234
+ },
235
+ "inputIds": {
236
+ "type": "array",
237
+ "items": {
238
+ "type": "string"
239
+ },
240
+ "description": "File IDs for the input files provided for the task. Not returned when destroy parameter is true."
241
+ }
242
+ },
243
+ "description": "Response containing the task ID and input file IDs for a PDF processing task."
244
+ },
245
+ "PdfFileUploadRequest": {
246
+ "type": "object",
247
+ "description": "Multipart form-data request body containing the PDF file to process.",
248
+ "required": [],
249
+ "properties": {
250
+ "file": {
251
+ "type": "string",
252
+ "format": "binary",
253
+ "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."
254
+ }
255
+ }
256
+ },
257
+ "ErrorResponse": {
258
+ "type": "object",
259
+ "description": "Standard error envelope returned by the API on failed requests.",
260
+ "required": [
261
+ "message"
262
+ ],
263
+ "properties": {
264
+ "error": {
265
+ "type": "string",
266
+ "description": "Short error category or exception type."
267
+ },
268
+ "message": {
269
+ "type": "string",
270
+ "description": "Human-readable error message describing the failure."
271
+ },
272
+ "path": {
273
+ "type": "string",
274
+ "description": "API endpoint path that produced the error."
275
+ },
276
+ "status": {
277
+ "type": "integer",
278
+ "description": "HTTP status code returned with the error."
279
+ },
280
+ "timestamp": {
281
+ "type": "string",
282
+ "format": "date-time",
283
+ "description": "Timestamp when the error occurred (ISO 8601)."
284
+ }
285
+ }
286
+ }
287
+ }
288
+ },
289
+ "security": [
290
+ {
291
+ "ApiKeyAuthHeader": []
292
+ },
293
+ {
294
+ "ApiKeyAuthQuery": []
295
+ }
296
+ ]
297
+ }
@@ -0,0 +1,314 @@
1
+ {
2
+ "openapi": "3.1.1",
3
+ "info": {
4
+ "title": "PDF Encrypt API Reference",
5
+ "version": "1.0.0",
6
+ "description": "Encrypt a PDF file with password protection and permission restrictions. Supports setting owner and user passwords, printing, copying, and editing permissions.",
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 Encrypt API Server"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/pdf/encrypt": {
21
+ "post": {
22
+ "tags": [
23
+ "PDF Security APIs"
24
+ ],
25
+ "summary": "Add password protection to a PDF",
26
+ "description": "This API encrypts a PDF file by setting a password required to open it.",
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 encrypted PDF file. If not provided, a default name will be assigned."
68
+ },
69
+ {
70
+ "name": "file_password",
71
+ "in": "query",
72
+ "required": false,
73
+ "schema": {
74
+ "type": "string"
75
+ },
76
+ "description": "The password to unlock the input file if it is already protected. Either the owner password or user password can be provided. The owner password takes precedence. Password Length should be between 6 and 128 characters."
77
+ },
78
+ {
79
+ "name": "user_password",
80
+ "in": "query",
81
+ "required": true,
82
+ "schema": {
83
+ "type": "string"
84
+ },
85
+ "description": "Sets the user password required to open and view the encrypted PDF file. Password Length should be between 6 and 128 characters."
86
+ },
87
+ {
88
+ "name": "owner_password",
89
+ "in": "query",
90
+ "required": false,
91
+ "schema": {
92
+ "type": "string"
93
+ },
94
+ "description": "Sets the owner password for the PDF file. This password provides full access, including the ability to remove restrictions. If not provided, the `user_password` will also be used as the owner password. Password Length should be between 6 and 128 characters."
95
+ },
96
+ {
97
+ "name": "webhook_url",
98
+ "in": "query",
99
+ "required": false,
100
+ "schema": {
101
+ "type": "string"
102
+ },
103
+ "description": "The URL to which the webhook notification will be sent after the task is completed."
104
+ },
105
+ {
106
+ "name": "webhook_failure_notification",
107
+ "in": "query",
108
+ "required": false,
109
+ "schema": {
110
+ "type": "boolean"
111
+ },
112
+ "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."
113
+ },
114
+ {
115
+ "name": "X-Webhook-Authorization",
116
+ "in": "header",
117
+ "required": false,
118
+ "schema": {
119
+ "type": "string"
120
+ },
121
+ "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."
122
+ }
123
+ ],
124
+ "requestBody": {
125
+ "description": "Multipart form-data body carrying the PDF file to encrypt. Alternatively, reference an already-uploaded file via the file_id query parameter instead of uploading here.",
126
+ "required": false,
127
+ "content": {
128
+ "multipart/form-data": {
129
+ "schema": {
130
+ "$ref": "#/components/schemas/PdfFileUploadRequest"
131
+ }
132
+ }
133
+ }
134
+ },
135
+ "responses": {
136
+ "200": {
137
+ "description": "PDF encrypt successfully",
138
+ "content": {
139
+ "application/json": {
140
+ "schema": {
141
+ "$ref": "#/components/schemas/PDFResponse"
142
+ },
143
+ "examples": {
144
+ "success": {
145
+ "summary": "Task created",
146
+ "value": {
147
+ "taskId": "c11f7d84-33f5-46da-a64c-e70b3704284e",
148
+ "inputIds": [
149
+ "2d11e722-85cc-4105-b345-f395d48b326e"
150
+ ]
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+ },
157
+ "400": {
158
+ "description": "Bad Request \u2014 Missing/invalid parameters, file ID, or password",
159
+ "content": {
160
+ "application/json": {
161
+ "examples": {
162
+ "MissingPassword": {
163
+ "summary": "Missing required user_password parameter",
164
+ "value": {
165
+ "error": "Invalid Param Exception",
166
+ "message": "please pass correct parameters",
167
+ "path": "/v1.0/pdf/encrypt",
168
+ "status": 400,
169
+ "timestamp": "2026-07-27T10:55:36.936Z"
170
+ }
171
+ },
172
+ "WeakPassword": {
173
+ "summary": "Password does not meet strength requirements",
174
+ "value": {
175
+ "timestamp": "2026-07-27T10:55:37.534Z",
176
+ "path": "/v1.0/pdf/encrypt-pdf",
177
+ "status": 400,
178
+ "error": "Weak Password Provided",
179
+ "message": "Please provide a strong password. Refer to the documentation for password requirements."
180
+ }
181
+ },
182
+ "InvalidID": {
183
+ "summary": "file_id is malformed or does not exist",
184
+ "value": {
185
+ "timestamp": "2026-07-27T10:55:38.063Z",
186
+ "path": "/v1.0/pdf/encrypt",
187
+ "status": 400,
188
+ "error": "Invalid File ID Provided",
189
+ "message": "Please provide a valid file ID"
190
+ }
191
+ }
192
+ },
193
+ "schema": {
194
+ "$ref": "#/components/schemas/ErrorResponse"
195
+ }
196
+ }
197
+ }
198
+ },
199
+ "415": {
200
+ "description": "Unsupported Media Type \u2014 File type not supported",
201
+ "content": {
202
+ "application/json": {
203
+ "examples": {
204
+ "UnsupportedFileType": {
205
+ "summary": "Uploaded file is not a supported type",
206
+ "value": {
207
+ "timestamp": "2026-07-27T10:55:38.634Z",
208
+ "path": "/v1.0/pdf/encrypt-pdf",
209
+ "status": 415,
210
+ "error": "Unsupported File Type",
211
+ "message": "The provided file type is not supported. Refer to the documentation for valid file types."
212
+ }
213
+ }
214
+ },
215
+ "schema": {
216
+ "$ref": "#/components/schemas/ErrorResponse"
217
+ }
218
+ }
219
+ }
220
+ }
221
+ },
222
+ "operationId": "encryptPdf"
223
+ }
224
+ }
225
+ },
226
+ "components": {
227
+ "securitySchemes": {
228
+ "ApiKeyAuthHeader": {
229
+ "type": "apiKey",
230
+ "in": "header",
231
+ "name": "X-apiKey",
232
+ "description": "Pass your API key via the X-apiKey request header."
233
+ },
234
+ "ApiKeyAuthQuery": {
235
+ "type": "apiKey",
236
+ "in": "query",
237
+ "name": "apiKey",
238
+ "description": "Pass your API key via the apiKey query parameter."
239
+ }
240
+ },
241
+ "schemas": {
242
+ "PDFResponse": {
243
+ "type": "object",
244
+ "description": "Response containing the task ID and input file IDs for a PDF processing task.",
245
+ "required": [
246
+ "taskId"
247
+ ],
248
+ "properties": {
249
+ "taskId": {
250
+ "type": "string",
251
+ "description": "Task ID of the requested task, used to check the task status."
252
+ },
253
+ "inputIds": {
254
+ "type": "array",
255
+ "items": {
256
+ "type": "string"
257
+ },
258
+ "description": "File IDs for the input files provided for the task. Not returned when destroy parameter is true."
259
+ }
260
+ }
261
+ },
262
+ "PdfFileUploadRequest": {
263
+ "type": "object",
264
+ "description": "Multipart form-data request body containing the PDF file to process.",
265
+ "required": [],
266
+ "properties": {
267
+ "file": {
268
+ "type": "string",
269
+ "format": "binary",
270
+ "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."
271
+ }
272
+ }
273
+ },
274
+ "ErrorResponse": {
275
+ "type": "object",
276
+ "description": "Standard error envelope returned by the API on failed requests.",
277
+ "required": [
278
+ "message"
279
+ ],
280
+ "properties": {
281
+ "error": {
282
+ "type": "string",
283
+ "description": "Short error category or exception type."
284
+ },
285
+ "message": {
286
+ "type": "string",
287
+ "description": "Human-readable error message describing the failure."
288
+ },
289
+ "path": {
290
+ "type": "string",
291
+ "description": "API endpoint path that produced the error."
292
+ },
293
+ "status": {
294
+ "type": "integer",
295
+ "description": "HTTP status code returned with the error."
296
+ },
297
+ "timestamp": {
298
+ "type": "string",
299
+ "format": "date-time",
300
+ "description": "Timestamp when the error occurred (ISO 8601)."
301
+ }
302
+ }
303
+ }
304
+ }
305
+ },
306
+ "security": [
307
+ {
308
+ "ApiKeyAuthHeader": []
309
+ },
310
+ {
311
+ "ApiKeyAuthQuery": []
312
+ }
313
+ ]
314
+ }