@apifreaks/openapi-specs 0.1.0 → 0.1.2
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/dist/index.cjs +133 -2
- package/dist/index.d.cts +140 -3
- package/dist/index.d.ts +140 -3
- package/dist/index.js +131 -2
- package/dist/specs/commodity/commodity-fluctuation.yaml +225 -0
- package/dist/specs/commodity/commodity-prices.yaml +236 -0
- package/dist/specs/commodity/commodity-symbols.yaml +159 -0
- package/dist/specs/commodity/commodity-time-series.yaml +238 -0
- package/dist/specs/commodity/historical-commodity-prices.yaml +208 -0
- package/dist/specs/currency/currency-converter.yaml +193 -0
- package/dist/specs/currency/currency-fluctuation.yaml +211 -0
- package/dist/specs/currency/currency-historical-data-limit.yaml +112 -0
- package/dist/specs/currency/currency-rate.yaml +173 -0
- package/dist/specs/currency/currency-supported.yaml +176 -0
- package/dist/specs/currency/currency-symbols.yaml +115 -0
- package/dist/specs/currency/currency-time-series.yaml +232 -0
- package/dist/specs/currency/geolocalized-currency-conversion.yaml +214 -0
- package/dist/specs/currency/historical-currency-converter.yaml +195 -0
- package/dist/specs/currency/historical-currency-rate.yaml +180 -0
- package/dist/specs/dns/bulk-dns-lookup.yaml +484 -0
- package/dist/specs/dns/dns-history-lookup.yaml +451 -0
- package/dist/specs/dns/dns-lookup.yaml +360 -0
- package/dist/specs/dns/reverse-dns-lookup.yaml +338 -0
- package/dist/specs/domain/bulk-domain-checker.yaml +198 -0
- package/dist/specs/domain/domain-search-with-suggestions.yaml +196 -0
- package/dist/specs/domain/domain-search.yaml +149 -0
- package/dist/specs/domain/subdomain-lookup.yaml +251 -0
- package/dist/specs/email-validation/bulk-email-validation.yaml +403 -0
- package/dist/specs/email-validation/email-checker.yaml +451 -0
- package/dist/specs/financial/bulk-vat-rates-country.yaml +250 -0
- package/dist/specs/financial/financial-apis-supported-countries.yaml +152 -0
- package/dist/specs/financial/iban-validation.yaml +270 -0
- package/dist/specs/financial/swift-code-finder.yaml +146 -0
- package/dist/specs/financial/swift-code-lookup.yaml +156 -0
- package/dist/specs/financial/vat-number-validation.yaml +205 -0
- package/dist/specs/financial/vat-rates-by-ip.yaml +200 -0
- package/dist/specs/financial/vat-rates-country.yaml +212 -0
- package/dist/specs/general/usage-credits.yaml +188 -0
- package/dist/specs/geocoding/forward-geocoding.yaml +292 -0
- package/dist/specs/geocoding/reverse-geocoding.yaml +237 -0
- package/dist/specs/geodb/administrative-units-details.yaml +180 -0
- package/dist/specs/geodb/administrative-units-levels.yaml +140 -0
- package/dist/specs/geodb/administrative-units.yaml +168 -0
- package/dist/specs/geodb/cities.yaml +209 -0
- package/dist/specs/geodb/countries-details.yaml +207 -0
- package/dist/specs/geodb/countries.yaml +199 -0
- package/dist/specs/geodb/flags-supported.yaml +119 -0
- package/dist/specs/geodb/flags.yaml +170 -0
- package/dist/specs/geodb/regions.yaml +76 -0
- package/dist/specs/geodb/subregions.yaml +158 -0
- package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +895 -0
- package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +310 -0
- package/dist/specs/ip-intelligence/ip-locator.yaml +708 -0
- package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +230 -0
- package/dist/specs/other/astronomy-data.yaml +632 -0
- package/dist/specs/pdf/delete-pdf-page.yaml +193 -0
- package/dist/specs/pdf/linearize-pdf.yaml +187 -0
- package/dist/specs/pdf/merge-pdf.yaml +193 -0
- package/dist/specs/pdf/pdf-compress.yaml +208 -0
- package/dist/specs/pdf/pdf-decrypt.yaml +202 -0
- package/dist/specs/pdf/pdf-encrypt.yaml +213 -0
- package/dist/specs/pdf/pdf-extract-pages.yaml +199 -0
- package/dist/specs/pdf/pdf-file-status.yaml +148 -0
- package/dist/specs/pdf/pdf-file.yaml +136 -0
- package/dist/specs/pdf/pdf-files.yaml +85 -0
- package/dist/specs/pdf/pdf-resource-download.yaml +117 -0
- package/dist/specs/pdf/pdf-resource-upload-binary.yaml +152 -0
- package/dist/specs/pdf/pdf-resource-upload.yaml +163 -0
- package/dist/specs/pdf/pdf-restrict.yaml +246 -0
- package/dist/specs/pdf/pdf-split-pages.yaml +208 -0
- package/dist/specs/pdf/pdf-task-status.yaml +187 -0
- package/dist/specs/pdf/pdf-to-image.yaml +844 -0
- package/dist/specs/pdf/pdf-unrestrict.yaml +221 -0
- package/dist/specs/pdf/rotate-pdf-pages.yaml +207 -0
- package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +374 -0
- package/dist/specs/phone-validation/phone-number-validation.yaml +344 -0
- package/dist/specs/scraper/web-scraper.yaml +479 -0
- package/dist/specs/screenshot/bulk-screenshot.yaml +728 -0
- package/dist/specs/screenshot/website-screenshot.yaml +822 -0
- package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +593 -0
- package/dist/specs/ssl/ssl-certificate-lookup.yaml +478 -0
- package/dist/specs/timezone/timezone-converter.yaml +249 -0
- package/dist/specs/timezone/timezone-lookup.yaml +712 -0
- package/dist/specs/user-agent/bulk-user-agent-parser.yaml +340 -0
- package/dist/specs/user-agent/user-agent-parser.yaml +271 -0
- package/dist/specs/weather/air-quality.yaml +590 -0
- package/dist/specs/weather/bulk-live-weather.yaml +654 -0
- package/dist/specs/weather/flood-forecast.yaml +519 -0
- package/dist/specs/weather/historical-weather.yaml +842 -0
- package/dist/specs/weather/live-weather.yaml +633 -0
- package/dist/specs/weather/marine-weather.yaml +806 -0
- package/dist/specs/weather/time-series-weather.yaml +821 -0
- package/dist/specs/weather/weather-forecast.yaml +935 -0
- package/dist/specs/whois/asn-lookup.yaml +618 -0
- package/dist/specs/whois/bulk-whois-lookup.yaml +827 -0
- package/dist/specs/whois/domain-whois-history-lookup.yaml +445 -0
- package/dist/specs/whois/reverse-whois.yaml +566 -0
- package/dist/specs/whois/whois-domain-lookup.yaml +537 -0
- package/dist/specs/whois/whois-ip-lookup.yaml +1123 -0
- package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +232 -0
- package/dist/specs/zip-code/zip-code-api.yaml +216 -0
- package/dist/specs/zip-code/zip-code-distance-match.yaml +239 -0
- package/dist/specs/zip-code/zip-code-distance.yaml +233 -0
- package/dist/specs/zip-code/zip-codes-by-city.yaml +201 -0
- package/dist/specs/zip-code/zip-codes-by-region.yaml +200 -0
- package/dist/specs/zip-code/zip-codes-radius-search.yaml +262 -0
- package/package.json +6 -2
- package/specs/pdf/merge-pdf.json +2 -2
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
openapi: 3.1.1
|
|
2
|
+
info:
|
|
3
|
+
title: PDF Extract Pages API Reference
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Extract specific pages from a PDF file. Specify page ranges or individual page numbers. Returns a task ID for tracking the extraction progress.
|
|
6
|
+
contact:
|
|
7
|
+
name: APIFreaks Support
|
|
8
|
+
url: https://apifreaks.com/contact
|
|
9
|
+
email: support@apifreaks.com
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://api.apifreaks.com/v1.0
|
|
12
|
+
description: PDF Extract Pages API Server
|
|
13
|
+
paths:
|
|
14
|
+
/pdf/extract-pages:
|
|
15
|
+
post:
|
|
16
|
+
tags:
|
|
17
|
+
- PDF Operations APIs
|
|
18
|
+
summary: Extract pages from a PDF
|
|
19
|
+
description: This API extracts specific pages or page ranges from a PDF file and returns them as a new PDF.
|
|
20
|
+
parameters:
|
|
21
|
+
- name: format
|
|
22
|
+
in: query
|
|
23
|
+
required: false
|
|
24
|
+
schema:
|
|
25
|
+
type: string
|
|
26
|
+
enum:
|
|
27
|
+
- json
|
|
28
|
+
- xml
|
|
29
|
+
default: json
|
|
30
|
+
description: Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure.
|
|
31
|
+
- name: file_id
|
|
32
|
+
in: query
|
|
33
|
+
required: false
|
|
34
|
+
schema:
|
|
35
|
+
type: string
|
|
36
|
+
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.
|
|
37
|
+
- name: destroy
|
|
38
|
+
in: query
|
|
39
|
+
required: false
|
|
40
|
+
schema:
|
|
41
|
+
type: boolean
|
|
42
|
+
description: If set to `true`, the input file(s) will be permanently deleted from the server immediately after the output PDF is generated.
|
|
43
|
+
- name: output
|
|
44
|
+
in: query
|
|
45
|
+
required: false
|
|
46
|
+
schema:
|
|
47
|
+
type: string
|
|
48
|
+
description: The desired name for the output PDF file after pages have been extracted. If not provided, a default name will be assigned.
|
|
49
|
+
- name: pages
|
|
50
|
+
in: query
|
|
51
|
+
required: true
|
|
52
|
+
schema:
|
|
53
|
+
type: string
|
|
54
|
+
description: 'Specifies which pages to extract from the PDF. You can provide individual page numbers (e.g., ''2'') and/or page ranges in any order, including descending (e.g., ''9-5'', ''16-last''). Use commas to separate entries and hyphens for ranges. You may alternatively pass only one of the special keywords: ''even'' (extracts all even-numbered pages), ''odd'' (extracts all odd-numbered pages), ''last'' (extracts only the last page), or ''all'' (extracts all pages into individual files). Examples: ''2,6-3'', ''even'', ''all''. 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 — the resulting task fails asynchronously (check task status).'
|
|
55
|
+
- name: separated
|
|
56
|
+
in: query
|
|
57
|
+
required: false
|
|
58
|
+
schema:
|
|
59
|
+
type: boolean
|
|
60
|
+
description: If set to `true`, each of the specified pages will be extracted and returned as a separate PDF file.
|
|
61
|
+
- name: webhook_url
|
|
62
|
+
in: query
|
|
63
|
+
required: false
|
|
64
|
+
schema:
|
|
65
|
+
type: string
|
|
66
|
+
description: The URL to which the webhook notification will be sent after the task is completed.
|
|
67
|
+
- name: webhook_failure_notification
|
|
68
|
+
in: query
|
|
69
|
+
required: false
|
|
70
|
+
schema:
|
|
71
|
+
type: boolean
|
|
72
|
+
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.
|
|
73
|
+
- name: X-Webhook-Authorization
|
|
74
|
+
in: header
|
|
75
|
+
required: false
|
|
76
|
+
schema:
|
|
77
|
+
type: string
|
|
78
|
+
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.'
|
|
79
|
+
requestBody:
|
|
80
|
+
description: Multipart form-data body carrying the PDF file to extract pages from. Alternatively, reference an already-uploaded file via the file_id query parameter instead of uploading here.
|
|
81
|
+
required: false
|
|
82
|
+
content:
|
|
83
|
+
multipart/form-data:
|
|
84
|
+
schema:
|
|
85
|
+
$ref: '#/components/schemas/PdfFileUploadRequest'
|
|
86
|
+
responses:
|
|
87
|
+
'200':
|
|
88
|
+
description: Extract 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.
|
|
89
|
+
content:
|
|
90
|
+
application/json:
|
|
91
|
+
schema:
|
|
92
|
+
$ref: '#/components/schemas/PDFResponse'
|
|
93
|
+
examples:
|
|
94
|
+
success:
|
|
95
|
+
summary: Task created
|
|
96
|
+
value:
|
|
97
|
+
taskId: dabcbcf5-d4ba-4143-bc34-3a8db6c8476e
|
|
98
|
+
inputIds:
|
|
99
|
+
- 01a77122-c457-475d-a6f2-f88cd4ad8924
|
|
100
|
+
'400':
|
|
101
|
+
description: Bad Request — Missing/invalid parameters or file ID
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
examples:
|
|
105
|
+
MissingPages:
|
|
106
|
+
summary: Missing required pages parameter
|
|
107
|
+
value:
|
|
108
|
+
error: Invalid Param Exception
|
|
109
|
+
message: please pass correct parameters
|
|
110
|
+
path: /v1.0/pdf/extract-pages
|
|
111
|
+
status: 400
|
|
112
|
+
timestamp: '2026-07-27T10:53:18.573Z'
|
|
113
|
+
InvalidID:
|
|
114
|
+
summary: file_id is malformed or does not exist
|
|
115
|
+
value:
|
|
116
|
+
error: Invalid File ID Provided
|
|
117
|
+
message: Please provide a valid file ID
|
|
118
|
+
path: /v1.0/pdf/extract-pages
|
|
119
|
+
status: 400
|
|
120
|
+
timestamp: '2026-07-27T10:53:19.182Z'
|
|
121
|
+
schema:
|
|
122
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
123
|
+
'415':
|
|
124
|
+
description: Unsupported Media Type — File type not supported
|
|
125
|
+
content:
|
|
126
|
+
application/json:
|
|
127
|
+
examples:
|
|
128
|
+
UnsupportedFileType:
|
|
129
|
+
summary: Uploaded file is not a supported type
|
|
130
|
+
value:
|
|
131
|
+
timestamp: '2026-07-27T10:53:19.733Z'
|
|
132
|
+
path: /v1.0/pdf/extract-pages
|
|
133
|
+
status: 415
|
|
134
|
+
error: Unsupported File Type
|
|
135
|
+
message: The provided file type is not supported. Refer to the documentation for valid file types.
|
|
136
|
+
schema:
|
|
137
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
138
|
+
operationId: extractPdfPages
|
|
139
|
+
components:
|
|
140
|
+
securitySchemes:
|
|
141
|
+
ApiKeyAuthHeader:
|
|
142
|
+
type: apiKey
|
|
143
|
+
in: header
|
|
144
|
+
name: X-apiKey
|
|
145
|
+
description: Pass your API key via the X-apiKey request header.
|
|
146
|
+
ApiKeyAuthQuery:
|
|
147
|
+
type: apiKey
|
|
148
|
+
in: query
|
|
149
|
+
name: apiKey
|
|
150
|
+
description: Pass your API key via the apiKey query parameter.
|
|
151
|
+
schemas:
|
|
152
|
+
PDFResponse:
|
|
153
|
+
type: object
|
|
154
|
+
description: Response containing the task ID and input file IDs for a PDF processing task.
|
|
155
|
+
required:
|
|
156
|
+
- taskId
|
|
157
|
+
properties:
|
|
158
|
+
taskId:
|
|
159
|
+
type: string
|
|
160
|
+
description: Task ID of the requested task, used to check the task status.
|
|
161
|
+
inputIds:
|
|
162
|
+
type: array
|
|
163
|
+
items:
|
|
164
|
+
type: string
|
|
165
|
+
description: File IDs for the input files provided for the task. Not returned when destroy parameter is true.
|
|
166
|
+
PdfFileUploadRequest:
|
|
167
|
+
type: object
|
|
168
|
+
description: Multipart form-data request body containing the PDF file to process.
|
|
169
|
+
required: []
|
|
170
|
+
properties:
|
|
171
|
+
file:
|
|
172
|
+
type: string
|
|
173
|
+
format: binary
|
|
174
|
+
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.
|
|
175
|
+
ErrorResponse:
|
|
176
|
+
type: object
|
|
177
|
+
description: Standard error envelope returned by the API on failed requests.
|
|
178
|
+
required:
|
|
179
|
+
- message
|
|
180
|
+
properties:
|
|
181
|
+
error:
|
|
182
|
+
type: string
|
|
183
|
+
description: Short error category or exception type.
|
|
184
|
+
message:
|
|
185
|
+
type: string
|
|
186
|
+
description: Human-readable error message describing the failure.
|
|
187
|
+
path:
|
|
188
|
+
type: string
|
|
189
|
+
description: API endpoint path that produced the error.
|
|
190
|
+
status:
|
|
191
|
+
type: integer
|
|
192
|
+
description: HTTP status code returned with the error.
|
|
193
|
+
timestamp:
|
|
194
|
+
type: string
|
|
195
|
+
format: date-time
|
|
196
|
+
description: Timestamp when the error occurred (ISO 8601).
|
|
197
|
+
security:
|
|
198
|
+
- ApiKeyAuthHeader: []
|
|
199
|
+
- ApiKeyAuthQuery: []
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
openapi: 3.1.1
|
|
2
|
+
info:
|
|
3
|
+
title: PDF File Status API Reference
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Check the status of a PDF file using its unique file ID. Returns file metadata including name, type, creation time, and scheduled deletion time. Use this endpoint to verify file availability after upload or before processing.
|
|
6
|
+
contact:
|
|
7
|
+
name: APIFreaks Support
|
|
8
|
+
url: https://apifreaks.com/contact
|
|
9
|
+
email: support@apifreaks.com
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://api.apifreaks.com/v1.0
|
|
12
|
+
description: PDF File Status API Server
|
|
13
|
+
paths:
|
|
14
|
+
/pdf/file-status:
|
|
15
|
+
get:
|
|
16
|
+
tags:
|
|
17
|
+
- Task Status and File Info APIs
|
|
18
|
+
summary: Check file status
|
|
19
|
+
description: This API checks the status of a PDF file using its unique file ID, providing information about its creation and potential deletion time.
|
|
20
|
+
parameters:
|
|
21
|
+
- name: format
|
|
22
|
+
in: query
|
|
23
|
+
required: false
|
|
24
|
+
schema:
|
|
25
|
+
type: string
|
|
26
|
+
enum:
|
|
27
|
+
- json
|
|
28
|
+
- xml
|
|
29
|
+
default: json
|
|
30
|
+
description: Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure.
|
|
31
|
+
- name: file_id
|
|
32
|
+
in: query
|
|
33
|
+
description: The unique ID of the file whose status is requested.
|
|
34
|
+
required: true
|
|
35
|
+
schema:
|
|
36
|
+
type: string
|
|
37
|
+
responses:
|
|
38
|
+
'200':
|
|
39
|
+
description: Successful operation
|
|
40
|
+
content:
|
|
41
|
+
application/json:
|
|
42
|
+
schema:
|
|
43
|
+
$ref: '#/components/schemas/FileStatusResponse'
|
|
44
|
+
examples:
|
|
45
|
+
success:
|
|
46
|
+
summary: File found
|
|
47
|
+
value:
|
|
48
|
+
fileId: b7ece7d4-1141-4143-98cb-7b4b818d6d82
|
|
49
|
+
fileName: test.pdf
|
|
50
|
+
fileType: pdf
|
|
51
|
+
fileCreationTime: '2026-07-27T10:46:36'
|
|
52
|
+
fileDeletionTime: '2026-08-26'
|
|
53
|
+
'400':
|
|
54
|
+
description: Bad Request — Missing required file_id parameter
|
|
55
|
+
content:
|
|
56
|
+
application/json:
|
|
57
|
+
examples:
|
|
58
|
+
missingFileId:
|
|
59
|
+
summary: Missing file_id parameter
|
|
60
|
+
value:
|
|
61
|
+
error: Invalid Param Exception
|
|
62
|
+
message: please pass correct parameters
|
|
63
|
+
path: /v1.0/pdf/file-status
|
|
64
|
+
status: 400
|
|
65
|
+
timestamp: '2026-07-27T10:46:38.333Z'
|
|
66
|
+
schema:
|
|
67
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
68
|
+
'404':
|
|
69
|
+
description: File ID Not Found
|
|
70
|
+
content:
|
|
71
|
+
application/json:
|
|
72
|
+
examples:
|
|
73
|
+
error:
|
|
74
|
+
summary: File ID not found
|
|
75
|
+
value:
|
|
76
|
+
timestamp: '2026-07-27T10:46:37.828Z'
|
|
77
|
+
path: /v1.0/pdf/file-status
|
|
78
|
+
status: 404
|
|
79
|
+
error: File ID Not Found
|
|
80
|
+
message: Please provide a valid file ID.
|
|
81
|
+
schema:
|
|
82
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
83
|
+
operationId: getFileStatus
|
|
84
|
+
components:
|
|
85
|
+
securitySchemes:
|
|
86
|
+
ApiKeyAuthHeader:
|
|
87
|
+
type: apiKey
|
|
88
|
+
in: header
|
|
89
|
+
name: X-apiKey
|
|
90
|
+
description: Pass your API key via the X-apiKey request header.
|
|
91
|
+
ApiKeyAuthQuery:
|
|
92
|
+
type: apiKey
|
|
93
|
+
in: query
|
|
94
|
+
name: apiKey
|
|
95
|
+
description: Pass your API key via the apiKey query parameter.
|
|
96
|
+
schemas:
|
|
97
|
+
FileStatusResponse:
|
|
98
|
+
type: object
|
|
99
|
+
required:
|
|
100
|
+
- fileId
|
|
101
|
+
- fileName
|
|
102
|
+
- fileType
|
|
103
|
+
- fileCreationTime
|
|
104
|
+
- fileDeletionTime
|
|
105
|
+
properties:
|
|
106
|
+
fileId:
|
|
107
|
+
type: string
|
|
108
|
+
description: The unique identifier of the file.
|
|
109
|
+
fileName:
|
|
110
|
+
type: string
|
|
111
|
+
description: The name of the file.
|
|
112
|
+
fileType:
|
|
113
|
+
type: string
|
|
114
|
+
description: The type of the file (e.g., 'pdf').
|
|
115
|
+
fileCreationTime:
|
|
116
|
+
type: string
|
|
117
|
+
format: date-time
|
|
118
|
+
description: The timestamp when the file was created.
|
|
119
|
+
fileDeletionTime:
|
|
120
|
+
type: string
|
|
121
|
+
format: date
|
|
122
|
+
description: Date on which the file is scheduled to be deleted, in UTC.
|
|
123
|
+
description: File status response containing metadata about the PDF file.
|
|
124
|
+
ErrorResponse:
|
|
125
|
+
type: object
|
|
126
|
+
description: Standard error envelope returned by the API on failed requests.
|
|
127
|
+
required:
|
|
128
|
+
- message
|
|
129
|
+
properties:
|
|
130
|
+
error:
|
|
131
|
+
type: string
|
|
132
|
+
description: Short error category or exception type.
|
|
133
|
+
message:
|
|
134
|
+
type: string
|
|
135
|
+
description: Human-readable error message describing the failure.
|
|
136
|
+
path:
|
|
137
|
+
type: string
|
|
138
|
+
description: API endpoint path that produced the error.
|
|
139
|
+
status:
|
|
140
|
+
type: integer
|
|
141
|
+
description: HTTP status code returned with the error.
|
|
142
|
+
timestamp:
|
|
143
|
+
type: string
|
|
144
|
+
format: date-time
|
|
145
|
+
description: Timestamp when the error occurred (ISO 8601).
|
|
146
|
+
security:
|
|
147
|
+
- ApiKeyAuthHeader: []
|
|
148
|
+
- ApiKeyAuthQuery: []
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
openapi: 3.1.1
|
|
2
|
+
info:
|
|
3
|
+
title: PDF Delete File API Reference
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Delete a PDF file from the server using its unique file ID. Once deleted, the file ID cannot be used in other API calls. Returns a success indicator and confirmation message.
|
|
6
|
+
contact:
|
|
7
|
+
name: APIFreaks Support
|
|
8
|
+
url: https://apifreaks.com/contact
|
|
9
|
+
email: support@apifreaks.com
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://api.apifreaks.com/v1.0
|
|
12
|
+
description: PDF Delete File API Server
|
|
13
|
+
paths:
|
|
14
|
+
/pdf/file:
|
|
15
|
+
delete:
|
|
16
|
+
tags:
|
|
17
|
+
- Task Status and File Info APIs
|
|
18
|
+
summary: Delete a PDF file
|
|
19
|
+
description: This API deletes a PDF file using its unique file ID.
|
|
20
|
+
parameters:
|
|
21
|
+
- name: format
|
|
22
|
+
in: query
|
|
23
|
+
required: false
|
|
24
|
+
schema:
|
|
25
|
+
type: string
|
|
26
|
+
enum:
|
|
27
|
+
- json
|
|
28
|
+
- xml
|
|
29
|
+
default: json
|
|
30
|
+
description: Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure.
|
|
31
|
+
- name: file_id
|
|
32
|
+
in: query
|
|
33
|
+
description: The unique ID of the file to be deleted.
|
|
34
|
+
required: true
|
|
35
|
+
schema:
|
|
36
|
+
type: string
|
|
37
|
+
responses:
|
|
38
|
+
'200':
|
|
39
|
+
description: Successful operation
|
|
40
|
+
content:
|
|
41
|
+
application/json:
|
|
42
|
+
schema:
|
|
43
|
+
$ref: '#/components/schemas/DeleteFileResponse'
|
|
44
|
+
examples:
|
|
45
|
+
success:
|
|
46
|
+
summary: File deleted
|
|
47
|
+
value:
|
|
48
|
+
fileId: abc123
|
|
49
|
+
success: true
|
|
50
|
+
message: File deleted successfully.
|
|
51
|
+
'400':
|
|
52
|
+
description: Bad Request — Missing required file_id parameter
|
|
53
|
+
content:
|
|
54
|
+
application/json:
|
|
55
|
+
examples:
|
|
56
|
+
missingFileId:
|
|
57
|
+
summary: Missing file_id parameter
|
|
58
|
+
value:
|
|
59
|
+
error: Invalid Param Exception
|
|
60
|
+
message: please pass correct parameters
|
|
61
|
+
path: /v1.0/pdf/file
|
|
62
|
+
status: 400
|
|
63
|
+
timestamp: '2026-07-27T10:45:56.656Z'
|
|
64
|
+
schema:
|
|
65
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
66
|
+
'404':
|
|
67
|
+
description: File ID Not Found
|
|
68
|
+
content:
|
|
69
|
+
application/json:
|
|
70
|
+
examples:
|
|
71
|
+
error:
|
|
72
|
+
summary: File ID not found or already deleted
|
|
73
|
+
value:
|
|
74
|
+
timestamp: '2026-07-27T10:45:55.737Z'
|
|
75
|
+
path: /v1.0/pdf/file
|
|
76
|
+
status: 404
|
|
77
|
+
error: File ID Not Found
|
|
78
|
+
message: Please provide a valid file ID.
|
|
79
|
+
schema:
|
|
80
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
81
|
+
operationId: deleteFile
|
|
82
|
+
components:
|
|
83
|
+
securitySchemes:
|
|
84
|
+
ApiKeyAuthHeader:
|
|
85
|
+
type: apiKey
|
|
86
|
+
in: header
|
|
87
|
+
name: X-apiKey
|
|
88
|
+
description: Pass your API key via the X-apiKey request header.
|
|
89
|
+
ApiKeyAuthQuery:
|
|
90
|
+
type: apiKey
|
|
91
|
+
in: query
|
|
92
|
+
name: apiKey
|
|
93
|
+
description: Pass your API key via the apiKey query parameter.
|
|
94
|
+
schemas:
|
|
95
|
+
DeleteFileResponse:
|
|
96
|
+
type: object
|
|
97
|
+
required:
|
|
98
|
+
- fileId
|
|
99
|
+
- success
|
|
100
|
+
- message
|
|
101
|
+
properties:
|
|
102
|
+
fileId:
|
|
103
|
+
type: string
|
|
104
|
+
description: The unique identifier of the file.
|
|
105
|
+
success:
|
|
106
|
+
type: boolean
|
|
107
|
+
description: Indicates whether the file deletion request was successful.
|
|
108
|
+
message:
|
|
109
|
+
type: string
|
|
110
|
+
description: A message indicating the result of the file deletion request.
|
|
111
|
+
description: File deletion response containing the result of the delete operation.
|
|
112
|
+
ErrorResponse:
|
|
113
|
+
type: object
|
|
114
|
+
description: Standard error envelope returned by the API on failed requests.
|
|
115
|
+
required:
|
|
116
|
+
- message
|
|
117
|
+
properties:
|
|
118
|
+
error:
|
|
119
|
+
type: string
|
|
120
|
+
description: Short error category or exception type.
|
|
121
|
+
message:
|
|
122
|
+
type: string
|
|
123
|
+
description: Human-readable error message describing the failure.
|
|
124
|
+
path:
|
|
125
|
+
type: string
|
|
126
|
+
description: API endpoint path that produced the error.
|
|
127
|
+
status:
|
|
128
|
+
type: integer
|
|
129
|
+
description: HTTP status code returned with the error.
|
|
130
|
+
timestamp:
|
|
131
|
+
type: string
|
|
132
|
+
format: date-time
|
|
133
|
+
description: Timestamp when the error occurred (ISO 8601).
|
|
134
|
+
security:
|
|
135
|
+
- ApiKeyAuthHeader: []
|
|
136
|
+
- ApiKeyAuthQuery: []
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
openapi: 3.1.1
|
|
2
|
+
info:
|
|
3
|
+
title: PDF Files API Reference
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: 'Retrieve a list of all PDF files uploaded and generated by a user. Returns an array of file objects with file ID and file name. Note: Organization members cannot access this endpoint — only the Organization Administrator can.'
|
|
6
|
+
contact:
|
|
7
|
+
name: APIFreaks Support
|
|
8
|
+
url: https://apifreaks.com/contact
|
|
9
|
+
email: support@apifreaks.com
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://api.apifreaks.com/v1.0
|
|
12
|
+
description: PDF Files API Server
|
|
13
|
+
paths:
|
|
14
|
+
/pdf/files:
|
|
15
|
+
get:
|
|
16
|
+
tags:
|
|
17
|
+
- Task Status and File Info APIs
|
|
18
|
+
summary: Get list of PDF files
|
|
19
|
+
description: This API retrieves a list of all PDF files uploaded and generated by a specific user. Please note that if the user is part of an organization, only the Organization Administrator can access this endpoint. Organization Members cannot access this endpoint.
|
|
20
|
+
parameters:
|
|
21
|
+
- name: format
|
|
22
|
+
in: query
|
|
23
|
+
required: false
|
|
24
|
+
schema:
|
|
25
|
+
type: string
|
|
26
|
+
enum:
|
|
27
|
+
- json
|
|
28
|
+
- xml
|
|
29
|
+
default: json
|
|
30
|
+
description: Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure.
|
|
31
|
+
responses:
|
|
32
|
+
'200':
|
|
33
|
+
description: Successful operation
|
|
34
|
+
content:
|
|
35
|
+
application/json:
|
|
36
|
+
schema:
|
|
37
|
+
$ref: '#/components/schemas/PdfFileListResponse'
|
|
38
|
+
examples:
|
|
39
|
+
success:
|
|
40
|
+
summary: File list
|
|
41
|
+
value:
|
|
42
|
+
files:
|
|
43
|
+
- fileId: abc123
|
|
44
|
+
fileName: document.pdf
|
|
45
|
+
- fileId: def456
|
|
46
|
+
fileName: report.pdf
|
|
47
|
+
operationId: getFiles
|
|
48
|
+
components:
|
|
49
|
+
securitySchemes:
|
|
50
|
+
ApiKeyAuthHeader:
|
|
51
|
+
type: apiKey
|
|
52
|
+
in: header
|
|
53
|
+
name: X-apiKey
|
|
54
|
+
description: Pass your API key via the X-apiKey request header.
|
|
55
|
+
ApiKeyAuthQuery:
|
|
56
|
+
type: apiKey
|
|
57
|
+
in: query
|
|
58
|
+
name: apiKey
|
|
59
|
+
description: Pass your API key via the apiKey query parameter.
|
|
60
|
+
schemas:
|
|
61
|
+
PdfFileListResponse:
|
|
62
|
+
type: object
|
|
63
|
+
description: PDF file list response containing an array of file objects.
|
|
64
|
+
required:
|
|
65
|
+
- files
|
|
66
|
+
properties:
|
|
67
|
+
files:
|
|
68
|
+
type: array
|
|
69
|
+
description: List of files available on the server.
|
|
70
|
+
items:
|
|
71
|
+
$ref: '#/components/schemas/PdfFileItem'
|
|
72
|
+
PdfFileItem:
|
|
73
|
+
type: object
|
|
74
|
+
description: A single PDF file in the file list.
|
|
75
|
+
properties:
|
|
76
|
+
fileId:
|
|
77
|
+
type: string
|
|
78
|
+
description: Unique ID for the file, used to fetch or process the file.
|
|
79
|
+
fileName:
|
|
80
|
+
type: string
|
|
81
|
+
description: Original name of the uploaded file.
|
|
82
|
+
required: []
|
|
83
|
+
security:
|
|
84
|
+
- ApiKeyAuthHeader: []
|
|
85
|
+
- ApiKeyAuthQuery: []
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
openapi: 3.1.1
|
|
2
|
+
info:
|
|
3
|
+
title: PDF Resource Download API Reference
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Download PDF files or ZIP archives from the server using their unique resource ID. Returns the file as a binary stream for direct download. Supports PDF and ZIP output formats depending on the requested resource.
|
|
6
|
+
contact:
|
|
7
|
+
name: APIFreaks Support
|
|
8
|
+
url: https://apifreaks.com/contact
|
|
9
|
+
email: support@apifreaks.com
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://api.apifreaks.com/v1.0
|
|
12
|
+
description: PDF Resource Download API Server
|
|
13
|
+
paths:
|
|
14
|
+
/pdf/resource/download:
|
|
15
|
+
get:
|
|
16
|
+
tags:
|
|
17
|
+
- PDF Upload and Download APIs
|
|
18
|
+
summary: Download PDF resource
|
|
19
|
+
description: This API downloads PDF files or ZIP archives from the server using their unique resource ID.
|
|
20
|
+
parameters:
|
|
21
|
+
- name: format
|
|
22
|
+
in: query
|
|
23
|
+
required: false
|
|
24
|
+
schema:
|
|
25
|
+
type: string
|
|
26
|
+
enum:
|
|
27
|
+
- json
|
|
28
|
+
- xml
|
|
29
|
+
default: json
|
|
30
|
+
description: 'Response format: ''json'' (default) or ''xml''.'
|
|
31
|
+
- name: resource_id
|
|
32
|
+
in: query
|
|
33
|
+
description: The unique identifier of the file or ZIP archive to download.
|
|
34
|
+
required: true
|
|
35
|
+
schema:
|
|
36
|
+
type: string
|
|
37
|
+
responses:
|
|
38
|
+
'200':
|
|
39
|
+
description: 'File download successful. Returns the raw file bytes with Content-Disposition: attachment, not a JSON body.'
|
|
40
|
+
content:
|
|
41
|
+
application/pdf:
|
|
42
|
+
schema:
|
|
43
|
+
type: string
|
|
44
|
+
format: binary
|
|
45
|
+
application/zip:
|
|
46
|
+
schema:
|
|
47
|
+
type: string
|
|
48
|
+
format: binary
|
|
49
|
+
'400':
|
|
50
|
+
description: Bad Request — Missing required resource_id parameter
|
|
51
|
+
content:
|
|
52
|
+
application/json:
|
|
53
|
+
examples:
|
|
54
|
+
missingResourceId:
|
|
55
|
+
summary: Missing resource_id parameter
|
|
56
|
+
value:
|
|
57
|
+
error: Invalid Param Exception
|
|
58
|
+
message: please pass correct parameters
|
|
59
|
+
path: /v1.0/pdf/resource/download
|
|
60
|
+
status: 400
|
|
61
|
+
timestamp: '2026-07-27T10:47:12.356Z'
|
|
62
|
+
schema:
|
|
63
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
64
|
+
'404':
|
|
65
|
+
description: Resource ID Not Found
|
|
66
|
+
content:
|
|
67
|
+
application/json:
|
|
68
|
+
examples:
|
|
69
|
+
error:
|
|
70
|
+
summary: Resource ID not found
|
|
71
|
+
value:
|
|
72
|
+
timestamp: '2026-07-27T10:47:12.926Z'
|
|
73
|
+
path: /v1.0/pdf/resource
|
|
74
|
+
status: 404
|
|
75
|
+
error: Resource ID Not Found
|
|
76
|
+
message: Please provide a valid resource ID.
|
|
77
|
+
schema:
|
|
78
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
79
|
+
operationId: downloadResource
|
|
80
|
+
components:
|
|
81
|
+
securitySchemes:
|
|
82
|
+
ApiKeyAuthHeader:
|
|
83
|
+
type: apiKey
|
|
84
|
+
in: header
|
|
85
|
+
name: X-apiKey
|
|
86
|
+
description: Pass your API key via the X-apiKey request header.
|
|
87
|
+
ApiKeyAuthQuery:
|
|
88
|
+
type: apiKey
|
|
89
|
+
in: query
|
|
90
|
+
name: apiKey
|
|
91
|
+
description: Pass your API key via the apiKey query parameter.
|
|
92
|
+
schemas:
|
|
93
|
+
ErrorResponse:
|
|
94
|
+
type: object
|
|
95
|
+
description: Standard error envelope returned by the API on failed requests.
|
|
96
|
+
required:
|
|
97
|
+
- message
|
|
98
|
+
properties:
|
|
99
|
+
error:
|
|
100
|
+
type: string
|
|
101
|
+
description: Short error category or exception type.
|
|
102
|
+
message:
|
|
103
|
+
type: string
|
|
104
|
+
description: Human-readable error message describing the failure.
|
|
105
|
+
path:
|
|
106
|
+
type: string
|
|
107
|
+
description: API endpoint path that produced the error.
|
|
108
|
+
status:
|
|
109
|
+
type: integer
|
|
110
|
+
description: HTTP status code returned with the error.
|
|
111
|
+
timestamp:
|
|
112
|
+
type: string
|
|
113
|
+
format: date-time
|
|
114
|
+
description: Timestamp when the error occurred (ISO 8601).
|
|
115
|
+
security:
|
|
116
|
+
- ApiKeyAuthHeader: []
|
|
117
|
+
- ApiKeyAuthQuery: []
|