nexmo_api_specification 0.5.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,685 @@
1
+ ---
2
+ openapi: 3.0.0
3
+ servers:
4
+ - url: 'https://api.nexmo.com/ni'
5
+ info:
6
+ title: Nexmo 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. Getting information about a number with Nexmo's Number Insight API is easy. Simply [sign up for an account](https://dashboard.nexmo.com/sign-up).
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: ask for information about a phone number
39
+ tags:
40
+ - Request
41
+ parameters:
42
+ - $ref: '#/components/parameters/number'
43
+ - $ref: '#/components/parameters/country'
44
+ - $ref: '#/components/parameters/cnam'
45
+ - $ref: '#/components/parameters/ip'
46
+ responses:
47
+ '200':
48
+ description: OK
49
+ content:
50
+ 'application/json':
51
+ schema:
52
+ $ref: '#/components/schemas/niResponse'
53
+ 'text/xml':
54
+ schema:
55
+ $ref: '#/components/schemas/niResponse'
56
+ '401':
57
+ description: Unauthorised
58
+ '/advanced/async/{format}':
59
+ parameters:
60
+ - $ref: '#/components/parameters/format'
61
+ get:
62
+ operationId: getNumberInsightAsync
63
+ summary: Ask for information about a phone number
64
+ tags:
65
+ - Request
66
+ parameters:
67
+ - $ref: '#/components/parameters/callback'
68
+ - $ref: '#/components/parameters/number'
69
+ - $ref: '#/components/parameters/country'
70
+ - $ref: '#/components/parameters/cnam'
71
+ - $ref: '#/components/parameters/ip'
72
+ responses:
73
+ '200':
74
+ description: OK
75
+ content:
76
+ 'application/json':
77
+ schema:
78
+ $ref: '#/components/schemas/niResponse'
79
+ 'text/xml':
80
+ schema:
81
+ $ref: '#/components/schemas/niResponse'
82
+ '401':
83
+ description: Unauthorised
84
+ callbacks:
85
+ onData:
86
+ '{$request.query.callback}':
87
+ post:
88
+ operationId: asyncCallback
89
+ summary: The requested WebHook response
90
+ requestBody:
91
+ description: Async response payload
92
+ content:
93
+ application/json:
94
+ schema:
95
+ $ref: '#/components/schemas/niResponse'
96
+ text/xml:
97
+ schema:
98
+ $ref: '#/components/schemas/niResponse'
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
+ schema:
110
+ type: string
111
+ enum:
112
+ - 'basic'
113
+ - 'standard'
114
+ - 'advanced'
115
+ format:
116
+ name: format
117
+ in: path
118
+ required: true
119
+ description: 'The format of the response'
120
+ schema:
121
+ type: string
122
+ enum:
123
+ - 'json'
124
+ - 'xml'
125
+ number:
126
+ name: number
127
+ in: query
128
+ description: 'A single phone number that you need insight about in national or international format.'
129
+ example: '447700900000'
130
+ schema:
131
+ type: string
132
+ pattern: '^[0-9-+\(\)\s]*$'
133
+ country:
134
+ name: country
135
+ in: query
136
+ example: 'GB'
137
+ 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.'
138
+ schema:
139
+ type: string
140
+ pattern: '[A-Z]{2}'
141
+ cnam:
142
+ name: cnam
143
+ in: query
144
+ example: true
145
+ 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.'
146
+ schema:
147
+ type: boolean
148
+ default: false
149
+ ip:
150
+ name: ip
151
+ in: query
152
+ example: '123.0.0.255'
153
+ 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."
154
+ schema:
155
+ type: string
156
+ #pattern: TODO are IPv4 and IPv6 addresses permitted?
157
+ callback:
158
+ name: callback
159
+ in: query
160
+ example: 'https://example.com/callback'
161
+ description: 'The callback URL'
162
+ required: true
163
+ schema:
164
+ type: string
165
+ format: uriref
166
+ schemas:
167
+ niResponse:
168
+ oneOf:
169
+ - $ref: '#/components/schemas/niError'
170
+ - $ref: '#/components/schemas/niDetails'
171
+ - $ref: '#/components/schemas/format'
172
+ - $ref: '#/components/schemas/lookup'
173
+ niError:
174
+ type: object
175
+ properties:
176
+ status:
177
+ $ref: '#/components/schemas/niStatus'
178
+ error_text:
179
+ type: string
180
+ required:
181
+ - status
182
+ - error_text
183
+ format:
184
+ type: object
185
+ properties:
186
+ lookup_outcome:
187
+ type: object
188
+ properties:
189
+ code:
190
+ type: integer
191
+ description: |
192
+ Shows if all information about a phone number has been returned. Possible values:
193
+ Code | Text
194
+ -- | --
195
+ 0 | Success
196
+ 1 | Partial success - some fields populated
197
+ 2 | Failed
198
+ enum:
199
+ - 0
200
+ - 1
201
+ - 2
202
+ lookup_outcome_message:
203
+ type: string
204
+ description: 'Shows if all information about a phone number has been returned.'
205
+ xml:
206
+ x-text: true # see https://github.com/OAI/OpenAPI-Specification/issues/630
207
+ reachable:
208
+ type: string
209
+ description: 'Can you call `number` now. This is applicable to mobile numbers only.'
210
+ enum:
211
+ - unknown
212
+ - reachable
213
+ - undeliverable
214
+ - absent
215
+ - bad_number
216
+ - blacklisted
217
+ request_id:
218
+ type: string
219
+ description: 'The unique identifier for your request. This is a alphanumeric string up to 40 characters.'
220
+ maxLength: 40
221
+ international_format_number:
222
+ type: string
223
+ description: 'The `number` in your request in International format.'
224
+ local_number:
225
+ type: object
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
+ pattern: '[A-Z]{2}'
231
+ xml:
232
+ attribute: true
233
+ country_code_iso3:
234
+ type: string
235
+ 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.'
236
+ pattern: '[A-Z]{3}'
237
+ xml:
238
+ attribute: true
239
+ country_name:
240
+ type: string
241
+ description: 'The full name of the country that `number` is registered in.'
242
+ xml:
243
+ attribute: true
244
+ country_prefix:
245
+ type: string
246
+ description: 'The numeric prefix for the country that `number` is registered in.'
247
+ xml:
248
+ attribute: true
249
+ national_format_number:
250
+ type: string
251
+ description: 'The `number` in your request in the format used by the country the number belongs to.'
252
+ xml:
253
+ x-text: true # see https://github.com/OAI/OpenAPI-Specification/issues/630
254
+ error:
255
+ type: object
256
+ properties:
257
+ code:
258
+ allOf:
259
+ - xml:
260
+ attribute: true
261
+ - $ref: '#/components/schemas/niStatus'
262
+ status_message:
263
+ type: string
264
+ xml:
265
+ x-text: true # see https://github.com/OAI/OpenAPI-Specification/issues/630
266
+ lookup:
267
+ type: object
268
+ properties:
269
+ request_id:
270
+ type: string
271
+ description: 'The unique identifier for your request. This is a alphanumeric string up to 40 characters.'
272
+ maxLength: 40
273
+ international_format_number:
274
+ type: string
275
+ description: 'The `number` in your request in International format.'
276
+ local_number:
277
+ type: object
278
+ properties:
279
+ country_code:
280
+ type: string
281
+ 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.'
282
+ pattern: '[A-Z]{2}'
283
+ xml:
284
+ attribute: true
285
+ country_code_iso3:
286
+ type: string
287
+ 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.'
288
+ pattern: '[A-Z]{3}'
289
+ xml:
290
+ attribute: true
291
+ country_name:
292
+ type: string
293
+ description: 'The full name of the country that `number` is registered in.'
294
+ xml:
295
+ attribute: true
296
+ country_prefix:
297
+ type: string
298
+ description: 'The numeric prefix for the country that `number` is registered in.'
299
+ xml:
300
+ attribute: true
301
+ national_format_number:
302
+ type: string
303
+ description: 'The `number` in your request in the format used by the country the number belongs to.'
304
+ xml:
305
+ x-text: true # see https://github.com/OAI/OpenAPI-Specification/issues/630
306
+ error:
307
+ type: object
308
+ properties:
309
+ code:
310
+ allOf:
311
+ - xml:
312
+ attribute: true
313
+ - $ref: '#/components/schemas/niStatus'
314
+ status_message:
315
+ type: string
316
+ xml:
317
+ x-text: true # see https://github.com/OAI/OpenAPI-Specification/issues/630
318
+ request_price:
319
+ type: number
320
+ description: 'The amount in EUR charged to your account.'
321
+ refund_price:
322
+ type: number
323
+ 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.'
324
+ remaining_balance:
325
+ type: number
326
+ description: 'Your account balance in EUR after this request. Not returned with Number Insight Advanced Async API.'
327
+ current_carrier:
328
+ description: 'Information about the network `number` is currently connected to.'
329
+ $ref: '#/components/schemas/niCarrier'
330
+ original_carrier:
331
+ description: 'Information about the network `number` was initially connected to.'
332
+ $ref: '#/components/schemas/niCarrier'
333
+ ported:
334
+ type: string
335
+ 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.'
336
+ enum:
337
+ - unknown
338
+ - ported
339
+ - not_ported
340
+ - assumed_not_ported
341
+ - assumed_ported
342
+ caller_name:
343
+ type: string
344
+ 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.'
345
+ last_name:
346
+ type: string
347
+ 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.'
348
+ first_name:
349
+ type: string
350
+ 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.'
351
+ caller_type:
352
+ type: string
353
+ 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.'
354
+ enum:
355
+ - business
356
+ - consumer
357
+ - unknown
358
+ roaming:
359
+ description: 'Information about the roaming status for `number`. This is applicable to mobile numbers only.'
360
+ $ref: '#/components/schemas/niRoaming'
361
+ ip:
362
+ type: string
363
+ description: 'The ip address you specified in the request. This field is blank if you did not specify `ip`.'
364
+ ip_warnings:
365
+ type: string
366
+ description: 'Warning levels for `ip`: `unknown` or `no_warning`'
367
+ enum:
368
+ - unknown
369
+ - no_warning
370
+ ip_match_level:
371
+ type: string
372
+ description: 'The match status between ip and number parameters. This value is only returned if you set ip in the `request`.'
373
+ enum:
374
+ - 'Country Level'
375
+ - 'Mismatch'
376
+ ip_country:
377
+ type: string
378
+ description: 'The country that `ip` is allocated to. This value is only returned if you set ip in the `request`.'
379
+ niDetails:
380
+ type: object
381
+ properties:
382
+ status:
383
+ $ref: '#/components/schemas/niStatus'
384
+ status_message:
385
+ type: string
386
+ description: 'The status description of your request.'
387
+ example: 'Success'
388
+ lookup_outcome:
389
+ type: integer
390
+ description: |
391
+ Shows if all information about a phone number has been returned. Possible values:
392
+ Code | Text
393
+ -- | --
394
+ 0 | Success
395
+ 1 | Partial success - some fields populated
396
+ 2 | Failed
397
+ enum:
398
+ - 0
399
+ - 1
400
+ - 2
401
+ example: '0'
402
+ lookup_outcome_message:
403
+ type: string
404
+ description: 'Shows if all information about a phone number has been returned.'
405
+ example: 'Success'
406
+ request_id:
407
+ type: string
408
+ description: 'The unique identifier for your request. This is a alphanumeric string up to 40 characters.'
409
+ example: 'aaaaaaaa-bbbb-cccc-dddd-0123456789ab'
410
+ maxLength: 40
411
+ international_format_number:
412
+ type: string
413
+ description: "The `number` in your request in international format."
414
+ example: "447700900000"
415
+ national_format_number:
416
+ type: string
417
+ description: "The `number` in your request in the format used by the country the number belongs to."
418
+ example: "07700 900000"
419
+ country_code:
420
+ type: string
421
+ 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.'
422
+ example: "GB"
423
+ pattern: '[A-Z]{2}'
424
+ country_code_iso3:
425
+ type: string
426
+ 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.'
427
+ example: "GBR"
428
+ pattern: '[A-Z]{3}'
429
+ country_name:
430
+ type: string
431
+ description: 'The full name of the country that `number` is registered in.'
432
+ example: "United Kingdom"
433
+ country_prefix:
434
+ type: string
435
+ description: 'The numeric prefix for the country that `number` is registered in.'
436
+ example: '44'
437
+ request_price:
438
+ type: number
439
+ description: 'The amount in EUR charged to your account.'
440
+ example: "0.04000000"
441
+ refund_price:
442
+ type: number
443
+ 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.'
444
+ example: '0.01'
445
+ remaining_balance:
446
+ type: number
447
+ description: 'Your account balance in EUR after this request. Not returned with Number Insight Advanced Async API.'
448
+ example: '1.23456789'
449
+ current_carrier:
450
+ description: 'Information about the network `number` is currently connected to.'
451
+ $ref: '#/components/schemas/niCarrier'
452
+ original_carrier:
453
+ description: 'Information about the network `number` was initially connected to.'
454
+ $ref: '#/components/schemas/niCarrier'
455
+ valid_number:
456
+ type: string
457
+ description: 'Does `number` exist. This is applicable to mobile numbers only.'
458
+ enum:
459
+ - unknown
460
+ - valid
461
+ - not_valid
462
+ example: 'valid'
463
+ reachable:
464
+ type: string
465
+ description: 'Can you call `number` now. This is applicable to mobile numbers only.'
466
+ enum:
467
+ - unknown
468
+ - reachable
469
+ - undeliverable
470
+ - absent
471
+ - bad_number
472
+ - blacklisted
473
+ example: 'reachable'
474
+ ported:
475
+ type: string
476
+ 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.'
477
+ enum:
478
+ - unknown
479
+ - ported
480
+ - not_ported
481
+ - assumed_not_ported
482
+ - assumed_ported
483
+ example:
484
+ - 'not_ported'
485
+ roaming:
486
+ description: 'Information about the roaming status for `number`. This is applicable to mobile numbers only.'
487
+ $ref: '#/components/schemas/niRoaming'
488
+ ip:
489
+ description: 'Information about the provided IP address'
490
+ $ref: '#/components/schemas/niIP'
491
+ ip_warnings:
492
+ type: string
493
+ description: 'Warning levels for `ip`'
494
+ enum:
495
+ - unknown
496
+ - no_warning
497
+ example: 'no_warning'
498
+ caller_identity:
499
+ description: 'Information about the roaming status for `number`. This is applicable to mobile numbers only.'
500
+ $ref: '#/components/schemas/niCallerIdentity'
501
+ # END
502
+ caller_name:
503
+ type: string
504
+ 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.'
505
+ example: 'John Smith'
506
+ last_name:
507
+ type: string
508
+ 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.'
509
+ example: 'Smith'
510
+ first_name:
511
+ type: string
512
+ 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.'
513
+ example: 'John'
514
+ caller_type:
515
+ type: string
516
+ 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.'
517
+ enum:
518
+ - business
519
+ - consumer
520
+ - unknown
521
+ example: 'consumer'
522
+ required:
523
+ - status
524
+ - status_message
525
+ - request_id
526
+ - international_format_number
527
+ - national_format_number
528
+ - country_code
529
+ - country_code_iso3
530
+ - country_name
531
+ - country_prefix
532
+ niStatus:
533
+ type: integer
534
+ enum:
535
+ - 0
536
+ - 1
537
+ - 3
538
+ - 4
539
+ - 5
540
+ - 9
541
+ - 19
542
+ - 43
543
+ - 44
544
+ - 45
545
+ - 999
546
+ description: |
547
+ Code | Text
548
+ -- | --
549
+ 0 | Success - request accepted for delivery by Nexmo.
550
+ 1 | Busy - you have made more requests in the last second than are permitted by your Nexmo account. Please retry.
551
+ 3 | Invalid - your request is incomplete and missing some mandatory parameters.
552
+ 4 | Invalid credentials - the _api_key_ or _api_secret_ you supplied is either not valid or has been disabled.
553
+ 5 | Internal Error - the format of the recipient address is not valid.
554
+ 9 | Partner quota exceeded - your Nexmo account does not have sufficient credit to process this request.
555
+
556
+ ## Standard and Advanced only
557
+
558
+ Code | Text
559
+ -- | --
560
+ 19 | Facility Not Allowed - your request makes use of a facility that is not enabled on your account.
561
+ 43, 44, 45 | Live mobile lookup not returned. Not all return parameters are available.
562
+ 999 | Request unparseable.
563
+ niCarrier:
564
+ type: object
565
+ properties:
566
+ network_code:
567
+ type: string
568
+ 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.'
569
+ xml:
570
+ attribute: true
571
+ example: '12345'
572
+ name:
573
+ type: string
574
+ description: 'The full name of the carrier that `number` is associated with.'
575
+ xml:
576
+ attribute: true
577
+ example: 'Acme Inc'
578
+ country:
579
+ type: string
580
+ description: 'The country that `number` is associated with. This is in ISO 3166-1 alpha-2 format.'
581
+ xml:
582
+ attribute: true
583
+ example: 'GB'
584
+ network_type:
585
+ type: string
586
+ description: 'The type of network that `number` is associated with.'
587
+ enum:
588
+ - mobile
589
+ - landline
590
+ - landline_premium
591
+ - landline_tollfree
592
+ - virtual
593
+ - unknown
594
+ - pager
595
+ xml:
596
+ attribute: true
597
+ example: 'mobile'
598
+ niRoaming:
599
+ type: object
600
+ properties:
601
+ status:
602
+ type: string
603
+ description: 'Is `number` outside its home carrier network.'
604
+ enum:
605
+ - unknown
606
+ - roaming
607
+ - not_roaming
608
+ xml:
609
+ attribute: true
610
+ roaming_country_code:
611
+ type: string
612
+ 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.'
613
+ xml:
614
+ attribute: true
615
+ roaming_network_code:
616
+ type: string
617
+ description: 'If `number` is `roaming`, this is the id of the carrier network `number` is roaming in.'
618
+ xml:
619
+ attribute: true
620
+ roaming_network_name:
621
+ type: string
622
+ description: 'If `number` is `roaming`, this is the name of the carrier network `number` is roaming in.'
623
+ xml:
624
+ attribute: true
625
+ niIP:
626
+ type: object
627
+ properties:
628
+ address:
629
+ type: string
630
+ description: 'The ip address you specified in the request.'
631
+ example: '123.0.0.255'
632
+ ip_match_level:
633
+ type: string
634
+ description: 'The match status between ip and number parameters.'
635
+ enum:
636
+ - 'country'
637
+ - 'mismatch'
638
+ example: 'country'
639
+ ip_country:
640
+ type: string
641
+ description: 'The country that `ip` is allocated to.'
642
+ example: 'GB'
643
+ ip_city:
644
+ type: string
645
+ description: 'The city that `ip` is allocated to.'
646
+ example: 'London'
647
+ niCallerIdentity:
648
+ type: object
649
+ properties:
650
+ caller_type:
651
+ type: string
652
+ 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.'
653
+ enum:
654
+ - business
655
+ - consumer
656
+ - unknown
657
+ example: 'consumer'
658
+ caller_name:
659
+ type: string
660
+ 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.'
661
+ example: 'John Smith'
662
+ first_name:
663
+ type: string
664
+ 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.'
665
+ example: 'John'
666
+ last_name:
667
+ type: string
668
+ 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.'
669
+ example: 'Smith'
670
+ subscription_type:
671
+ type: string
672
+ # @TODO: description: ''
673
+ example: 'unknown'
674
+
675
+ securitySchemes:
676
+ apiKey:
677
+ type: apiKey
678
+ name: api_key
679
+ in: query
680
+ description: 'You can find your API key in your [account overview](https://dashboard.nexmo.com/account-overview)'
681
+ apiSecret:
682
+ type: apiKey
683
+ name: api_secret
684
+ in: query
685
+ description: 'You can find your API secret in your [account overview](https://dashboard.nexmo.com/account-overview)'
data/definitions/sms.yml CHANGED
@@ -169,6 +169,10 @@ components:
169
169
  description: '**Advanced**: The availability for an SMS in milliseconds. Depends on `type` parameter having the value `wappush`.'
170
170
  type: string
171
171
  example: https://example.com
172
+ client-ref:
173
+ description: '**Advanced**: You can optionally include your own reference of up to 40 characters.'
174
+ type: string
175
+ example: my-personal-reference'
172
176
  Error:
173
177
  type: object
174
178
  properties: