-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path_spec_.yaml
More file actions
10497 lines (10272 loc) · 467 KB
/
Copy path_spec_.yaml
File metadata and controls
10497 lines (10272 loc) · 467 KB
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
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
572
573
574
575
576
577
578
579
580
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
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
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
version: 1.0.0
title: RELAY REST API (previous version)
description: >
Welcome to SignalWire's Relay REST API. Relay is the next generation of
interactive communication APIs available at SignalWire, and the REST API is
a set of endpoints that make interacting with Relay, simple and familiar.
termsOfService: https://signalwire.com/legal/signalwire-cloud-agreement
externalDocs:
url: https://developer.signalwire.com
description: Find more information about this and other SignalWire APIs.
servers:
- url: https://{space_name}.signalwire.com/api/relay/rest
variables:
space_name:
default: YOUR_SPACE
description: Your SignalWire Space's subdomain.
security:
- basic_auth: []
components:
securitySchemes:
basic_auth:
type: http
scheme: basic
responses:
'204':
description: No Content
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'422':
description: Unprocessable Entity
content:
application/json:
schema:
$ref: '#/components/schemas/error'
schemas:
domain_app_call_handlers:
oneOf:
- type: object
properties:
call_handler:
type: string
enum: [relay_topic]
description: Specifies that this domain application uses a Relay topic handler
call_relay_topic:
type: string
description: A string representing the Relay topic to forward incoming calls to.
example: 'office'
call_relay_topic_status_callback_url:
type: string
description: A string representing a URL to send status change messages to.
example: "https://myapplication/handle_relay_callbacks"
required:
- call_handler
- call_relay_topic
- type: object
properties:
call_handler:
type: string
enum: [relay_application]
description: Specifies that this domain application uses a Relay application handler
call_relay_application:
type: string
description: A string representing the Relay Application to forward incoming calls to.
example: 'my-relay-app'
required:
- call_handler
- call_relay_application
- type: object
properties:
call_handler:
type: string
enum: [laml_webhooks]
description: Specifies that this domain application uses LaML webhooks
call_request_url:
type: string
description: A string representing the LaML URL to access when a call is received.
example: "https://example.com/laml"
call_request_method:
type: string
enum: [GET, POST]
description: A string representing the HTTP method to use with `call_request_url`.
example: POST
call_fallback_url:
type: string
description: A string representing the LaML URL to access when the call to `call_request_url` fails.
example: "https://example.com/fallback"
call_fallback_method:
type: string
enum: [GET, POST]
description: A string representing the HTTP method to use with `call_fallback_url`.
example: POST
call_status_callback_url:
type: string
description: A string representing a URL to send status change messages to.
example: "https://example.com/status"
call_status_callback_method:
type: string
enum: [GET, POST]
description: A string representing the HTTP method to use with `call_status_callback_url`.
example: POST
required:
- call_handler
- call_request_url
- call_request_method
- type: object
properties:
call_handler:
type: string
enum: [laml_application]
description: Specifies that this domain application uses a LaML application
call_laml_application_id:
type: string
description: A string representing the ID of the LaML application to forward incoming calls to.
example: "app-123456"
required:
- call_handler
- call_laml_application_id
- type: object
properties:
call_handler:
type: string
enum: [video_room]
description: Specifies that this domain application uses a Video Room
call_video_room_id:
type: string
format: uuid
description: A string representing the ID of the Video Room to forward incoming calls to.
example: fe4093d9-58c2-4931-b4b9-5679f82652c6
required:
- call_handler
- call_video_room_id
- type: object
properties:
call_handler:
type: string
enum: [relay_script]
description: Specifies that this domain application uses a Relay script
call_relay_script_url:
type: string
description: A string representing the URL of the Relay script to execute when a call is received.
example: "https://example.com/relay-script"
required:
- call_handler
- call_relay_script_url
- type: object
properties:
call_handler:
type: string
enum: [dialogflow]
description: Specifies that this domain application uses a Dialogflow agent
call_dialogflow_agent_id:
type: string
format: uuid
description: A string representing the ID of the Dialogflow Agent to forward incoming calls to.
example: fe4093d9-58c2-4931-b4b9-5679f82652c6
required:
- call_handler
- call_dialogflow_agent_id
- type: object
properties:
call_handler:
type: string
enum: [ai_agent]
description: Specifies that this domain application uses an AI agent
call_ai_agent_id:
type: string
format: uuid
description: A string representing the ID of the AI Agent to forward incoming calls to.
example: fe4093d9-58c2-4931-b4b9-5679f82652c6
required:
- call_handler
- call_ai_agent_id
- type: object
properties:
call_handler:
type: string
enum: [call_flow]
description: Specifies that this domain application uses a Call Flow
call_flow_id:
type: string
format: uuid
description: A string representing the ID of the Call Flow to forward incoming calls to.
example: fe4093d9-58c2-4931-b4b9-5679f82652c6
call_flow_version:
type: string
enum: [working_copy, current_deployed]
description: A string representing the version of your Call Flow you'd like to use.
example: working_copy
required:
- call_handler
- call_flow_id
- type: object
properties:
call_handler:
type: string
enum: [relay_context]
description: Specifies that this domain application uses a Relay context (Deprecated)
call_relay_context:
type: string
description: >-
A string representing the Relay context to forward incoming calls to.
This handler type is deprecated.
example: 'office'
deprecated: true
call_relay_context_status_callback_url:
type: string
description: >-
A string representing a URL to send status change messages to.
This property is deprecated.
example: "https://myapplication/handle_relay_callbacks"
deprecated: true
required:
- call_handler
- call_relay_context
QueueMember:
type: object
properties:
call_id:
type: string
format: uuid
example: "596e2dea-a269-4765-a0b4-01b82d11c120"
date_enqueued:
type: string
format: date-time
description: When the queue member was last enqueued.
example: "2025-06-22T17:44:08.126Z"
position:
type: integer
description: Queue member position in the queue.
example: 2
uri:
type: string
description: The URL of this queue member.
example: "/api/relay/rest/queues/596e2dea-a269-4765-a0b4-01b82d11c120/members/596e2dea-a269-4765-a0b4-01b82d11c120"
wait_time:
type: integer
description: Wait time in seconds since the member was enqueued. If not yet enqueued, it will be null.
example: 172975
project_id:
type: string
description: The ID of the project associated with this queue member.
example: "d421473b-d696-449a-a1a1-4ddd83d2d0e5"
queue_id:
type: string
description: The ID of the queue associated with this queue member.
example: "596e2dea-a269-4765-a0b4-01b82d11c120"
required:
- call_id
- position
- uri
- project_id
- queue_id
error:
type: object
properties:
type:
type: string
code:
type: string
message:
type: string
attribute:
type: string
url:
type: string
format: uri
required:
- type
- code
- message
- url
example:
type: validation_error
code: invalid_parameter
message: Name must be present
attribute: name
url: https://developer.signalwire.com/rest/signalwire-rest/overview/error-codes#field-invalid-parameter
pagination:
type: object
properties:
self:
type: string
example: /api/relay/rest/queues?page_number=0&page_size=50
first:
type: string
example: /api/relay/rest/queues?page_size=50
next:
type: string
example: /api/relay/rest/queues?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca
prev:
type: string
example: /api/relay/rest/queues?page_number=0&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca
RecordingListResponse:
type: object
required:
- data
- links
properties:
data:
type: array
items:
$ref: '#/components/schemas/RecordingResponse'
links:
$ref: '#/components/schemas/RecordingPaginationResponse'
RecordingPaginationResponse:
type: object
required:
- self
- first
- next
properties:
self:
type: string
format: uri
example: https://{space_name}.signalwire.com/api/relay/rest/recordings?page_number=0&page_size=50
description: Link of the current page
first:
type: string
format: uri
example: https://{space_name}.signalwire.com/api/relay/rest/recordings?page_number=0&page_size=50
description: Link to the first page
next:
type: string
format: uri
example: https://{space_name}.signalwire.com/api/relay/rest/recordings?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca
description: Link to the next page
RecordingResponse:
oneOf:
- type: object
title: PSTN
required:
- relay_pstn_leg_id
properties:
relay_pstn_leg_id:
type: string
format: uuid
description: ID of the PSTN leg associated with the recording.
- type: object
title: SIP
required:
- relay_sip_leg_id
properties:
relay_sip_leg_id:
type: string
format: uuid
description: ID of the SIP leg associated with the recording.
- type: object
title: WebRTC
required:
- relay_webrtc_leg_id
properties:
relay_webrtc_leg_id:
type: string
format: uuid
description: ID of the WebRTC leg associated with the recording.
allOf:
- type: object
required:
- id
- project_id
- created_at
- updated_at
- duration_in_seconds
- error_code
- price
- price_unit
- status
- url
- stereo
- byte_size
- track
properties:
id:
type: string
example: d369a402-7b43-4512-8735-9d5e1f387814
description: Unique ID of the recording.
project_id:
type: string
example: d369a402-7b43-4512-8735-9d5e1f387814
description: Unique ID of the project.
created_at:
type: string
format: date-time
example: 2024-10-17T14:14:53Z
description: Date and time when the recording was created.
updated_at:
type: string
format: date-time
example: 2024-10-17T14:14:53Z
description: Date and time when the recording was last updated.
duration_in_seconds:
type: integer
format: int32
example: 2
description: Duration of the recording in seconds.
error_code:
type: string
nullable: true
example: null
description: Error code if the recording failed.
price:
type: number
example: 0.05
description: Price of the recording.
price_unit:
type: string
example: USD
description: Currency unit for the price.
status:
type: string
example: completed
description: Status of the recording.
url:
type: string
format: uri
example: https://example.com/recording.mp3
description: URL of the recording file.
stereo:
type: boolean
example: false
description: Indicates whether the recording is stereo.
byte_size:
type: integer
format: int32
nullable: true
example: 10
description: Size of the recording file in bytes.
track:
type: string
example: inbound
description: Audio track of the recording.
uuid:
type: string
format: uuid
description: Universal Unique Identifier.
Queue:
type: object
required:
- id
- project_id
- friendly_name
- uri
properties:
id:
type: string
format: uuid
example: aae131db-214c-46f5-88b6-92004f8467cf
project_id:
type: string
format: uuid
example: c6c4679b-716a-456a-9e41-a03821005005
average_wait_time:
type: integer
format: int32
example: 0
current_size:
type: integer
format: int32
example: 0
date_created:
type: string
format: date-time
example: 2025-05-30T15:16:52Z
date_updated:
type: string
format: date-time
example: 2025-05-30T15:16:52Z
friendly_name:
type: string
example: test
max_size:
type: integer
format: int32
example: 5
uri:
type: string
format: uri
example: /api/relay/rest/queues/aae131db-214c-46f5-88b6-92004f8467cf
QueueListResponse:
type: object
required:
- data
- links
properties:
data:
type: array
items:
$ref: '#/components/schemas/Queue'
links:
$ref: '#/components/schemas/pagination'
UpdateQueueRequest:
type: object
properties:
name:
type: string
example: Name 2
max_size:
type: integer
format: int32
example: 600
parameters:
RecordingPathID:
name: id
in: path
required: true
description: Unique ID of a Recording.
schema:
$ref: '#/components/schemas/uuid'
QueuePathID:
name: id
in: path
required: true
description: Unique ID of a Queue.
schema:
$ref: '#/components/schemas/uuid'
tags:
- name: Addresses
- name: Campaign Registry (Beta)
- name: Domain Applications
- name: Number Groups
- name: Number Group Membership
- name: Phone Numbers
- name: Imported Phone Numbers
- name: Phone Number Lookup
- name: Recordings
- name: Signalwire Access Tokens
- name: SIP Endpoints
- name: SIP Profile
- name: Multi-Factor Authentication
description: >
Multi-factor authentication, commonly known as MFA, adds security to your
application by requesting a user to be verified via voice or via text
message.
It can also be used for One Time Password flows (OTP).
SignalWire will place a voice call or send a message to the destination
you specify, and create an unique code for them. When your application
receives input from the user, it will use the verification endpoint to
check that the ID for the request and the token match. The API keeps track
of attempts.
- name: Verified Caller IDs
description: >
This is an object that represents a phone number that is not purchased
through SignalWire. In order place a call from a phone number not
purchased through SignalWire, you must first verify that you are the owner
of that number. For more information on Verified Caller IDs you can [read
about
them](https://signalwire.com/blogs/product/verified-caller-id-local-number-portability).
### How This Works
In order to use a number that you have not purchased through SignalWire as
a Caller ID, value you must first verify that you own that number. You are
limited to 10 calls to a given number with a one week period.
1. Create a Verified Caller ID Object using the appropriate REST endpoint.
2. The SignalWire platform will place a call to the phone number that you specified.
* You may request a redial by submitting a request to the Redial Verification Call Endpoint.
3. When the phone is answered, we will read a six-digit code.
4. To verify that you are the owner, take that number and submit it to the Validate Verifications Endpoint.
* You have 5 attempts to enter the code correctly.
- name: Queues
paths:
/addresses:
get:
operationId: list_addresses
summary: List all Addresses.
description: >
Returns a list of your Addresses. The addresses are returned sorted by
creation date, with the most recent appearing first.
#### Permissions
The API token must include the following scopes: _Numbers_.
tags:
- Addresses
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
links:
type: object
properties:
self:
type: string
first:
type: string
next:
type: string
prev:
type: string
data:
type: array
items:
allOf:
- type: object
properties:
id:
type: string
description: >-
The unique identifier of the Address on
SignalWire. This can be used to show or delete
the address programmatically.
format: uuid
required:
- id
- type: object
properties:
label:
type: string
description: >-
A friendly name given to the address to help
distinguish and search for different addresses
within your project.
example: My Address
country:
type: string
description: >-
The [ISO 3166 Alpha
2](https://www.iban.com/country-codes) country
code.
example: US
first_name:
type: string
description: >-
First name of the occupant associated with this
address.
example: Emmett
last_name:
type: string
description: >-
Last name of the occupant associated with this
address.
example: Brown
street_number:
type: string
description: The number portion of the street address.
example: '1640'
street_name:
type: string
description: The name portion of the street address.
example: Riverside Drive
address_type:
type: string
description: >-
(Optional) If the address is divided into
multiple sub-addresses, such as an apartment or
office building, this identifies how the address
is divided. If the address is a single occupant
address, `address_type` may be omitted. Possible
values are: `Apartment`, `Basement`, `Building`,
`Department`, `Floor`, `Office`, `Penthouse`,
`Suite`, `Trailer`, `Unit`.
example: Apartment
address_number:
type: string
description: >-
(Optional) If the address is divided into
multiple sub-addresses, such as an apartment or
office building, this identifies the particular
sub-address. If the address is a single occupant
address, `address_number` may be omitted.
example: '42'
city:
type: string
description: The city portion of the street address.
example: Alexandria
state:
type: string
description: >-
The state/province/region of the street address.
In the USA and Canada, use the two-letter
abbreviated form, such as `CA` for California.
example: CA
postal_code:
type: string
description: The postal code of the street address.
example: '91905'
required:
- label
- country
- first_name
- last_name
- street_number
- street_name
- city
- state
- postal_code
post:
operationId: create_address
summary: Create an address
description: |
To create a new Address, make a POST request to the Address resource.
#### Permissions
The API token must include the following scopes: _Numbers_.
tags:
- Addresses
requestBody:
required: true
content:
application/json:
schema:
allOf:
- type: object
properties:
label:
type: string
description: >-
A friendly name given to the address to help distinguish
and search for different addresses within your project.
example: My Address
country:
type: string
description: >-
The [ISO 3166 Alpha
2](https://www.iban.com/country-codes) country code.
example: US
first_name:
type: string
description: First name of the occupant associated with this address.
example: Emmett
last_name:
type: string
description: Last name of the occupant associated with this address.
example: Brown
street_number:
type: string
description: The number portion of the street address.
example: '1640'
street_name:
type: string
description: The name portion of the street address.
example: Riverside Drive
address_type:
type: string
description: >-
(Optional) If the address is divided into multiple
sub-addresses, such as an apartment or office building,
this identifies how the address is divided. If the
address is a single occupant address, `address_type` may
be omitted. Possible values are: `Apartment`,
`Basement`, `Building`, `Department`, `Floor`, `Office`,
`Penthouse`, `Suite`, `Trailer`, `Unit`.
example: Apartment
address_number:
type: string
description: >-
(Optional) If the address is divided into multiple
sub-addresses, such as an apartment or office building,
this identifies the particular sub-address. If the
address is a single occupant address, `address_number`
may be omitted.
example: '42'
city:
type: string
description: The city portion of the street address.
example: Alexandria
state:
type: string
description: >-
The state/province/region of the street address. In the
USA and Canada, use the two-letter abbreviated form,
such as `CA` for California.
example: CA
postal_code:
type: string
description: The postal code of the street address.
example: '91905'
required:
- label
- country
- first_name
- last_name
- street_number
- street_name
- city
- state
- postal_code
responses:
'201':
description: CREATED
content:
application/json:
schema:
allOf:
- type: object
properties:
id:
type: string
description: >-
The unique identifier of the Address on SignalWire.
This can be used to show or delete the address
programmatically.
format: uuid
required:
- id
- type: object
properties:
label:
type: string
description: >-
A friendly name given to the address to help
distinguish and search for different addresses within
your project.
example: My Address
country:
type: string
description: >-
The [ISO 3166 Alpha
2](https://www.iban.com/country-codes) country code.
example: US
first_name:
type: string
description: >-
First name of the occupant associated with this
address.
example: Emmett
last_name:
type: string
description: >-
Last name of the occupant associated with this
address.
example: Brown
street_number:
type: string
description: The number portion of the street address.
example: '1640'
street_name:
type: string
description: The name portion of the street address.
example: Riverside Drive
address_type:
type: string
description: >-
(Optional) If the address is divided into multiple
sub-addresses, such as an apartment or office
building, this identifies how the address is divided.
If the address is a single occupant address,
`address_type` may be omitted. Possible values are:
`Apartment`, `Basement`, `Building`, `Department`,
`Floor`, `Office`, `Penthouse`, `Suite`, `Trailer`,
`Unit`.
example: Apartment
address_number:
type: string
description: >-
(Optional) If the address is divided into multiple
sub-addresses, such as an apartment or office
building, this identifies the particular sub-address.
If the address is a single occupant address,
`address_number` may be omitted.
example: '42'
city:
type: string
description: The city portion of the street address.
example: Alexandria
state:
type: string
description: >-
The state/province/region of the street address. In
the USA and Canada, use the two-letter abbreviated
form, such as `CA` for California.
example: CA
postal_code:
type: string
description: The postal code of the street address.
example: '91905'
required:
- label
- country
- first_name
- last_name
- street_number
- street_name
- city
- state
- postal_code
/addresses/{id}:
get:
operationId: get_address
summary: Retrieve an Address
description: >
Retrieves the details of an Address that has been previously created.
Use the unique ID that was returned from your previous request to
identify the specific instance.
#### Permissions
The API token must include the following scopes: _Numbers_.
tags:
- Addresses
parameters:
- name: id
in: path
description: Unique ID of the address
required: true
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
allOf:
- type: object
properties:
id:
type: string
description: >-
The unique identifier of the Address on SignalWire.
This can be used to show or delete the address
programmatically.
format: uuid
required:
- id
- type: object
properties:
label:
type: string
description: >-
A friendly name given to the address to help
distinguish and search for different addresses within
your project.
example: My Address
country:
type: string
description: >-
The [ISO 3166 Alpha
2](https://www.iban.com/country-codes) country code.
example: US
first_name:
type: string
description: >-
First name of the occupant associated with this
address.
example: Emmett
last_name:
type: string
description: >-
Last name of the occupant associated with this
address.
example: Brown
street_number:
type: string
description: The number portion of the street address.
example: '1640'
street_name:
type: string
description: The name portion of the street address.
example: Riverside Drive
address_type:
type: string
description: >-
(Optional) If the address is divided into multiple
sub-addresses, such as an apartment or office
building, this identifies how the address is divided.
If the address is a single occupant address,
`address_type` may be omitted. Possible values are:
`Apartment`, `Basement`, `Building`, `Department`,
`Floor`, `Office`, `Penthouse`, `Suite`, `Trailer`,
`Unit`.
example: Apartment
address_number:
type: string