forked from LabsCrypt/flowfi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflowfi.openapi.json
More file actions
3530 lines (3530 loc) · 99.5 KB
/
Copy pathflowfi.openapi.json
File metadata and controls
3530 lines (3530 loc) · 99.5 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": "FlowFi API",
"version": "1.0.0",
"description": "API documentation for FlowFi - Real-time payment streaming on Stellar\n\n## Performance & Caching\nThe API implements caching for frequently accessed endpoints, such as claimable amount calculations. \n- **Claimable Cache TTL**: 5 seconds\n- **Invalidation**: Automatically cleared when a withdrawal event occurs.\n\n## Sandbox Mode\n\nFlowFi API supports sandbox mode for testing without affecting production data.\n\n**Enable Sandbox Mode:**\n- Header: `X-Sandbox-Mode: true`\n- Query Parameter: `?sandbox=true`\n\n**Sandbox Features:**\n- Isolated database (separate from production)\n- All responses include `_sandbox` metadata\n- Response headers include `X-Sandbox-Mode: true`\n- Safe for testing and development\n\nSee [Sandbox Mode Documentation](../docs/SANDBOX_MODE.md) for details.",
"contact": {
"name": "FlowFi Team",
"url": "https://github.com/LabsCrypt/flowfi"
},
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
}
},
"servers": [
{
"url": "http://localhost:3001/v1",
"description": "Development server (v1)"
},
{
"url": "https://api.flowfi.io/v1",
"description": "Production server (v1)"
}
],
"tags": [
{
"name": "Health",
"description": "Health check endpoints"
},
{
"name": "Users",
"description": "User management endpoints"
},
{
"name": "Streams",
"description": "Payment stream management endpoints"
},
{
"name": "Events",
"description": "Stream event tracking endpoints"
},
{
"name": "Admin",
"description": "Administrative and monitoring endpoints"
}
],
"components": {
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT",
"description": "JSON Web Token issued by /v1/auth/verify after completing the SEP-10 challenge flow."
},
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT",
"description": "Alias for BearerAuth — used by route-level security annotations."
},
"adminAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT",
"description": "Admin JWT — the token subject must match ADMIN_PUBLIC_KEY."
}
},
"schemas": {
"User": {
"type": "object",
"required": [
"id",
"publicKey"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Unique identifier for the user",
"example": "550e8400-e29b-41d4-a716-446655440000"
},
"publicKey": {
"type": "string",
"description": "Stellar public key (G...)",
"example": "GABC123XYZ456DEF789GHI012JKL345MNO678PQR901STU234VWX567YZA"
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "User creation timestamp"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"description": "Last update timestamp"
}
}
},
"Stream": {
"type": "object",
"required": [
"id",
"streamId",
"sender",
"recipient",
"tokenAddress",
"ratePerSecond"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Database UUID"
},
"streamId": {
"type": "integer",
"description": "On-chain stream ID",
"example": 1
},
"sender": {
"type": "string",
"description": "Sender Stellar public key",
"example": "GABC123XYZ456DEF789GHI012JKL345MNO678PQR901STU234VWX567YZA"
},
"recipient": {
"type": "string",
"description": "Recipient Stellar public key",
"example": "GDEF456ABC789GHI012JKL345MNO678PQR901STU234VWX567YZA123BCD"
},
"tokenAddress": {
"type": "string",
"description": "Token contract address",
"example": "CBCD789EFG012HIJ345KLM678NOP901QRS234TUV567WXY890ZAB123CDE"
},
"ratePerSecond": {
"type": "string",
"description": "Payment rate per second (i128 as string)",
"example": "100"
},
"depositedAmount": {
"type": "string",
"description": "Total deposited amount (i128 as string)",
"example": "10000"
},
"withdrawnAmount": {
"type": "string",
"description": "Total withdrawn amount (i128 as string)",
"example": "2500"
},
"startTime": {
"type": "integer",
"description": "Stream start time (Unix timestamp)",
"example": 1708531200
},
"lastUpdateTime": {
"type": "integer",
"description": "Last update time (Unix timestamp)",
"example": 1708534800
},
"isActive": {
"type": "boolean",
"description": "Stream active status",
"example": true
},
"isPaused": {
"type": "boolean",
"description": "Whether the stream is currently paused",
"example": false
},
"pausedAt": {
"type": "integer",
"nullable": true,
"description": "Ledger timestamp when the stream was last paused (Unix), null if not paused",
"example": null
},
"totalPausedDuration": {
"type": "integer",
"description": "Cumulative seconds the stream has spent paused",
"example": 0
},
"endTime": {
"type": "integer",
"nullable": true,
"description": "Ledger timestamp when the stream ended (Unix), null if still active",
"example": null
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
}
},
"StreamEvent": {
"type": "object",
"required": [
"id",
"streamId",
"eventType",
"transactionHash",
"ledgerSequence",
"timestamp"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"streamId": {
"type": "integer",
"description": "Reference to stream ID"
},
"eventType": {
"type": "string",
"enum": [
"CREATED",
"TOPPED_UP",
"WITHDRAWN",
"CANCELLED",
"COMPLETED",
"PAUSED",
"RESUMED",
"FEE_COLLECTED"
],
"description": "Type of stream event",
"example": "TOPPED_UP"
},
"amount": {
"type": "string",
"nullable": true,
"description": "Amount involved in event (i128 as string)",
"example": "5000"
},
"transactionHash": {
"type": "string",
"description": "Stellar transaction hash",
"example": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6"
},
"ledgerSequence": {
"type": "integer",
"description": "Ledger sequence number",
"example": 12345678
},
"timestamp": {
"type": "integer",
"description": "Event timestamp (Unix)",
"example": 1708531200
},
"metadata": {
"type": "string",
"nullable": true,
"description": "Additional event data (JSON string)"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"StreamListResponse": {
"type": "object",
"required": [
"data",
"total",
"hasMore",
"limit",
"offset"
],
"properties": {
"data": {
"type": "array",
"description": "Streams matching the filter, sorted and paginated",
"items": {
"$ref": "#/components/schemas/Stream"
}
},
"total": {
"type": "integer",
"description": "Total number of streams matching the filter"
},
"hasMore": {
"type": "boolean",
"description": "Whether more results are available past this page"
},
"limit": {
"type": "integer",
"description": "Page size applied (capped at MAX_STREAM_PAGE_SIZE)"
},
"offset": {
"type": "integer",
"description": "Number of results skipped"
}
}
},
"StreamEventListResponse": {
"type": "object",
"required": [
"data",
"total",
"hasMore"
],
"properties": {
"data": {
"type": "array",
"description": "Events for the stream, sorted by timestamp (tie-broken by id)",
"items": {
"$ref": "#/components/schemas/StreamEvent"
}
},
"total": {
"type": "integer",
"description": "Total number of events matching the filter"
},
"hasMore": {
"type": "boolean",
"description": "Whether more results are available past this page"
}
}
},
"EventListResponse": {
"type": "object",
"required": [
"events",
"total",
"limit",
"offset",
"hasMore"
],
"properties": {
"events": {
"type": "array",
"description": "Reverse-chronological stream events for the wallet",
"items": {
"$ref": "#/components/schemas/StreamEvent"
}
},
"total": {
"type": "integer",
"description": "Total number of matching events"
},
"limit": {
"type": "integer",
"description": "Page size applied (capped at 200)"
},
"offset": {
"type": "integer",
"description": "Number of events skipped"
},
"hasMore": {
"type": "boolean",
"description": "Whether more results are available past this page"
}
}
},
"UserEventListResponse": {
"type": "object",
"required": [
"data",
"total",
"hasMore",
"limit",
"offset"
],
"properties": {
"data": {
"type": "array",
"description": "Events associated with the user, newest first",
"items": {
"$ref": "#/components/schemas/StreamEvent"
}
},
"total": {
"type": "integer",
"description": "Total number of matching events"
},
"hasMore": {
"type": "boolean",
"description": "Whether more results are available past this page"
},
"limit": {
"type": "integer",
"description": "Page size applied (capped at 200)"
},
"offset": {
"type": "integer",
"description": "Number of events skipped"
}
}
},
"UserStreamSummary": {
"type": "object",
"required": [
"address",
"totalStreamsCreated",
"totalStreamedOut",
"totalStreamedIn",
"currentClaimable",
"activeOutgoingCount",
"activeIncomingCount"
],
"properties": {
"address": {
"type": "string",
"description": "Stellar public key"
},
"totalStreamsCreated": {
"type": "integer",
"description": "Number of streams this wallet sent"
},
"totalStreamedOut": {
"type": "string",
"description": "Sum of withdrawn amounts on outgoing streams (i128 as string)"
},
"totalStreamedIn": {
"type": "string",
"description": "Sum of withdrawn amounts on incoming streams (i128 as string)"
},
"currentClaimable": {
"type": "string",
"description": "Total currently claimable across active incoming streams (i128 as string)"
},
"activeOutgoingCount": {
"type": "integer"
},
"activeIncomingCount": {
"type": "integer"
},
"truncated": {
"type": "boolean",
"description": "True when the number of streams was capped at MAX_USER_STREAMS per direction",
"example": false
}
}
},
"ClaimableResponse": {
"type": "object",
"required": [
"claimableAmount",
"actionable",
"calculatedAt"
],
"properties": {
"streamId": {
"type": "integer",
"description": "On-chain stream ID"
},
"ratePerSecond": {
"type": "string",
"description": "Payment rate per second (i128 as string)"
},
"depositedAmount": {
"type": "string",
"description": "Total deposited amount (i128 as string)"
},
"withdrawnAmount": {
"type": "string",
"description": "Total withdrawn amount (i128 as string)"
},
"startTime": {
"type": "integer",
"description": "Stream start time (Unix timestamp)"
},
"lastUpdateTime": {
"type": "integer",
"description": "Last state update time (Unix timestamp)"
},
"claimableAmount": {
"type": "string",
"description": "Amount claimable at the requested time (i128 as string)"
},
"actionable": {
"type": "boolean",
"description": "Whether the claimable amount is positive"
},
"calculatedAt": {
"type": "integer",
"description": "Unix timestamp of the calculation"
},
"cached": {
"type": "boolean",
"description": "Whether the value came from cache or a fresh computation"
},
"source": {
"type": "string",
"enum": [
"db",
"chain"
],
"description": "Where the value was computed from"
}
}
},
"PauseResumeResponse": {
"type": "object",
"required": [
"success",
"streamId",
"txHash"
],
"properties": {
"success": {
"type": "boolean",
"example": true
},
"streamId": {
"type": "integer"
},
"txHash": {
"type": "string",
"description": "Stellar transaction hash of the pause/resume simulation"
},
"stream": {
"$ref": "#/components/schemas/Stream"
}
}
},
"TopUpResponse": {
"type": "object",
"required": [
"streamId",
"txHash",
"depositedAmount"
],
"properties": {
"streamId": {
"type": "integer"
},
"txHash": {
"type": "string",
"description": "Stellar transaction hash"
},
"depositedAmount": {
"type": "string",
"description": "New total deposited amount after the top-up (i128 as string)"
}
}
},
"WithdrawResponse": {
"type": "object",
"required": [
"success",
"streamId",
"txHash",
"amount"
],
"properties": {
"success": {
"type": "boolean",
"example": true
},
"streamId": {
"type": "integer"
},
"txHash": {
"type": "string",
"description": "Stellar transaction hash of the withdrawal"
},
"amount": {
"type": "string",
"description": "Amount withdrawn (i128 as string)"
},
"stream": {
"$ref": "#/components/schemas/Stream"
}
}
},
"CancelResponse": {
"type": "object",
"required": [
"txHash",
"status"
],
"properties": {
"txHash": {
"type": "string",
"description": "Stellar transaction hash of the cancel"
},
"status": {
"type": "string",
"enum": [
"CANCELLED"
],
"example": "CANCELLED"
}
}
},
"AuthChallengeResponse": {
"type": "object",
"required": [
"nonce",
"expiresAt"
],
"properties": {
"nonce": {
"type": "string",
"description": "Hex-encoded nonce to sign via a Stellar manage_data operation"
},
"expiresAt": {
"type": "integer",
"description": "Unix timestamp (ms) when the challenge expires (60s)"
}
}
},
"AuthVerifyResponse": {
"type": "object",
"required": [
"token",
"expiresIn"
],
"properties": {
"token": {
"type": "string",
"description": "JWT to use in the Authorization: Bearer header"
},
"expiresIn": {
"type": "integer",
"description": "Token lifetime in seconds (3600)"
}
}
},
"SseStats": {
"type": "object",
"required": [
"activeConnections",
"activeIps",
"perIpPeakConnections",
"maxConnections",
"timestamp"
],
"properties": {
"activeConnections": {
"type": "integer",
"example": 42
},
"activeIps": {
"type": "integer",
"example": 8
},
"perIpPeakConnections": {
"type": "integer",
"example": 5
},
"maxConnections": {
"type": "integer",
"example": 10000
},
"timestamp": {
"type": "string",
"format": "date-time"
}
}
},
"WebhookSubscription": {
"type": "object",
"required": [
"id",
"userAddress",
"targetUrl",
"eventTypes",
"active",
"createdAt"
],
"properties": {
"id": {
"type": "string",
"description": "Webhook subscription id"
},
"userAddress": {
"type": "string",
"description": "Stellar public key the subscription belongs to"
},
"targetUrl": {
"type": "string",
"description": "HTTPS endpoint receiving the events"
},
"eventTypes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"CREATED",
"TOPPED_UP",
"WITHDRAWN",
"CANCELLED",
"COMPLETED",
"PAUSED",
"RESUMED",
"FEE_COLLECTED"
]
}
},
"active": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"HealthResponse": {
"type": "object",
"required": [
"status",
"db",
"indexerEnabled",
"uptime",
"checks"
],
"properties": {
"status": {
"type": "string",
"enum": [
"ok",
"degraded"
],
"example": "ok"
},
"db": {
"type": "string",
"enum": [
"connected",
"disconnected"
],
"example": "connected"
},
"indexerEnabled": {
"type": "boolean",
"description": "Whether the event indexer is configured"
},
"indexerLag": {
"type": "integer",
"nullable": true,
"description": "Seconds since last indexer update, or null when no state row exists yet"
},
"eventsProcessed": {
"type": "integer",
"description": "Lifetime count of successfully processed indexer events"
},
"eventsFailed": {
"type": "integer",
"description": "Lifetime count of indexer events that threw during processing"
},
"lastErrorAt": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Most recent per-event processing failure"
},
"indexerDegraded": {
"type": "boolean",
"description": "True when recent event-processing failure rate spikes"
},
"uptime": {
"type": "number",
"description": "Server uptime in seconds"
},
"checks": {
"type": "object",
"description": "Per-subsystem status breakdown",
"properties": {
"database": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ok",
"down"
]
}
}
},
"indexer": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ok",
"degraded",
"disabled"
]
},
"enabled": {
"type": "boolean"
},
"lagSeconds": {
"type": "integer",
"nullable": true
}
}
},
"redis": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ok",
"unavailable",
"not_configured"
]
}
}
},
"sorobanRpc": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ok",
"down"
]
}
}
}
}
}
}
},
"Error": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error message",
"example": "Resource not found"
},
"code": {
"type": "string",
"description": "Error code",
"example": "NOT_FOUND"
},
"message": {
"type": "string",
"nullable": true,
"description": "Human-readable detail (present on many error responses)"
},
"details": {
"type": "array",
"nullable": true,
"description": "Structured validation issues (zod) when the error is a 400",
"items": {
"type": "object"
}
}
}
}
}
},
"paths": {
"/": {
"get": {
"tags": [
"Health"
],
"summary": "Simple health check",
"description": "Returns a simple message to verify the API is running",
"responses": {
"200": {
"description": "API is running successfully"
}
}
}
},
"/health": {
"get": {
"tags": [
"Health"
],
"summary": "Detailed health check",
"description": "Returns liveness and readiness information.\n**Liveness** (200 vs 503) is determined by DB reachability alone.\n**Indexer lag** is reported in the body for observability but only\nforces a 503 when the indexer is actually enabled\n(`STREAM_CONTRACT_ID` env var set) and its state row is stale\n(lag > 60 s). A cold-started instance with no state row yet, or a\ndeployment with the indexer intentionally disabled, always returns 200\nas long as the DB is reachable.\n**Event-processing failures** are also reported. When the indexer is\nenabled and recent per-event failures spike (≥50% of attempts in the\nlast 5 minutes, with ≥3 samples), the endpoint returns 503 even if\nlag looks healthy (the IndexerState upsert bumps updatedAt every poll).\n",
"responses": {
"200": {
"description": "Service is healthy",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HealthResponse"
}
}
}
},
"503": {
"description": "Service is degraded or unhealthy",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HealthResponse"
}
}
}
}
}
}
},
"/v1/webhooks": {
"post": {
"summary": "Register a new webhook subscription",
"description": "Creates a webhook subscription. The returned `secretKey` is only shown once.",
"tags": [
"Webhooks"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"userAddress",
"targetUrl",
"eventTypes"
],
"properties": {
"userAddress": {
"type": "string",
"description": "Stellar public key"
},
"targetUrl": {
"type": "string",
"format": "uri"
},
"eventTypes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"CREATED",
"TOPPED_UP",
"WITHDRAWN",
"CANCELLED",
"COMPLETED",
"PAUSED",
"RESUMED",
"FEE_COLLECTED"
]
}
}
}
}
}
}
},
"responses": {
"201": {
"description": "Webhook created successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"subscription": {
"$ref": "#/components/schemas/WebhookSubscription"
},
"secretKey": {
"type": "string",
"description": "Webhook signing secret (returned only once)"
},
"message": {
"type": "string"
}
}
}
}
}
},
"400": {
"description": "Missing required fields",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
},
"get": {
"summary": "List all webhooks for authenticated user",
"tags": [
"Webhooks"
],