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