-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1314 lines (1253 loc) · 38.7 KB
/
openapi.yaml
File metadata and controls
1314 lines (1253 loc) · 38.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Creditra API
version: 0.1.0
description: |
Backend API for Creditra – on-chain credit scoring and risk evaluation.
Browser clients are restricted by a CORS allowlist. Production deployments
must set `CORS_ORIGINS` to a comma-separated list of exact origins; local
development falls back to loopback origins when the variable is unset.
## Authentication
Protected endpoints require a valid API key passed via the `X-API-Key` header.
API keys are configured via the `API_KEYS` environment variable (comma-separated).
## Keeping the spec in sync
- Every new route **must** have a corresponding entry here before merging.
- Run `npm run validate:spec` in CI to catch YAML/structural errors early.
- Use path-level `operationId` values as the source of truth for client generation.
servers:
- url: http://localhost:3000
description: Local development
tags:
- name: Health
description: Service liveness check
- name: Credit
description: Credit line management
- name: Risk
description: On-chain risk evaluation
- name: Webhooks
description: Draw confirmation webhook management
security:
- ApiKeyAuth: []
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: |
API key for authenticated endpoints. Required for admin operations.
Keys are configured via the `API_KEYS` environment variable.
schemas:
HealthResponse:
type: object
required: [status, service]
properties:
status:
type: string
example: ok
service:
type: string
example: creditra-backend
# ── Credit Line Schemas ──────────────────────────────────────────────────
CreateCreditLineRequest:
type: object
required: [walletAddress, requestedLimit]
properties:
walletAddress:
type: string
minLength: 1
maxLength: 256
description: Stellar wallet address
example: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOUJ3LNLRK"
requestedLimit:
type: string
pattern: "^\\d+(\\.\\d+)?$"
description: Requested credit limit as a decimal string
example: "1000.00"
additionalProperties: false
UpdateCreditLineRequest:
type: object
properties:
creditLimit:
type: string
pattern: "^\\d+(\\.\\d+)?$"
description: Updated credit limit
example: "1500.00"
interestRateBps:
type: number
description: Interest rate in basis points
example: 640
status:
type: string
enum: [active, suspended, closed]
description: Credit line status
additionalProperties: false
CreditLine:
type: object
properties:
id:
type: string
description: Unique credit line identifier
example: "cl_abc123"
walletAddress:
type: string
description: Associated Stellar wallet address
example: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOUJ3LNLRK"
creditLimit:
type: string
description: Approved credit limit
example: "720.00000000"
currentBalance:
type: string
description: Current outstanding balance
example: "100.00000000"
availableCredit:
type: string
description: Available credit (creditLimit - currentBalance)
example: "620.00000000"
interestRateBps:
type: number
description: Interest rate in basis points
example: 640
status:
type: string
enum: [active, suspended, closed]
description: Current credit line status
createdAt:
type: string
format: date-time
description: ISO 8601 creation timestamp
updatedAt:
type: string
format: date-time
description: ISO 8601 last update timestamp
CreditLinesResponse:
type: object
required: [creditLines, pagination]
properties:
creditLines:
type: array
items:
$ref: "#/components/schemas/CreditLine"
pagination:
type: object
properties:
total:
type: integer
offset:
type: integer
limit:
type: integer
required: [total, offset, limit]
WalletCreditLinesResponse:
type: object
required: [creditLines]
properties:
creditLines:
type: array
items:
$ref: "#/components/schemas/CreditLine"
CreditLineActionResponse:
type: object
required: [line, message]
properties:
line:
$ref: "#/components/schemas/CreditLine"
message:
type: string
example: "Credit line suspended."
# ── Transaction Schemas ──────────────────────────────────────────────────
Transaction:
type: object
required: [id, creditLineId, type, amount, currency, timestamp, metadata]
properties:
id:
type: string
format: uuid
description: Unique transaction identifier
creditLineId:
type: string
description: ID of the credit line this transaction belongs to
type:
type: string
enum: [borrow, repay, interest_accrual, fee, status_change]
description: Transaction type
amount:
type: string
nullable: true
description: Transaction amount as a decimal string; null for status changes
example: "500.00000000"
currency:
type: string
nullable: true
description: Currency code (e.g. USDC); null for status changes
example: USDC
timestamp:
type: string
format: date-time
description: ISO 8601 timestamp of when the transaction occurred
metadata:
type: object
additionalProperties: true
description: Additional context; status changes include an 'action' field
example:
action: created
TransactionHistoryResponse:
type: object
required: [data]
properties:
data:
type: object
required: [transactions, total, page, limit, totalPages]
properties:
transactions:
type: array
items:
$ref: "#/components/schemas/Transaction"
total:
type: integer
description: Total number of transactions matching the applied filters
page:
type: integer
description: Current page number (1-indexed)
limit:
type: integer
description: Maximum number of transactions per page
totalPages:
type: integer
description: Total number of pages available
# ── Risk Evaluation Schemas ───────────────────────────────────────────────
RiskEvaluateRequest:
type: object
required: [walletAddress]
properties:
walletAddress:
type: string
description: Stellar wallet address to evaluate
example: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOUJ3LNLRK"
forceRefresh:
type: boolean
description: Optional hint to bypass cache and recalculate risk
default: false
additionalProperties: false
RiskEvaluateResponse:
type: object
required: [walletAddress, riskScore, creditLimit, interestRateBps, message]
properties:
walletAddress:
type: string
example: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOUJ3LNLRK"
riskScore:
type: number
description: Risk score (0-100)
example: 72
creditLimit:
type: string
description: Recommended credit limit
example: "720.00000000"
interestRateBps:
type: number
description: Recommended interest rate in basis points
example: 640
message:
type: string
example: "New risk evaluation completed"
RiskEvaluateApiResponse:
type: object
required: [data]
properties:
data:
$ref: "#/components/schemas/RiskEvaluateResponse"
error:
type: string
nullable: true
RiskEvaluation:
type: object
properties:
id:
type: string
format: uuid
description: Unique evaluation identifier
walletAddress:
type: string
description: Evaluated wallet address
riskScore:
type: number
description: Risk score (0-100)
creditLimit:
type: string
description: Recommended credit limit
interestRateBps:
type: number
description: Recommended interest rate in basis points
factors:
type: object
additionalProperties: true
description: Risk evaluation factors and weights
evaluatedAt:
type: string
format: date-time
description: ISO 8601 evaluation timestamp
RiskEvaluationHistoryResponse:
type: object
required: [evaluations]
properties:
evaluations:
type: array
items:
$ref: "#/components/schemas/RiskEvaluation"
# ── Webhook Schemas ───────────────────────────────────────────────────────
WebhookConfigResponse:
type: object
properties:
urls:
type: array
items:
type: string
example: ["https://example.com/webhook"]
maxRetries:
type: integer
example: 3
initialBackoffMs:
type: integer
example: 1000
backoffMultiplier:
type: number
example: 2.0
timeoutMs:
type: integer
example: 10000
configured:
type: boolean
example: true
WebhookTestResponse:
type: object
properties:
total:
type: integer
reachable:
type: integer
unreachable:
type: integer
results:
type: array
items:
type: object
properties:
url:
type: string
reachable:
type: boolean
error:
type: string
nullable: true
WebhookHealthResponse:
type: object
properties:
status:
type: string
enum: [active, disabled]
urls:
type: integer
description: Number of configured webhook URLs
maxRetries:
type: integer
timeoutMs:
type: integer
AdminRecalibrateResponse:
type: object
properties:
message:
type: string
example: "Risk model recalibration triggered"
# ── Error Schemas ─────────────────────────────────────────────────────────
ErrorResponse:
type: object
required: [error]
properties:
error:
type: string
id:
type: string
description: Present on 404 responses that reference a specific resource
RateLimitErrorResponse:
type: object
required: [error]
properties:
error:
type: string
example: "Too many requests"
paths:
/health:
get:
tags: [Health]
operationId: getHealth
summary: Liveness check
security: []
responses:
"200":
description: Service is running
content:
application/json:
schema:
$ref: "#/components/schemas/HealthResponse"
example:
status: ok
service: creditra-backend
# ── Credit Lines Routes ─────────────────────────────────────────────────────
/api/credit/lines:
get:
tags: [Credit]
operationId: listCreditLines
summary: List all credit lines
security: []
parameters:
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
description: Pagination offset
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 100
description: Number of credit lines per page
responses:
"200":
description: Array of credit lines (may be empty)
headers:
X-RateLimit-Limit:
description: Maximum requests allowed per window
schema:
type: integer
example: 100
X-RateLimit-Remaining:
description: Requests remaining in current window
schema:
type: integer
example: 95
X-RateLimit-Reset:
description: Unix timestamp when the rate limit window resets
schema:
type: integer
example: 1700000060
content:
application/json:
schema:
$ref: "#/components/schemas/CreditLinesResponse"
example:
creditLines: []
pagination:
total: 0
offset: 0
limit: 100
"400":
description: Invalid query parameter
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: Rate limit exceeded
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
example: 47
X-RateLimit-Limit:
schema:
type: integer
X-RateLimit-Remaining:
schema:
type: integer
X-RateLimit-Reset:
schema:
type: integer
content:
application/json:
schema:
$ref: "#/components/schemas/RateLimitErrorResponse"
post:
tags: [Credit]
operationId: createCreditLine
summary: Create a new credit line
security: []
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateCreditLineRequest"
example:
walletAddress: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOUJ3LNLRK"
requestedLimit: "1000.00"
responses:
"201":
description: Credit line created successfully
content:
application/json:
schema:
$ref: "#/components/schemas/CreditLine"
"400":
description: Validation error or missing required fields
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/api/credit/lines/{id}:
get:
tags: [Credit]
operationId: getCreditLineById
summary: Get a credit line by ID
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Credit line identifier
responses:
"200":
description: Credit line found
headers:
X-RateLimit-Limit:
schema:
type: integer
X-RateLimit-Remaining:
schema:
type: integer
X-RateLimit-Reset:
schema:
type: integer
content:
application/json:
schema:
$ref: "#/components/schemas/CreditLine"
"404":
description: Credit line not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
error: Credit line not found
id: "abc123"
"429":
description: Rate limit exceeded
headers:
Retry-After:
schema:
type: integer
X-RateLimit-Limit:
schema:
type: integer
X-RateLimit-Remaining:
schema:
type: integer
X-RateLimit-Reset:
schema:
type: integer
content:
application/json:
schema:
$ref: "#/components/schemas/RateLimitErrorResponse"
put:
tags: [Credit]
operationId: updateCreditLine
summary: Update a credit line
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Credit line identifier
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateCreditLineRequest"
example:
creditLimit: "1500.00"
interestRateBps: 640
status: active
responses:
"200":
description: Credit line updated successfully
content:
application/json:
schema:
$ref: "#/components/schemas/CreditLine"
"400":
description: Validation error
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: Credit line not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
delete:
tags: [Credit]
operationId: deleteCreditLine
summary: Delete a credit line
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Credit line identifier
responses:
"204":
description: Credit line deleted successfully
"404":
description: Credit line not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: Internal server error
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/api/credit/lines/{id}/transactions:
get:
tags: [Credit]
operationId: getCreditLineTransactions
summary: List transaction history for a credit line
description: |
Returns a paginated list of transactions for the given credit line.
Supports optional filtering by transaction type and date range.
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Credit line identifier
- name: type
in: query
required: false
schema:
type: string
enum: [borrow, repay, interest_accrual, fee, status_change]
description: Filter by transaction type
- name: from
in: query
required: false
schema:
type: string
format: date-time
description: Include only transactions at or after this ISO 8601 timestamp (inclusive)
- name: to
in: query
required: false
schema:
type: string
format: date-time
description: Include only transactions at or before this ISO 8601 timestamp (inclusive)
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
description: Page number (1-indexed)
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 20
description: Number of transactions per page
responses:
"200":
description: Paginated list of transactions
content:
application/json:
schema:
$ref: "#/components/schemas/TransactionHistoryResponse"
example:
data:
transactions:
- id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
creditLineId: "line-abc"
type: status_change
amount: null
currency: null
timestamp: "2024-01-15T10:00:00.000Z"
metadata:
action: created
total: 1
page: 1
limit: 20
totalPages: 1
"400":
description: Invalid query parameter
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
error: "Invalid type filter. Must be one of: borrow, repay, interest_accrual, fee, status_change."
"404":
description: Credit line not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/api/credit/lines/{id}/suspend:
post:
tags: [Credit]
operationId: suspendCreditLine
summary: Suspend a credit line
description: |
Suspends the specified credit line, preventing further draws.
Requires API key authentication.
security:
- ApiKeyAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Credit line identifier
responses:
"200":
description: Credit line suspended successfully
content:
application/json:
schema:
$ref: "#/components/schemas/CreditLineActionResponse"
"401":
description: API key missing
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
error: Unauthorized
"403":
description: Invalid API key
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
error: Forbidden
"404":
description: Credit line not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/api/credit/lines/{id}/close:
post:
tags: [Credit]
operationId: closeCreditLine
summary: Close a credit line
description: |
Closes the specified credit line permanently.
Requires API key authentication.
security:
- ApiKeyAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Credit line identifier
responses:
"200":
description: Credit line closed successfully
content:
application/json:
schema:
$ref: "#/components/schemas/CreditLineActionResponse"
"401":
description: API key missing
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
error: Unauthorized
"403":
description: Invalid API key
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
error: Forbidden
"404":
description: Credit line not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/api/credit/wallet/{walletAddress}/lines:
get:
tags: [Credit]
operationId: getCreditLinesByWallet
summary: Get credit lines for a specific wallet
security: []
parameters:
- name: walletAddress
in: path
required: true
schema:
type: string
description: Stellar wallet address
responses:
"200":
description: Credit lines for the wallet
content:
application/json:
schema:
$ref: "#/components/schemas/WalletCreditLinesResponse"
example:
creditLines:
- id: "cl_abc123"
walletAddress: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOUJ3LNLRK"
creditLimit: "720.00000000"
currentBalance: "100.00000000"
availableCredit: "620.00000000"
interestRateBps: 640
status: active
createdAt: "2024-01-15T10:00:00.000Z"
updatedAt: "2024-01-15T10:00:00.000Z"
"500":
description: Internal server error
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
# ── Risk Evaluation Routes ──────────────────────────────────────────────────
/api/risk/evaluate:
post:
tags: [Risk]
operationId: evaluateRisk
summary: Evaluate on-chain risk for a wallet
description: |
Performs a fresh risk evaluation for the given Stellar wallet address.
Rate limited: default 10 requests per minute per IP address.
Configure via RATE_LIMIT_MAX_EVALUATE and RATE_LIMIT_WINDOW_MS env vars.
security: []
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RiskEvaluateRequest"
example:
walletAddress: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOUJ3LNLRK"
forceRefresh: false
responses:
"200":
description: Risk evaluation result
headers:
X-RateLimit-Limit:
description: Maximum requests allowed per window
schema:
type: integer
example: 10
X-RateLimit-Remaining:
description: Requests remaining in current window
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp when the rate limit window resets
schema:
type: integer
content:
application/json:
schema:
$ref: "#/components/schemas/RiskEvaluateApiResponse"
example:
data:
walletAddress: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOUJ3LNLRK"
riskScore: 72
creditLimit: "720.00000000"
interestRateBps: 640
message: New risk evaluation completed
error: null
"400":
description: Missing required field
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
error: Validation failed
"413":
description: Request body exceeds the 100 kb limit
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
data: null
error: Request body too large. Maximum size is 100kb.
"415":
description: Content-Type is not application/json
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
data: null
error: Content-Type must be application/json
/api/webhooks/config:
get:
tags: [Webhooks]
operationId: getWebhookConfig
summary: Get webhook configuration
description: Returns the current webhook configuration (excluding sensitive data)
security: []
responses:
"200":
description: Webhook configuration
content:
application/json:
schema:
$ref: "#/components/schemas/WebhookConfigResponse"
example:
urls: ["https://example.com/webhook"]
maxRetries: 3
initialBackoffMs: 1000
backoffMultiplier: 2.0
timeoutMs: 10000
configured: true
/api/webhooks/test:
post:
tags: [Webhooks]
operationId: testWebhooks
summary: Test webhook connectivity
description: Sends a test payload to all configured webhook endpoints
security: []
responses: