@apifreaks/openapi-specs 0.2.0 → 0.3.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.
- package/README.md +37 -37
- package/dist/index.cjs +2787 -348
- package/dist/index.js +2787 -348
- package/dist/specs/commodity/commodity-fluctuation.yaml +14 -0
- package/dist/specs/commodity/commodity-prices.yaml +14 -0
- package/dist/specs/commodity/commodity-symbols.yaml +8 -0
- package/dist/specs/commodity/commodity-time-series.yaml +14 -0
- package/dist/specs/commodity/historical-commodity-prices.yaml +14 -0
- package/dist/specs/currency/currency-converter.yaml +14 -0
- package/dist/specs/currency/currency-fluctuation.yaml +14 -0
- package/dist/specs/currency/currency-historical-data-limit.yaml +11 -0
- package/dist/specs/currency/currency-rate.yaml +14 -0
- package/dist/specs/currency/currency-supported.yaml +11 -0
- package/dist/specs/currency/currency-symbols.yaml +11 -0
- package/dist/specs/currency/currency-time-series.yaml +14 -0
- package/dist/specs/currency/geolocalized-currency-conversion.yaml +14 -0
- package/dist/specs/currency/historical-currency-converter.yaml +14 -0
- package/dist/specs/currency/historical-currency-rate.yaml +14 -0
- package/dist/specs/dns/bulk-dns-lookup.yaml +14 -0
- package/dist/specs/dns/dns-history-lookup.yaml +14 -0
- package/dist/specs/dns/dns-lookup.yaml +11 -0
- package/dist/specs/dns/reverse-dns-lookup.yaml +34 -0
- package/dist/specs/domain/bulk-domain-checker.yaml +17 -0
- package/dist/specs/domain/domain-search-with-suggestions.yaml +14 -0
- package/dist/specs/domain/domain-search.yaml +14 -0
- package/dist/specs/domain/subdomain-lookup.yaml +14 -0
- package/dist/specs/email-validation/bulk-email-validation.yaml +17 -0
- package/dist/specs/email-validation/email-checker.yaml +41 -0
- package/dist/specs/financial/bulk-vat-rates-country.yaml +14 -0
- package/dist/specs/financial/financial-apis-supported-countries.yaml +8 -0
- package/dist/specs/financial/iban-validation.yaml +11 -0
- package/dist/specs/financial/swift-code-finder.yaml +11 -0
- package/dist/specs/financial/swift-code-lookup.yaml +14 -0
- package/dist/specs/financial/vat-number-validation.yaml +14 -0
- package/dist/specs/financial/vat-rates-by-ip.yaml +14 -0
- package/dist/specs/financial/vat-rates-country.yaml +14 -0
- package/dist/specs/general/usage-credits.yaml +11 -0
- package/dist/specs/geocoding/forward-geocoding.yaml +14 -0
- package/dist/specs/geocoding/reverse-geocoding.yaml +11 -0
- package/dist/specs/geodb/administrative-units-details.yaml +14 -0
- package/dist/specs/geodb/administrative-units-levels.yaml +14 -0
- package/dist/specs/geodb/administrative-units.yaml +14 -0
- package/dist/specs/geodb/cities.yaml +14 -0
- package/dist/specs/geodb/countries-details.yaml +11 -0
- package/dist/specs/geodb/countries.yaml +11 -0
- package/dist/specs/geodb/flags-supported.yaml +8 -0
- package/dist/specs/geodb/flags.yaml +14 -0
- package/dist/specs/geodb/regions.yaml +8 -0
- package/dist/specs/geodb/subregions.yaml +14 -0
- package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +14 -0
- package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +11 -0
- package/dist/specs/ip-intelligence/ip-locator.yaml +17 -0
- package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +14 -0
- package/dist/specs/other/astronomy-data.yaml +14 -0
- package/dist/specs/pdf/bulk-pdf-generator.yaml +32 -0
- package/dist/specs/pdf/delete-pdf-page.yaml +14 -0
- package/dist/specs/pdf/linearize-pdf.yaml +14 -0
- package/dist/specs/pdf/merge-pdf.yaml +14 -0
- package/dist/specs/pdf/pdf-compress.yaml +14 -0
- package/dist/specs/pdf/pdf-decrypt.yaml +14 -0
- package/dist/specs/pdf/pdf-encrypt.yaml +14 -0
- package/dist/specs/pdf/pdf-extract-pages.yaml +14 -0
- package/dist/specs/pdf/pdf-file-status.yaml +14 -0
- package/dist/specs/pdf/pdf-file.yaml +14 -0
- package/dist/specs/pdf/pdf-files.yaml +8 -0
- package/dist/specs/pdf/pdf-generator.yaml +32 -0
- package/dist/specs/pdf/pdf-resource-download.yaml +14 -0
- package/dist/specs/pdf/pdf-resource-upload-binary.yaml +14 -0
- package/dist/specs/pdf/pdf-resource-upload.yaml +14 -0
- package/dist/specs/pdf/pdf-restrict.yaml +14 -0
- package/dist/specs/pdf/pdf-split-pages.yaml +14 -0
- package/dist/specs/pdf/pdf-task-status.yaml +14 -0
- package/dist/specs/pdf/pdf-to-image.yaml +35 -0
- package/dist/specs/pdf/pdf-unrestrict.yaml +14 -0
- package/dist/specs/pdf/rotate-pdf-pages.yaml +14 -0
- package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +23 -0
- package/dist/specs/phone-validation/phone-number-validation.yaml +20 -0
- package/dist/specs/scraper/web-scraper.yaml +34 -0
- package/dist/specs/screenshot/bulk-screenshot.yaml +34 -0
- package/dist/specs/screenshot/website-screenshot.yaml +34 -0
- package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +17 -0
- package/dist/specs/ssl/ssl-certificate-lookup.yaml +17 -0
- package/dist/specs/timezone/timezone-converter.yaml +14 -0
- package/dist/specs/timezone/timezone-lookup.yaml +14 -0
- package/dist/specs/user-agent/bulk-user-agent-parser.yaml +11 -0
- package/dist/specs/user-agent/user-agent-parser.yaml +11 -0
- package/dist/specs/weather/air-quality.yaml +14 -0
- package/dist/specs/weather/bulk-live-weather.yaml +11 -0
- package/dist/specs/weather/flood-forecast.yaml +14 -0
- package/dist/specs/weather/historical-weather.yaml +14 -0
- package/dist/specs/weather/live-weather.yaml +14 -0
- package/dist/specs/weather/marine-weather.yaml +14 -0
- package/dist/specs/weather/time-series-weather.yaml +11 -0
- package/dist/specs/weather/weather-forecast.yaml +11 -0
- package/dist/specs/whois/asn-lookup.yaml +14 -0
- package/dist/specs/whois/bulk-whois-lookup.yaml +17 -0
- package/dist/specs/whois/domain-whois-history-lookup.yaml +14 -0
- package/dist/specs/whois/reverse-whois.yaml +34 -0
- package/dist/specs/whois/whois-domain-lookup.yaml +17 -0
- package/dist/specs/whois/whois-ip-lookup.yaml +14 -0
- package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +14 -0
- package/dist/specs/zip-code/zip-code-api.yaml +14 -0
- package/dist/specs/zip-code/zip-code-distance-match.yaml +14 -0
- package/dist/specs/zip-code/zip-code-distance.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-by-city.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-by-region.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-radius-search.yaml +34 -0
- package/package.json +1 -1
- package/specs/commodity/commodity-fluctuation.json +23 -0
- package/specs/commodity/commodity-prices.json +23 -0
- package/specs/commodity/commodity-symbols.json +13 -0
- package/specs/commodity/commodity-time-series.json +27 -13
- package/specs/commodity/historical-commodity-prices.json +23 -0
- package/specs/currency/currency-converter.json +23 -0
- package/specs/currency/currency-fluctuation.json +23 -0
- package/specs/currency/currency-historical-data-limit.json +18 -0
- package/specs/currency/currency-rate.json +23 -0
- package/specs/currency/currency-supported.json +18 -0
- package/specs/currency/currency-symbols.json +18 -0
- package/specs/currency/currency-time-series.json +23 -0
- package/specs/currency/geolocalized-currency-conversion.json +23 -0
- package/specs/currency/historical-currency-converter.json +23 -0
- package/specs/currency/historical-currency-rate.json +23 -0
- package/specs/dns/bulk-dns-lookup.json +23 -0
- package/specs/dns/dns-history-lookup.json +23 -0
- package/specs/dns/dns-lookup.json +18 -0
- package/specs/dns/reverse-dns-lookup.json +61 -1
- package/specs/domain/bulk-domain-checker.json +28 -0
- package/specs/domain/domain-search-with-suggestions.json +23 -0
- package/specs/domain/domain-search.json +23 -0
- package/specs/domain/subdomain-lookup.json +23 -0
- package/specs/email-validation/bulk-email-validation.json +28 -0
- package/specs/email-validation/email-checker.json +64 -0
- package/specs/financial/bulk-vat-rates-country.json +23 -0
- package/specs/financial/financial-apis-supported-countries.json +34 -5
- package/specs/financial/iban-validation.json +18 -0
- package/specs/financial/swift-code-finder.json +31 -2
- package/specs/financial/swift-code-lookup.json +23 -0
- package/specs/financial/vat-number-validation.json +23 -0
- package/specs/financial/vat-rates-by-ip.json +23 -0
- package/specs/financial/vat-rates-country.json +23 -0
- package/specs/general/usage-credits.json +18 -0
- package/specs/geocoding/forward-geocoding.json +23 -0
- package/specs/geocoding/reverse-geocoding.json +18 -0
- package/specs/geodb/administrative-units-details.json +23 -0
- package/specs/geodb/administrative-units-levels.json +23 -0
- package/specs/geodb/administrative-units.json +23 -0
- package/specs/geodb/cities.json +23 -0
- package/specs/geodb/countries-details.json +18 -0
- package/specs/geodb/countries.json +18 -0
- package/specs/geodb/flags-supported.json +13 -0
- package/specs/geodb/flags.json +23 -0
- package/specs/geodb/regions.json +13 -0
- package/specs/geodb/subregions.json +23 -0
- package/specs/ip-intelligence/bulk-ip-lookup.json +23 -0
- package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +18 -0
- package/specs/ip-intelligence/ip-locator.json +33 -5
- package/specs/ip-intelligence/ip-threat-intelligence.json +23 -0
- package/specs/other/astronomy-data.json +24 -2
- package/specs/pdf/bulk-pdf-generator.json +61 -8
- package/specs/pdf/delete-pdf-page.json +33 -21
- package/specs/pdf/linearize-pdf.json +31 -19
- package/specs/pdf/merge-pdf.json +30 -18
- package/specs/pdf/pdf-compress.json +32 -25
- package/specs/pdf/pdf-decrypt.json +32 -21
- package/specs/pdf/pdf-encrypt.json +31 -19
- package/specs/pdf/pdf-extract-pages.json +33 -21
- package/specs/pdf/pdf-file-status.json +23 -0
- package/specs/pdf/pdf-file.json +23 -0
- package/specs/pdf/pdf-files.json +13 -0
- package/specs/pdf/pdf-generator.json +61 -8
- package/specs/pdf/pdf-resource-download.json +23 -0
- package/specs/pdf/pdf-resource-upload-binary.json +29 -16
- package/specs/pdf/pdf-resource-upload.json +30 -19
- package/specs/pdf/pdf-restrict.json +32 -20
- package/specs/pdf/pdf-split-pages.json +33 -21
- package/specs/pdf/pdf-task-status.json +23 -0
- package/specs/pdf/pdf-to-image.json +90 -101
- package/specs/pdf/pdf-unrestrict.json +32 -20
- package/specs/pdf/rotate-pdf-pages.json +32 -20
- package/specs/phone-validation/bulk-phone-number-validation.json +54 -16
- package/specs/phone-validation/phone-number-validation.json +33 -0
- package/specs/scraper/web-scraper.json +53 -0
- package/specs/screenshot/bulk-screenshot.json +53 -0
- package/specs/screenshot/website-screenshot.json +53 -0
- package/specs/ssl/ssl-certificate-chain-lookup.json +28 -0
- package/specs/ssl/ssl-certificate-lookup.json +28 -0
- package/specs/timezone/timezone-converter.json +23 -0
- package/specs/timezone/timezone-lookup.json +25 -2
- package/specs/user-agent/bulk-user-agent-parser.json +20 -2
- package/specs/user-agent/user-agent-parser.json +18 -0
- package/specs/weather/air-quality.json +23 -0
- package/specs/weather/bulk-live-weather.json +18 -0
- package/specs/weather/flood-forecast.json +23 -0
- package/specs/weather/historical-weather.json +23 -0
- package/specs/weather/live-weather.json +23 -0
- package/specs/weather/marine-weather.json +23 -0
- package/specs/weather/time-series-weather.json +18 -0
- package/specs/weather/weather-forecast.json +18 -0
- package/specs/whois/asn-lookup.json +23 -0
- package/specs/whois/bulk-whois-lookup.json +28 -0
- package/specs/whois/domain-whois-history-lookup.json +23 -0
- package/specs/whois/reverse-whois.json +53 -0
- package/specs/whois/whois-domain-lookup.json +28 -0
- package/specs/whois/whois-ip-lookup.json +23 -0
- package/specs/zip-code/bulk-zip-code-lookup.json +23 -0
- package/specs/zip-code/zip-code-api.json +23 -0
- package/specs/zip-code/zip-code-distance-match.json +23 -0
- package/specs/zip-code/zip-code-distance.json +23 -0
- package/specs/zip-code/zip-codes-by-city.json +23 -0
- package/specs/zip-code/zip-codes-by-region.json +24 -7
- package/specs/zip-code/zip-codes-radius-search.json +53 -0
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"paths": {
|
|
20
20
|
"/pdf/resource/upload-binary": {
|
|
21
21
|
"post": {
|
|
22
|
-
"tags": [
|
|
23
|
-
"PDF Upload and Download APIs"
|
|
24
|
-
],
|
|
22
|
+
"tags": ["PDF Upload and Download APIs"],
|
|
25
23
|
"summary": "Upload a PDF in binary format",
|
|
26
24
|
"description": "This API uploads PDF files to the API Freaks server in binary format.",
|
|
27
25
|
"parameters": [
|
|
@@ -31,10 +29,7 @@
|
|
|
31
29
|
"required": false,
|
|
32
30
|
"schema": {
|
|
33
31
|
"type": "string",
|
|
34
|
-
"enum": [
|
|
35
|
-
"json",
|
|
36
|
-
"xml"
|
|
37
|
-
],
|
|
32
|
+
"enum": ["json", "xml"],
|
|
38
33
|
"default": "json"
|
|
39
34
|
},
|
|
40
35
|
"description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
|
|
@@ -80,10 +75,15 @@
|
|
|
80
75
|
}
|
|
81
76
|
}
|
|
82
77
|
}
|
|
78
|
+
},
|
|
79
|
+
"headers": {
|
|
80
|
+
"X-AF-Credits-Cost": {
|
|
81
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
82
|
+
}
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"400": {
|
|
86
|
-
"description": "Bad Request
|
|
86
|
+
"description": "Bad Request — Missing file_name or empty body",
|
|
87
87
|
"content": {
|
|
88
88
|
"application/json": {
|
|
89
89
|
"examples": {
|
|
@@ -112,10 +112,15 @@
|
|
|
112
112
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
},
|
|
116
|
+
"headers": {
|
|
117
|
+
"X-AF-Credits-Cost": {
|
|
118
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
119
|
+
}
|
|
115
120
|
}
|
|
116
121
|
},
|
|
117
122
|
"415": {
|
|
118
|
-
"description": "Unsupported Media Type
|
|
123
|
+
"description": "Unsupported Media Type — File extension not supported",
|
|
119
124
|
"content": {
|
|
120
125
|
"application/json": {
|
|
121
126
|
"examples": {
|
|
@@ -134,6 +139,11 @@
|
|
|
134
139
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
135
140
|
}
|
|
136
141
|
}
|
|
142
|
+
},
|
|
143
|
+
"headers": {
|
|
144
|
+
"X-AF-Credits-Cost": {
|
|
145
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
146
|
+
}
|
|
137
147
|
}
|
|
138
148
|
}
|
|
139
149
|
},
|
|
@@ -159,10 +169,7 @@
|
|
|
159
169
|
"schemas": {
|
|
160
170
|
"BinaryResourceUploadResponse": {
|
|
161
171
|
"type": "object",
|
|
162
|
-
"required": [
|
|
163
|
-
"fileName",
|
|
164
|
-
"fileId"
|
|
165
|
-
],
|
|
172
|
+
"required": ["fileName", "fileId"],
|
|
166
173
|
"properties": {
|
|
167
174
|
"fileName": {
|
|
168
175
|
"type": "string",
|
|
@@ -178,9 +185,7 @@
|
|
|
178
185
|
"ErrorResponse": {
|
|
179
186
|
"type": "object",
|
|
180
187
|
"description": "Standard error envelope returned by the API on failed requests.",
|
|
181
|
-
"required": [
|
|
182
|
-
"message"
|
|
183
|
-
],
|
|
188
|
+
"required": ["message"],
|
|
184
189
|
"properties": {
|
|
185
190
|
"error": {
|
|
186
191
|
"type": "string",
|
|
@@ -205,6 +210,14 @@
|
|
|
205
210
|
}
|
|
206
211
|
}
|
|
207
212
|
}
|
|
213
|
+
},
|
|
214
|
+
"headers": {
|
|
215
|
+
"X-AF-Credits-Cost": {
|
|
216
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
217
|
+
"schema": {
|
|
218
|
+
"type": "integer"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
208
221
|
}
|
|
209
222
|
},
|
|
210
223
|
"security": [
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"paths": {
|
|
20
20
|
"/pdf/resource/upload": {
|
|
21
21
|
"post": {
|
|
22
|
-
"tags": [
|
|
23
|
-
"PDF Upload and Download APIs"
|
|
24
|
-
],
|
|
22
|
+
"tags": ["PDF Upload and Download APIs"],
|
|
25
23
|
"summary": "Upload multiple PDFs and get file IDs",
|
|
26
24
|
"description": "This API uploads multiple PDF files to the API Freaks server and generates their unique file IDs.",
|
|
27
25
|
"operationId": "uploadResource",
|
|
@@ -32,10 +30,7 @@
|
|
|
32
30
|
"required": false,
|
|
33
31
|
"schema": {
|
|
34
32
|
"type": "string",
|
|
35
|
-
"enum": [
|
|
36
|
-
"json",
|
|
37
|
-
"xml"
|
|
38
|
-
],
|
|
33
|
+
"enum": ["json", "xml"],
|
|
39
34
|
"default": "json"
|
|
40
35
|
},
|
|
41
36
|
"description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
|
|
@@ -97,10 +92,15 @@
|
|
|
97
92
|
}
|
|
98
93
|
}
|
|
99
94
|
}
|
|
95
|
+
},
|
|
96
|
+
"headers": {
|
|
97
|
+
"X-AF-Credits-Cost": {
|
|
98
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
99
|
+
}
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"400": {
|
|
103
|
-
"description": "Bad Request
|
|
103
|
+
"description": "Bad Request — Missing or invalid parameters",
|
|
104
104
|
"content": {
|
|
105
105
|
"application/json": {
|
|
106
106
|
"schema": {
|
|
@@ -119,10 +119,15 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
+
},
|
|
123
|
+
"headers": {
|
|
124
|
+
"X-AF-Credits-Cost": {
|
|
125
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
126
|
+
}
|
|
122
127
|
}
|
|
123
128
|
},
|
|
124
129
|
"415": {
|
|
125
|
-
"description": "Unsupported Media Type
|
|
130
|
+
"description": "Unsupported Media Type — File type not supported",
|
|
126
131
|
"content": {
|
|
127
132
|
"application/json": {
|
|
128
133
|
"schema": {
|
|
@@ -141,6 +146,11 @@
|
|
|
141
146
|
}
|
|
142
147
|
}
|
|
143
148
|
}
|
|
149
|
+
},
|
|
150
|
+
"headers": {
|
|
151
|
+
"X-AF-Credits-Cost": {
|
|
152
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
153
|
+
}
|
|
144
154
|
}
|
|
145
155
|
}
|
|
146
156
|
}
|
|
@@ -165,18 +175,13 @@
|
|
|
165
175
|
"schemas": {
|
|
166
176
|
"ResourceUploadResponse": {
|
|
167
177
|
"type": "object",
|
|
168
|
-
"required": [
|
|
169
|
-
"files"
|
|
170
|
-
],
|
|
178
|
+
"required": ["files"],
|
|
171
179
|
"properties": {
|
|
172
180
|
"files": {
|
|
173
181
|
"type": "array",
|
|
174
182
|
"items": {
|
|
175
183
|
"type": "object",
|
|
176
|
-
"required": [
|
|
177
|
-
"fileName",
|
|
178
|
-
"fileId"
|
|
179
|
-
],
|
|
184
|
+
"required": ["fileName", "fileId"],
|
|
180
185
|
"properties": {
|
|
181
186
|
"fileName": {
|
|
182
187
|
"type": "string",
|
|
@@ -208,9 +213,7 @@
|
|
|
208
213
|
"ErrorResponse": {
|
|
209
214
|
"type": "object",
|
|
210
215
|
"description": "Standard error envelope returned by the API on failed requests.",
|
|
211
|
-
"required": [
|
|
212
|
-
"message"
|
|
213
|
-
],
|
|
216
|
+
"required": ["message"],
|
|
214
217
|
"properties": {
|
|
215
218
|
"error": {
|
|
216
219
|
"type": "string",
|
|
@@ -235,6 +238,14 @@
|
|
|
235
238
|
}
|
|
236
239
|
}
|
|
237
240
|
}
|
|
241
|
+
},
|
|
242
|
+
"headers": {
|
|
243
|
+
"X-AF-Credits-Cost": {
|
|
244
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
245
|
+
"schema": {
|
|
246
|
+
"type": "integer"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
238
249
|
}
|
|
239
250
|
},
|
|
240
251
|
"security": [
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"paths": {
|
|
20
20
|
"/pdf/restrict": {
|
|
21
21
|
"post": {
|
|
22
|
-
"tags": [
|
|
23
|
-
"PDF Security APIs"
|
|
24
|
-
],
|
|
22
|
+
"tags": ["PDF Security APIs"],
|
|
25
23
|
"summary": "Apply permission restrictions on a PDF file",
|
|
26
24
|
"description": "This API applies permission restrictions on a PDF file, such as disabling printing, copying, or editing. This can include password protection to enforce restrictions.",
|
|
27
25
|
"parameters": [
|
|
@@ -31,10 +29,7 @@
|
|
|
31
29
|
"required": false,
|
|
32
30
|
"schema": {
|
|
33
31
|
"type": "string",
|
|
34
|
-
"enum": [
|
|
35
|
-
"json",
|
|
36
|
-
"xml"
|
|
37
|
-
],
|
|
32
|
+
"enum": ["json", "xml"],
|
|
38
33
|
"default": "json"
|
|
39
34
|
},
|
|
40
35
|
"description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
|
|
@@ -100,7 +95,7 @@
|
|
|
100
95
|
"schema": {
|
|
101
96
|
"type": "string"
|
|
102
97
|
},
|
|
103
|
-
"description": "A comma-separated list of restrictions to apply to the PDF. These define what the end-user is *not* allowed to do with the PDF. Available options are:\n\n\n* **print_high**
|
|
98
|
+
"description": "A comma-separated list of restrictions to apply to the PDF. These define what the end-user is *not* allowed to do with the PDF. Available options are:\n\n\n* **print_high** – Disables high-quality printing.\n* **print_low** – Disables low-resolution printing.\n* **edit_document_assembly** – Prevents reordering or inserting pages.\n* **fill_form_fields** – Disallows filling in PDF form fields.\n* **edit_annotations** – Disables adding or modifying annotations or comments.\n* **modify_content** – Prevents modifying existing content in the PDF.\n* **copy_and_extract_content** – Disables copying text or images from the PDF.\n* **use_accessibility** – Prevents screen readers or accessibility tools from accessing content. An invalid restriction keyword returns a 400 with error \"Invalid PDF Restriction\"."
|
|
104
99
|
},
|
|
105
100
|
{
|
|
106
101
|
"name": "webhook_url",
|
|
@@ -118,7 +113,7 @@
|
|
|
118
113
|
"schema": {
|
|
119
114
|
"type": "boolean"
|
|
120
115
|
},
|
|
121
|
-
"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
|
|
116
|
+
"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’s admin if part of one."
|
|
122
117
|
},
|
|
123
118
|
{
|
|
124
119
|
"name": "X-Webhook-Authorization",
|
|
@@ -154,17 +149,20 @@
|
|
|
154
149
|
"summary": "Task created",
|
|
155
150
|
"value": {
|
|
156
151
|
"taskId": "42839406-7e1b-4f64-96bb-d94bb054e8d3",
|
|
157
|
-
"inputIds": [
|
|
158
|
-
"2c682ade-eccc-4ab5-9c06-d16e415cbecb"
|
|
159
|
-
]
|
|
152
|
+
"inputIds": ["2c682ade-eccc-4ab5-9c06-d16e415cbecb"]
|
|
160
153
|
}
|
|
161
154
|
}
|
|
162
155
|
}
|
|
163
156
|
}
|
|
157
|
+
},
|
|
158
|
+
"headers": {
|
|
159
|
+
"X-AF-Credits-Cost": {
|
|
160
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
161
|
+
}
|
|
164
162
|
}
|
|
165
163
|
},
|
|
166
164
|
"400": {
|
|
167
|
-
"description": "Bad Request
|
|
165
|
+
"description": "Bad Request — Missing/invalid parameters, file ID, or password",
|
|
168
166
|
"content": {
|
|
169
167
|
"application/json": {
|
|
170
168
|
"examples": {
|
|
@@ -223,10 +221,15 @@
|
|
|
223
221
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
224
222
|
}
|
|
225
223
|
}
|
|
224
|
+
},
|
|
225
|
+
"headers": {
|
|
226
|
+
"X-AF-Credits-Cost": {
|
|
227
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
228
|
+
}
|
|
226
229
|
}
|
|
227
230
|
},
|
|
228
231
|
"415": {
|
|
229
|
-
"description": "Unsupported Media Type
|
|
232
|
+
"description": "Unsupported Media Type — File type not supported",
|
|
230
233
|
"content": {
|
|
231
234
|
"application/json": {
|
|
232
235
|
"schema": {
|
|
@@ -245,6 +248,11 @@
|
|
|
245
248
|
}
|
|
246
249
|
}
|
|
247
250
|
}
|
|
251
|
+
},
|
|
252
|
+
"headers": {
|
|
253
|
+
"X-AF-Credits-Cost": {
|
|
254
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
255
|
+
}
|
|
248
256
|
}
|
|
249
257
|
}
|
|
250
258
|
},
|
|
@@ -271,9 +279,7 @@
|
|
|
271
279
|
"PDFResponse": {
|
|
272
280
|
"type": "object",
|
|
273
281
|
"description": "Response containing the task ID and input file IDs for a PDF processing task.",
|
|
274
|
-
"required": [
|
|
275
|
-
"taskId"
|
|
276
|
-
],
|
|
282
|
+
"required": ["taskId"],
|
|
277
283
|
"properties": {
|
|
278
284
|
"taskId": {
|
|
279
285
|
"type": "string",
|
|
@@ -303,9 +309,7 @@
|
|
|
303
309
|
"ErrorResponse": {
|
|
304
310
|
"type": "object",
|
|
305
311
|
"description": "Standard error envelope returned by the API on failed requests.",
|
|
306
|
-
"required": [
|
|
307
|
-
"message"
|
|
308
|
-
],
|
|
312
|
+
"required": ["message"],
|
|
309
313
|
"properties": {
|
|
310
314
|
"error": {
|
|
311
315
|
"type": "string",
|
|
@@ -330,6 +334,14 @@
|
|
|
330
334
|
}
|
|
331
335
|
}
|
|
332
336
|
}
|
|
337
|
+
},
|
|
338
|
+
"headers": {
|
|
339
|
+
"X-AF-Credits-Cost": {
|
|
340
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
341
|
+
"schema": {
|
|
342
|
+
"type": "integer"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
333
345
|
}
|
|
334
346
|
},
|
|
335
347
|
"security": [
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"paths": {
|
|
20
20
|
"/pdf/split": {
|
|
21
21
|
"post": {
|
|
22
|
-
"tags": [
|
|
23
|
-
"PDF Operations APIs"
|
|
24
|
-
],
|
|
22
|
+
"tags": ["PDF Operations APIs"],
|
|
25
23
|
"summary": "Split a PDF into smaller files",
|
|
26
24
|
"description": "This API splits a PDF into multiple parts based on specified page numbers or ranges.",
|
|
27
25
|
"parameters": [
|
|
@@ -31,10 +29,7 @@
|
|
|
31
29
|
"required": false,
|
|
32
30
|
"schema": {
|
|
33
31
|
"type": "string",
|
|
34
|
-
"enum": [
|
|
35
|
-
"json",
|
|
36
|
-
"xml"
|
|
37
|
-
],
|
|
32
|
+
"enum": ["json", "xml"],
|
|
38
33
|
"default": "json"
|
|
39
34
|
},
|
|
40
35
|
"description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
|
|
@@ -78,7 +73,7 @@
|
|
|
78
73
|
},
|
|
79
74
|
"default": []
|
|
80
75
|
},
|
|
81
|
-
"description": "Defines the page numbers or ranges where the PDF should be split. Provide individual pages and/or ranges in any order (for example: \"1-4,9-5,16-last\"). Separate entries with commas and use hyphens for ranges.\n\nSpecial keywords (use alone):\n\n
|
|
76
|
+
"description": "Defines the page numbers or ranges where the PDF should be split. Provide individual pages and/or ranges in any order (for example: \"1-4,9-5,16-last\"). Separate entries with commas and use hyphens for ranges.\n\nSpecial keywords (use alone):\n\n• `even` — split at every even-numbered page\n\n• `odd` — split at every odd-numbered page\n\n• `all` — split the PDF into single-page files\n\nThe keyword `last` can be used anywhere in the string, in combination with page numbers or ranges (for example: \"5-last\", \"last-2\", \"1,last,9\").\n\nExamples:\n- \"1,4-2,last\"\n- \"odd\"\n- \"all\"\n- \"last,2-5\"\n\nInvalid example: \"1,odd\" (mixing a keyword other than \"last\" with specific pages/ranges is not allowed). You can pass multiple pages entries to produce multiple output files."
|
|
82
77
|
},
|
|
83
78
|
{
|
|
84
79
|
"name": "webhook_url",
|
|
@@ -96,7 +91,7 @@
|
|
|
96
91
|
"schema": {
|
|
97
92
|
"type": "boolean"
|
|
98
93
|
},
|
|
99
|
-
"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
|
|
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’s admin if part of one."
|
|
100
95
|
},
|
|
101
96
|
{
|
|
102
97
|
"name": "X-Webhook-Authorization",
|
|
@@ -121,7 +116,7 @@
|
|
|
121
116
|
},
|
|
122
117
|
"responses": {
|
|
123
118
|
"200": {
|
|
124
|
-
"description": "Split task created successfully. Malformed or out-of-range page specifications are not rejected synchronously
|
|
119
|
+
"description": "Split task created successfully. Malformed or out-of-range page specifications are not rejected synchronously — the task is created, then fails asynchronously; poll the task status endpoint and check for status \"failed\" with an error/message pair.",
|
|
125
120
|
"content": {
|
|
126
121
|
"application/json": {
|
|
127
122
|
"schema": {
|
|
@@ -132,17 +127,20 @@
|
|
|
132
127
|
"summary": "Task created",
|
|
133
128
|
"value": {
|
|
134
129
|
"taskId": "a533a95c-b3fb-49f0-abb1-bef2f3e805ef",
|
|
135
|
-
"inputIds": [
|
|
136
|
-
"62f910b6-69ce-4cbc-8285-eee5f16467be"
|
|
137
|
-
]
|
|
130
|
+
"inputIds": ["62f910b6-69ce-4cbc-8285-eee5f16467be"]
|
|
138
131
|
}
|
|
139
132
|
}
|
|
140
133
|
}
|
|
141
134
|
}
|
|
135
|
+
},
|
|
136
|
+
"headers": {
|
|
137
|
+
"X-AF-Credits-Cost": {
|
|
138
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
139
|
+
}
|
|
142
140
|
}
|
|
143
141
|
},
|
|
144
142
|
"400": {
|
|
145
|
-
"description": "Bad Request
|
|
143
|
+
"description": "Bad Request — Invalid file ID",
|
|
146
144
|
"content": {
|
|
147
145
|
"application/json": {
|
|
148
146
|
"examples": {
|
|
@@ -161,10 +159,15 @@
|
|
|
161
159
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
162
160
|
}
|
|
163
161
|
}
|
|
162
|
+
},
|
|
163
|
+
"headers": {
|
|
164
|
+
"X-AF-Credits-Cost": {
|
|
165
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
166
|
+
}
|
|
164
167
|
}
|
|
165
168
|
},
|
|
166
169
|
"415": {
|
|
167
|
-
"description": "Unsupported Media Type
|
|
170
|
+
"description": "Unsupported Media Type — File type not supported",
|
|
168
171
|
"content": {
|
|
169
172
|
"application/json": {
|
|
170
173
|
"examples": {
|
|
@@ -183,6 +186,11 @@
|
|
|
183
186
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
184
187
|
}
|
|
185
188
|
}
|
|
189
|
+
},
|
|
190
|
+
"headers": {
|
|
191
|
+
"X-AF-Credits-Cost": {
|
|
192
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
193
|
+
}
|
|
186
194
|
}
|
|
187
195
|
}
|
|
188
196
|
},
|
|
@@ -209,9 +217,7 @@
|
|
|
209
217
|
"PDFResponse": {
|
|
210
218
|
"type": "object",
|
|
211
219
|
"description": "Response containing the task ID and input file IDs for a PDF processing task.",
|
|
212
|
-
"required": [
|
|
213
|
-
"taskId"
|
|
214
|
-
],
|
|
220
|
+
"required": ["taskId"],
|
|
215
221
|
"properties": {
|
|
216
222
|
"taskId": {
|
|
217
223
|
"type": "string",
|
|
@@ -241,9 +247,7 @@
|
|
|
241
247
|
"ErrorResponse": {
|
|
242
248
|
"type": "object",
|
|
243
249
|
"description": "Standard error envelope returned by the API on failed requests.",
|
|
244
|
-
"required": [
|
|
245
|
-
"message"
|
|
246
|
-
],
|
|
250
|
+
"required": ["message"],
|
|
247
251
|
"properties": {
|
|
248
252
|
"error": {
|
|
249
253
|
"type": "string",
|
|
@@ -268,6 +272,14 @@
|
|
|
268
272
|
}
|
|
269
273
|
}
|
|
270
274
|
}
|
|
275
|
+
},
|
|
276
|
+
"headers": {
|
|
277
|
+
"X-AF-Credits-Cost": {
|
|
278
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
279
|
+
"schema": {
|
|
280
|
+
"type": "integer"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
271
283
|
}
|
|
272
284
|
},
|
|
273
285
|
"security": [
|
|
@@ -84,6 +84,11 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
+
},
|
|
88
|
+
"headers": {
|
|
89
|
+
"X-AF-Credits-Cost": {
|
|
90
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
91
|
+
}
|
|
87
92
|
}
|
|
88
93
|
},
|
|
89
94
|
"400": {
|
|
@@ -106,6 +111,11 @@
|
|
|
106
111
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
107
112
|
}
|
|
108
113
|
}
|
|
114
|
+
},
|
|
115
|
+
"headers": {
|
|
116
|
+
"X-AF-Credits-Cost": {
|
|
117
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
118
|
+
}
|
|
109
119
|
}
|
|
110
120
|
},
|
|
111
121
|
"404": {
|
|
@@ -128,6 +138,11 @@
|
|
|
128
138
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
129
139
|
}
|
|
130
140
|
}
|
|
141
|
+
},
|
|
142
|
+
"headers": {
|
|
143
|
+
"X-AF-Credits-Cost": {
|
|
144
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
145
|
+
}
|
|
131
146
|
}
|
|
132
147
|
}
|
|
133
148
|
},
|
|
@@ -239,6 +254,14 @@
|
|
|
239
254
|
}
|
|
240
255
|
}
|
|
241
256
|
}
|
|
257
|
+
},
|
|
258
|
+
"headers": {
|
|
259
|
+
"X-AF-Credits-Cost": {
|
|
260
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
261
|
+
"schema": {
|
|
262
|
+
"type": "integer"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
242
265
|
}
|
|
243
266
|
},
|
|
244
267
|
"security": [
|