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