-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.json
More file actions
6806 lines (6806 loc) · 485 KB
/
Copy pathopenapi.json
File metadata and controls
6806 lines (6806 loc) · 485 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.1.0",
"info": {
"title": "NGP VAN API (community OpenAPI spec)",
"version": "0.1.0",
"description": "Community-maintained OpenAPI spec for the NGP VAN API, reverse-engineered from https://docs.ngpvan.com, the NGPVAN/van-cli source, and live probing of the sandbox API. The spec describes the API's actual behavior as observed. Where that behavior deviates from the official docs, the comparison is recorded out of band in `x-docs-discrepancy` fields (hidden by most documentation renderers) and summarized in [DISCREPANCIES.md](https://github.com/NickCrews/van-openapi/blob/main/DISCREPANCIES.md); research evidence and confidence notes live in `x-provenance` fields.\n\nSource repository: https://github.com/NickCrews/van-openapi — file issues and corrections there. This spec is not published or endorsed by NGP VAN; for questions about the API itself, contact APIDevelopers@ngpvan.com.\n\nSee [STATUS.md](https://github.com/NickCrews/van-openapi/blob/main/STATUS.md) for per-endpoint research status.\n\n**The API is not callable from a browser.** Its CORS support is incomplete: `api.securevan.com` answers the preflight correctly — reflecting the request origin and allowing the `Authorization` header — but omits `Access-Control-Allow-Origin` from the actual response (observed 2026-08-03; a `200` comes back with no `access-control-*` headers at all). A browser therefore sends the request, receives the response, and then blocks the page from reading it. `Access-Control-Allow-Credentials` is missing as well, which Basic auth would separately require. This affects only browser-based callers; server-side clients such as cURL, Python, or Apps Script are unaffected, since CORS is enforced by the browser rather than the server.",
"contact": {
"name": "van-openapi on GitHub",
"url": "https://github.com/NickCrews/van-openapi"
}
},
"externalDocs": {
"description": "Source repository (NickCrews/van-openapi)",
"url": "https://github.com/NickCrews/van-openapi"
},
"servers": [
{
"url": "https://api.securevan.com/v4",
"description": "Production / sandbox (the API key determines the committee and database)"
}
],
"security": [
{
"basicAuth": []
}
],
"tags": [
{
"name": "People",
"description": "Look up, search, create and update people — the contacts and voters that most of the API hangs off."
},
{
"name": "Notes",
"description": "Free-text notes attached to a person, and the note categories available in the current context."
},
{
"name": "Survey Questions",
"description": "Survey questions and the canned responses canvassers can record against them."
},
{
"name": "Echoes",
"description": "Test endpoint for checking auth and connectivity. Writes nothing."
}
],
"x-traps": [
{
"text": "Related collections are `null` unless `$expand` asks for them. A person with no `phones` key is not a person without phones. The `$expand` vocabulary differs between operations — `getPerson` accepts 23 sections, `searchPeople` only four.",
"see": [
"person-collections-null-until-expanded",
"person-expand-set-is-policed"
]
},
{
"text": "Six scalar person fields — `nickname`, `website`, `jobTitle` and the three `contactMethodPreference*` fields — are also gated behind `$expand=preferences`. Write one and read the person back plainly and the write looks discarded.",
"see": [
"update-writes-every-scalar-field"
]
},
{
"text": "`findPerson` returning 404 means \"no match\", not a broken route — and usually means the criteria fell short of the minimum combination rather than that the person is absent.",
"see": [
"findPerson",
"find-below-threshold-is-unmatched"
]
},
{
"text": "Phone search wants bare 10 digits. `9072223333` matches; `(907) 222-3333` is accepted and then silently matches nobody.",
"see": [
"search-phone-must-be-bare-digits"
]
},
{
"text": "Writes append contact methods, they never replace them. Updating a person with a phone adds a phone, so writing back a record you just read duplicates its contact methods.",
"see": [
"update-appends-contact-methods"
]
},
{
"text": "`mergePerson` is irreversible, and `whatIf` only accepts the literal `true` — any other value is parsed as false and the merge happens for real.",
"see": [
"mergePerson",
"merge-whatif-requires-literal-true"
]
},
{
"text": "Text matching is case-insensitive *prefix*, never substring: `helmina` does not find Wilhelmina.",
"see": [
"search-is-a-case-insensitive-prefix-match"
]
},
{
"text": "A `vanId` in a request body overrides every other criterion, and on the create endpoints a plausible-looking id is echoed back as a match without ever being checked against the database.",
"see": [
"find-by-vanid-overrides-criteria",
"create-echoes-a-plausible-vanid-blindly"
]
},
{
"text": "429 carries no `Retry-After`; the suggested wait appears only in the error text, and the limit is per API key across all endpoints.",
"see": []
},
{
"text": "There is no aggregate or count-by-attribute endpoint. The only total is `count` in the pagination envelope, which counts matches for a query you already had to specify — and every search parameter demands a value, so there is no \"all people\" query to count.",
"see": [
"searchPeople"
]
}
],
"paths": {
"/people/{vanId}": {
"get": {
"operationId": "getPerson",
"summary": "Get a person by VAN id",
"description": "Retrieves a person record. Related collections (emails, phones, addresses, …) are null unless requested via $expand, and empty arrays when expanded but absent. An unknown, zero, or negative vanId returns the standard 404 error envelope; a non-integer path segment does not match the route and returns an HTML 404 page instead.",
"tags": [
"People"
],
"x-keywords": [
"get person",
"fetch person",
"read person",
"retrieve",
"by vanId",
"person details",
"full record",
"expand",
"phones",
"emails",
"addresses",
"custom fields",
"scores",
"districts"
],
"x-task": "Read one person in full",
"parameters": [
{
"name": "vanId",
"in": "path",
"required": true,
"description": "VAN id of the person.",
"x-docs-discrepancy": "Official docs type this path parameter as string (default \"100476252\"); the route only matches integers — a non-integer segment returns an IIS HTML 404 page (observed 2026-08-03).",
"schema": {
"type": "integer",
"format": "int32",
"minimum": 1
},
"example": 102714507
},
{
"name": "$expand",
"in": "query",
"description": "Related sections to include, comma-delimited eg 'addresses,emails'. Anything outside this set returns 400 INVALID_PARAMETER with a hint listing the valid values. Two sections in the set are still refused in a My Campaign context: `scores` with 403 FORBIDDEN and `pollingLocation` with 400 BAD_REQUEST.",
"x-docs-discrepancy": "Official docs list only 10 valid $expand values; the API's own INVALID_PARAMETER hint (observed 2026-08-03) lists these 23.",
"style": "form",
"explode": false,
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"addresses",
"biography",
"cases",
"codes",
"contributionHistory",
"customFields",
"customProperties",
"disclosureFieldValues",
"districts",
"electionRecords",
"emails",
"externalIds",
"membershipStatuses",
"notes",
"organizationRoles",
"phones",
"pollingLocation",
"preferences",
"primaryContact",
"recordedAddresses",
"reportedDemographics",
"scores",
"suppressions"
]
}
},
"example": [
"emails",
"phones",
"addresses"
]
}
],
"responses": {
"200": {
"description": "The person record. Clients that follow redirects can also land here with `text/html` instead: a path segment containing `<`, `>`, `*` or `&` is bounced to the web application's error page, which answers 200 with HTML (see the 302 response).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Person"
},
"examples": {
"expanded": {
"summary": "Sandbox test person with $expand=emails,phones,addresses (abridged: null-only fields omitted)",
"value": {
"vanId": 102714558,
"firstName": "Grace",
"lastName": "Testperson",
"contactSource": "API",
"contactMode": "Person",
"salutation": "Grace",
"formalSalutation": "Grace Testperson",
"envelopeName": "Grace Testperson",
"formalEnvelopeName": "Grace Testperson",
"isDeceased": false,
"dateCreated": "2026-08-03T16:31:00Z",
"dateAcquired": "0001-01-01T00:00:00Z",
"emails": [
{
"type": "W",
"email": "grace.testperson@example.com",
"dateCreated": "2026-08-03T16:31:00Z",
"isPreferred": true,
"isSubscribed": null,
"subscriptionStatus": "N"
}
],
"phones": [
{
"phoneId": 1021629,
"phoneNumber": "9075550142",
"dialingPrefix": "1",
"countryCode": "US",
"ext": "123",
"dateCreated": "2026-08-03T16:31:00Z",
"phoneType": "Personal",
"deviceType": "Cell",
"isPreferred": true,
"isBest": true,
"isDisclosure": true,
"smsOptInStatus": "Opt-In",
"phoneOptInStatus": "Opt-In",
"isCellPhoneExchange": false,
"isCellStatus": null,
"tags": null
}
],
"addresses": [
{
"addressId": 1206601,
"addressLine1": "123 Test St",
"addressLine2": "Apt 4",
"addressLine3": null,
"unitNo": null,
"city": "Anchorage",
"stateOrProvince": "AK",
"zipOrPostalCode": "99501",
"geoLocation": null,
"countryCode": "US",
"preview": "123 Test St Apt 4",
"type": "Voting",
"isPreferred": true,
"isBest": true,
"streetAddress": null,
"displayMode": "Standardized"
},
{
"addressId": 1206601,
"addressLine1": "123 Test St",
"addressLine2": "Apt 4",
"addressLine3": null,
"unitNo": null,
"city": "Anchorage",
"stateOrProvince": "AK",
"zipOrPostalCode": "99501",
"geoLocation": null,
"countryCode": "US",
"preview": "123 Test St Apt 4",
"type": "Mailing",
"isPreferred": true,
"isBest": true,
"streetAddress": null,
"displayMode": "Standardized"
}
]
}
},
"person-collections-null-until-expanded/1": {
"summary": "Without $expand, every collection is null — including the email we just wrote.",
"description": "Emails, phones and addresses come back null — not empty — unless the request names them in $expand. Expanded, a section the person actually has is an array of entries and a section they lack is an empty array, so null always means 'not requested', never 'none'.",
"x-transcript": "person-collections-null-until-expanded",
"value": {
"vanId": 100000001,
"firstName": "Nadia",
"lastName": "Okonkwo",
"middleName": null,
"suffix": null,
"title": null,
"sourceFileTitle": null,
"sourceFileFirstName": null,
"sourceFileMiddleName": null,
"sourceFileLastName": null,
"sourceFileSuffix": null,
"contactSource": "API",
"contactMode": "Person",
"organizationContactCommonName": null,
"organizationContactOfficialName": null,
"salutation": "Nadia",
"formalSalutation": "Nadia Okonkwo",
"additionalSalutation": null,
"preferredPronoun": null,
"pronouns": null,
"namePronunciation": null,
"envelopeName": "Nadia Okonkwo",
"formalEnvelopeName": "Nadia Okonkwo",
"additionalEnvelopeName": null,
"contactMethodPreferenceCode": null,
"contactMethodPreferenceId": null,
"contactMethodPreferenceName": null,
"assistantName": null,
"nickname": null,
"website": null,
"professionalSuffix": null,
"party": null,
"employer": null,
"occupation": null,
"jobTitle": null,
"sex": null,
"dateOfBirth": null,
"isDeceased": false,
"dateCreated": "2026-01-01T00:00:00Z",
"dateAcquired": "0001-01-01T00:00:00Z",
"selfReportedRace": null,
"selfReportedEthnicity": null,
"selfReportedRaces": null,
"selfReportedEthnicities": null,
"selfReportedGenders": null,
"selfReportedSexualOrientations": null,
"selfReportedLanguagePreference": null,
"selfReportedLanguagePreferences": null,
"emails": null,
"phones": null,
"addresses": null,
"recordedAddresses": null,
"pollingLocation": null,
"earlyVoteLocation": null,
"identifiers": null,
"codes": null,
"customFields": null,
"primaryCustomField": null,
"contributionSummary": null,
"suppressions": null,
"caseworkCases": null,
"caseworkIssues": null,
"caseworkStories": null,
"notes": null,
"scores": null,
"customProperties": null,
"electionRecords": null,
"membershipStatus": null,
"organizationRoles": null,
"districts": null,
"surveyQuestionResponses": null,
"finderNumber": null,
"biographyImageUrl": null,
"biographyText": null,
"biographyHtml": null,
"primaryContact": null
}
},
"person-collections-null-until-expanded/2": {
"summary": "Expanded, the email appears and the phones the person lacks are [] rather than null.",
"description": "Emails, phones and addresses come back null — not empty — unless the request names them in $expand. Expanded, a section the person actually has is an array of entries and a section they lack is an empty array, so null always means 'not requested', never 'none'.",
"x-transcript": "person-collections-null-until-expanded",
"value": {
"vanId": 100000001,
"firstName": "Nadia",
"lastName": "Okonkwo",
"middleName": null,
"suffix": null,
"title": null,
"sourceFileTitle": null,
"sourceFileFirstName": null,
"sourceFileMiddleName": null,
"sourceFileLastName": null,
"sourceFileSuffix": null,
"contactSource": "API",
"contactMode": "Person",
"organizationContactCommonName": null,
"organizationContactOfficialName": null,
"salutation": "Nadia",
"formalSalutation": "Nadia Okonkwo",
"additionalSalutation": null,
"preferredPronoun": null,
"pronouns": null,
"namePronunciation": null,
"envelopeName": "Nadia Okonkwo",
"formalEnvelopeName": "Nadia Okonkwo",
"additionalEnvelopeName": null,
"contactMethodPreferenceCode": null,
"contactMethodPreferenceId": null,
"contactMethodPreferenceName": null,
"assistantName": null,
"nickname": null,
"website": null,
"professionalSuffix": null,
"party": null,
"employer": null,
"occupation": null,
"jobTitle": null,
"sex": null,
"dateOfBirth": null,
"isDeceased": false,
"dateCreated": "2026-01-01T00:00:00Z",
"dateAcquired": "0001-01-01T00:00:00Z",
"selfReportedRace": null,
"selfReportedEthnicity": null,
"selfReportedRaces": null,
"selfReportedEthnicities": null,
"selfReportedGenders": null,
"selfReportedSexualOrientations": null,
"selfReportedLanguagePreference": null,
"selfReportedLanguagePreferences": null,
"emails": [
{
"type": "P",
"email": "nadia.okonkwo@example.com",
"dateCreated": "2026-01-01T00:00:00Z",
"isPreferred": true,
"isSubscribed": true,
"subscriptionStatus": "S"
}
],
"phones": [],
"addresses": null,
"recordedAddresses": null,
"pollingLocation": null,
"earlyVoteLocation": null,
"identifiers": null,
"codes": null,
"customFields": null,
"primaryCustomField": null,
"contributionSummary": null,
"suppressions": null,
"caseworkCases": null,
"caseworkIssues": null,
"caseworkStories": null,
"notes": null,
"scores": null,
"customProperties": null,
"electionRecords": null,
"membershipStatus": null,
"organizationRoles": null,
"districts": null,
"surveyQuestionResponses": null,
"finderNumber": null,
"biographyImageUrl": null,
"biographyText": null,
"biographyHtml": null,
"primaryContact": null
}
}
}
},
"text/html": {
"schema": {
"type": "string"
},
"x-provenance": {
"lastProbed": "2026-08-03",
"note": "The VAN web app's \"Oops...something went wrong\" page, reached by following the request-validation 302. Documented so redirect-following clients (including the schemathesis stateful phase, which found it) conform."
}
}
}
},
"302": {
"$ref": "#/components/responses/RequestValidationRedirect"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/PersonNotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"x-codeSamples": [
{
"lang": "Shell",
"label": "Related collections are null until $expand asks for them",
"source": "# Emails, phones and addresses come back null — not empty — unless the\n# request names them in $expand. Expanded, a section the person actually has\n# is an array of entries and a section they lack is an empty array, so null\n# always means 'not requested', never 'none'.\n\n# A person with one email and nothing else.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/create' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Nadia\",\n \"lastName\": \"Okonkwo\",\n \"emails\": [\n {\n \"email\": \"nadia.okonkwo@example.com\"\n }\n ]\n }'\n# → 201 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Stored\"\n# }\n\n# Without $expand, every collection is null — including the email we just\n# wrote.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Nadia\",\n# \"lastName\": \"Okonkwo\",\n# \"middleName\": null,\n# \"suffix\": null,\n# \"title\": null,\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Nadia\",\n# \"formalSalutation\": \"Nadia Okonkwo\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Nadia Okonkwo\",\n# \"formalEnvelopeName\": \"Nadia Okonkwo\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": null,\n# \"employer\": null,\n# \"occupation\": null,\n# \"jobTitle\": null,\n# \"sex\": null,\n# \"dateOfBirth\": null,\n# \"isDeceased\": false,\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": null,\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }\n\n# Expanded, the email appears and the phones the person lacks are [] rather\n# than null.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001?%24expand=emails%2Cphones' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Nadia\",\n# \"lastName\": \"Okonkwo\",\n# \"middleName\": null,\n# \"suffix\": null,\n# \"title\": null,\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Nadia\",\n# \"formalSalutation\": \"Nadia Okonkwo\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Nadia Okonkwo\",\n# \"formalEnvelopeName\": \"Nadia Okonkwo\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": null,\n# \"employer\": null,\n# \"occupation\": null,\n# \"jobTitle\": null,\n# \"sex\": null,\n# \"dateOfBirth\": null,\n# \"isDeceased\": false,\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": [\n# {\n# \"type\": \"P\",\n# \"email\": \"nadia.okonkwo@example.com\",\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"isPreferred\": true,\n# \"isSubscribed\": true,\n# \"subscriptionStatus\": \"S\"\n# }\n# ],\n# \"phones\": [],\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }",
"x-transcript": "person-collections-null-until-expanded"
},
{
"lang": "Shell",
"label": "$expand values are policed, and two valid ones are refused here",
"source": "# A value outside the documented set is refused with INVALID_PARAMETER and a\n# hint listing every valid value. Two values inside the set are still\n# refused in a My Campaign context: `scores` with 403 and `pollingLocation`\n# with 400.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/create' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Emeka\",\n \"lastName\": \"Adeyemi\"\n }'\n# → 201 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Stored\"\n# }\n\n# An invented section. The hint in the refusal is the authoritative list.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001?%24expand=frisbees' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 400\n# {\n# \"errors\": [\n# {\n# \"code\": \"INVALID_PARAMETER\",\n# \"text\": \"'frisbees' is not a valid argument for the '$expand' parameter\",\n# \"properties\": [\n# \"$expand\"\n# ],\n# \"hint\": \"The only valid expand sections are: 'contributionHistory', 'addresses', 'phones', 'emails', 'codes', 'customFields', 'externalIds', 'preferences', 'recordedAddresses', 'reportedDemographics', 'suppressions', 'cases', 'customProperties', 'districts', 'electionRecords', 'membershipStatuses', 'notes', 'organizationRoles', 'scores', 'disclosureFieldValues', 'primaryContact', 'pollingLocation', 'biography'\"\n# }\n# ]\n# }\n\n# `scores` is in the valid set, but this context is refused it outright.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001?%24expand=scores' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 403\n# {\n# \"errors\": [\n# {\n# \"code\": \"FORBIDDEN\",\n# \"text\": \"May not request 'scores'\"\n# }\n# ]\n# }\n\n# `pollingLocation` is also in the set, and also refused — but as a 400.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001?%24expand=pollingLocation' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 400\n# {\n# \"errors\": [\n# {\n# \"code\": \"BAD_REQUEST\",\n# \"text\": \"May not request 'pollingLocation' in this context\"\n# }\n# ]\n# }",
"x-transcript": "person-expand-set-is-policed"
},
{
"lang": "Shell",
"label": "Unknown ids 404 with the envelope; a non-integer id gets HTML",
"source": "# An unknown, zero or negative vanId returns the standard 404 error\n# envelope. A path segment that is not an integer never reaches the handler\n# — the route does not match, and the answer is an HTML 404 page instead.\n\n# An id no record has ever had.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/2147483646' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 404\n# {\n# \"errors\": [\n# {\n# \"code\": \"NOT_FOUND\",\n# \"text\": \"The specified resource cannot be found.\"\n# }\n# ]\n# }\n\n# Zero is refused the same way.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/0' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 404\n# {\n# \"errors\": [\n# {\n# \"code\": \"NOT_FOUND\",\n# \"text\": \"The specified resource cannot be found.\"\n# }\n# ]\n# }\n\n# A non-integer segment matches no route: HTML, not the JSON envelope.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/abc' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 404\n# <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"/>\r\n<title>404 - File or directory not found.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;} \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet MS\", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0 0 0 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div id=\"header\"><h1>Server Error</h1></div>\r\n<div id=\"content\">\r\n <div class=\"content-container\"><fieldset>\r\n <h2>404 - File or directory not found.</h2>\r\n <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>\r\n </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n",
"x-transcript": "person-unknown-ids-404-two-ways"
}
]
},
"post": {
"operationId": "updatePerson",
"summary": "Update an existing person",
"description": "Merges the payload into an existing person record, addressed by id — no matching, no minimum-criteria threshold, and no chance of writing to the wrong duplicate. **This is the endpoint to write through once you have identified a person yourself** (e.g. from GET /people); POST /people/findOrCreate resolves ambiguity silently and creates duplicates below the match threshold.\n\nFields left out of the body keep their current values, and `emails`, `phones` and `addresses` are appended to what is already there rather than replacing it — there is no way to remove a contact method through this endpoint. The append is idempotent for an identical value: re-sending an email address the person already has — in a later update or twice in one body — does not create a second entry (observed via $expand=emails, 2026-08-08).\n\nOutcomes:\n\n- **The vanId exists** — **302 Found** with a `Location` header pointing back at `/people/{vanId}` and a match-stub body: the same shape POST /people/find returns, **not** the updated person.\n- **The body is empty (`{}`)** — accepted, answered the same **302**, and nothing changes.\n- **An unknown, zero or negative vanId** — **404**.\n\nEvery scalar field in the payload is writeable here, and all of them can go in one request. Four caveats: `nickname`, `website`, `jobTitle` and `contactMethodPreferenceCode` are stored but read back only under `$expand=preferences`; `organizationContactCommonName` and `organizationContactOfficialName` are stored only while `contactMode` is \"Organization\"; `suffix` is normalized against a lookup, and an unrecognized value leaves the existing suffix standing; and `collectedLocationId`, `electionType` and `cycle` are accepted and then discarded outright.",
"x-provenance": {
"lastProbed": "2026-08-10",
"note": "Merge semantics confirmed by updating only middleName on a person and observing firstName, lastName and employer survive; append semantics by adding a second email and seeing both returned, with isPreferred moving to the newer one. Not in the official docs' page index; the path comes from van-cli (people.ts update), which notes PUT is not supported. The writeable field set was swept on 2026-08-10: a blank person updated with every scalar field at once, then read back with and without $expand=preferences."
},
"tags": [
"People"
],
"x-keywords": [
"update",
"edit",
"modify",
"change",
"set field",
"add phone",
"add email",
"add address",
"append contact method",
"write",
"correct a record"
],
"x-task": "Change fields, or add a phone / email / address",
"parameters": [
{
"name": "vanId",
"in": "path",
"required": true,
"description": "VAN id of the person to update.",
"schema": {
"type": "integer",
"format": "int32",
"minimum": 1
},
"example": 102714580
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PersonInput"
},
"examples": {
"scalars": {
"summary": "Change a couple of fields, leaving the rest alone",
"value": {
"middleName": "Quinn",
"employer": "Ship Creek Group"
}
},
"addEmail": {
"summary": "Append an email address (existing addresses are kept)",
"value": {
"emails": [
{
"email": "cre.work@example.com",
"type": "W"
}
]
}
},
"update-appends-contact-methods/1": {
"summary": "Update with a second address. The first is not replaced — the list grows.",
"description": "Emails, phones and addresses in an update are added to what is already there; there is no way to remove one through this endpoint. The append is idempotent for an identical value: re-sending an email the person already has does not create a second entry.",
"x-transcript": "update-appends-contact-methods",
"value": {
"emails": [
{
"email": "imani.o@example.org"
}
]
}
},
"update-appends-contact-methods/2": {
"summary": "Send the second address again, unchanged. Nothing is duplicated: still two entries.",
"description": "Emails, phones and addresses in an update are added to what is already there; there is no way to remove one through this endpoint. The append is idempotent for an identical value: re-sending an email the person already has does not create a second entry.",
"x-transcript": "update-appends-contact-methods",
"value": {
"emails": [
{
"email": "imani.o@example.org"
}
]
}
},
"update-empty-body-is-accepted-and-unknown-ids-404/1": {
"summary": "An update that updates nothing. Accepted all the same.",
"description": "`{}` is accepted and answered with the same 302 as a real update, changing nothing. The failure mode is the id, not the body: an unknown vanId returns 404 whatever the payload says.",
"x-transcript": "update-empty-body-is-accepted-and-unknown-ids-404",
"value": {}
},
"update-empty-body-is-accepted-and-unknown-ids-404/2": {
"summary": "A perfectly good payload aimed at an id nobody has: 404.",
"description": "`{}` is accepted and answered with the same 302 as a real update, changing nothing. The failure mode is the id, not the body: an unknown vanId returns 404 whatever the payload says.",
"x-transcript": "update-empty-body-is-accepted-and-unknown-ids-404",
"value": {
"firstName": "Nobody"
}
},
"update-merges-fields-and-answers-with-a-stub": {
"summary": "An update merges the payload and answers 302 with a match stub",
"description": "The payload is merged into the record: fields in the body are overwritten, fields left out keep their values. The response is a 302 whose Location points back at the person and whose body is the same match stub find returns — not the updated person.",
"x-transcript": "update-merges-fields-and-answers-with-a-stub",
"value": {
"firstName": "Cora"
}
},
"update-suffix-is-matched-against-a-lookup/1": {
"summary": "Lowercase, with no period. Stored in the lookup's own spelling.",
"description": "Unlike every other name part, `suffix` is not free text: it is matched case- and punctuation-insensitively against a known list, so \"jr\" and \"Jr.\" both read back as \"Jr\". A value the list does not recognize is neither stored nor refused — the request succeeds and the previous suffix is left standing.",
"x-transcript": "update-suffix-is-matched-against-a-lookup",
"value": {
"suffix": "jr"
}
},
"update-suffix-is-matched-against-a-lookup/2": {
"summary": "An honorific the list does not hold. Accepted, and quietly ignored.",
"description": "Unlike every other name part, `suffix` is not free text: it is matched case- and punctuation-insensitively against a known list, so \"jr\" and \"Jr.\" both read back as \"Jr\". A value the list does not recognize is neither stored nor refused — the request succeeds and the previous suffix is left standing.",
"x-transcript": "update-suffix-is-matched-against-a-lookup",
"value": {
"suffix": "Esq."
}
},
"update-writes-every-scalar-field/1": {
"summary": "One update carrying every scalar field the payload documents.",
"description": "Every scalar field PersonInput documents is writeable through an update, in a single payload: the name parts, the derived-by-default salutation and envelopeName, nickname, website, party, sex, dateOfBirth, the three job fields, contactMethodPreferenceCode and contactMode. Four of them — nickname, website, jobTitle and contactMethodPreferenceCode — read back null on a plain GET and only surface under `$expand=preferences`, so a round-trip without it looks like the write was dropped. Three genuinely are dropped: collectedLocationId, electionType and cycle are accepted and leave no trace anywhere the API will show you. The organizationContact names are conditional — discarded while the record is in Person mode, stored once contactMode is Organization.",
"x-transcript": "update-writes-every-scalar-field",
"value": {
"firstName": "Ottoline",
"middleName": "Quill",
"lastName": "Fieldwright",
"suffix": "Jr.",
"title": "Dr.",
"salutation": "Hey Otto",
"envelopeName": "O. Q. Fieldwright",
"nickname": "Otto",
"website": "https://ottoline.example",
"party": "D",
"contactMethodPreferenceCode": "E",
"employer": "Ship Creek Group",
"occupation": "Cartographer",
"jobTitle": "Chief Mapper",
"sex": "F",
"dateOfBirth": "1985-03-04",
"collectedLocationId": 12345,
"electionType": "G",
"cycle": "2024",
"organizationContactCommonName": "Fieldwright Cartography",
"organizationContactOfficialName": "Fieldwright Cartography LLC",
"contactMode": "Person"
}
},
"update-writes-every-scalar-field/2": {
"summary": "The organization names were dropped too — the record is in Person mode. Send them again with contactMode Organization and they stick.",
"description": "Every scalar field PersonInput documents is writeable through an update, in a single payload: the name parts, the derived-by-default salutation and envelopeName, nickname, website, party, sex, dateOfBirth, the three job fields, contactMethodPreferenceCode and contactMode. Four of them — nickname, website, jobTitle and contactMethodPreferenceCode — read back null on a plain GET and only surface under `$expand=preferences`, so a round-trip without it looks like the write was dropped. Three genuinely are dropped: collectedLocationId, electionType and cycle are accepted and leave no trace anywhere the API will show you. The organizationContact names are conditional — discarded while the record is in Person mode, stored once contactMode is Organization.",
"x-transcript": "update-writes-every-scalar-field",
"value": {
"contactMode": "Organization",
"organizationContactCommonName": "Fieldwright Cartography",
"organizationContactOfficialName": "Fieldwright Cartography LLC"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Never sent by this endpoint. This is where a redirect-following client *lands* after a successful update:\n\n```\nPOST /people/102714580 {\"firstName\": \"Cre\", …}\n ← 302 Found\n Location: https://api.securevan.com/v4/people/102714580 (same URL)\n {\"vanId\": 102714580, \"status\": \"Matched\"}\n\nGET /people/102714580 ← client re-issues the request at Location\n ← 200 OK\n { the merged person record — the body documented here }\n```\n\nA happy accident: the update itself never returns the person, but the followed GET does, so redirect-following clients get the merged result for free. See POST /people/find for the full redirect-following notes, including the `curl -X POST -L` gotcha.\n\nThe other way to reach a 200 is a failure: when the 302 was the ASP.NET request-validation bounce (a path segment containing `<`, `>`, `*` or `&`), following it lands on the web application's HTML error page, which answers 200 with `text/html`. Check the content type before parsing JSON.",
"x-provenance": {
"lastProbed": "2026-08-04",
"note": "Chain observed end to end with httpx: POST /people/{vanId} with an empty body → 302 back to the same URL → GET → 200 with the full person record."
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Person"
}
},
"text/html": {
"schema": {
"type": "string"
}
}
}
},
"302": {
"description": "The person was updated. `Location` points back at the person resource; the body is a match stub, not the updated person.\n\nThe same status also covers a failure that never reaches the API: a path segment containing `<`, `>`, `*` or `&` is rejected by ASP.NET request validation and redirected to `/Error.aspx?EID={code}` with an HTML body. Check the content type to tell them apart.",
"headers": {
"Location": {
"description": "URL of the updated person — or of the web application's error page when request validation rejected the path.",
"schema": {
"type": "string",
"format": "uri"
},
"example": "https://api.securevan.com/v4/people/102714580"
}
},
"content": {
"text/html": {
"schema": {
"type": "string"
},
"x-provenance": {
"lastProbed": "2026-08-03",
"note": "\"Object moved\" body of the request-validation redirect; see the RequestValidationRedirect response for the full story."
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/PersonMatched"
},
"examples": {
"update-appends-contact-methods/1": {
"summary": "Update with a second address. The first is not replaced — the list grows.",
"description": "Emails, phones and addresses in an update are added to what is already there; there is no way to remove one through this endpoint. The append is idempotent for an identical value: re-sending an email the person already has does not create a second entry.",
"x-transcript": "update-appends-contact-methods",
"value": {
"vanId": 100000001,
"status": "Matched"
}
},
"update-appends-contact-methods/2": {
"summary": "Send the second address again, unchanged. Nothing is duplicated: still two entries.",
"description": "Emails, phones and addresses in an update are added to what is already there; there is no way to remove one through this endpoint. The append is idempotent for an identical value: re-sending an email the person already has does not create a second entry.",
"x-transcript": "update-appends-contact-methods",
"value": {
"vanId": 100000001,
"status": "Matched"
}
},
"update-empty-body-is-accepted-and-unknown-ids-404/1": {
"summary": "An update that updates nothing. Accepted all the same.",
"description": "`{}` is accepted and answered with the same 302 as a real update, changing nothing. The failure mode is the id, not the body: an unknown vanId returns 404 whatever the payload says.",
"x-transcript": "update-empty-body-is-accepted-and-unknown-ids-404",
"value": {
"vanId": 100000001,
"status": "Matched"
}
},
"update-merges-fields-and-answers-with-a-stub": {
"summary": "An update merges the payload and answers 302 with a match stub",
"description": "The payload is merged into the record: fields in the body are overwritten, fields left out keep their values. The response is a 302 whose Location points back at the person and whose body is the same match stub find returns — not the updated person.",
"x-transcript": "update-merges-fields-and-answers-with-a-stub",
"value": {
"vanId": 100000001,
"status": "Matched"
}
},
"update-suffix-is-matched-against-a-lookup/1": {
"summary": "Lowercase, with no period. Stored in the lookup's own spelling.",
"description": "Unlike every other name part, `suffix` is not free text: it is matched case- and punctuation-insensitively against a known list, so \"jr\" and \"Jr.\" both read back as \"Jr\". A value the list does not recognize is neither stored nor refused — the request succeeds and the previous suffix is left standing.",
"x-transcript": "update-suffix-is-matched-against-a-lookup",
"value": {
"vanId": 100000001,
"status": "Matched"
}
},
"update-suffix-is-matched-against-a-lookup/2": {
"summary": "An honorific the list does not hold. Accepted, and quietly ignored.",
"description": "Unlike every other name part, `suffix` is not free text: it is matched case- and punctuation-insensitively against a known list, so \"jr\" and \"Jr.\" both read back as \"Jr\". A value the list does not recognize is neither stored nor refused — the request succeeds and the previous suffix is left standing.",
"x-transcript": "update-suffix-is-matched-against-a-lookup",
"value": {
"vanId": 100000001,
"status": "Matched"
}
},
"update-writes-every-scalar-field/1": {
"summary": "One update carrying every scalar field the payload documents.",
"description": "Every scalar field PersonInput documents is writeable through an update, in a single payload: the name parts, the derived-by-default salutation and envelopeName, nickname, website, party, sex, dateOfBirth, the three job fields, contactMethodPreferenceCode and contactMode. Four of them — nickname, website, jobTitle and contactMethodPreferenceCode — read back null on a plain GET and only surface under `$expand=preferences`, so a round-trip without it looks like the write was dropped. Three genuinely are dropped: collectedLocationId, electionType and cycle are accepted and leave no trace anywhere the API will show you. The organizationContact names are conditional — discarded while the record is in Person mode, stored once contactMode is Organization.",
"x-transcript": "update-writes-every-scalar-field",
"value": {
"vanId": 100000001,
"status": "Matched"
}
},
"update-writes-every-scalar-field/2": {
"summary": "The organization names were dropped too — the record is in Person mode. Send them again with contactMode Organization and they stick.",
"description": "Every scalar field PersonInput documents is writeable through an update, in a single payload: the name parts, the derived-by-default salutation and envelopeName, nickname, website, party, sex, dateOfBirth, the three job fields, contactMethodPreferenceCode and contactMode. Four of them — nickname, website, jobTitle and contactMethodPreferenceCode — read back null on a plain GET and only surface under `$expand=preferences`, so a round-trip without it looks like the write was dropped. Three genuinely are dropped: collectedLocationId, electionType and cycle are accepted and leave no trace anywhere the API will show you. The organizationContact names are conditional — discarded while the record is in Person mode, stored once contactMode is Organization.",
"x-transcript": "update-writes-every-scalar-field",
"value": {
"vanId": 100000001,
"status": "Matched"
}
}
}
}
},
"links": {
"getUpdatedPerson": {
"operationId": "getPerson",
"parameters": {
"vanId": "$response.body#/vanId"
},
"description": "Fetch the person to see the merged result — the update response does not include it."
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/PersonNotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/ServerError"
}
},
"x-codeSamples": [
{
"lang": "Shell",
"label": "Contact methods are appended, never replaced — and identical ones dedupe",
"source": "# Emails, phones and addresses in an update are added to what is already\n# there; there is no way to remove one through this endpoint. The append is\n# idempotent for an identical value: re-sending an email the person already\n# has does not create a second entry.\n\nPEOPLE_BODY='{\n \"emails\": [\n {\n \"email\": \"imani.o@example.org\"\n }\n ]\n}'\n\n# A person with one email address.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/create' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Imani\",\n \"lastName\": \"Oyelaran\",\n \"emails\": [\n {\n \"email\": \"imani.oyelaran@example.com\"\n }\n ]\n }'\n# → 201 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Stored\"\n# }\n\n# Update with a second address. The first is not replaced — the list grows.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d \"$PEOPLE_BODY\"\n# → 302 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Matched\"\n# }\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001?%24expand=emails' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Imani\",\n# \"lastName\": \"Oyelaran\",\n# \"middleName\": null,\n# \"suffix\": null,\n# \"title\": null,\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Imani\",\n# \"formalSalutation\": \"Imani Oyelaran\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Imani Oyelaran\",\n# \"formalEnvelopeName\": \"Imani Oyelaran\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": null,\n# \"employer\": null,\n# \"occupation\": null,\n# \"jobTitle\": null,\n# \"sex\": null,\n# \"dateOfBirth\": null,\n# \"isDeceased\": false,\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": [\n# {\n# \"type\": \"P\",\n# \"email\": \"imani.oyelaran@example.com\",\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"isPreferred\": false,\n# \"isSubscribed\": true,\n# \"subscriptionStatus\": \"S\"\n# },\n# {\n# \"type\": \"P\",\n# \"email\": \"imani.o@example.org\",\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"isPreferred\": true,\n# \"isSubscribed\": true,\n# \"subscriptionStatus\": \"S\"\n# }\n# ],\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }\n\n# Send the second address again, unchanged. Nothing is duplicated: still two\n# entries.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d \"$PEOPLE_BODY\"\n# → 302 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Matched\"\n# }\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001?%24expand=emails' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Imani\",\n# \"lastName\": \"Oyelaran\",\n# \"middleName\": null,\n# \"suffix\": null,\n# \"title\": null,\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Imani\",\n# \"formalSalutation\": \"Imani Oyelaran\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Imani Oyelaran\",\n# \"formalEnvelopeName\": \"Imani Oyelaran\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": null,\n# \"employer\": null,\n# \"occupation\": null,\n# \"jobTitle\": null,\n# \"sex\": null,\n# \"dateOfBirth\": null,\n# \"isDeceased\": false,\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": [\n# {\n# \"type\": \"P\",\n# \"email\": \"imani.oyelaran@example.com\",\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"isPreferred\": false,\n# \"isSubscribed\": true,\n# \"subscriptionStatus\": \"S\"\n# },\n# {\n# \"type\": \"P\",\n# \"email\": \"imani.o@example.org\",\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"isPreferred\": true,\n# \"isSubscribed\": true,\n# \"subscriptionStatus\": \"S\"\n# }\n# ],\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }",
"x-transcript": "update-appends-contact-methods"
},
{
"lang": "Shell",
"label": "An empty body is a successful no-op; an unknown vanId is 404",
"source": "# `{}` is accepted and answered with the same 302 as a real update, changing\n# nothing. The failure mode is the id, not the body: an unknown vanId\n# returns 404 whatever the payload says.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/create' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Otis\",\n \"lastName\": \"Renwick\"\n }'\n# → 201 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Stored\"\n# }\n\n# An update that updates nothing. Accepted all the same.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{}\n {}'\n# → 302 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Matched\"\n# }\n\n# The record is untouched.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Otis\",\n# \"lastName\": \"Renwick\",\n# \"middleName\": null,\n# \"suffix\": null,\n# \"title\": null,\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Otis\",\n# \"formalSalutation\": \"Otis Renwick\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Otis Renwick\",\n# \"formalEnvelopeName\": \"Otis Renwick\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": null,\n# \"employer\": null,\n# \"occupation\": null,\n# \"jobTitle\": null,\n# \"sex\": null,\n# \"dateOfBirth\": null,\n# \"isDeceased\": false,\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": null,\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }\n\n# A perfectly good payload aimed at an id nobody has: 404.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/2147483646' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Nobody\"\n }'\n# → 404\n# {\n# \"errors\": [\n# {\n# \"code\": \"NOT_FOUND\",\n# \"text\": \"The specified resource cannot be found.\"\n# }\n# ]\n# }",
"x-transcript": "update-empty-body-is-accepted-and-unknown-ids-404"
},
{
"lang": "Shell",
"label": "An update merges the payload and answers 302 with a match stub",
"source": "# The payload is merged into the record: fields in the body are overwritten,\n# fields left out keep their values. The response is a 302 whose Location\n# points back at the person and whose body is the same match stub find\n# returns — not the updated person.\n\n# A person whose first name is about to change.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/create' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Corazon\",\n \"lastName\": \"Ellsworth\"\n }'\n# → 201 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Stored\"\n# }\n\n# Send only the new first name.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Cora\"\n }'\n# → 302 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Matched\"\n# }\n\n# The first name changed; the last name, absent from the body, survived.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Cora\",\n# \"lastName\": \"Ellsworth\",\n# \"middleName\": null,\n# \"suffix\": null,\n# \"title\": null,\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Cora\",\n# \"formalSalutation\": \"Cora Ellsworth\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Cora Ellsworth\",\n# \"formalEnvelopeName\": \"Cora Ellsworth\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": null,\n# \"employer\": null,\n# \"occupation\": null,\n# \"jobTitle\": null,\n# \"sex\": null,\n# \"dateOfBirth\": null,\n# \"isDeceased\": false,\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": null,\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }",
"x-transcript": "update-merges-fields-and-answers-with-a-stub"
},
{
"lang": "Shell",
"label": "A suffix is matched against a lookup, not stored as written",
"source": "# Unlike every other name part, `suffix` is not free text: it is matched\n# case- and punctuation-insensitively against a known list, so \"jr\" and\n# \"Jr.\" both read back as \"Jr\". A value the list does not recognize is\n# neither stored nor refused — the request succeeds and the previous suffix\n# is left standing.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/create' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Thaddeus\",\n \"lastName\": \"Suffixon\"\n }'\n# → 201 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Stored\"\n# }\n\n# Lowercase, with no period. Stored in the lookup's own spelling.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"suffix\": \"jr\"\n }'\n# → 302 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Matched\"\n# }\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Thaddeus\",\n# \"lastName\": \"Suffixon\",\n# \"middleName\": null,\n# \"suffix\": \"Jr\",\n# \"title\": null,\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Thaddeus\",\n# \"formalSalutation\": \"Thaddeus Suffixon\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Thaddeus Suffixon\",\n# \"formalEnvelopeName\": \"Thaddeus Suffixon, Jr\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": null,\n# \"employer\": null,\n# \"occupation\": null,\n# \"jobTitle\": null,\n# \"sex\": null,\n# \"dateOfBirth\": null,\n# \"isDeceased\": false,\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": null,\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }\n\n# An honorific the list does not hold. Accepted, and quietly ignored.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"suffix\": \"Esq.\"\n }'\n# → 302 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Matched\"\n# }\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Thaddeus\",\n# \"lastName\": \"Suffixon\",\n# \"middleName\": null,\n# \"suffix\": \"Jr\",\n# \"title\": null,\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Thaddeus\",\n# \"formalSalutation\": \"Thaddeus Suffixon\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Thaddeus Suffixon\",\n# \"formalEnvelopeName\": \"Thaddeus Suffixon, Jr\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": null,\n# \"employer\": null,\n# \"occupation\": null,\n# \"jobTitle\": null,\n# \"sex\": null,\n# \"dateOfBirth\": null,\n# \"isDeceased\": false,\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": null,\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }",
"x-transcript": "update-suffix-is-matched-against-a-lookup"
},
{
"lang": "Shell",
"label": "The whole scalar field set, written in one update",
"source": "# Every scalar field PersonInput documents is writeable through an update,\n# in a single payload: the name parts, the derived-by-default salutation and\n# envelopeName, nickname, website, party, sex, dateOfBirth, the three job\n# fields, contactMethodPreferenceCode and contactMode. Four of them —\n# nickname, website, jobTitle and contactMethodPreferenceCode — read back\n# null on a plain GET and only surface under `$expand=preferences`, so a\n# round-trip without it looks like the write was dropped. Three genuinely\n# are dropped: collectedLocationId, electionType and cycle are accepted and\n# leave no trace anywhere the API will show you. The organizationContact\n# names are conditional — discarded while the record is in Person mode,\n# stored once contactMode is Organization.\n\n# A blank person, so every field below arrives by way of the update.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/create' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{}\n {}'\n# → 201 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Stored\"\n# }\n\n# One update carrying every scalar field the payload documents.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstName\": \"Ottoline\",\n \"middleName\": \"Quill\",\n \"lastName\": \"Fieldwright\",\n \"suffix\": \"Jr.\",\n \"title\": \"Dr.\",\n \"salutation\": \"Hey Otto\",\n \"envelopeName\": \"O. Q. Fieldwright\",\n \"nickname\": \"Otto\",\n \"website\": \"https://ottoline.example\",\n \"party\": \"D\",\n \"contactMethodPreferenceCode\": \"E\",\n \"employer\": \"Ship Creek Group\",\n \"occupation\": \"Cartographer\",\n \"jobTitle\": \"Chief Mapper\",\n \"sex\": \"F\",\n \"dateOfBirth\": \"1985-03-04\",\n \"collectedLocationId\": 12345,\n \"electionType\": \"G\",\n \"cycle\": \"2024\",\n \"organizationContactCommonName\": \"Fieldwright Cartography\",\n \"organizationContactOfficialName\": \"Fieldwright Cartography LLC\",\n \"contactMode\": \"Person\"\n }'\n# → 302 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Matched\"\n# }\n\n# Read it back plainly. Most of it landed — but nickname, website, jobTitle\n# and contactMethodPreferenceCode come back null, as if the write had been\n# ignored.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Ottoline\",\n# \"lastName\": \"Fieldwright\",\n# \"middleName\": \"Quill\",\n# \"suffix\": \"Jr\",\n# \"title\": \"Dr.\",\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Hey Otto\",\n# \"formalSalutation\": \"Dr. Fieldwright\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"O. Q. Fieldwright\",\n# \"formalEnvelopeName\": \"Dr. Ottoline Q. Fieldwright, Jr\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": \"D\",\n# \"employer\": \"Ship Creek Group\",\n# \"occupation\": \"Cartographer\",\n# \"jobTitle\": null,\n# \"sex\": \"F\",\n# \"dateOfBirth\": \"1985-03-04T00:00:00Z\",\n# \"isDeceased\": false,\n# \"partialDateOfBirth\": {\n# \"month\": 3,\n# \"day\": 4,\n# \"year\": 1985\n# },\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": null,\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }\n\n# They did land. `$expand=preferences` is what makes those four readable.\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001?%24expand=preferences%2CelectionRecords' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Ottoline\",\n# \"lastName\": \"Fieldwright\",\n# \"middleName\": \"Quill\",\n# \"suffix\": \"Jr\",\n# \"title\": \"Dr.\",\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Person\",\n# \"organizationContactCommonName\": null,\n# \"organizationContactOfficialName\": null,\n# \"salutation\": \"Hey Otto\",\n# \"formalSalutation\": \"Dr. Fieldwright\",\n# \"additionalSalutation\": null,\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"O. Q. Fieldwright\",\n# \"formalEnvelopeName\": \"Dr. Ottoline Q. Fieldwright, Jr\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": \"E\",\n# \"contactMethodPreferenceId\": 2,\n# \"contactMethodPreferenceName\": \"Email\",\n# \"assistantName\": null,\n# \"nickname\": \"Otto\",\n# \"website\": \"https://ottoline.example\",\n# \"professionalSuffix\": null,\n# \"party\": \"D\",\n# \"employer\": \"Ship Creek Group\",\n# \"occupation\": \"Cartographer\",\n# \"jobTitle\": \"Chief Mapper\",\n# \"sex\": \"F\",\n# \"dateOfBirth\": \"1985-03-04T00:00:00Z\",\n# \"isDeceased\": false,\n# \"partialDateOfBirth\": {\n# \"month\": 3,\n# \"day\": 4,\n# \"year\": 1985\n# },\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": null,\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": [],\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }\n\n# collectedLocationId, electionType and cycle are the ones really discarded:\n# the person record has nowhere to carry them, and the election records they\n# name stay empty.\n\n# The organization names were dropped too — the record is in Person mode.\n# Send them again with contactMode Organization and they stick.\n\ncurl -sS -X POST 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"contactMode\": \"Organization\",\n \"organizationContactCommonName\": \"Fieldwright Cartography\",\n \"organizationContactOfficialName\": \"Fieldwright Cartography LLC\"\n }'\n# → 302 Location: https://api.securevan.com/v4/people/100000001\n# {\n# \"vanId\": 100000001,\n# \"status\": \"Matched\"\n# }\n\ncurl -sS -X GET 'https://api.securevan.com/v4/people/100000001' \\\n -u \"app-name:$NGP_API_KEY|1\"\n# → 200\n# {\n# \"vanId\": 100000001,\n# \"firstName\": \"Ottoline\",\n# \"lastName\": \"Fieldwright\",\n# \"middleName\": \"Quill\",\n# \"suffix\": \"Jr\",\n# \"title\": \"Dr.\",\n# \"sourceFileTitle\": null,\n# \"sourceFileFirstName\": null,\n# \"sourceFileMiddleName\": null,\n# \"sourceFileLastName\": null,\n# \"sourceFileSuffix\": null,\n# \"contactSource\": \"API\",\n# \"contactMode\": \"Organization\",\n# \"organizationContactCommonName\": \"Fieldwright Cartography\",\n# \"organizationContactOfficialName\": \"Fieldwright Cartography LLC\",\n# \"salutation\": \"Hey Otto\",\n# \"formalSalutation\": \"Friends\",\n# \"additionalSalutation\": \"Fieldwright Cartography\",\n# \"preferredPronoun\": null,\n# \"pronouns\": null,\n# \"namePronunciation\": null,\n# \"envelopeName\": \"Fieldwright Cartography LLC\",\n# \"formalEnvelopeName\": \"Fieldwright Cartography LLC\",\n# \"additionalEnvelopeName\": null,\n# \"contactMethodPreferenceCode\": null,\n# \"contactMethodPreferenceId\": null,\n# \"contactMethodPreferenceName\": null,\n# \"assistantName\": null,\n# \"nickname\": null,\n# \"website\": null,\n# \"professionalSuffix\": null,\n# \"party\": \"D\",\n# \"employer\": \"Ship Creek Group\",\n# \"occupation\": \"Cartographer\",\n# \"jobTitle\": null,\n# \"sex\": \"F\",\n# \"dateOfBirth\": \"1985-03-04T00:00:00Z\",\n# \"isDeceased\": false,\n# \"partialDateOfBirth\": {\n# \"month\": 3,\n# \"day\": 4,\n# \"year\": 1985\n# },\n# \"dateCreated\": \"2026-01-01T00:00:00Z\",\n# \"dateAcquired\": \"0001-01-01T00:00:00Z\",\n# \"selfReportedRace\": null,\n# \"selfReportedEthnicity\": null,\n# \"selfReportedRaces\": null,\n# \"selfReportedEthnicities\": null,\n# \"selfReportedGenders\": null,\n# \"selfReportedSexualOrientations\": null,\n# \"selfReportedLanguagePreference\": null,\n# \"selfReportedLanguagePreferences\": null,\n# \"emails\": null,\n# \"phones\": null,\n# \"addresses\": null,\n# \"recordedAddresses\": null,\n# \"pollingLocation\": null,\n# \"earlyVoteLocation\": null,\n# \"identifiers\": null,\n# \"codes\": null,\n# \"customFields\": null,\n# \"primaryCustomField\": null,\n# \"contributionSummary\": null,\n# \"suppressions\": null,\n# \"caseworkCases\": null,\n# \"caseworkIssues\": null,\n# \"caseworkStories\": null,\n# \"notes\": null,\n# \"scores\": null,\n# \"customProperties\": null,\n# \"electionRecords\": null,\n# \"membershipStatus\": null,\n# \"organizationRoles\": null,\n# \"districts\": null,\n# \"surveyQuestionResponses\": null,\n# \"finderNumber\": null,\n# \"biographyImageUrl\": null,\n# \"biographyText\": null,\n# \"biographyHtml\": null,\n# \"primaryContact\": null\n# }",
"x-transcript": "update-writes-every-scalar-field"
}
]
}
},
"/people": {
"get": {
"operationId": "searchPeople",
"summary": "Search for people",
"description": "Searches for people matching the given criteria and returns full person records in the standard pagination envelope. At least one search parameter must be set: firstName, lastName, middleName, streetAddress, city, stateOrProvince, zipOrPostalCode, phoneNumber, email, commonName, or officialName. A request with none of these — even one with filter or paging parameters set — returns 400 INVALID_PARAMETER with the text \"This endpoint requires at least one search parameter to be set.\" Text criteria are case-insensitive prefix matches: lastName=Testpers matches \"Testperson\", lastName=estperson does not. Related collections on the returned person records are null unless requested via $expand.\n\n**This is the endpoint to use when you only have loose criteria.** Unlike POST /people/find and POST /people/findOrCreate — which refuse to attempt a match until you supply one of a handful of minimum field combinations, and answer Unmatched (or create a duplicate) when you cannot — this search has no such threshold. A single name is a perfectly valid query. In exchange it makes no identity claim: it hands back every person whose fields start with what you typed, and deciding which one is your person, or that none of them is, is your job. Inspect the candidates (with $expand for addresses, emails and phones if you need them) and take the vanId from there.",
"x-provenance": {
"source": "van-cli people.ts (list command) plus live sandbox probing; the endpoint is absent from the official docs' page index (llms.txt lists only /people/find).",
"lastProbed": "2026-08-04"
},
"tags": [
"People"
],
"x-keywords": [
"search",
"list people",
"browse",
"enumerate",
"find by name",
"how many",
"count",
"total",
"filter",
"prefix match",
"paginate",
"lookup by city",
"lookup by zip",
"everyone named"
],
"x-task": "Find people by loose criteria — name, city, ZIP, email",
"parameters": [
{
"name": "firstName",
"in": "query",
"description": "First name. Case-insensitive prefix match.",
"schema": {
"type": "string"
},
"example": "Ada"
},
{
"name": "lastName",
"in": "query",
"description": "Last name. Case-insensitive prefix match.",
"schema": {
"type": "string"
},
"example": "Testperson"
},
{
"name": "middleName",
"in": "query",
"description": "Middle name.",
"schema": {
"type": "string"
},
"example": "Marie"
},
{
"name": "streetAddress",
"in": "query",
"description": "Street address, matched as a case-insensitive prefix — but only against the person's **Voting (home) address**, as are `city`, `stateOrProvince` and `zipOrPostalCode`. All four read the single address VAN files as Voting; Work and Custom addresses are not indexed at all, and a Mailing address is only reachable when the person has no separate Voting address (VAN then serves the mailing one under both types, and it becomes findable). So a person can hold an address and still not be findable by it.\n\nThe comparison also runs against the *standardized* form VAN stored rather than the text that was written: a person created with `1000 W 5th Ave` is found by `1000 5Th Ave Mall` and **not** by `1000 W 5th Ave`.\n\nPOST /people/find has neither limitation — it matches every address type, including the Work and Custom addresses that $expand=addresses never shows.",
"x-provenance": {
"source": "sandbox probe",
"lastProbed": "2026-08-06",
"note": "Probed on a person carrying four addresses (Home, Work, Mailing, Custom): only the Home/Voting one was findable here, and only under its standardized form, while POST /people/find matched all four. Calibrated while re-testing what PUT /people/{vanId}/mergeInto does to addresses, where this parameter had been used as an instrument and produced a false negative. Re-probed 2026-08-06 with single-address people: a Mailing-only person reads back with that address listed under both Voting and Mailing (same addressId) and is findable by streetAddress/city/state/zip; a Work-only person is findable by none of them."
},
"schema": {
"type": "string"
},
"example": "123 Test St"
},
{
"name": "city",
"in": "query",
"description": "City, matched as a case-insensitive prefix (`anchor` finds Anchorage; `nchorage` finds nothing). Like `streetAddress`, it reads the **Voting (home) address only** — a person whose mailing or work address sits in a different city is not returned for that city — and it compares against the city VAN standardized at write time, which is not always the one that was written.",
"x-provenance": {
"source": "sandbox probe",
"lastProbed": "2026-08-06",
"note": "Probe person with Voting=Anchorage AK, Mailing=Seattle WA, Work=Portland OR, Custom=Sacramento CA: found by Anchorage only. Prefix and case behavior probed with anchor/ANCHORAGE/nchorage."
},
"schema": {
"type": "string"
},
"example": "Anchorage"
},
{
"name": "stateOrProvince",
"in": "query",
"description": "State or province, as the two/three character code — case-insensitive but **not** a prefix match and not the spelled-out name: `AK` and `ak` match, `A` and `Alaska` return nothing. Like `streetAddress`, it reads the **Voting (home) address only**.",
"x-provenance": {
"source": "sandbox probe",
"lastProbed": "2026-08-06",
"note": "Same four-address probe person (Voting AK, Mailing WA, Work OR, Custom CA): found by AK/ak only; WA, OR, CA, A and Alaska all returned 0."
},
"schema": {
"type": "string"
},
"example": "AK"
},
{
"name": "zipOrPostalCode",
"in": "query",
"description": "ZIP or postal code. Like `streetAddress`, this matches the **Voting (home) address only** — a person whose mailing address sits in a different ZIP is not returned for that ZIP.\n\nThe value is validated as a postal code (`995` and `995012357` both return 400 INVALID_PARAMETER \"is not a valid Postal Code for UsaAndInternational\"), and only the 5-digit form matches: a person whose stored ZIP is `99501-2357` is found by `99501` and not by `99501-2357`, which is accepted but returns nothing.",
"x-provenance": {
"source": "sandbox probe",
"lastProbed": "2026-08-06",
"note": "The four-address probe person was found by its home ZIP 99501 and not by its mailing ZIP 99503; re-probed with Voting 99501 / Mailing 98101 / Work 97201 / Custom 95814 to the same effect. ZIP+4 and unpunctuated-9-digit forms tested against a person whose address standardized to 99501-2357."
},
"schema": {
"type": "string"
},
"example": "99501"
},
{
"name": "phoneNumber",
"in": "query",
"description": "Phone number. **Send bare 10 digits — `9072223333`.** Anything else silently finds nothing: the comparison is against the stored 10-digit string, so `(907) 222-3333`, `907-222-3333` and the `1`-prefixed `19072223333` are all *accepted* and then match no one. (Validation is laxer than matching: non-numeric characters are stripped before the value is checked against `^1?[2-9][0-8]\\d[2-9]\\d{6,6}$`, which is why the formatted forms get through. Failing that regex returns 400 INVALID_PARAMETER with it in the hint.)\n\nThis checks **one number per person**: the number VAN flags `isBest` (the first entry `$expand=phones` returns). A person holding home, work, cell and fax numbers is findable only by whichever one is best — for that person the cell — even though the others are on the person record and POST /people/find matches them. A person can also have **no** best number — when every number on it is a work, other or fax number and none was written `isPreferred` — and such a person cannot be found through this parameter at all. See `PersonPhone.isBest` for how the best number is picked.",
"x-provenance": {
"source": "sandbox probe",
"lastProbed": "2026-08-06",
"note": "Person with four phones (H 9072223333, W 9073334444, C 9074445555, F 9075556666): only 9074445555 — the isBest/cell one — was findable. Confirmed on three further people that the isBest phone is always the matching one, including a home-only person (isBest home, findable) and a cell+explicitly-preferred-home person (findable by the home number, not the cell). isPreferred is not required: the four-phone person had no preferred phone. The no-best case was probed 2026-08-06: work-only, other-only and Personal/fax-only people each returned an empty items array for their own number, while an otherwise identical work-only person whose number was written with isPreferred:true was found."
},
"schema": {
"type": "string",
"pattern": "^1?[2-9][0-8]\\d[2-9]\\d{6,6}$"
},
"example": "9075550142"
},
{
"name": "email",