-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPI_DOCUMENTATION_OPENAPI.yaml
More file actions
1659 lines (1564 loc) · 45 KB
/
Copy pathAPI_DOCUMENTATION_OPENAPI.yaml
File metadata and controls
1659 lines (1564 loc) · 45 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: Nirium Protocol API
version: 2.5.0
description: |
**Nirium Protocol** - Autonomous AI Agent Matrix on Stellar/Soroban
This API provides access to:
- Multi-asset vault management (XLM, USDC, CETES)
- Autonomous agent orchestration
- Real-time market data and signals
- Strategy execution and testing
- WebSocket subscriptions for live updates
## Institutional Security & Compliance (AAA Grade)
As of Apr 1, 2026, Nirium Protocol adheres to the highest institutional standards:
- **Data Residency**: Fully compliant with Mexico's LFPDPPP and California's DFAL.
- **Smart Contract Audits**: Zero critical vulnerabilities. Fuzz-tested with `cargo-fuzz`.
- **API Security**: 100% compliant with OWASP API Security Top 10. Full-spectrum internal penetration review passed.
- **JWT**: HS256 algorithm locked — `alg:none` / algorithm-confusion attacks blocked.
- **Prototype Pollution**: All request bodies stripped of `__proto__`/`constructor`/`prototype` keys before routing.
- **Host Header Injection**: Incoming `Host` header validated against `nirium.xyz` allowlist on the Edge proxy.
- **WebSocket**: JWT required via query param (`?token=`). Per-IP connection rate limit: 10 connections/min.
- **Responsible Disclosure**: `/.well-known/security.txt` (RFC 9116) available at `https://nirium.xyz/.well-known/security.txt`.
- **SDKs**: Official wrappers available on npm (`nirium`) and PyPI (`nirium`).
## Authentication
Nirium supports multiple authentication methods:
1. **JWT Tokens** (short-lived, 1h — HS256 algorithm locked)
- Obtain via `/api/public/demo-auth` or `/api/auth/token`
- Use header: `Authorization: Bearer <token>`
- WebSocket: pass as query param `wss://nirium-agent.fly.dev/ws/signals?token=<jwt>`
2. **API Keys** (long-lived, institutional)
- Request via `/api/sandbox/request` or `/api/auth/keys`
- Use header: `x-api-key: <your-api-key>`
## Rate Limiting
Rate limits vary by tier:
| Tier | Requests/Min | Requests/Day |
|------|--------------|--------------|
| Free | 10 | 100 |
| Sandbox | 60 | 1,000 |
| Institutional | 300 | 10,000 |
| Enterprise | 1,000 | 100,000 |
## Base URLs
- **Production:** `https://nirium-agent.fly.dev`
- **Staging:** `https://api-staging.nirium.xyz`
- **Local Dev:** `http://localhost:3001`
## Support
- **Documentation:** https://docs.nirium.xyz
- **Email:** xvaiosx7@gmail.com
- **Discord:** https://discord.gg/nirium
contact:
name: Nirium Protocol Support
email: xvaiosx7@gmail.com
url: https://nirium.xyz
license:
name: MIT
url: https://github.com/Eras256/Nirium/blob/main/LICENSE
servers:
- url: https://nirium-agent.fly.dev
description: Production Server
- url: https://api-staging.nirium.xyz
description: Staging Server
- url: http://localhost:3001
description: Local Development
tags:
- name: Public
description: Public endpoints (no authentication required)
- name: Authentication
description: JWT tokens and API key management
- name: Sandbox
description: Institutional sandbox accounts
- name: Market Data
description: Real-time market data and signals
- name: Execution
description: Strategy execution (production and demo)
- name: Autonomous Loop
description: Autonomous agent loop control
- name: Webhooks
description: HMAC-signed webhook management
- name: Subscriptions
description: WebSocket subscription management
- name: Skills
description: Plugin/skill marketplace and management
- name: System
description: Health checks and system configuration
paths:
# ========================================
# PUBLIC ENDPOINTS
# ========================================
/health:
get:
tags: [Public]
summary: Health check
description: Simple health endpoint to verify API availability. No authentication required.
operationId: getHealth
responses:
'200':
description: Service is operational
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum: [online, degraded, offline]
example: online
service:
type: string
example: nirium-matrix-v2.5
matrix:
type: string
example: stable
/api/info:
get:
tags: [Public]
summary: API information
description: Returns comprehensive API documentation and available endpoints
operationId: getApiInfo
responses:
'200':
description: API information
content:
application/json:
schema:
type: object
properties:
name:
type: string
version:
type: string
network:
type: string
documentation:
type: string
format: uri
endpoints:
type: object
llm:
type: object
properties:
active:
type: string
available:
type: array
items:
type: string
/api/public/demo-auth:
post:
tags: [Public, Authentication]
summary: Generate demo token
description: |
Generate a demo JWT token without signature verification.
Useful for testing and onboarding. Returns a free-tier token valid for 1 hour.
operationId: postDemoAuth
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [walletAddress]
properties:
walletAddress:
type: string
pattern: '^G[A-Z0-9]{55}$'
description: Valid Stellar wallet address
example: GAAAA...
responses:
'200':
description: Token generated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'400':
$ref: '#/components/responses/BadRequest'
/api/public/authenticate:
post:
tags: [Public, Authentication]
summary: Wallet signature authentication
description: |
Authenticate using Stellar wallet signature.
For production use with proper cryptographic verification.
operationId: postAuthenticate
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [walletAddress, signature]
properties:
walletAddress:
type: string
pattern: '^G[A-Z0-9]{55}$'
signature:
type: string
description: Base64-encoded signature
message:
type: string
description: Message that was signed
responses:
'200':
description: Authentication successful
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
/api/public/market-snapshot:
get:
tags: [Public, Market Data]
summary: Public market snapshot
description: Limited market data snapshot without authentication
operationId: getMarketSnapshot
responses:
'200':
description: Market snapshot
content:
application/json:
schema:
type: object
properties:
timestamp:
type: string
format: date-time
network:
type: string
assets:
type: array
items:
$ref: '#/components/schemas/AssetInfo'
note:
type: string
/api/public/examples:
get:
tags: [Public]
summary: Code examples
description: Returns code examples in multiple languages (cURL, JavaScript, Python)
operationId: getExamples
responses:
'200':
description: Code examples
content:
application/json:
schema:
type: object
properties:
curl:
type: object
javascript:
type: object
python:
type: object
/api/public/quickstart:
get:
tags: [Public]
summary: Quick start guide
description: Step-by-step guide to get started with the API
operationId: getQuickstart
responses:
'200':
description: Quick start guide
content:
application/json:
schema:
type: object
properties:
title:
type: string
steps:
type: array
items:
$ref: '#/components/schemas/QuickstartStep'
/api/tickers:
get:
tags: [Market Data]
summary: Asset price tickers
description: |
Real-time asset price tickers derived from Stellar Horizon order books.
Returns XLM and USDC prices. No deep authentication required — standard API key sufficient.
operationId: getTickers
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: Current asset tickers
content:
application/json:
schema:
type: object
properties:
tickers:
type: array
items:
$ref: '#/components/schemas/Ticker'
timestamp:
type: string
format: date-time
network:
type: string
enum: [testnet, mainnet]
'401':
$ref: '#/components/responses/Unauthorized'
# ========================================
# SANDBOX ENDPOINTS
# ========================================
/api/sandbox/request:
post:
tags: [Sandbox]
summary: Request sandbox account
description: |
Request a new sandbox account for institutional testing.
Returns API key (shown only once) and tier quotas.
operationId: postSandboxRequest
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SandboxRequest'
responses:
'200':
description: Sandbox account created
content:
application/json:
schema:
$ref: '#/components/schemas/SandboxAccountResponse'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimitExceeded'
/api/sandbox/info:
get:
tags: [Sandbox]
summary: Sandbox program information
description: Public information about sandbox tiers, quotas, and features
operationId: getSandboxInfo
responses:
'200':
description: Sandbox information
content:
application/json:
schema:
type: object
properties:
name:
type: string
description:
type: string
tiers:
type: object
features:
type: array
items:
type: string
/api/sandbox/status:
get:
tags: [Sandbox]
summary: Sandbox account status
description: Get current sandbox account status, quotas, and usage
operationId: getSandboxStatus
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: Sandbox status
content:
application/json:
schema:
$ref: '#/components/schemas/SandboxStatus'
'401':
$ref: '#/components/responses/Unauthorized'
/api/sandbox/accounts:
get:
tags: [Sandbox]
summary: List sandbox accounts (admin only)
description: List all sandbox accounts with details
operationId: getSandboxAccounts
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: List of sandbox accounts
content:
application/json:
schema:
type: object
properties:
total:
type: number
accounts:
type: array
items:
$ref: '#/components/schemas/SandboxAccount'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
# ========================================
# AUTHENTICATION ENDPOINTS
# ========================================
/api/auth/token:
post:
tags: [Authentication]
summary: Generate JWT token
description: Generate a JWT token for wallet address
operationId: postAuthToken
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [walletAddress]
properties:
walletAddress:
type: string
responses:
'200':
description: Token generated
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'400':
$ref: '#/components/responses/BadRequest'
/api/auth/keys:
post:
tags: [Authentication]
summary: Generate API key
description: Generate a new API key for the authenticated user
operationId: postApiKey
security:
- bearerAuth: []
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Friendly name for the key
example: Production Key
tier:
type: string
enum: [free, sandbox, institutional, enterprise]
responses:
'200':
description: API key generated
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
apiKey:
type: string
description: The API key (shown only once)
name:
type: string
tier:
type: string
message:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
get:
tags: [Authentication]
summary: List API keys
description: Get all API keys for the authenticated user
operationId: getApiKeys
security:
- bearerAuth: []
responses:
'200':
description: List of API keys
content:
application/json:
schema:
type: object
properties:
keys:
type: array
items:
$ref: '#/components/schemas/ApiKey'
'401':
$ref: '#/components/responses/Unauthorized'
/api/auth/keys/{id}:
delete:
tags: [Authentication]
summary: Revoke API key
description: Revoke an API key by ID
operationId: deleteApiKey
security:
- bearerAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: API key revoked
content:
application/json:
schema:
type: object
properties:
message:
type: string
'404':
$ref: '#/components/responses/NotFound'
# ========================================
# MARKET DATA ENDPOINTS
# ========================================
/api/market:
get:
tags: [Market Data]
summary: Get market data
description: |
Get comprehensive real-time market data from Stellar SDEX.
Includes orderbook, spreads, volumes, and price movements.
operationId: getMarket
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: Market data
content:
application/json:
schema:
$ref: '#/components/schemas/MarketData'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimitExceeded'
/api/signals/recent:
get:
tags: [Market Data]
summary: Get recent signals
description: Get recent trading signals from autonomous agents
operationId: getRecentSignals
security:
- bearerAuth: []
- apiKeyAuth: []
parameters:
- name: count
in: query
schema:
type: number
minimum: 1
maximum: 100
default: 20
responses:
'200':
description: Recent signals
content:
application/json:
schema:
type: object
properties:
signals:
type: array
items:
$ref: '#/components/schemas/Signal'
# ========================================
# EXECUTION ENDPOINTS
# ========================================
/api/execute:
post:
tags: [Execution]
summary: Execute strategy (live Soroban transaction)
description: |
Execute a trading strategy via a real Soroban smart contract invocation on Stellar.
Builds an XDR transaction envelope, simulates it, signs it, submits to the network,
and polls for on-chain confirmation. Returns the transaction hash and profit.
**Required headers:**
- `x-api-key` — your institutional API key
- `x-stellar-account` — your Stellar wallet address (used for legal consent verification)
**Available strategies:**
- `flash-loan-arb` → `flash_loan_execute`
- `path-arbitrage` → `execute_path_arbitrage`
- `cross-dex` → `execute_cross_dex`
- `blend-yield` → `execute_blend_yield`
- `soroswap-swap` → `execute_soroswap_swap`
operationId: postExecute
security:
- bearerAuth: []
- apiKeyAuth: []
parameters:
- name: x-stellar-account
in: header
required: true
schema:
type: string
pattern: '^G[A-Z0-9]{55}$'
description: Stellar wallet address for legal consent verification
example: GCVVQUDCIHIMZLIZCWPMCORWOX32OX5NVU2EMT7S2DRV2VOVPLEMINR3
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteRequest'
responses:
'200':
description: Strategy executed and confirmed on-chain
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: Legal consent missing or wallet not enrolled
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: "Forbidden: Legal Consent Required (Missing x-stellar-account header)"
code:
type: string
example: LEGAL_CONSENT_REQUIRED
hint:
type: string
'429':
$ref: '#/components/responses/RateLimitExceeded'
/api/execute-demo:
post:
tags: [Execution]
summary: Execute strategy (Soroban dry-run simulation)
description: |
Execute a trading strategy in simulation mode using Soroban's simulateTransaction.
No transaction is submitted to the network. Safe to call repeatedly.
Returns a professional market assessment message regardless of simulation outcome.
operationId: postExecuteDemo
security:
- bearerAuth: []
- apiKeyAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [strategy]
properties:
strategy:
type: string
enum: [flash-loan-arb, path-arbitrage, cross-dex, blend-yield, soroswap-swap]
example: path-arbitrage
asset:
type: string
example: XLM
responses:
'200':
description: Simulation result with market assessment
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
simulated_profit:
type: number
description: Simulated profit in stroops (0 means no arbitrage window)
example: 10
gas_consumed:
type: number
description: Estimated gas in stroops
example: 19417
message:
type: string
enum:
- "Arbitrage window detected — executing strategy"
- "No arbitrage window detected — market conditions stable"
'400':
$ref: '#/components/responses/BadRequest'
# ========================================
# AUTONOMOUS LOOP ENDPOINTS
# ========================================
/api/loop/start:
post:
tags: [Autonomous Loop]
summary: Start autonomous loop
description: Start the autonomous trading loop with custom configuration
operationId: postLoopStart
security:
- bearerAuth: []
- apiKeyAuth: []
requestBody:
content:
application/json:
schema:
type: object
properties:
config:
type: object
properties:
interval:
type: number
description: Loop interval in milliseconds
example: 60000
assets:
type: array
items:
type: string
example: [XLM, USDC]
strategies:
type: array
items:
type: string
responses:
'200':
description: Loop started
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
/api/loop/stop:
post:
tags: [Autonomous Loop]
summary: Stop autonomous loop
description: Stop the running autonomous trading loop
operationId: postLoopStop
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: Loop stopped
/api/loop/status:
get:
tags: [Autonomous Loop]
summary: Get loop status
description: Get current status of autonomous loop
operationId: getLoopStatus
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: Loop status
content:
application/json:
schema:
$ref: '#/components/schemas/LoopStatus'
/api/loop/scan:
post:
tags: [Autonomous Loop]
summary: Perform manual scan
description: Manually trigger a market scan
operationId: postLoopScan
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: Scan result
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
marketState:
$ref: '#/components/schemas/MarketData'
# ========================================
# WEBHOOKS ENDPOINTS
# ========================================
/api/webhooks:
post:
tags: [Webhooks]
summary: Register webhook
description: Register a new HMAC-signed webhook for events
operationId: postWebhook
security:
- bearerAuth: []
- apiKeyAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookRequest'
responses:
'200':
description: Webhook registered
content:
application/json:
schema:
$ref: '#/components/schemas/Webhook'
'400':
$ref: '#/components/responses/BadRequest'
get:
tags: [Webhooks]
summary: List webhooks
description: Get all registered webhooks for the user
operationId: getWebhooks
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: List of webhooks
content:
application/json:
schema:
type: object
properties:
webhooks:
type: array
items:
$ref: '#/components/schemas/Webhook'
/api/webhooks/{id}:
delete:
tags: [Webhooks]
summary: Delete webhook
description: Delete a registered webhook
operationId: deleteWebhook
security:
- bearerAuth: []
- apiKeyAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Webhook deleted
'404':
$ref: '#/components/responses/NotFound'
/api/webhooks/{id}/test:
post:
tags: [Webhooks]
summary: Test webhook
description: Send a test event to webhook
operationId: postWebhookTest
security:
- bearerAuth: []
- apiKeyAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Test result
# ========================================
# SUBSCRIPTIONS ENDPOINTS
# ========================================
/api/subscriptions:
post:
tags: [Subscriptions]
summary: Create subscription
description: Create a new WebSocket subscription with filters
operationId: postSubscription
security:
- bearerAuth: []
- apiKeyAuth: []
requestBody:
content:
application/json:
schema:
type: object
properties:
filters:
type: object
responses:
'200':
description: Subscription created
content:
application/json:
schema:
$ref: '#/components/schemas/Subscription'
get:
tags: [Subscriptions]
summary: List subscriptions
description: Get all subscriptions for the user
operationId: getSubscriptions
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: List of subscriptions
content:
application/json:
schema:
type: object
properties:
subscriptions:
type: array
items:
$ref: '#/components/schemas/Subscription'
/api/subscriptions/{id}:
delete:
tags: [Subscriptions]
summary: Delete subscription
description: Delete a WebSocket subscription
operationId: deleteSubscription
security:
- bearerAuth: []
- apiKeyAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Subscription deleted
'404':
$ref: '#/components/responses/NotFound'
/api/subscriptions/stats: