-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathev.openapiv3.yaml
304 lines (304 loc) · 8.38 KB
/
ev.openapiv3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
openapi: 3.0.1
info:
title: Email Validator
version: 0.0.1
description: |
All timeouts are set in seconds with nanosecond precision. For example, 1.505402 is 1 second, 505 milliseconds and 402 microseconds.
servers:
- url: /
- url: https://email-validator15.p.rapidapi.com/
security:
- AuthKey: [ ]
- RapidApiSecret: [ ]
- RapidApiKey: [ ]
components:
schemas:
ResultType:
title: ResultType
type: string
description: &ResultTypeDescription |
* CHECK_IF_EMAIL_EXIST, CIEE - [check-if-email-exists format](https://github.com/amaurymartiny/check-if-email-exists#%EF%B8%8F-json-output).
* MAILBOXVALIDATOR, MAIL_BOX_VALIDATOR, MBV - [mailboxvalidator.com format](https://www.mailboxvalidator.com/api-single-validation).
* PROMPT_EMAIL_VERIFICATION_API, PEVA - [Email Verification api format](https://promptapi.com/marketplace/description/email_verification-api) from [promptapi](https://promptapi.com).
default: CHECK_IF_EMAIL_EXIST
enum:
- CHECK_IF_EMAIL_EXIST
- CIEE
- MAILBOXVALIDATOR
- MAIL_BOX_VALIDATOR
- MBV
- PROMPT_EMAIL_VERIFICATION_API
- PEVA
CheckIfEmailExistMisc:
type: object
properties:
is_disposable:
type: boolean
is_role_account:
type: boolean
CheckIfEmailExistSMTP:
type: object
properties:
can_connect_smtp:
type: boolean
has_full_inbox:
type: boolean
is_catch_all:
type: boolean
is_deliverable:
type: boolean
is_disabled:
type: boolean
CheckIfEmailExistSyntax:
type: object
properties:
address:
nullable: true
type: string
domain:
type: string
is_valid_syntax:
type: boolean
username:
type: string
CheckIfEmailExistMX:
type: object
properties:
accepts_mail:
type: boolean
records:
type: array
items:
type: string
CheckIfEmailExistResult:
type: object
properties:
input:
type: string
is_reachable:
type: string
misc:
$ref: '#/components/schemas/CheckIfEmailExistMisc'
mx:
$ref: '#/components/schemas/CheckIfEmailExistMX'
smtp:
$ref: '#/components/schemas/CheckIfEmailExistSMTP'
syntax:
$ref: '#/components/schemas/CheckIfEmailExistSyntax'
error:
type: string
MailboxvalidatorResult:
type: object
properties:
email_address:
type: string
domain:
type: string
is_free:
type: string
is_syntax:
type: string
is_domain:
type: string
is_smtp:
type: string
is_verified:
type: string
is_server_down:
type: string
is_greylisted:
type: string
is_disposable:
type: string
is_suppressed:
type: string
is_role:
type: string
is_high_risk:
type: string
is_catchall:
type: string
mailboxvalidator_score:
type: string
time_taken:
type: string
status:
type: string
credits_available:
type: integer
format: int64
error_code:
type: string
error_message:
type: string
PromptEmailVerificationApiResult:
type: object
properties:
can_connect_smtp:
type: boolean
email:
type: string
is_catch_all:
type: boolean
is_deliverable:
type: boolean
is_disabled:
type: boolean
is_disposable:
type: boolean
is_inbox_full:
type: boolean
is_role_account:
type: boolean
mx_records:
$ref: '#/components/schemas/PromptEmailVerificationApiMX'
syntax_valid:
type: boolean
message:
type: string
PromptEmailVerificationApiMX:
type: object
properties:
accepts_mail:
type: boolean
records:
type: array
items:
type: string
UnexpectedError:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
details:
additionalProperties: true
EmailRequest:
type: object
properties:
email:
type: string
example: [email protected]
smtp:
type: object
properties:
email_from:
type: string
format: email
default: [email protected]
example: [email protected]
hello_name:
type: string
default: localhost
example: localhost
proxy:
type: string
format: uri
description: |
Versions - SOCKS4, SOCKS4A and SOCKS5.
Format - schema://username:password@host:port.
timeout_connection:
type: number
description: timeout creating smtp connection
default: &TimeoutDefault 5.0
example: *TimeoutDefault
timeout_response:
type: number
description: timeout of communication with smtp server
default: *TimeoutDefault
example: *TimeoutDefault
port:
type: integer
description: smtp port remote server
format: int32
default: 25
example: 25
# gravatar:
# type: object
# properties:
# timeout:
# type: number
# description: timeout request to gravatar.com
# default: *TimeoutDefault
result_type:
$ref: '#/components/schemas/ResultType'
EmailResponse: # wait to return oneOf https://github.com/OpenAPITools/openapi-generator/issues/8628
type: object
properties:
check_if_email_exist:
$ref: '#/components/schemas/CheckIfEmailExistResult'
mailboxvalidator:
$ref: '#/components/schemas/MailboxvalidatorResult'
prompt_email_verification_api:
$ref: '#/components/schemas/PromptEmailVerificationApiResult'
securitySchemes:
AuthKey:
type: apiKey
in: header
name: Authorization
RapidApiSecret:
type: apiKey
in: header
name: X-RapidAPI-Proxy-Secret
RapidApiKey:
type: apiKey
in: header
name: X-RapidAPI-Key
paths:
/v1/validation/single:
post:
tags:
- EmailValidation
operationId: EmailValidation_singleValidation_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EmailRequest'
required: true
responses:
200:
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/EmailResponse'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/UnexpectedError'
x-codegen-request-body-name: body
/v1/validation/single/{email}:
get:
tags:
- EmailValidation
operationId: EmailValidation_singleValidation_get
description: POST request contains additional parameters for detailed configuration
parameters:
- name: email
in: path
required: true
schema:
type: string
- name: result_type
in: query
description: *ResultTypeDescription
schema:
$ref: '#/components/schemas/ResultType'
responses:
200:
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/EmailResponse'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/UnexpectedError'