@apifreaks/openapi-specs 0.4.10 → 0.4.11

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.
@@ -0,0 +1,307 @@
1
+ openapi: 3.1.1
2
+ info:
3
+ title: Bulk Disposable Email Checker API - Check Multiple Emails for Disposable Domains
4
+ version: 1.0.0
5
+ description: Check up to 100 email addresses in a single POST request for disposable/temporary domains, free webmail providers, spam-listed domains, and role-based accounts. Each email is processed independently and returned in the same order as the request. The whole request is rejected with a 400 if the emails array is empty/missing or contains a null/blank entry. Maximum 100 email addresses per request.
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: Bulk Disposable Email Checker API Server
13
+ paths:
14
+ /email/disposable/bulk:
15
+ post:
16
+ tags:
17
+ - Email Validation APIs
18
+ summary: Check multiple emails for disposable/temporary domains
19
+ description: Checks a bulk of email addresses and returns a disposable email check result for each, in the same order as the request. Maximum `100` email addresses per request.
20
+ requestBody:
21
+ required: true
22
+ content:
23
+ application/json:
24
+ schema:
25
+ $ref: '#/components/schemas/BulkDisposableEmailRequest'
26
+ examples:
27
+ bulkRequest:
28
+ value:
29
+ emails:
30
+ - abc
31
+ - john@microsoft.com
32
+ - test@mailinator.com
33
+ responses:
34
+ '200':
35
+ description: Successful response. Each item corresponds to one requested email, in the same order as the request.
36
+ content:
37
+ application/json:
38
+ schema:
39
+ $ref: '#/components/schemas/BulkDisposableEmailCheckResponse'
40
+ examples:
41
+ mixedResults:
42
+ summary: Mix of syntactically invalid, clean, and disposable results
43
+ value:
44
+ disposableEmailResponse:
45
+ - email: abc
46
+ validSyntax: false
47
+ domain:
48
+ name: abc
49
+ validDomain: false
50
+ - email: john@microsoft.com
51
+ validSyntax: true
52
+ domain:
53
+ disposable: false
54
+ free: false
55
+ name: microsoft.com
56
+ spam: false
57
+ validDomain: true
58
+ account:
59
+ role: false
60
+ dns:
61
+ mxRecord:
62
+ - microsoft-com.mail.protection.outlook.com.
63
+ - email: test@mailinator.com
64
+ validSyntax: true
65
+ domain:
66
+ disposable: true
67
+ free: false
68
+ name: mailinator.com
69
+ spam: false
70
+ validDomain: true
71
+ account:
72
+ role: false
73
+ dns:
74
+ mxRecord:
75
+ - mail.mailinator.com.
76
+ - mail2.mailinator.com.
77
+ headers:
78
+ X-AF-Credits-Cost:
79
+ $ref: '#/components/headers/X-AF-Credits-Cost'
80
+ X-Concurrent-Threads:
81
+ $ref: '#/components/headers/X-Concurrent-Threads'
82
+ X-Concurrent-Threads-Active:
83
+ $ref: '#/components/headers/X-Concurrent-Threads-Active'
84
+ '400':
85
+ description: Bad Request – Invalid request body, empty/missing emails array, or a null/blank entry in emails
86
+ content:
87
+ application/json:
88
+ schema:
89
+ $ref: '#/components/schemas/ErrorResponse'
90
+ examples:
91
+ invalidBody:
92
+ summary: emails field missing, empty, or malformed
93
+ value:
94
+ error: Invalid request body Exception
95
+ message: Please provide data in required format in request body
96
+ path: /v1.0/email/disposable/bulk
97
+ status: 400
98
+ timestamp: '2026-10-13T10:39:42.887Z'
99
+ nullOrBlankEntry:
100
+ summary: emails array contains a null/blank/whitespace-only entry — whole request rejected
101
+ value:
102
+ error: Missing or Invalid Parameters
103
+ message: '''emails'' must not contain null or blank entries.'
104
+ path: /v2/email/disposable/bulk
105
+ status: 400
106
+ timestamp: '2026-10-13T10:39:44.002Z'
107
+ missingApiKey:
108
+ summary: apiKey not supplied
109
+ value:
110
+ error: Invalid Param Exception
111
+ message: Please provide apiKey
112
+ path: /v1.0/email/disposable/bulk
113
+ status: 400
114
+ timestamp: '2026-10-13T10:40:02.684Z'
115
+ headers:
116
+ X-AF-Credits-Cost:
117
+ $ref: '#/components/headers/X-AF-Credits-Cost'
118
+ '401':
119
+ description: Unauthorized – Invalid API key
120
+ content:
121
+ application/json:
122
+ schema:
123
+ $ref: '#/components/schemas/ErrorResponse'
124
+ examples:
125
+ invalidApiKey:
126
+ value:
127
+ error: API Access Exception
128
+ message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
129
+ path: /v1.0/email/disposable/bulk
130
+ status: 401
131
+ timestamp: '2026-10-13T10:40:03.166Z'
132
+ '404':
133
+ description: Not Found – The requested resource could not be found
134
+ content:
135
+ application/json:
136
+ schema:
137
+ $ref: '#/components/schemas/ErrorResponse'
138
+ examples:
139
+ Resource Not Found:
140
+ value:
141
+ error: Resource Not Found
142
+ message: The requested resource could not be found. Please verify the URL and try again.
143
+ path: /v1.0/email/disposable/bulkx
144
+ status: 404
145
+ timestamp: '2026-10-13T11:00:08.337Z'
146
+ headers:
147
+ X-AF-Credits-Cost:
148
+ $ref: '#/components/headers/X-AF-Credits-Cost'
149
+ '413':
150
+ description: Payload Too Large – emails exceeds the maximum of 100 entries per request
151
+ content:
152
+ application/json:
153
+ schema:
154
+ $ref: '#/components/schemas/ErrorResponse'
155
+ examples:
156
+ Payload Too Large:
157
+ value:
158
+ error: Payload too large Exception
159
+ message: Maximum request body size limit exceeded
160
+ path: /v1.0/email/disposable/bulk
161
+ status: 413
162
+ timestamp: '2026-10-13T10:39:58.052Z'
163
+ headers:
164
+ X-AF-Credits-Cost:
165
+ $ref: '#/components/headers/X-AF-Credits-Cost'
166
+ operationId: bulkCheckDisposableEmail
167
+ components:
168
+ securitySchemes:
169
+ ApiKeyAuthHeader:
170
+ type: apiKey
171
+ in: header
172
+ name: X-apiKey
173
+ description: Pass your API key via the X-apiKey request header.
174
+ ApiKeyAuthQuery:
175
+ type: apiKey
176
+ in: query
177
+ name: apiKey
178
+ description: Pass your API key via the apiKey query parameter.
179
+ schemas:
180
+ BulkDisposableEmailCheckResponse:
181
+ type: object
182
+ description: Wrapper containing the per-email results array.
183
+ required:
184
+ - disposableEmailResponse
185
+ properties:
186
+ disposableEmailResponse:
187
+ type: array
188
+ description: Array of per-email results, one entry per requested email, in the same order as the request.
189
+ items:
190
+ $ref: '#/components/schemas/DisposableEmailCheckResult'
191
+ DisposableEmailCheckResult:
192
+ type: object
193
+ required:
194
+ - email
195
+ - validSyntax
196
+ - domain
197
+ properties:
198
+ email:
199
+ type: string
200
+ description: The email address submitted for the check.
201
+ validSyntax:
202
+ type: boolean
203
+ description: Validates email address format compliance with RFC 5322 standards. When false, domain only contains name/validDomain and account/dns are omitted entirely.
204
+ domain:
205
+ $ref: '#/components/schemas/DisposableDomainObject'
206
+ account:
207
+ $ref: '#/components/schemas/DisposableAccountObject'
208
+ dns:
209
+ $ref: '#/components/schemas/DisposableDnsObject'
210
+ description: Disposable email check result for a single item in the bulk request.
211
+ DisposableDomainObject:
212
+ type: object
213
+ required:
214
+ - name
215
+ - validDomain
216
+ properties:
217
+ name:
218
+ type: string
219
+ description: Extracted domain component from the email address.
220
+ validDomain:
221
+ type: boolean
222
+ description: Domain validation status confirming DNS resolution capability.
223
+ disposable:
224
+ type: boolean
225
+ description: Classification flag identifying domains from temporary/throwaway email service providers. Omitted when validSyntax is false or the domain could not be resolved.
226
+ free:
227
+ type: boolean
228
+ description: Classification indicating free or consumer-grade email service providers. Omitted when validSyntax is false or the domain could not be resolved.
229
+ spam:
230
+ type: boolean
231
+ description: Reputation indicator flagging domains on spam databases. Omitted when validSyntax is false or the domain could not be resolved.
232
+ description: Domain-level disposable/spam/free classification for the email address.
233
+ DisposableAccountObject:
234
+ type: object
235
+ required:
236
+ - role
237
+ properties:
238
+ role:
239
+ type: boolean
240
+ description: Detection flag identifying role-based email addresses (e.g., admin@, support@).
241
+ description: Account-level detection details. Omitted entirely when validSyntax is false.
242
+ DisposableDnsObject:
243
+ type: object
244
+ required: []
245
+ properties:
246
+ mxRecord:
247
+ type: array
248
+ items:
249
+ type: string
250
+ description: Every MX hostname at the domain's lowest preference (not just one). ["."] means the domain publishes a null MX and accepts no mail at all. Absent entirely when the domain has no MX record of any kind — check aRecord in that case.
251
+ aRecord:
252
+ type: array
253
+ items:
254
+ type: string
255
+ description: Collection of A (Address) records for the domain. Present when the domain has no MX record but does resolve to a web server or other host.
256
+ description: DNS records for the email domain. Omitted entirely when validSyntax is false or the domain does not exist (NXDOMAIN).
257
+ BulkDisposableEmailRequest:
258
+ type: object
259
+ description: Request body for bulk disposable email check.
260
+ required:
261
+ - emails
262
+ properties:
263
+ emails:
264
+ type: array
265
+ description: Array of email addresses to check. Maximum 100 per request. Must not be empty, and must not contain null/blank entries — either condition rejects the whole request with a 400.
266
+ minItems: 1
267
+ maxItems: 100
268
+ items:
269
+ type: string
270
+ ErrorResponse:
271
+ type: object
272
+ description: Standard error envelope returned by the API on failed requests.
273
+ required:
274
+ - message
275
+ properties:
276
+ error:
277
+ type: string
278
+ description: Short error category or exception type.
279
+ message:
280
+ type: string
281
+ description: Human-readable error message describing the failure.
282
+ path:
283
+ type: string
284
+ description: API endpoint path that produced the error.
285
+ status:
286
+ type: integer
287
+ description: HTTP status code returned with the error.
288
+ timestamp:
289
+ type: string
290
+ format: date-time
291
+ description: Timestamp when the error occurred (ISO 8601).
292
+ headers:
293
+ X-AF-Credits-Cost:
294
+ description: Specifies the number of credits consumed by the current request. 15 credits per checked record (e.g. 3 emails = 45 credits).
295
+ schema:
296
+ type: integer
297
+ X-Concurrent-Threads:
298
+ description: Specifies the maximum number of concurrent requests allowed.
299
+ schema:
300
+ type: integer
301
+ X-Concurrent-Threads-Active:
302
+ description: Indicates the number of active concurrent requests being processed.
303
+ schema:
304
+ type: integer
305
+ security:
306
+ - ApiKeyAuthHeader: []
307
+ - ApiKeyAuthQuery: []
@@ -0,0 +1,322 @@
1
+ openapi: 3.1.1
2
+ info:
3
+ title: Disposable Email Checker API - Detect Temporary & Throwaway Email Addresses
4
+ version: 1.0.0
5
+ description: Check a single email address for disposable/temporary domains, free webmail providers, spam-listed domains, and role-based accounts, with syntax validation and DNS record lookup (MX/A). Returns a minimal shape for syntactically invalid addresses and omits the domain/account/dns detail blocks when the domain cannot be resolved.
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: Disposable Email Checker API Server
13
+ paths:
14
+ /email/disposable:
15
+ get:
16
+ tags:
17
+ - Email Validation APIs
18
+ summary: Check a single email for disposable/temporary domain
19
+ description: Validates email syntax and checks the domain for disposable, free, spam, and role-account signals, plus MX/A DNS records.
20
+ parameters:
21
+ - name: email
22
+ in: query
23
+ required: true
24
+ schema:
25
+ type: string
26
+ format: email
27
+ description: Email address to check.
28
+ responses:
29
+ '200':
30
+ description: Successful response with disposable email check result.
31
+ content:
32
+ application/json:
33
+ schema:
34
+ $ref: '#/components/schemas/DisposableEmailCheckResponse'
35
+ examples:
36
+ disposableDomain:
37
+ summary: Disposable domain, MX present
38
+ value:
39
+ email: test@sogetthis.com
40
+ validSyntax: true
41
+ domain:
42
+ disposable: true
43
+ free: false
44
+ name: sogetthis.com
45
+ spam: false
46
+ validDomain: true
47
+ account:
48
+ role: false
49
+ dns:
50
+ mxRecord:
51
+ - mail.mailinator.com.
52
+ freeWebmail:
53
+ summary: Free consumer webmail, not disposable
54
+ value:
55
+ email: someone@gmail.com
56
+ validSyntax: true
57
+ domain:
58
+ disposable: false
59
+ free: true
60
+ name: gmail.com
61
+ spam: false
62
+ validDomain: true
63
+ account:
64
+ role: false
65
+ dns:
66
+ mxRecord:
67
+ - gmail-smtp-in.l.google.com.
68
+ - alt1.gmail-smtp-in.l.google.com.
69
+ - alt2.gmail-smtp-in.l.google.com.
70
+ - alt3.gmail-smtp-in.l.google.com.
71
+ - alt4.gmail-smtp-in.l.google.com.
72
+ roleAccount:
73
+ summary: Role-based mailbox (support@)
74
+ value:
75
+ email: support@microsoft.com
76
+ validSyntax: true
77
+ domain:
78
+ disposable: false
79
+ free: false
80
+ name: microsoft.com
81
+ spam: false
82
+ validDomain: true
83
+ account:
84
+ role: true
85
+ dns:
86
+ mxRecord:
87
+ - microsoft-com.mail.protection.outlook.com.
88
+ addressRecordOnly:
89
+ summary: No MX record, domain resolves via A record only
90
+ value:
91
+ email: test@rotodirect.com
92
+ validSyntax: true
93
+ domain:
94
+ disposable: false
95
+ free: false
96
+ name: rotodirect.com
97
+ spam: false
98
+ validDomain: true
99
+ account:
100
+ role: false
101
+ dns:
102
+ aRecord:
103
+ - 166.78.44.241
104
+ nullMxDomain:
105
+ summary: Domain publishes a null MX (single "."), accepts no mail at all
106
+ value:
107
+ email: test@mailblacklist.com
108
+ validSyntax: true
109
+ domain:
110
+ disposable: false
111
+ free: false
112
+ name: mailblacklist.com
113
+ spam: false
114
+ validDomain: true
115
+ account:
116
+ role: false
117
+ dns:
118
+ mxRecord:
119
+ - .
120
+ invalidSyntax:
121
+ summary: Syntactically invalid email — minimal shape, no domain/account/dns detail
122
+ value:
123
+ email: abc
124
+ validSyntax: false
125
+ domain:
126
+ name: abc
127
+ validDomain: false
128
+ nonexistentDomain:
129
+ summary: Valid syntax, domain does not exist — account block present, no dns block
130
+ value:
131
+ email: test@xxxxxyyyyy123spam.com
132
+ validSyntax: true
133
+ domain:
134
+ disposable: false
135
+ free: false
136
+ name: xxxxxyyyyy123spam.com
137
+ spam: false
138
+ validDomain: false
139
+ account:
140
+ role: false
141
+ headers:
142
+ X-AF-Credits-Cost:
143
+ $ref: '#/components/headers/X-AF-Credits-Cost'
144
+ X-Concurrent-Threads:
145
+ $ref: '#/components/headers/X-Concurrent-Threads'
146
+ X-Concurrent-Threads-Active:
147
+ $ref: '#/components/headers/X-Concurrent-Threads-Active'
148
+ '400':
149
+ description: Bad Request – Invalid or missing parameters
150
+ content:
151
+ application/json:
152
+ schema:
153
+ $ref: '#/components/schemas/ErrorResponse'
154
+ examples:
155
+ missingEmail:
156
+ summary: email parameter missing or empty
157
+ value:
158
+ error: Invalid Param Exception
159
+ message: please pass correct parameters
160
+ path: /v1.0/email/disposable
161
+ status: 400
162
+ timestamp: '2026-10-13T10:40:11.892Z'
163
+ missingApiKey:
164
+ summary: apiKey not supplied
165
+ value:
166
+ error: Invalid Param Exception
167
+ message: Please provide apiKey
168
+ path: /v1.0/email/disposable
169
+ status: 400
170
+ timestamp: '2026-10-13T10:40:12.475Z'
171
+ headers:
172
+ X-AF-Credits-Cost:
173
+ $ref: '#/components/headers/X-AF-Credits-Cost'
174
+ '401':
175
+ description: Unauthorized – Invalid API key
176
+ content:
177
+ application/json:
178
+ schema:
179
+ $ref: '#/components/schemas/ErrorResponse'
180
+ examples:
181
+ invalidApiKey:
182
+ value:
183
+ error: API Access Exception
184
+ message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
185
+ path: /v1.0/email/disposable
186
+ status: 401
187
+ timestamp: '2026-10-13T10:40:13.056Z'
188
+ '404':
189
+ description: Not Found – The requested resource could not be found
190
+ content:
191
+ application/json:
192
+ schema:
193
+ $ref: '#/components/schemas/ErrorResponse'
194
+ examples:
195
+ Resource Not Found:
196
+ value:
197
+ error: Resource Not Found
198
+ message: The requested resource could not be found. Please verify the URL and try again.
199
+ path: /v1.0/email/disposablex
200
+ status: 404
201
+ timestamp: '2026-10-13T11:00:07.798Z'
202
+ headers:
203
+ X-AF-Credits-Cost:
204
+ $ref: '#/components/headers/X-AF-Credits-Cost'
205
+ operationId: checkDisposableEmail
206
+ components:
207
+ securitySchemes:
208
+ ApiKeyAuthHeader:
209
+ type: apiKey
210
+ in: header
211
+ name: X-apiKey
212
+ description: Pass your API key via the X-apiKey request header.
213
+ ApiKeyAuthQuery:
214
+ type: apiKey
215
+ in: query
216
+ name: apiKey
217
+ description: Pass your API key via the apiKey query parameter.
218
+ schemas:
219
+ DisposableEmailCheckResponse:
220
+ type: object
221
+ required:
222
+ - email
223
+ - validSyntax
224
+ - domain
225
+ properties:
226
+ email:
227
+ type: string
228
+ description: The email address submitted for the check.
229
+ validSyntax:
230
+ type: boolean
231
+ description: Validates email address format compliance with RFC 5322 standards. When false, domain only contains name/validDomain and account/dns are omitted entirely.
232
+ domain:
233
+ $ref: '#/components/schemas/DisposableDomainObject'
234
+ account:
235
+ $ref: '#/components/schemas/DisposableAccountObject'
236
+ dns:
237
+ $ref: '#/components/schemas/DisposableDnsObject'
238
+ description: Disposable email check response.
239
+ DisposableDomainObject:
240
+ type: object
241
+ required:
242
+ - name
243
+ - validDomain
244
+ properties:
245
+ name:
246
+ type: string
247
+ description: Extracted domain component from the email address.
248
+ validDomain:
249
+ type: boolean
250
+ description: Domain validation status confirming DNS resolution capability.
251
+ disposable:
252
+ type: boolean
253
+ description: Classification flag identifying domains from temporary/throwaway email service providers. Omitted when validSyntax is false or the domain could not be resolved.
254
+ free:
255
+ type: boolean
256
+ description: Classification indicating free or consumer-grade email service providers. Omitted when validSyntax is false or the domain could not be resolved.
257
+ spam:
258
+ type: boolean
259
+ description: Reputation indicator flagging domains on spam databases. Omitted when validSyntax is false or the domain could not be resolved.
260
+ description: Domain-level disposable/spam/free classification for the email address.
261
+ DisposableAccountObject:
262
+ type: object
263
+ required:
264
+ - role
265
+ properties:
266
+ role:
267
+ type: boolean
268
+ description: Detection flag identifying role-based email addresses (e.g., admin@, support@).
269
+ description: Account-level detection details. Omitted entirely when validSyntax is false.
270
+ DisposableDnsObject:
271
+ type: object
272
+ required: []
273
+ properties:
274
+ mxRecord:
275
+ type: array
276
+ items:
277
+ type: string
278
+ description: Every MX hostname at the domain's lowest preference (not just one). ["."] means the domain publishes a null MX and accepts no mail at all. Absent entirely when the domain has no MX record of any kind — check aRecord in that case.
279
+ aRecord:
280
+ type: array
281
+ items:
282
+ type: string
283
+ description: Collection of A (Address) records for the domain. Present when the domain has no MX record but does resolve to a web server or other host.
284
+ description: DNS records for the email domain. Omitted entirely when validSyntax is false or the domain does not exist (NXDOMAIN).
285
+ ErrorResponse:
286
+ type: object
287
+ description: Standard error envelope returned by the API on failed requests.
288
+ required:
289
+ - message
290
+ properties:
291
+ error:
292
+ type: string
293
+ description: Short error category or exception type.
294
+ message:
295
+ type: string
296
+ description: Human-readable error message describing the failure.
297
+ path:
298
+ type: string
299
+ description: API endpoint path that produced the error.
300
+ status:
301
+ type: integer
302
+ description: HTTP status code returned with the error.
303
+ timestamp:
304
+ type: string
305
+ format: date-time
306
+ description: Timestamp when the error occurred (ISO 8601).
307
+ headers:
308
+ X-AF-Credits-Cost:
309
+ description: Specifies the number of credits consumed by the current request. 15 credits per checked record.
310
+ schema:
311
+ type: integer
312
+ X-Concurrent-Threads:
313
+ description: Specifies the maximum number of concurrent requests allowed.
314
+ schema:
315
+ type: integer
316
+ X-Concurrent-Threads-Active:
317
+ description: Indicates the number of active concurrent requests being processed.
318
+ schema:
319
+ type: integer
320
+ security:
321
+ - ApiKeyAuthHeader: []
322
+ - ApiKeyAuthQuery: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apifreaks/openapi-specs",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "Public OpenAPI 3.1 specifications for all APIFreaks API products.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",