Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
7629 lines (7629 loc) · 235 KB
/
Copy pathopenapi.json
File metadata and controls
7629 lines (7629 loc) · 235 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": "PermitStack",
"description": "\n## PermitStack Building Permit API\n\nAccess 110M+ building permits across 8,000+ U.S. cities in 48 states and DC (810 active data sources including counties and statewide feeds, plus 75 historical archives), drawn from official city and county permit systems and open-data portals and re-ingested nightly for most sources.\n\n### Getting started\n1. Sign up at [permit-stack.com](https://permit-stack.com/#pricing) for a free API key (100 req/day)\n2. Pass your key as `X-API-Key` header on every request\n3. See the `/v1/permits/search` endpoint to get started\n\n### Rate limits\nTier | Requests/min | Requests/day\n-----------|--------------|-------------\nFree | 30 | 100\nIndie | 30 | 1,000\nHobbyist | 30 | 2,500\nDeveloper | 60 | 10,000\nBusiness | 200 | 100,000\nScale | 500 | 500,000\n\nFree keys cover the last 30 days of permits; every paid tier has full historical access.\nHigher volume or custom terms: support@permit-stack.com\n\n### Support\nsupport@permit-stack.com\n",
"termsOfService": "https://permit-stack.com/terms.html",
"contact": {
"name": "PermitStack Support",
"url": "https://permit-stack.com/",
"email": "support@permit-stack.com"
},
"license": {
"name": "Commercial -- see Terms",
"url": "https://permit-stack.com/terms.html"
},
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.permit-stack.com",
"description": "Production"
}
],
"paths": {
"/health": {
"get": {
"tags": [
"Health"
],
"summary": "Health Check",
"operationId": "health_check",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/stats": {
"get": {
"tags": [
"Health"
],
"summary": "Public Stats",
"description": "Public stats endpoint \u2014 no auth required.\nReturns aggregate coverage numbers for marketing/transparency.\nCached server-side for 30 minutes.",
"operationId": "public_stats",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/v1/permits/search": {
"get": {
"tags": [
"Permits"
],
"summary": "Search Permits",
"description": "Search building permits by location, date, category, contractor and more.\n\nFilters combine with AND. Supply at least one narrowing filter -- a city, ZIP,\njurisdiction, date range or lat/lng radius -- for a query that returns quickly.\n\nResults are paginated and ordered newest-first on the permit's best available date\n(`date_issued`, falling back to `date_filed`). `total` is exact up to 10,000; beyond\nthat it stops counting and returns `total: 10000` with `total_capped: true`, meaning\n\"10,000 or more\". If the count cannot finish in time the response carries\n`total: null` with `total_unknown: true` -- an unknown total is reported as unknown\nand never as a number. Rows are unaffected either way; page through them normally.\n\n`category=hvac` matches HVAC and MECHANICAL together, because AC and furnace work is\nfiled under either depending on the city. Unknown parameter names are rejected with a\n400 rather than ignored, so a typo can never silently return unfiltered results.\n\nFree-tier keys are limited to a recent window; paid tiers have full history.",
"operationId": "search_permits",
"security": [
{
"ApiKey": []
}
],
"parameters": [
{
"name": "zip_code",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "5-digit ZIP code",
"title": "Zip Code"
},
"description": "5-digit ZIP code"
},
{
"name": "city",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "City name",
"title": "City"
},
"description": "City name"
},
{
"name": "state",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "2-letter state code",
"title": "State"
},
"description": "2-letter state code"
},
{
"name": "jurisdiction",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Jurisdiction name (e.g. 'Wake County', 'Tacoma') or partial match",
"title": "Jurisdiction"
},
"description": "Jurisdiction name (e.g. 'Wake County', 'Tacoma') or partial match"
},
{
"name": "address",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Street address, partial + case-insensitive (e.g. '1600 Pennsylvania') \u2014 indexed, fast",
"title": "Address"
},
"description": "Street address, partial + case-insensitive (e.g. '1600 Pennsylvania') \u2014 indexed, fast"
},
{
"name": "lat",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Latitude for radius search",
"title": "Lat"
},
"description": "Latitude for radius search"
},
{
"name": "lng",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Longitude for radius search",
"title": "Lng"
},
"description": "Longitude for radius search"
},
{
"name": "radius_miles",
"in": "query",
"required": false,
"schema": {
"type": "number",
"maximum": 50,
"description": "Radius in miles (used with lat/lng)",
"default": 5.0,
"title": "Radius Miles"
},
"description": "Radius in miles (used with lat/lng)"
},
{
"name": "fields",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "'summary' (default) or 'full'. With 'full' each result is a PermitDetail rather than a PermitSummary -- the same nine extra columns GET /v1/permits/{id} returns (record_kind, date_expired, fee_amount, stories, units, square_footage, applicant_name, contractor_license, created_at) -- so you do not fetch them one permit at a time. See the PermitDetail schema for their types; the declared response schema here is PermitSummary, which is the default shape. Developer plan and above.",
"default": "summary",
"title": "Fields"
},
"description": "'summary' (default) or 'full'. With 'full' each result is a PermitDetail rather than a PermitSummary -- the same nine extra columns GET /v1/permits/{id} returns (record_kind, date_expired, fee_amount, stories, units, square_footage, applicant_name, contractor_license, created_at) -- so you do not fetch them one permit at a time. See the PermitDetail schema for their types; the declared response schema here is PermitSummary, which is the default shape. Developer plan and above."
},
{
"name": "bbox",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Map-viewport bounding box 'minLng,minLat,maxLng,maxLat'. Returns permits whose location falls inside the box (geocoded permits only).",
"title": "Bbox"
},
"description": "Map-viewport bounding box 'minLng,minLat,maxLng,maxLat'. Returns permits whose location falls inside the box (geocoded permits only)."
},
{
"name": "polygon",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "A drawn area as a GeoJSON Polygon geometry (URL-encoded), e.g. {\"type\":\"Polygon\",\"coordinates\":[[[lng,lat],...]]}. Returns permits inside the polygon (geocoded permits only).",
"title": "Polygon"
},
"description": "A drawn area as a GeoJSON Polygon geometry (URL-encoded), e.g. {\"type\":\"Polygon\",\"coordinates\":[[[lng,lat],...]]}. Returns permits inside the polygon (geocoded permits only)."
},
{
"name": "category",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Permit category (e.g. solar, SOLAR, roofing, hvac \u2014 case insensitive)",
"title": "Category"
},
"description": "Permit category (e.g. solar, SOLAR, roofing, hvac \u2014 case insensitive)"
},
{
"name": "status",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/PermitStatus"
},
{
"type": "null"
}
],
"description": "Permit status (e.g. issued, filed, final)",
"title": "Status"
},
"description": "Permit status (e.g. issued, filed, final)"
},
{
"name": "property_type",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/PropertyType"
},
{
"type": "null"
}
],
"description": "Property type (e.g. residential, commercial)",
"title": "Property Type"
},
"description": "Property type (e.g. residential, commercial)"
},
{
"name": "tag",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Filter by tag",
"title": "Tag"
},
"description": "Filter by tag"
},
{
"name": "record_kind",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Record kind: 'permit' (default, building permits only), 'contractor', 'tag', 'non_building', 'admin', or 'all'",
"default": "permit",
"title": "Record Kind"
},
"description": "Record kind: 'permit' (default, building permits only), 'contractor', 'tag', 'non_building', 'admin', or 'all'"
},
{
"name": "filed_after",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "Filed on or after this date",
"title": "Filed After"
},
"description": "Filed on or after this date"
},
{
"name": "filed_before",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "Filed on or before this date",
"title": "Filed Before"
},
"description": "Filed on or before this date"
},
{
"name": "issued_after",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "Issued on or after this date",
"title": "Issued After"
},
"description": "Issued on or after this date"
},
{
"name": "issued_before",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "Issued on or before this date",
"title": "Issued Before"
},
"description": "Issued on or before this date"
},
{
"name": "date_after",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "On or after this date, matched against whichever date a record has (issued, else filed). Use this when a source populates only one of issued/filed \u2014 e.g. issued-only feeds vs filed-only feeds.",
"title": "Date After"
},
"description": "On or after this date, matched against whichever date a record has (issued, else filed). Use this when a source populates only one of issued/filed \u2014 e.g. issued-only feeds vs filed-only feeds."
},
{
"name": "date_before",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "On or before this date, matched against whichever date a record has (issued, else filed).",
"title": "Date Before"
},
"description": "On or before this date, matched against whichever date a record has (issued, else filed)."
},
{
"name": "parcel",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Parcel number / APN / folio (formatting ignored). Returns permits on that parcel where the source publishes one.",
"title": "Parcel"
},
"description": "Parcel number / APN / folio (formatting ignored). Returns permits on that parcel where the source publishes one."
},
{
"name": "min_value",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Minimum estimated value",
"title": "Min Value"
},
"description": "Minimum estimated value"
},
{
"name": "max_value",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Maximum estimated value",
"title": "Max Value"
},
"description": "Maximum estimated value"
},
{
"name": "min_solar_kw",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Minimum extracted solar system size (kW DC)",
"title": "Min Solar Kw"
},
"description": "Minimum extracted solar system size (kW DC)"
},
{
"name": "max_solar_kw",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Maximum extracted solar system size (kW DC)",
"title": "Max Solar Kw"
},
"description": "Maximum extracted solar system size (kW DC)"
},
{
"name": "min_sqft",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Minimum square footage mentioned (from enrichment)",
"title": "Min Sqft"
},
"description": "Minimum square footage mentioned (from enrichment)"
},
{
"name": "has_enrichment",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Only permits that have (true) or lack (false) LLM enrichment",
"title": "Has Enrichment"
},
"description": "Only permits that have (true) or lack (false) LLM enrichment"
},
{
"name": "scope",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Substring match on the enriched work scope",
"title": "Scope"
},
"description": "Substring match on the enriched work scope"
},
{
"name": "q",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Case-insensitive substring match across description, address, and permit number. Terms under 3 characters are matched but not counted: `total` is null with total_unknown=true (a 1-2 character term has no trigram index and the count would cost tens of seconds).",
"title": "Q"
},
"description": "Case-insensitive substring match across description, address, and permit number. Terms under 3 characters are matched but not counted: `total` is null with total_unknown=true (a 1-2 character term has no trigram index and the count would cost tens of seconds)."
},
{
"name": "contractor_name",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Contractor name (partial match)",
"title": "Contractor Name"
},
"description": "Contractor name (partial match)"
},
{
"name": "owner_filed",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "true = owner-filed permits only (no contractor on record but an owner name is present \u2014 often a DIY/homeowner lead, though for feeds that don't capture contractors the owner may be a builder or institution); false = permits that have a contractor",
"title": "Owner Filed"
},
"description": "true = owner-filed permits only (no contractor on record but an owner name is present \u2014 often a DIY/homeowner lead, though for feeds that don't capture contractors the owner may be a builder or institution); false = permits that have a contractor"
},
{
"name": "has_owner_address",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "true = only permits that carry a property-owner mailing address; false = only those that do not. Coverage varies sharply by jurisdiction (we hold the county assessor roll for some and not others), so this is a targeting filter rather than a defect: it returns exactly the rows that are actionable. The address itself is visible on Business and above.",
"title": "Has Owner Address"
},
"description": "true = only permits that carry a property-owner mailing address; false = only those that do not. Coverage varies sharply by jurisdiction (we hold the county assessor roll for some and not others), so this is a targeting filter rather than a defect: it returns exactly the rows that are actionable. The address itself is visible on Business and above."
},
{
"name": "page",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"default": 1,
"title": "Page"
}
},
{
"name": "per_page",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"description": "Results per page. Above your plan's maximum this is clamped, not rejected; the response echoes the per_page actually applied.",
"default": 25,
"title": "Per Page"
},
"description": "Results per page. Above your plan's maximum this is clamped, not rejected; the response echoes the per_page actually applied."
},
{
"name": "keyword",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Alias of `q`.",
"deprecated": true,
"title": "Keyword"
},
"description": "Alias of `q`.",
"deprecated": true
},
{
"name": "date_from",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "Alias of `date_after`.",
"deprecated": true,
"title": "Date From"
},
"description": "Alias of `date_after`.",
"deprecated": true
},
{
"name": "date_to",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "Alias of `date_before`.",
"deprecated": true,
"title": "Date To"
},
"description": "Alias of `date_before`.",
"deprecated": true
},
{
"name": "start_date",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "Alias of `date_after`.",
"deprecated": true,
"title": "Start Date"
},
"description": "Alias of `date_after`.",
"deprecated": true
},
{
"name": "end_date",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "Alias of `date_before`.",
"deprecated": true,
"title": "End Date"
},
"description": "Alias of `date_before`.",
"deprecated": true
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"description": "Alias of `per_page`. Clamped to your plan's maximum, not rejected.",
"deprecated": true,
"title": "Limit"
},
"description": "Alias of `per_page`. Clamped to your plan's maximum, not rejected.",
"deprecated": true
},
{
"name": "count_only",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"description": "Return only the total for these filters -- no permit records. Skips the row fetch entirely, so it is markedly cheaper for both of us when you are sizing a query rather than reading it. `results` comes back empty and `total_capped` / `total_unknown` mean exactly what they always do.",
"default": false,
"title": "Count Only"
},
"description": "Return only the total for these filters -- no permit records. Skips the row fetch entirely, so it is markedly cheaper for both of us when you are sizing a query rather than reading it. `results` comes back empty and `total_capped` / `total_unknown` mean exactly what they always do."
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PermitSearchResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
},
"401": {
"description": "Missing or invalid API key. Pass a key as the `X-API-Key` header.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorDetail"
},
"example": {
"detail": "Invalid API key"
}
}
}
},
"429": {
"description": "Rate limit exceeded -- either the per-minute burst or the daily cap for your plan. Retry after the window resets; the daily cap resets at UTC midnight.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorDetail"
},
"example": {
"detail": "Rate limit exceeded: 30 requests per minute"
}
}
}
},
"403": {
"description": "Your plan does not include this endpoint, or an option you passed. The body is machine-readable: `error` is `feature_locked`, `feature` names the gate, `upgrade_url` links to the cheapest plan that unlocks it, and `current_tier` is the plan you are on.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeatureLocked"
},
"example": {
"detail": {
"error": "feature_locked",
"feature": "full_fields",
"message": "fields=full is available on Developer ($79/mo) and above.",
"upgrade_url": "https://permit-stack.com/?plan=developer&feature=full_fields#pricing",
"current_tier": "Indie"
}
}
}
}
}
}
}
},
"/v1/permits/export": {
"get": {
"tags": [
"Permits"
],
"summary": "Export Permits",
"description": "Export permits matching filters as CSV. Tier-gated row limits.",
"operationId": "export_permits",
"security": [
{
"ApiKey": []
}
],
"parameters": [
{
"name": "zip_code",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Zip Code"
}
},
{
"name": "city",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "City"
}
},
{
"name": "state",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
}
},
{
"name": "category",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Category"
}
},
{
"name": "status",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/PermitStatus"
},
{
"type": "null"
}
],