nexmo_api_specification 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/definitions/conversation.yml +1 -2
- data/definitions/number-insight.yml +995 -685
- data/definitions/sms.yml +1 -2
- data/lib/nexmo_api_specification/version.rb +1 -1
- metadata +2 -3
- data/definitions/reporting.yml +0 -400
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c8372d49a0600ba11950ec4ddfabe67ba21d1e
|
4
|
+
data.tar.gz: 045e0b501a1673c7b1636757e1de9006223569d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '086067b66fb035103886cc8775a4e22556304746a3acce221e060c9a2bd4f9aeb740ed52bec2b29de133cb254c7c649d717a377289867e72d51b0bf1888f3866'
|
7
|
+
data.tar.gz: 458d0d8b2941039dd93044b7e6f443fd036ead54108c260743bcde353f530d49d22cce93d246856295705b7c53a99d4125f8929afc41e8c4e82bd362903c44db
|
@@ -356,8 +356,7 @@ x-groups:
|
|
356
356
|
description: >-
|
357
357
|
A conversation is a shared core component that Nexmo APIs rely on. Conversations happen over multiple mediums and and can have associated Users through Memberships.
|
358
358
|
schema:
|
359
|
-
|
360
|
-
$ref: '#/components/schemas/ConversationFull'
|
359
|
+
$ref: '#/components/schemas/ConversationFull'
|
361
360
|
user:
|
362
361
|
name: "User"
|
363
362
|
order: 2
|
@@ -1,685 +1,995 @@
|
|
1
|
-
---
|
2
|
-
openapi: 3.0.0
|
3
|
-
servers:
|
4
|
-
- url: 'https://api.nexmo.com/ni'
|
5
|
-
info:
|
6
|
-
title:
|
7
|
-
version: 1.0.0
|
8
|
-
description: >-
|
9
|
-
Nexmo's Number Insight API provides details about the validity, reachability and roaming status of a phone number, as well as giving you details on how to format the number properly in your application. There are three levels of Number Insight API available: Basic, Standard and Advanced. The advanced API is available asynchronously as well as synchronously.
|
10
|
-
contact:
|
11
|
-
name: Nexmo.com
|
12
|
-
email: devrel@nexmo.com
|
13
|
-
url: https://developer.nexmo.com/
|
14
|
-
x-twitter: Nexmo
|
15
|
-
termsOfService: 'https://www.nexmo.com/terms-of-use'
|
16
|
-
license:
|
17
|
-
name: 'The MIT License (MIT)'
|
18
|
-
url: 'https://opensource.org/licenses/MIT'
|
19
|
-
x-logo:
|
20
|
-
url: 'https://twitter.com/Nexmo/profile_image?size=original'
|
21
|
-
x-apiClientRegistration: 'https://dashboard.nexmo.com/sign-up'
|
22
|
-
externalDocs:
|
23
|
-
url: https://developer.nexmo.com/api/number-insight
|
24
|
-
x-sha1: 081f6d985e2e4a75586da1654fde880a96885405
|
25
|
-
security:
|
26
|
-
- apiKey: []
|
27
|
-
apiSecret: []
|
28
|
-
tags:
|
29
|
-
- name: Request
|
30
|
-
description: 'Ask for information about a phone number'
|
31
|
-
paths:
|
32
|
-
'/{level}/{format}':
|
33
|
-
parameters:
|
34
|
-
- $ref: '#/components/parameters/level'
|
35
|
-
- $ref: '#/components/parameters/format'
|
36
|
-
get:
|
37
|
-
operationId: getNumberInsight
|
38
|
-
summary:
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
- $ref: '#/components/parameters/
|
45
|
-
- $ref: '#/components/parameters/
|
46
|
-
|
47
|
-
'
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
'/advanced/async/{format}':
|
59
|
-
parameters:
|
60
|
-
- $ref: '#/components/parameters/format'
|
61
|
-
get:
|
62
|
-
operationId: getNumberInsightAsync
|
63
|
-
summary:
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
-
|
68
|
-
|
69
|
-
- $ref: '#/components/parameters/
|
70
|
-
- $ref: '#/components/parameters/
|
71
|
-
- $ref: '#/components/parameters/
|
72
|
-
|
73
|
-
'
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
callbacks:
|
85
|
-
onData:
|
86
|
-
'{$request.query.callback}':
|
87
|
-
post:
|
88
|
-
operationId: asyncCallback
|
89
|
-
summary:
|
90
|
-
|
91
|
-
|
92
|
-
content:
|
93
|
-
application/json:
|
94
|
-
schema:
|
95
|
-
$ref: '#/components/schemas/
|
96
|
-
text/xml:
|
97
|
-
schema:
|
98
|
-
$ref: '#/components/schemas/
|
99
|
-
responses:
|
100
|
-
'200':
|
101
|
-
description: OK
|
102
|
-
components:
|
103
|
-
parameters:
|
104
|
-
level:
|
105
|
-
name: level
|
106
|
-
in: path
|
107
|
-
required: true
|
108
|
-
description: 'The level of request you wish to make.'
|
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
|
-
properties:
|
227
|
-
country_code:
|
228
|
-
type: string
|
229
|
-
description: 'Two character country code for `number`. This is in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.'
|
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
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
-
|
529
|
-
-
|
530
|
-
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
example: '
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
type: string
|
580
|
-
description: 'The
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
-
|
637
|
-
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
description: '
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
1
|
+
---
|
2
|
+
openapi: 3.0.0
|
3
|
+
servers:
|
4
|
+
- url: 'https://api.nexmo.com/ni'
|
5
|
+
info:
|
6
|
+
title: Number Insight API
|
7
|
+
version: 1.0.0
|
8
|
+
description: >-
|
9
|
+
Nexmo's Number Insight API provides details about the validity, reachability and roaming status of a phone number, as well as giving you details on how to format the number properly in your application. There are three levels of Number Insight API available: Basic, Standard and Advanced. The advanced API is available asynchronously as well as synchronously.
|
10
|
+
contact:
|
11
|
+
name: Nexmo.com
|
12
|
+
email: devrel@nexmo.com
|
13
|
+
url: https://developer.nexmo.com/
|
14
|
+
x-twitter: Nexmo
|
15
|
+
termsOfService: 'https://www.nexmo.com/terms-of-use'
|
16
|
+
license:
|
17
|
+
name: 'The MIT License (MIT)'
|
18
|
+
url: 'https://opensource.org/licenses/MIT'
|
19
|
+
x-logo:
|
20
|
+
url: 'https://twitter.com/Nexmo/profile_image?size=original'
|
21
|
+
x-apiClientRegistration: 'https://dashboard.nexmo.com/sign-up'
|
22
|
+
externalDocs:
|
23
|
+
url: https://developer.nexmo.com/api/number-insight
|
24
|
+
x-sha1: 081f6d985e2e4a75586da1654fde880a96885405
|
25
|
+
security:
|
26
|
+
- apiKey: []
|
27
|
+
apiSecret: []
|
28
|
+
tags:
|
29
|
+
- name: Request
|
30
|
+
description: 'Ask for information about a phone number'
|
31
|
+
paths:
|
32
|
+
'/{level}/{format}':
|
33
|
+
parameters:
|
34
|
+
- $ref: '#/components/parameters/level'
|
35
|
+
- $ref: '#/components/parameters/format'
|
36
|
+
get:
|
37
|
+
operationId: getNumberInsight
|
38
|
+
summary: Synchronously get information about a phone number
|
39
|
+
x-code-example-path: number_insight.standard
|
40
|
+
x-group: number-insight
|
41
|
+
tags:
|
42
|
+
- Request
|
43
|
+
parameters:
|
44
|
+
- $ref: '#/components/parameters/number'
|
45
|
+
- $ref: '#/components/parameters/country'
|
46
|
+
- $ref: '#/components/parameters/cnam'
|
47
|
+
- $ref: '#/components/parameters/ip'
|
48
|
+
responses:
|
49
|
+
'200':
|
50
|
+
description: OK
|
51
|
+
content:
|
52
|
+
'application/json':
|
53
|
+
schema:
|
54
|
+
$ref: '#/components/schemas/niResponseJson'
|
55
|
+
'text/xml':
|
56
|
+
schema:
|
57
|
+
$ref: '#/components/schemas/niResponseXml'
|
58
|
+
'/advanced/async/{format}':
|
59
|
+
parameters:
|
60
|
+
- $ref: '#/components/parameters/format'
|
61
|
+
get:
|
62
|
+
operationId: getNumberInsightAsync
|
63
|
+
summary: Asynchronously get information about a phone number
|
64
|
+
x-code-example-path: number_insight.async
|
65
|
+
x-group: number-insight
|
66
|
+
tags:
|
67
|
+
- Request
|
68
|
+
parameters:
|
69
|
+
- $ref: '#/components/parameters/callback'
|
70
|
+
- $ref: '#/components/parameters/number'
|
71
|
+
- $ref: '#/components/parameters/country'
|
72
|
+
- $ref: '#/components/parameters/cnam'
|
73
|
+
- $ref: '#/components/parameters/ip'
|
74
|
+
responses:
|
75
|
+
'200':
|
76
|
+
description: OK
|
77
|
+
content:
|
78
|
+
'application/json':
|
79
|
+
schema:
|
80
|
+
$ref: '#/components/schemas/niResponseAsync'
|
81
|
+
'text/xml':
|
82
|
+
schema:
|
83
|
+
$ref: '#/components/schemas/niResponseAsync'
|
84
|
+
callbacks:
|
85
|
+
onData:
|
86
|
+
'{$request.query.callback}':
|
87
|
+
post:
|
88
|
+
operationId: asyncCallback
|
89
|
+
summary: Asynchronous response
|
90
|
+
description: Contains the response to your
|
91
|
+
requestBody:
|
92
|
+
content:
|
93
|
+
application/json:
|
94
|
+
schema:
|
95
|
+
$ref: '#/components/schemas/niResponseJsonAdvanced'
|
96
|
+
text/xml:
|
97
|
+
schema:
|
98
|
+
$ref: '#/components/schemas/niResponseXmlAdvanced'
|
99
|
+
responses:
|
100
|
+
'200':
|
101
|
+
description: OK
|
102
|
+
components:
|
103
|
+
parameters:
|
104
|
+
level:
|
105
|
+
name: level
|
106
|
+
in: path
|
107
|
+
required: true
|
108
|
+
description: 'The level of request you wish to make.'
|
109
|
+
example: standard
|
110
|
+
schema:
|
111
|
+
type: string
|
112
|
+
enum:
|
113
|
+
- 'basic'
|
114
|
+
- 'standard'
|
115
|
+
- 'advanced'
|
116
|
+
format:
|
117
|
+
name: format
|
118
|
+
in: path
|
119
|
+
required: true
|
120
|
+
description: 'The format of the response'
|
121
|
+
example: json
|
122
|
+
schema:
|
123
|
+
type: string
|
124
|
+
enum:
|
125
|
+
- 'json'
|
126
|
+
- 'xml'
|
127
|
+
number:
|
128
|
+
name: number
|
129
|
+
in: query
|
130
|
+
description: 'A single phone number that you need insight about in national or international format.'
|
131
|
+
example: '447700900000'
|
132
|
+
required: true
|
133
|
+
schema:
|
134
|
+
type: string
|
135
|
+
pattern: '^[0-9-+\(\)\s]*$'
|
136
|
+
country:
|
137
|
+
name: country
|
138
|
+
in: query
|
139
|
+
example: 'GB'
|
140
|
+
description: 'If a number does not have a country code or is uncertain, set the two-character country code. This code must be in ISO 3166-1 alpha-2 format and in upper case. For example, GB or US. If you set country and number is already in [E.164](https://en.wikipedia.org/wiki/E.164) format, country must match the country code in number.'
|
141
|
+
schema:
|
142
|
+
type: string
|
143
|
+
pattern: '[A-Z]{2}'
|
144
|
+
cnam:
|
145
|
+
name: cnam
|
146
|
+
in: query
|
147
|
+
example: true
|
148
|
+
description: 'Indicates if the name of the person who owns the phone number should be looked up and returned in the response. Set to true to receive phone number owner name in the response. This features is available for US numbers only and incurs an additional charge.'
|
149
|
+
schema:
|
150
|
+
type: boolean
|
151
|
+
default: false
|
152
|
+
ip:
|
153
|
+
name: ip
|
154
|
+
in: query
|
155
|
+
example: '123.0.0.255'
|
156
|
+
description: "The IP address of the user. If supplied, we will compare this to the country the user's phone is located in and return an error if it does not match."
|
157
|
+
schema:
|
158
|
+
type: string
|
159
|
+
callback:
|
160
|
+
name: callback
|
161
|
+
in: query
|
162
|
+
example: 'https://example.com/callback'
|
163
|
+
description: 'The callback URL'
|
164
|
+
required: true
|
165
|
+
schema:
|
166
|
+
type: string
|
167
|
+
format: uriref
|
168
|
+
schemas:
|
169
|
+
niResponseAsync:
|
170
|
+
type: object
|
171
|
+
xml:
|
172
|
+
name: lookup
|
173
|
+
properties:
|
174
|
+
request_id:
|
175
|
+
type: string
|
176
|
+
description: 'The unique identifier for your request. This is a alphanumeric string up to 40 characters.'
|
177
|
+
example: 'aaaaaaaa-bbbb-cccc-dddd-0123456789ab'
|
178
|
+
maxLength: 40
|
179
|
+
xml:
|
180
|
+
name: requestId
|
181
|
+
number:
|
182
|
+
type: string
|
183
|
+
description: "The `number` in your request"
|
184
|
+
example: '447700900000'
|
185
|
+
remaining_balance:
|
186
|
+
type: string
|
187
|
+
description: 'Your account balance in EUR after this request. Not returned with Number Insight Advanced Async API.'
|
188
|
+
example: '1.23456789'
|
189
|
+
xml:
|
190
|
+
name: remainingBalance
|
191
|
+
request_price:
|
192
|
+
type: number
|
193
|
+
description: 'If there is an internal lookup error, the `refund_price` will reflect the lookup price. If `cnam` is requested for a non-US number the `refund_price` will reflect the `cnam` price. If both of these conditions occur, `refund_price` is the sum of the lookup price and `cnam` price.'
|
194
|
+
example: '0.01500000'
|
195
|
+
xml:
|
196
|
+
name: requestPrice
|
197
|
+
status:
|
198
|
+
$ref: '#/components/schemas/niStatus'
|
199
|
+
niResponseXml:
|
200
|
+
type: object
|
201
|
+
description: 'The root object of the XML response varies based on the detail level requested.'
|
202
|
+
oneOf:
|
203
|
+
- $ref: '#/components/schemas/niResponseXmlBasic'
|
204
|
+
- $ref: '#/components/schemas/niResponseXmlStandard'
|
205
|
+
- $ref: '#/components/schemas/niResponseXmlAdvanced'
|
206
|
+
niResponseXmlBasic:
|
207
|
+
type: object
|
208
|
+
description: Basic
|
209
|
+
xml:
|
210
|
+
name: format
|
211
|
+
properties:
|
212
|
+
request_id:
|
213
|
+
type: string
|
214
|
+
description: 'The unique identifier for your request. This is a alphanumeric string up to 40 characters.'
|
215
|
+
example: 'aaaaaaaa-bbbb-cccc-dddd-0123456789ab'
|
216
|
+
maxLength: 40
|
217
|
+
xml:
|
218
|
+
name: request_id
|
219
|
+
international_format_number:
|
220
|
+
type: string
|
221
|
+
description: "The `number` in your request in international format."
|
222
|
+
example: "447700900000"
|
223
|
+
local_number:
|
224
|
+
type: object
|
225
|
+
description: "An object containing the `number` in your request in the format used by the country the number belongs to."
|
226
|
+
properties:
|
227
|
+
country_code:
|
228
|
+
type: string
|
229
|
+
description: 'Two character country code for `number`. This is in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.'
|
230
|
+
example: "GB"
|
231
|
+
pattern: '[A-Z]{2}'
|
232
|
+
xml:
|
233
|
+
attribute: true
|
234
|
+
country_code_iso3:
|
235
|
+
type: string
|
236
|
+
description: 'Three character country code for `number`. This is in [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.'
|
237
|
+
example: "GBR"
|
238
|
+
pattern: '[A-Z]{3}'
|
239
|
+
xml:
|
240
|
+
attribute: true
|
241
|
+
country_name:
|
242
|
+
type: string
|
243
|
+
description: 'The full name of the country that `number` is registered in.'
|
244
|
+
example: "United Kingdom"
|
245
|
+
xml:
|
246
|
+
attribute: true
|
247
|
+
country_prefix:
|
248
|
+
type: string
|
249
|
+
description: 'The numeric prefix for the country that `number` is registered in.'
|
250
|
+
example: '44'
|
251
|
+
xml:
|
252
|
+
attribute: true
|
253
|
+
number:
|
254
|
+
type: string
|
255
|
+
description: "The `number` in your request in the format used by the country the number belongs to."
|
256
|
+
example: '07700 900000'
|
257
|
+
xml:
|
258
|
+
x-text: true # see https://github.com/OAI/OpenAPI-Specification/issues/630
|
259
|
+
error:
|
260
|
+
type: object
|
261
|
+
properties:
|
262
|
+
code:
|
263
|
+
type: string
|
264
|
+
description: 'The status code'
|
265
|
+
example: 0
|
266
|
+
xml:
|
267
|
+
attribute: true
|
268
|
+
status_text:
|
269
|
+
type: string
|
270
|
+
description: 'The status description of your request.'
|
271
|
+
example: Success
|
272
|
+
xml:
|
273
|
+
x-text: true # see https://github.com/OAI/OpenAPI-Specification/issues/630
|
274
|
+
niResponseXmlStandard:
|
275
|
+
type: object
|
276
|
+
description: 'Standard'
|
277
|
+
xml:
|
278
|
+
name: lookup
|
279
|
+
allOf:
|
280
|
+
- $ref: '#/components/schemas/niResponseXmlBasic'
|
281
|
+
- properties:
|
282
|
+
request_price:
|
283
|
+
type: number
|
284
|
+
description: 'If there is an internal lookup error, the `refund_price` will reflect the lookup price. If `cnam` is requested for a non-US number the `refund_price` will reflect the `cnam` price. If both of these conditions occur, `refund_price` is the sum of the lookup price and `cnam` price.'
|
285
|
+
example: '0.01500000'
|
286
|
+
remaining_balance:
|
287
|
+
type: number
|
288
|
+
description: 'Your account balance in EUR after this request. Not returned with Number Insight Advanced Async API.'
|
289
|
+
example: '1.23456789'
|
290
|
+
current_carrier:
|
291
|
+
description: 'Information about the network `number` is currently connected to.'
|
292
|
+
$ref: '#/components/schemas/niCarrier'
|
293
|
+
original_carrier:
|
294
|
+
description: 'Information about the network `number` was initially connected to.'
|
295
|
+
$ref: '#/components/schemas/niCarrier'
|
296
|
+
ported:
|
297
|
+
properties:
|
298
|
+
ported_message:
|
299
|
+
type: string
|
300
|
+
description: 'If the user has changed carrier for `number`. The assumed status means that the information supplier has replied to the request but has not said explicitly that the number is ported.'
|
301
|
+
enum:
|
302
|
+
- unknown
|
303
|
+
- ported
|
304
|
+
- not_ported
|
305
|
+
- assumed_not_ported
|
306
|
+
- assumed_ported
|
307
|
+
example: 'not_ported'
|
308
|
+
xml:
|
309
|
+
x-text: true
|
310
|
+
roaming:
|
311
|
+
type: object
|
312
|
+
properties:
|
313
|
+
status:
|
314
|
+
type: string
|
315
|
+
enum:
|
316
|
+
- unknown
|
317
|
+
example: unknown
|
318
|
+
xml:
|
319
|
+
attribute: true
|
320
|
+
cnam:
|
321
|
+
properties:
|
322
|
+
caller-type:
|
323
|
+
type: string
|
324
|
+
description: 'The value will be `business` if the owner of a phone number is a business. If the owner is an individual the value will be `consumer`. The value will be `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
325
|
+
enum:
|
326
|
+
- business
|
327
|
+
- consumer
|
328
|
+
- unknown
|
329
|
+
example: 'consumer'
|
330
|
+
xml:
|
331
|
+
attribute: true
|
332
|
+
caller-name:
|
333
|
+
type: string
|
334
|
+
description: 'Full name of the person who owns the phone number. `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
335
|
+
example: 'John Smith'
|
336
|
+
xml:
|
337
|
+
attribute: true
|
338
|
+
first-name:
|
339
|
+
type: string
|
340
|
+
description: 'First name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
341
|
+
example: 'John'
|
342
|
+
xml:
|
343
|
+
attribute: true
|
344
|
+
last-name:
|
345
|
+
type: string
|
346
|
+
description: 'Last name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
347
|
+
example: 'Smith'
|
348
|
+
xml:
|
349
|
+
attribute: true
|
350
|
+
subscription-type:
|
351
|
+
example: unknown
|
352
|
+
xml:
|
353
|
+
attribute: true
|
354
|
+
caller_name:
|
355
|
+
type: string
|
356
|
+
description: 'Full name of the person who owns the phone number. `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
357
|
+
example: 'John Smith'
|
358
|
+
last_name:
|
359
|
+
type: string
|
360
|
+
description: 'Last name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
361
|
+
example: 'Smith'
|
362
|
+
firs_name:
|
363
|
+
# Key is not a typo. Do not change.
|
364
|
+
type: string
|
365
|
+
description: 'First name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
366
|
+
example: 'John'
|
367
|
+
caller_type:
|
368
|
+
type: string
|
369
|
+
description: 'The value will be `business` if the owner of a phone number is a business. If the owner is an individual the value will be `consumer`. The value will be `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
370
|
+
enum:
|
371
|
+
- business
|
372
|
+
- consumer
|
373
|
+
- unknown
|
374
|
+
example: 'consumer'
|
375
|
+
niResponseXmlAdvanced:
|
376
|
+
type: object
|
377
|
+
description: 'Advanced'
|
378
|
+
xml:
|
379
|
+
name: lookup
|
380
|
+
allOf:
|
381
|
+
- $ref: '#/components/schemas/niResponseXmlBasic'
|
382
|
+
- properties:
|
383
|
+
request_price:
|
384
|
+
type: number
|
385
|
+
description: 'If there is an internal lookup error, the `refund_price` will reflect the lookup price. If `cnam` is requested for a non-US number the `refund_price` will reflect the `cnam` price. If both of these conditions occur, `refund_price` is the sum of the lookup price and `cnam` price.'
|
386
|
+
example: '0.01500000'
|
387
|
+
remaining_balance:
|
388
|
+
type: number
|
389
|
+
description: 'Your account balance in EUR after this request. Not returned with Number Insight Advanced Async API.'
|
390
|
+
example: '1.23456789'
|
391
|
+
current_carrier:
|
392
|
+
description: 'Information about the network `number` is currently connected to.'
|
393
|
+
$ref: '#/components/schemas/niCarrier'
|
394
|
+
original_carrier:
|
395
|
+
description: 'Information about the network `number` was initially connected to.'
|
396
|
+
$ref: '#/components/schemas/niCarrier'
|
397
|
+
ported:
|
398
|
+
properties:
|
399
|
+
ported_message:
|
400
|
+
type: string
|
401
|
+
description: 'If the user has changed carrier for `number`. The assumed status means that the information supplier has replied to the request but has not said explicitly that the number is ported.'
|
402
|
+
enum:
|
403
|
+
- unknown
|
404
|
+
- ported
|
405
|
+
- not_ported
|
406
|
+
- assumed_not_ported
|
407
|
+
- assumed_ported
|
408
|
+
example: 'not_ported'
|
409
|
+
xml:
|
410
|
+
x-text: true
|
411
|
+
cnam:
|
412
|
+
properties:
|
413
|
+
caller-type:
|
414
|
+
type: string
|
415
|
+
description: 'The value will be `business` if the owner of a phone number is a business. If the owner is an individual the value will be `consumer`. The value will be `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
416
|
+
enum:
|
417
|
+
- business
|
418
|
+
- consumer
|
419
|
+
- unknown
|
420
|
+
example: 'consumer'
|
421
|
+
xml:
|
422
|
+
attribute: true
|
423
|
+
caller-name:
|
424
|
+
type: string
|
425
|
+
description: 'Full name of the person who owns the phone number. `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
426
|
+
example: 'John Smith'
|
427
|
+
xml:
|
428
|
+
attribute: true
|
429
|
+
first-name:
|
430
|
+
type: string
|
431
|
+
description: 'First name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
432
|
+
example: 'John'
|
433
|
+
xml:
|
434
|
+
attribute: true
|
435
|
+
last-name:
|
436
|
+
type: string
|
437
|
+
description: 'Last name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
438
|
+
example: 'Smith'
|
439
|
+
xml:
|
440
|
+
attribute: true
|
441
|
+
subscription-type:
|
442
|
+
example: unknown
|
443
|
+
xml:
|
444
|
+
attribute: true
|
445
|
+
caller_name:
|
446
|
+
type: string
|
447
|
+
description: 'Full name of the person who owns the phone number. `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
448
|
+
example: 'John Smith'
|
449
|
+
last_name:
|
450
|
+
type: string
|
451
|
+
description: 'Last name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
452
|
+
example: 'Smith'
|
453
|
+
firs_name:
|
454
|
+
# Key is not a typo. Do not change.
|
455
|
+
type: string
|
456
|
+
description: 'First name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
457
|
+
example: 'John'
|
458
|
+
caller_type:
|
459
|
+
type: string
|
460
|
+
description: 'The value will be `business` if the owner of a phone number is a business. If the owner is an individual the value will be `consumer`. The value will be `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
461
|
+
enum:
|
462
|
+
- business
|
463
|
+
- consumer
|
464
|
+
- unknown
|
465
|
+
example: 'consumer'
|
466
|
+
lookup_outcome:
|
467
|
+
type: object
|
468
|
+
description: "An object indicating whether all information about a phone number has been returned."
|
469
|
+
properties:
|
470
|
+
code:
|
471
|
+
description: |
|
472
|
+
Shows if all information about a phone number has been returned. Possible values:
|
473
|
+
|
474
|
+
Code | Text
|
475
|
+
-- | --
|
476
|
+
0 | Success
|
477
|
+
1 | Partial success - some fields populated
|
478
|
+
2 | Failed
|
479
|
+
enum:
|
480
|
+
- 0
|
481
|
+
- 1
|
482
|
+
- 2
|
483
|
+
example: '0'
|
484
|
+
xml:
|
485
|
+
attribute: true
|
486
|
+
lookup_outcome_message:
|
487
|
+
type: string
|
488
|
+
description: 'Shows if all information about a phone number has been returned.'
|
489
|
+
example: 'Success'
|
490
|
+
xml:
|
491
|
+
x-text: true # see https://github.com/OAI/OpenAPI-Specification/issues/630
|
492
|
+
reachable:
|
493
|
+
type: string
|
494
|
+
description: 'Can you call `number` now. This is applicable to mobile numbers only.'
|
495
|
+
enum:
|
496
|
+
- unknown
|
497
|
+
- reachable
|
498
|
+
- undeliverable
|
499
|
+
- absent
|
500
|
+
- bad_number
|
501
|
+
- blacklisted
|
502
|
+
example: 'reachable'
|
503
|
+
roaming:
|
504
|
+
description: 'Information about the roaming status for `number`. This is applicable to mobile numbers only.'
|
505
|
+
$ref: '#/components/schemas/niRoaming'
|
506
|
+
ip:
|
507
|
+
description: 'Information about the provided IP address'
|
508
|
+
$ref: '#/components/schemas/niIP'
|
509
|
+
valid_number:
|
510
|
+
type: string
|
511
|
+
description: 'Does `number` exist. This is applicable to mobile numbers only.'
|
512
|
+
enum:
|
513
|
+
- unknown
|
514
|
+
- valid
|
515
|
+
- not_valid
|
516
|
+
example: 'valid'
|
517
|
+
ip_warnings:
|
518
|
+
type: string
|
519
|
+
description: 'Warning levels for `ip`'
|
520
|
+
enum:
|
521
|
+
- unknown
|
522
|
+
- no_warning
|
523
|
+
example: 'no_warning'
|
524
|
+
niResponseJson:
|
525
|
+
type: object
|
526
|
+
description: 'The root object of the XML response varies based on the detail level requested.'
|
527
|
+
oneOf:
|
528
|
+
- $ref: '#/components/schemas/niResponseJsonBasic'
|
529
|
+
- $ref: '#/components/schemas/niResponseJsonStandard'
|
530
|
+
- $ref: '#/components/schemas/niResponseJsonAdvanced'
|
531
|
+
niResponseJsonBasic:
|
532
|
+
type: object
|
533
|
+
description: Basic
|
534
|
+
properties:
|
535
|
+
status:
|
536
|
+
$ref: '#/components/schemas/niStatus'
|
537
|
+
status_message:
|
538
|
+
type: string
|
539
|
+
description: 'The status description of your request. Returned when status is 0 or 1'
|
540
|
+
example: 'Success'
|
541
|
+
request_id:
|
542
|
+
type: string
|
543
|
+
description: 'The unique identifier for your request. This is a alphanumeric string up to 40 characters.'
|
544
|
+
example: 'aaaaaaaa-bbbb-cccc-dddd-0123456789ab'
|
545
|
+
maxLength: 40
|
546
|
+
international_format_number:
|
547
|
+
type: string
|
548
|
+
description: "The `number` in your request in international format."
|
549
|
+
example: "447700900000"
|
550
|
+
national_format_number:
|
551
|
+
type: string
|
552
|
+
description: "The `number` in your request in the format used by the country the number belongs to."
|
553
|
+
example: "07700 900000"
|
554
|
+
country_code:
|
555
|
+
type: string
|
556
|
+
description: 'Two character country code for `number`. This is in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.'
|
557
|
+
example: "GB"
|
558
|
+
pattern: '[A-Z]{2}'
|
559
|
+
country_code_iso3:
|
560
|
+
type: string
|
561
|
+
description: 'Three character country code for `number`. This is in [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.'
|
562
|
+
example: "GBR"
|
563
|
+
pattern: '[A-Z]{3}'
|
564
|
+
country_name:
|
565
|
+
type: string
|
566
|
+
description: 'The full name of the country that `number` is registered in.'
|
567
|
+
example: "United Kingdom"
|
568
|
+
country_prefix:
|
569
|
+
type: string
|
570
|
+
description: 'The numeric prefix for the country that `number` is registered in.'
|
571
|
+
example: '44'
|
572
|
+
niResponseJsonStandard:
|
573
|
+
type: object
|
574
|
+
description: Standard
|
575
|
+
properties:
|
576
|
+
status:
|
577
|
+
$ref: '#/components/schemas/niStatus'
|
578
|
+
status_message:
|
579
|
+
type: string
|
580
|
+
description: 'The status description of your request. Returned when status is 0 or 1'
|
581
|
+
example: 'Success'
|
582
|
+
request_id:
|
583
|
+
type: string
|
584
|
+
description: 'The unique identifier for your request. This is a alphanumeric string up to 40 characters.'
|
585
|
+
example: 'aaaaaaaa-bbbb-cccc-dddd-0123456789ab'
|
586
|
+
maxLength: 40
|
587
|
+
international_format_number:
|
588
|
+
type: string
|
589
|
+
description: "The `number` in your request in international format."
|
590
|
+
example: "447700900000"
|
591
|
+
national_format_number:
|
592
|
+
type: string
|
593
|
+
description: "The `number` in your request in the format used by the country the number belongs to."
|
594
|
+
example: "07700 900000"
|
595
|
+
country_code:
|
596
|
+
type: string
|
597
|
+
description: 'Two character country code for `number`. This is in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.'
|
598
|
+
example: "GB"
|
599
|
+
pattern: '[A-Z]{2}'
|
600
|
+
country_code_iso3:
|
601
|
+
type: string
|
602
|
+
description: 'Three character country code for `number`. This is in [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.'
|
603
|
+
example: "GBR"
|
604
|
+
pattern: '[A-Z]{3}'
|
605
|
+
country_name:
|
606
|
+
type: string
|
607
|
+
description: 'The full name of the country that `number` is registered in.'
|
608
|
+
example: "United Kingdom"
|
609
|
+
country_prefix:
|
610
|
+
type: string
|
611
|
+
description: 'The numeric prefix for the country that `number` is registered in.'
|
612
|
+
example: '44'
|
613
|
+
request_price:
|
614
|
+
type: number
|
615
|
+
description: 'The amount in EUR charged to your account.'
|
616
|
+
example: "0.04000000"
|
617
|
+
refund_price:
|
618
|
+
type: number
|
619
|
+
description: 'If there is an internal lookup error, the `refund_price` will reflect the lookup price. If `cnam` is requested for a non-US number the `refund_price` will reflect the `cnam` price. If both of these conditions occur, `refund_price` is the sum of the lookup price and `cnam` price.'
|
620
|
+
example: '0.01500000'
|
621
|
+
remaining_balance:
|
622
|
+
type: number
|
623
|
+
description: 'Your account balance in EUR after this request. Not returned with Number Insight Advanced Async API.'
|
624
|
+
example: '1.23456789'
|
625
|
+
current_carrier:
|
626
|
+
description: 'Information about the network `number` is currently connected to.'
|
627
|
+
$ref: '#/components/schemas/niCarrier'
|
628
|
+
original_carrier:
|
629
|
+
description: 'Information about the network `number` was initially connected to.'
|
630
|
+
$ref: '#/components/schemas/niCarrier'
|
631
|
+
ported:
|
632
|
+
type: string
|
633
|
+
description: 'If the user has changed carrier for `number`. The assumed status means that the information supplier has replied to the request but has not said explicitly that the number is ported.'
|
634
|
+
enum:
|
635
|
+
- unknown
|
636
|
+
- ported
|
637
|
+
- not_ported
|
638
|
+
- assumed_not_ported
|
639
|
+
- assumed_ported
|
640
|
+
example: 'not_ported'
|
641
|
+
roaming:
|
642
|
+
description: 'Information about the roaming status for `number`. This is applicable to mobile numbers only.'
|
643
|
+
$ref: '#/components/schemas/niRoaming'
|
644
|
+
caller_identity:
|
645
|
+
description: 'Information about the network `number` is currently connected to.'
|
646
|
+
$ref: '#/components/schemas/niCallerIdentity'
|
647
|
+
caller_name:
|
648
|
+
type: string
|
649
|
+
description: 'Full name of the person who owns the phone number. `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
650
|
+
example: 'John Smith'
|
651
|
+
last_name:
|
652
|
+
type: string
|
653
|
+
description: 'Last name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
654
|
+
example: 'Smith'
|
655
|
+
first_name:
|
656
|
+
type: string
|
657
|
+
description: 'First name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
658
|
+
example: 'John'
|
659
|
+
caller_type:
|
660
|
+
type: string
|
661
|
+
description: 'The value will be `business` if the owner of a phone number is a business. If the owner is an individual the value will be `consumer`. The value will be `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
662
|
+
enum:
|
663
|
+
- business
|
664
|
+
- consumer
|
665
|
+
- unknown
|
666
|
+
example: 'consumer'
|
667
|
+
niResponseJsonAdvanced:
|
668
|
+
type: object
|
669
|
+
description: Advanced
|
670
|
+
properties:
|
671
|
+
status:
|
672
|
+
$ref: '#/components/schemas/niStatus'
|
673
|
+
status_message:
|
674
|
+
type: string
|
675
|
+
description: 'The status description of your request. Returned when status is 0 or 1'
|
676
|
+
example: 'Success'
|
677
|
+
request_id:
|
678
|
+
type: string
|
679
|
+
description: 'The unique identifier for your request. This is a alphanumeric string up to 40 characters.'
|
680
|
+
example: 'aaaaaaaa-bbbb-cccc-dddd-0123456789ab'
|
681
|
+
maxLength: 40
|
682
|
+
international_format_number:
|
683
|
+
type: string
|
684
|
+
description: "The `number` in your request in international format."
|
685
|
+
example: "447700900000"
|
686
|
+
national_format_number:
|
687
|
+
type: string
|
688
|
+
description: "The `number` in your request in the format used by the country the number belongs to."
|
689
|
+
example: "07700 900000"
|
690
|
+
country_code:
|
691
|
+
type: string
|
692
|
+
description: 'Two character country code for `number`. This is in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.'
|
693
|
+
example: "GB"
|
694
|
+
pattern: '[A-Z]{2}'
|
695
|
+
country_code_iso3:
|
696
|
+
type: string
|
697
|
+
description: 'Three character country code for `number`. This is in [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.'
|
698
|
+
example: "GBR"
|
699
|
+
pattern: '[A-Z]{3}'
|
700
|
+
country_name:
|
701
|
+
type: string
|
702
|
+
description: 'The full name of the country that `number` is registered in.'
|
703
|
+
example: "United Kingdom"
|
704
|
+
country_prefix:
|
705
|
+
type: string
|
706
|
+
description: 'The numeric prefix for the country that `number` is registered in.'
|
707
|
+
example: '44'
|
708
|
+
request_price:
|
709
|
+
type: number
|
710
|
+
description: 'The amount in EUR charged to your account.'
|
711
|
+
example: "0.04000000"
|
712
|
+
refund_price:
|
713
|
+
type: number
|
714
|
+
description: 'If there is an internal lookup error, the `refund_price` will reflect the lookup price. If `cnam` is requested for a non-US number the `refund_price` will reflect the `cnam` price. If both of these conditions occur, `refund_price` is the sum of the lookup price and `cnam` price.'
|
715
|
+
example: '0.01500000'
|
716
|
+
remaining_balance:
|
717
|
+
type: number
|
718
|
+
description: 'Your account balance in EUR after this request. Not returned with Number Insight Advanced Async API.'
|
719
|
+
example: '1.23456789'
|
720
|
+
current_carrier:
|
721
|
+
description: 'Information about the network `number` is currently connected to.'
|
722
|
+
$ref: '#/components/schemas/niCarrier'
|
723
|
+
original_carrier:
|
724
|
+
description: 'Information about the network `number` was initially connected to.'
|
725
|
+
$ref: '#/components/schemas/niCarrier'
|
726
|
+
ported:
|
727
|
+
type: string
|
728
|
+
description: 'If the user has changed carrier for `number`. The assumed status means that the information supplier has replied to the request but has not said explicitly that the number is ported.'
|
729
|
+
enum:
|
730
|
+
- unknown
|
731
|
+
- ported
|
732
|
+
- not_ported
|
733
|
+
- assumed_not_ported
|
734
|
+
- assumed_ported
|
735
|
+
example: 'not_ported'
|
736
|
+
roaming:
|
737
|
+
description: 'Information about the roaming status for `number`. This is applicable to mobile numbers only.'
|
738
|
+
$ref: '#/components/schemas/niRoaming'
|
739
|
+
caller_identity:
|
740
|
+
description: 'Information about the network `number` is currently connected to.'
|
741
|
+
$ref: '#/components/schemas/niCallerIdentity'
|
742
|
+
caller_name:
|
743
|
+
type: string
|
744
|
+
description: 'Full name of the person who owns the phone number. `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
745
|
+
example: 'John Smith'
|
746
|
+
last_name:
|
747
|
+
type: string
|
748
|
+
description: 'Last name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
749
|
+
example: 'Smith'
|
750
|
+
first_name:
|
751
|
+
type: string
|
752
|
+
description: 'First name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
753
|
+
example: 'John'
|
754
|
+
caller_type:
|
755
|
+
type: string
|
756
|
+
description: 'The value will be `business` if the owner of a phone number is a business. If the owner is an individual the value will be `consumer`. The value will be `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
757
|
+
enum:
|
758
|
+
- business
|
759
|
+
- consumer
|
760
|
+
- unknown
|
761
|
+
example: 'consumer'
|
762
|
+
lookup_outcome:
|
763
|
+
type: integer
|
764
|
+
description: |
|
765
|
+
Shows if all information about a phone number has been returned. Possible values:
|
766
|
+
|
767
|
+
Code | Text
|
768
|
+
--- | ---
|
769
|
+
0 | Success
|
770
|
+
1 | Partial success - some fields populated
|
771
|
+
2 | Failed
|
772
|
+
enum:
|
773
|
+
- 0
|
774
|
+
- 1
|
775
|
+
- 2
|
776
|
+
example: '0'
|
777
|
+
lookup_outcome_message:
|
778
|
+
type: string
|
779
|
+
description: 'Shows if all information about a phone number has been returned.'
|
780
|
+
example: 'Success'
|
781
|
+
valid_number:
|
782
|
+
type: string
|
783
|
+
description: 'Does `number` exist. This is applicable to mobile numbers only.'
|
784
|
+
enum:
|
785
|
+
- unknown
|
786
|
+
- valid
|
787
|
+
- not_valid
|
788
|
+
example: 'valid'
|
789
|
+
reachable:
|
790
|
+
type: string
|
791
|
+
description: 'Can you call `number` now. This is applicable to mobile numbers only.'
|
792
|
+
enum:
|
793
|
+
- unknown
|
794
|
+
- reachable
|
795
|
+
- undeliverable
|
796
|
+
- absent
|
797
|
+
- bad_number
|
798
|
+
- blacklisted
|
799
|
+
example: 'reachable'
|
800
|
+
ip:
|
801
|
+
description: 'Information about the provided IP address'
|
802
|
+
$ref: '#/components/schemas/niIP'
|
803
|
+
ip_warnings:
|
804
|
+
type: string
|
805
|
+
description: 'Warning levels for `ip`'
|
806
|
+
enum:
|
807
|
+
- unknown
|
808
|
+
- no_warning
|
809
|
+
example: 'no_warning'
|
810
|
+
required:
|
811
|
+
- status
|
812
|
+
- status_message
|
813
|
+
- request_id
|
814
|
+
- international_format_number
|
815
|
+
- national_format_number
|
816
|
+
- country_code
|
817
|
+
- country_code_iso3
|
818
|
+
- country_name
|
819
|
+
- country_prefix
|
820
|
+
niCarrier:
|
821
|
+
type: object
|
822
|
+
properties:
|
823
|
+
network_code:
|
824
|
+
type: string
|
825
|
+
description: 'The [https://en.wikipedia.org/wiki/Mobile_country_code](https://en.wikipedia.org/wiki/Mobile_country_code) for the carrier`number` is associated with. Unreal numbers are marked as`unknown` and the request is rejected altogether if the number is impossible according to the [E.164](https://en.wikipedia.org/wiki/E.164) guidelines.'
|
826
|
+
xml:
|
827
|
+
attribute: true
|
828
|
+
example: '12345'
|
829
|
+
name:
|
830
|
+
type: string
|
831
|
+
description: 'The full name of the carrier that `number` is associated with.'
|
832
|
+
xml:
|
833
|
+
attribute: true
|
834
|
+
example: 'Acme Inc'
|
835
|
+
country:
|
836
|
+
type: string
|
837
|
+
description: 'The country that `number` is associated with. This is in ISO 3166-1 alpha-2 format.'
|
838
|
+
xml:
|
839
|
+
attribute: true
|
840
|
+
example: 'GB'
|
841
|
+
network_type:
|
842
|
+
type: string
|
843
|
+
description: 'The type of network that `number` is associated with.'
|
844
|
+
enum:
|
845
|
+
- mobile
|
846
|
+
- landline
|
847
|
+
- landline_premium
|
848
|
+
- landline_tollfree
|
849
|
+
- virtual
|
850
|
+
- unknown
|
851
|
+
- pager
|
852
|
+
xml:
|
853
|
+
attribute: true
|
854
|
+
example: 'mobile'
|
855
|
+
niRoaming:
|
856
|
+
type: object
|
857
|
+
properties:
|
858
|
+
status:
|
859
|
+
type: string
|
860
|
+
description: 'Is `number` outside its home carrier network.'
|
861
|
+
enum:
|
862
|
+
- unknown
|
863
|
+
- roaming
|
864
|
+
- not_roaming
|
865
|
+
example: roaming
|
866
|
+
xml:
|
867
|
+
attribute: true
|
868
|
+
roaming_country_code:
|
869
|
+
type: string
|
870
|
+
description: 'If `number` is `roaming`, this is the [code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the country `number` is roaming in.'
|
871
|
+
example: US
|
872
|
+
xml:
|
873
|
+
attribute: true
|
874
|
+
roaming_network_code:
|
875
|
+
type: string
|
876
|
+
description: 'If `number` is `roaming`, this is the id of the carrier network `number` is roaming in.'
|
877
|
+
example: 12345
|
878
|
+
xml:
|
879
|
+
attribute: true
|
880
|
+
roaming_network_name:
|
881
|
+
type: string
|
882
|
+
description: 'If `number` is `roaming`, this is the name of the carrier network `number` is roaming in.'
|
883
|
+
example: 'Acme Inc'
|
884
|
+
xml:
|
885
|
+
attribute: true
|
886
|
+
niIP:
|
887
|
+
type: object
|
888
|
+
properties:
|
889
|
+
address:
|
890
|
+
type: string
|
891
|
+
description: 'The ip address you specified in the request.'
|
892
|
+
example: '123.0.0.255'
|
893
|
+
xml:
|
894
|
+
attribute: true
|
895
|
+
ip_match_level:
|
896
|
+
type: string
|
897
|
+
description: 'The match status between ip and number parameters.'
|
898
|
+
enum:
|
899
|
+
- 'country'
|
900
|
+
- 'mismatch'
|
901
|
+
example: 'country'
|
902
|
+
xml:
|
903
|
+
attribute: true
|
904
|
+
ip_country:
|
905
|
+
type: string
|
906
|
+
description: 'The country that `ip` is allocated to.'
|
907
|
+
example: 'GB'
|
908
|
+
xml:
|
909
|
+
attribute: true
|
910
|
+
ip_city:
|
911
|
+
type: string
|
912
|
+
description: 'The city that `ip` is allocated to.'
|
913
|
+
example: 'London'
|
914
|
+
xml:
|
915
|
+
attribute: true
|
916
|
+
niCallerIdentity:
|
917
|
+
type: object
|
918
|
+
properties:
|
919
|
+
caller_type:
|
920
|
+
type: string
|
921
|
+
description: 'The value will be `business` if the owner of a phone number is a business. If the owner is an individual the value will be `consumer`. The value will be `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
922
|
+
enum:
|
923
|
+
- business
|
924
|
+
- consumer
|
925
|
+
- unknown
|
926
|
+
example: 'consumer'
|
927
|
+
caller_name:
|
928
|
+
type: string
|
929
|
+
description: 'Full name of the person who owns the phone number. `unknown` if this information is not available. This parameter is only present if `cnam` had a value of `true` within the request.'
|
930
|
+
example: 'John Smith'
|
931
|
+
first_name:
|
932
|
+
type: string
|
933
|
+
description: 'First name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
934
|
+
example: 'John'
|
935
|
+
last_name:
|
936
|
+
type: string
|
937
|
+
description: 'Last name of the person who owns the phone number if the owner is an individual. This parameter is only present if `cnam` had a value of `true` within the request.'
|
938
|
+
example: 'Smith'
|
939
|
+
subscription_type:
|
940
|
+
type: string
|
941
|
+
# @TODO: description: ''
|
942
|
+
example: 'unknown'
|
943
|
+
niStatus:
|
944
|
+
type: integer
|
945
|
+
example: 0
|
946
|
+
enum:
|
947
|
+
- 0
|
948
|
+
- 1
|
949
|
+
- 3
|
950
|
+
- 4
|
951
|
+
- 5
|
952
|
+
- 9
|
953
|
+
- 19
|
954
|
+
- 43
|
955
|
+
- 44
|
956
|
+
- 45
|
957
|
+
- 999
|
958
|
+
description: |
|
959
|
+
Code | Text
|
960
|
+
-- | --
|
961
|
+
0 | Success - request accepted for delivery by Nexmo.
|
962
|
+
1 | Busy - you have made more requests in the last second than are permitted by your Nexmo account. Please retry.
|
963
|
+
3 | Invalid - your request is incomplete and missing some mandatory parameters.
|
964
|
+
4 | Invalid credentials - the _api_key_ or _api_secret_ you supplied is either not valid or has been disabled.
|
965
|
+
5 | Internal Error - the format of the recipient address is not valid.
|
966
|
+
9 | Partner quota exceeded - your Nexmo account does not have sufficient credit to process this request.
|
967
|
+
|
968
|
+
## Standard and Advanced only
|
969
|
+
|
970
|
+
Code | Text
|
971
|
+
-- | --
|
972
|
+
19 | Facility Not Allowed - your request makes use of a facility that is not enabled on your account.
|
973
|
+
43, 44, 45 | Live mobile lookup not returned. Not all return parameters are available.
|
974
|
+
999 | Request unparseable.
|
975
|
+
securitySchemes:
|
976
|
+
apiKey:
|
977
|
+
type: apiKey
|
978
|
+
name: api_key
|
979
|
+
in: query
|
980
|
+
description: 'You can find your API key in your [account overview](https://dashboard.nexmo.com/account-overview)'
|
981
|
+
apiSecret:
|
982
|
+
type: apiKey
|
983
|
+
name: api_secret
|
984
|
+
in: query
|
985
|
+
description: 'You can find your API secret in your [account overview](https://dashboard.nexmo.com/account-overview)'
|
986
|
+
x-groups:
|
987
|
+
number-insight:
|
988
|
+
name: Number Insight
|
989
|
+
description: The Number Insight object contains information about the request and details of the phone number information has been requested about.
|
990
|
+
order: 1
|
991
|
+
schema:
|
992
|
+
application/json:
|
993
|
+
$ref: '#/components/schemas/niResponseJsonAdvanced'
|
994
|
+
text/xml:
|
995
|
+
$ref: '#/components/schemas/niResponseXmlAdvanced'
|