@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.
- package/dist/index.cjs +1205 -2
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1205 -2
- package/dist/specs/email-validation/bulk-disposable-email-checker.yaml +307 -0
- package/dist/specs/email-validation/disposable-email-checker.yaml +322 -0
- package/package.json +1 -1
- package/specs/email-validation/bulk-disposable-email-checker.json +430 -0
- package/specs/email-validation/disposable-email-checker.json +441 -0
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Disposable Email Checker API - Detect Temporary & Throwaway Email Addresses",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"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.",
|
|
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": "Disposable Email Checker API Server"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/email/disposable": {
|
|
21
|
+
"get": {
|
|
22
|
+
"tags": ["Email Validation APIs"],
|
|
23
|
+
"summary": "Check a single email for disposable/temporary domain",
|
|
24
|
+
"description": "Validates email syntax and checks the domain for disposable, free, spam, and role-account signals, plus MX/A DNS records.",
|
|
25
|
+
"parameters": [
|
|
26
|
+
{
|
|
27
|
+
"name": "email",
|
|
28
|
+
"in": "query",
|
|
29
|
+
"required": true,
|
|
30
|
+
"schema": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"format": "email"
|
|
33
|
+
},
|
|
34
|
+
"description": "Email address to check."
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"responses": {
|
|
38
|
+
"200": {
|
|
39
|
+
"description": "Successful response with disposable email check result.",
|
|
40
|
+
"content": {
|
|
41
|
+
"application/json": {
|
|
42
|
+
"schema": {
|
|
43
|
+
"$ref": "#/components/schemas/DisposableEmailCheckResponse"
|
|
44
|
+
},
|
|
45
|
+
"examples": {
|
|
46
|
+
"disposableDomain": {
|
|
47
|
+
"summary": "Disposable domain, MX present",
|
|
48
|
+
"value": {
|
|
49
|
+
"email": "test@sogetthis.com",
|
|
50
|
+
"validSyntax": true,
|
|
51
|
+
"domain": {
|
|
52
|
+
"disposable": true,
|
|
53
|
+
"free": false,
|
|
54
|
+
"name": "sogetthis.com",
|
|
55
|
+
"spam": false,
|
|
56
|
+
"validDomain": true
|
|
57
|
+
},
|
|
58
|
+
"account": {
|
|
59
|
+
"role": false
|
|
60
|
+
},
|
|
61
|
+
"dns": {
|
|
62
|
+
"mxRecord": ["mail.mailinator.com."]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"freeWebmail": {
|
|
67
|
+
"summary": "Free consumer webmail, not disposable",
|
|
68
|
+
"value": {
|
|
69
|
+
"email": "someone@gmail.com",
|
|
70
|
+
"validSyntax": true,
|
|
71
|
+
"domain": {
|
|
72
|
+
"disposable": false,
|
|
73
|
+
"free": true,
|
|
74
|
+
"name": "gmail.com",
|
|
75
|
+
"spam": false,
|
|
76
|
+
"validDomain": true
|
|
77
|
+
},
|
|
78
|
+
"account": {
|
|
79
|
+
"role": false
|
|
80
|
+
},
|
|
81
|
+
"dns": {
|
|
82
|
+
"mxRecord": [
|
|
83
|
+
"gmail-smtp-in.l.google.com.",
|
|
84
|
+
"alt1.gmail-smtp-in.l.google.com.",
|
|
85
|
+
"alt2.gmail-smtp-in.l.google.com.",
|
|
86
|
+
"alt3.gmail-smtp-in.l.google.com.",
|
|
87
|
+
"alt4.gmail-smtp-in.l.google.com."
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"roleAccount": {
|
|
93
|
+
"summary": "Role-based mailbox (support@)",
|
|
94
|
+
"value": {
|
|
95
|
+
"email": "support@microsoft.com",
|
|
96
|
+
"validSyntax": true,
|
|
97
|
+
"domain": {
|
|
98
|
+
"disposable": false,
|
|
99
|
+
"free": false,
|
|
100
|
+
"name": "microsoft.com",
|
|
101
|
+
"spam": false,
|
|
102
|
+
"validDomain": true
|
|
103
|
+
},
|
|
104
|
+
"account": {
|
|
105
|
+
"role": true
|
|
106
|
+
},
|
|
107
|
+
"dns": {
|
|
108
|
+
"mxRecord": ["microsoft-com.mail.protection.outlook.com."]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"addressRecordOnly": {
|
|
113
|
+
"summary": "No MX record, domain resolves via A record only",
|
|
114
|
+
"value": {
|
|
115
|
+
"email": "test@rotodirect.com",
|
|
116
|
+
"validSyntax": true,
|
|
117
|
+
"domain": {
|
|
118
|
+
"disposable": false,
|
|
119
|
+
"free": false,
|
|
120
|
+
"name": "rotodirect.com",
|
|
121
|
+
"spam": false,
|
|
122
|
+
"validDomain": true
|
|
123
|
+
},
|
|
124
|
+
"account": {
|
|
125
|
+
"role": false
|
|
126
|
+
},
|
|
127
|
+
"dns": {
|
|
128
|
+
"aRecord": ["166.78.44.241"]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"nullMxDomain": {
|
|
133
|
+
"summary": "Domain publishes a null MX (single \".\"), accepts no mail at all",
|
|
134
|
+
"value": {
|
|
135
|
+
"email": "test@mailblacklist.com",
|
|
136
|
+
"validSyntax": true,
|
|
137
|
+
"domain": {
|
|
138
|
+
"disposable": false,
|
|
139
|
+
"free": false,
|
|
140
|
+
"name": "mailblacklist.com",
|
|
141
|
+
"spam": false,
|
|
142
|
+
"validDomain": true
|
|
143
|
+
},
|
|
144
|
+
"account": {
|
|
145
|
+
"role": false
|
|
146
|
+
},
|
|
147
|
+
"dns": {
|
|
148
|
+
"mxRecord": ["."]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"invalidSyntax": {
|
|
153
|
+
"summary": "Syntactically invalid email — minimal shape, no domain/account/dns detail",
|
|
154
|
+
"value": {
|
|
155
|
+
"email": "abc",
|
|
156
|
+
"validSyntax": false,
|
|
157
|
+
"domain": {
|
|
158
|
+
"name": "abc",
|
|
159
|
+
"validDomain": false
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"nonexistentDomain": {
|
|
164
|
+
"summary": "Valid syntax, domain does not exist — account block present, no dns block",
|
|
165
|
+
"value": {
|
|
166
|
+
"email": "test@xxxxxyyyyy123spam.com",
|
|
167
|
+
"validSyntax": true,
|
|
168
|
+
"domain": {
|
|
169
|
+
"disposable": false,
|
|
170
|
+
"free": false,
|
|
171
|
+
"name": "xxxxxyyyyy123spam.com",
|
|
172
|
+
"spam": false,
|
|
173
|
+
"validDomain": false
|
|
174
|
+
},
|
|
175
|
+
"account": {
|
|
176
|
+
"role": false
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"headers": {
|
|
184
|
+
"X-AF-Credits-Cost": {
|
|
185
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
186
|
+
},
|
|
187
|
+
"X-Concurrent-Threads": {
|
|
188
|
+
"$ref": "#/components/headers/X-Concurrent-Threads"
|
|
189
|
+
},
|
|
190
|
+
"X-Concurrent-Threads-Active": {
|
|
191
|
+
"$ref": "#/components/headers/X-Concurrent-Threads-Active"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"400": {
|
|
196
|
+
"description": "Bad Request – Invalid or missing parameters",
|
|
197
|
+
"content": {
|
|
198
|
+
"application/json": {
|
|
199
|
+
"schema": {
|
|
200
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
201
|
+
},
|
|
202
|
+
"examples": {
|
|
203
|
+
"missingEmail": {
|
|
204
|
+
"summary": "email parameter missing or empty",
|
|
205
|
+
"value": {
|
|
206
|
+
"error": "Invalid Param Exception",
|
|
207
|
+
"message": "please pass correct parameters",
|
|
208
|
+
"path": "/v1.0/email/disposable",
|
|
209
|
+
"status": 400,
|
|
210
|
+
"timestamp": "2026-10-13T10:40:11.892Z"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"missingApiKey": {
|
|
214
|
+
"summary": "apiKey not supplied",
|
|
215
|
+
"value": {
|
|
216
|
+
"error": "Invalid Param Exception",
|
|
217
|
+
"message": "Please provide apiKey",
|
|
218
|
+
"path": "/v1.0/email/disposable",
|
|
219
|
+
"status": 400,
|
|
220
|
+
"timestamp": "2026-10-13T10:40:12.475Z"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"headers": {
|
|
227
|
+
"X-AF-Credits-Cost": {
|
|
228
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"401": {
|
|
233
|
+
"description": "Unauthorized – Invalid API key",
|
|
234
|
+
"content": {
|
|
235
|
+
"application/json": {
|
|
236
|
+
"schema": {
|
|
237
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
238
|
+
},
|
|
239
|
+
"examples": {
|
|
240
|
+
"invalidApiKey": {
|
|
241
|
+
"value": {
|
|
242
|
+
"error": "API Access Exception",
|
|
243
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
244
|
+
"path": "/v1.0/email/disposable",
|
|
245
|
+
"status": 401,
|
|
246
|
+
"timestamp": "2026-10-13T10:40:13.056Z"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"404": {
|
|
254
|
+
"description": "Not Found – The requested resource could not be found",
|
|
255
|
+
"content": {
|
|
256
|
+
"application/json": {
|
|
257
|
+
"schema": {
|
|
258
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
259
|
+
},
|
|
260
|
+
"examples": {
|
|
261
|
+
"Resource Not Found": {
|
|
262
|
+
"value": {
|
|
263
|
+
"error": "Resource Not Found",
|
|
264
|
+
"message": "The requested resource could not be found. Please verify the URL and try again.",
|
|
265
|
+
"path": "/v1.0/email/disposablex",
|
|
266
|
+
"status": 404,
|
|
267
|
+
"timestamp": "2026-10-13T11:00:07.798Z"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"headers": {
|
|
274
|
+
"X-AF-Credits-Cost": {
|
|
275
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"operationId": "checkDisposableEmail"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"components": {
|
|
285
|
+
"securitySchemes": {
|
|
286
|
+
"ApiKeyAuthHeader": {
|
|
287
|
+
"type": "apiKey",
|
|
288
|
+
"in": "header",
|
|
289
|
+
"name": "X-apiKey",
|
|
290
|
+
"description": "Pass your API key via the X-apiKey request header."
|
|
291
|
+
},
|
|
292
|
+
"ApiKeyAuthQuery": {
|
|
293
|
+
"type": "apiKey",
|
|
294
|
+
"in": "query",
|
|
295
|
+
"name": "apiKey",
|
|
296
|
+
"description": "Pass your API key via the apiKey query parameter."
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"schemas": {
|
|
300
|
+
"DisposableEmailCheckResponse": {
|
|
301
|
+
"type": "object",
|
|
302
|
+
"required": ["email", "validSyntax", "domain"],
|
|
303
|
+
"properties": {
|
|
304
|
+
"email": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"description": "The email address submitted for the check."
|
|
307
|
+
},
|
|
308
|
+
"validSyntax": {
|
|
309
|
+
"type": "boolean",
|
|
310
|
+
"description": "Validates email address format compliance with RFC 5322 standards. When false, domain only contains name/validDomain and account/dns are omitted entirely."
|
|
311
|
+
},
|
|
312
|
+
"domain": {
|
|
313
|
+
"$ref": "#/components/schemas/DisposableDomainObject"
|
|
314
|
+
},
|
|
315
|
+
"account": {
|
|
316
|
+
"$ref": "#/components/schemas/DisposableAccountObject"
|
|
317
|
+
},
|
|
318
|
+
"dns": {
|
|
319
|
+
"$ref": "#/components/schemas/DisposableDnsObject"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"description": "Disposable email check response."
|
|
323
|
+
},
|
|
324
|
+
"DisposableDomainObject": {
|
|
325
|
+
"type": "object",
|
|
326
|
+
"required": ["name", "validDomain"],
|
|
327
|
+
"properties": {
|
|
328
|
+
"name": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"description": "Extracted domain component from the email address."
|
|
331
|
+
},
|
|
332
|
+
"validDomain": {
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"description": "Domain validation status confirming DNS resolution capability."
|
|
335
|
+
},
|
|
336
|
+
"disposable": {
|
|
337
|
+
"type": "boolean",
|
|
338
|
+
"description": "Classification flag identifying domains from temporary/throwaway email service providers. Omitted when validSyntax is false or the domain could not be resolved."
|
|
339
|
+
},
|
|
340
|
+
"free": {
|
|
341
|
+
"type": "boolean",
|
|
342
|
+
"description": "Classification indicating free or consumer-grade email service providers. Omitted when validSyntax is false or the domain could not be resolved."
|
|
343
|
+
},
|
|
344
|
+
"spam": {
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"description": "Reputation indicator flagging domains on spam databases. Omitted when validSyntax is false or the domain could not be resolved."
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"description": "Domain-level disposable/spam/free classification for the email address."
|
|
350
|
+
},
|
|
351
|
+
"DisposableAccountObject": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"required": ["role"],
|
|
354
|
+
"properties": {
|
|
355
|
+
"role": {
|
|
356
|
+
"type": "boolean",
|
|
357
|
+
"description": "Detection flag identifying role-based email addresses (e.g., admin@, support@)."
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"description": "Account-level detection details. Omitted entirely when validSyntax is false."
|
|
361
|
+
},
|
|
362
|
+
"DisposableDnsObject": {
|
|
363
|
+
"type": "object",
|
|
364
|
+
"required": [],
|
|
365
|
+
"properties": {
|
|
366
|
+
"mxRecord": {
|
|
367
|
+
"type": "array",
|
|
368
|
+
"items": {
|
|
369
|
+
"type": "string"
|
|
370
|
+
},
|
|
371
|
+
"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."
|
|
372
|
+
},
|
|
373
|
+
"aRecord": {
|
|
374
|
+
"type": "array",
|
|
375
|
+
"items": {
|
|
376
|
+
"type": "string"
|
|
377
|
+
},
|
|
378
|
+
"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."
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"description": "DNS records for the email domain. Omitted entirely when validSyntax is false or the domain does not exist (NXDOMAIN)."
|
|
382
|
+
},
|
|
383
|
+
"ErrorResponse": {
|
|
384
|
+
"type": "object",
|
|
385
|
+
"description": "Standard error envelope returned by the API on failed requests.",
|
|
386
|
+
"required": ["message"],
|
|
387
|
+
"properties": {
|
|
388
|
+
"error": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "Short error category or exception type."
|
|
391
|
+
},
|
|
392
|
+
"message": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"description": "Human-readable error message describing the failure."
|
|
395
|
+
},
|
|
396
|
+
"path": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"description": "API endpoint path that produced the error."
|
|
399
|
+
},
|
|
400
|
+
"status": {
|
|
401
|
+
"type": "integer",
|
|
402
|
+
"description": "HTTP status code returned with the error."
|
|
403
|
+
},
|
|
404
|
+
"timestamp": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"format": "date-time",
|
|
407
|
+
"description": "Timestamp when the error occurred (ISO 8601)."
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"headers": {
|
|
413
|
+
"X-AF-Credits-Cost": {
|
|
414
|
+
"description": "Specifies the number of credits consumed by the current request. 15 credits per checked record.",
|
|
415
|
+
"schema": {
|
|
416
|
+
"type": "integer"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"X-Concurrent-Threads": {
|
|
420
|
+
"description": "Specifies the maximum number of concurrent requests allowed.",
|
|
421
|
+
"schema": {
|
|
422
|
+
"type": "integer"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"X-Concurrent-Threads-Active": {
|
|
426
|
+
"description": "Indicates the number of active concurrent requests being processed.",
|
|
427
|
+
"schema": {
|
|
428
|
+
"type": "integer"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"security": [
|
|
434
|
+
{
|
|
435
|
+
"ApiKeyAuthHeader": []
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"ApiKeyAuthQuery": []
|
|
439
|
+
}
|
|
440
|
+
]
|
|
441
|
+
}
|