-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathopenapi.yaml
More file actions
2270 lines (2169 loc) · 63.7 KB
/
Copy pathopenapi.yaml
File metadata and controls
2270 lines (2169 loc) · 63.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.1.0
info:
title: Ethos-Protocol Backend API
description: >
Backend API for Ethos-Protocol, a decentralized "Dead Man's Switch" built on Stellar/Soroban.
This API provides endpoints for vault management, reminder preferences, notifications, and administrative operations.
version: 1.0.0
contact:
name: Ethos-Protocol Team
url: https://github.com/Ethos-Protocol/Ethos-Protocol
license:
name: MIT
url: https://opensource.org/licenses/MIT
servers:
- url: http://localhost:3000
description: Local development server
- url: https://api.ethos-protocol.app
description: Production server
- url: https://testnet-api.ethos-protocol.app
description: Testnet server
tags:
- name: Health & Status
description: API health checks and status endpoints
- name: Reminder Preferences
description: Vault reminder notification preferences
- name: Notifications
description: Push notification and delivery management
- name: TTL Insurance
description: TTL insurance policy management
- name: Vaults
description: Vault query and analytics
- name: Vault Sharing
description: Share vault access with other users
- name: Vault Backup
description: Backup and recovery operations
- name: Release Simulator
description: Project vault release dates under different check-in behaviour scenarios
- name: Time-Series
description: Time-series data ingestion, querying, compression, retention, and benchmarking (#75)
- name: Bulk Jobs
description: Async bulk operation queuing, progress tracking, and result retrieval (#74)
- name: Cost Estimation
description: Pre-flight Stellar/Soroban operation cost estimation (#72)
- name: Request Replay
description: API request replay for debugging and regression testing (#73)
paths:
/health:
get:
summary: Health check
description: Returns API health status without requiring database connectivity
operationId: getHealth
tags:
- Health & Status
responses:
'200':
description: API is healthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum: [ok]
version:
type: string
description: Semantic version of the API
required:
- status
- version
examples:
success:
value:
status: ok
version: 1.0.0
/ready:
get:
summary: Readiness check
description: Returns readiness status including database connectivity
operationId: getReady
tags:
- Health & Status
responses:
'200':
description: API is ready and database is connected
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum: [ok]
version:
type: string
database:
type: string
enum: [connected]
required:
- status
- version
- database
'503':
description: Service unavailable (database not connected)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/{vault_id}/reminder-preferences:
parameters:
- name: vault_id
in: path
required: true
schema:
type: string
format: uuid
description: Unique identifier of the vault
get:
summary: Get reminder preferences for a vault
description: Retrieve the current reminder notification preferences for a specific vault
operationId: getPreferences
tags:
- Reminder Preferences
responses:
'200':
description: Reminder preferences retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/ReminderPreferences'
'404':
description: Vault not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
post:
summary: Set reminder preferences for a vault
description: >
Update or create reminder notification preferences for a vault.
Supports idempotent requests via the `idempotency-key` header.
operationId: setPreferences
tags:
- Reminder Preferences
parameters:
- name: idempotency-key
in: header
required: false
schema:
type: string
format: uuid
description: >
UUID to ensure idempotent requests. If provided, the same response will be returned
for identical requests within 24 hours.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SetPreferencesRequest'
examples:
emailOnly:
summary: Email-only reminders
value:
channels:
- email
hours_before_expiry: 24
frequency: daily
multiChannel:
summary: Multiple notification channels
value:
channels:
- email
- sms
- push
hours_before_expiry: 48
frequency: weekly
responses:
'200':
description: Preferences set successfully
content:
application/json:
schema:
$ref: '#/components/schemas/ReminderPreferences'
'400':
description: Invalid request (empty channels or invalid hours_before_expiry)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
emptyChannels:
value:
error: "channels must not be empty"
invalidHours:
value:
error: "hours_before_expiry must be > 0"
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/notifications/register:
post:
summary: Register a device token for push notifications
description: Register a new device push token to receive vault-related notifications
operationId: registerDeviceToken
tags:
- Notifications
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterTokenRequest'
responses:
'201':
description: Device token registered successfully
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceToken'
'400':
description: Invalid request parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/notifications/preferences:
put:
summary: Update notification preferences
description: Update owner notification preferences (channels, frequency, locale)
operationId: updateNotificationPreferences
tags:
- Notifications
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatePreferencesRequest'
responses:
'200':
description: Preferences updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/NotificationPreferences'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/notifications/unsubscribe:
get:
summary: Unsubscribe from reminder emails
description: Unsubscribe an owner from all reminder email notifications using an unsubscribe token
operationId: unsubscribeReminders
tags:
- Notifications
parameters:
- name: token
in: query
required: true
schema:
type: string
description: Unsubscribe token (provided in notification emails)
responses:
'200':
description: Successfully unsubscribed
content:
text/plain:
schema:
type: string
examples:
success:
value: "You (owner_address) have been unsubscribed from reminder emails."
'400':
description: Invalid or expired unsubscribe token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/ttl-insurance/purchase:
post:
summary: Purchase TTL insurance policy
description: >
Purchase a TTL insurance policy to automatically extend TTL when owner becomes inactive.
Requires owner authentication.
operationId: purchaseTtlInsurance
tags:
- TTL Insurance
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PurchaseTtlInsuranceRequest'
responses:
'201':
description: TTL insurance policy purchased successfully
content:
application/json:
schema:
$ref: '#/components/schemas/TtlInsurancePolicy'
'400':
description: Invalid request parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/ttl-insurance/vaults/{vault_id}:
get:
summary: Get TTL insurance policy for a vault
description: Retrieve TTL insurance policy details for a specific vault
operationId: getTtlInsurancePolicy
tags:
- TTL Insurance
parameters:
- name: vault_id
in: path
required: true
schema:
type: string
description: The vault ID
responses:
'200':
description: Policy retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/TtlInsurancePolicy'
'404':
description: Vault or policy not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/search:
post:
summary: Search vaults
description: Search for vaults based on owner, beneficiary, status, and date range with pagination
operationId: searchVaults
tags:
- Vaults
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SearchQuery'
responses:
'200':
description: Search results
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResult'
'400':
description: Invalid search parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/compare:
post:
summary: Compare multiple vaults
description: Retrieve and compare multiple vaults by their IDs
operationId: compareVaults
tags:
- Vaults
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
vault_ids:
type: array
items:
type: string
description: Array of vault IDs to compare
required:
- vault_ids
responses:
'200':
description: Comparison results
content:
application/json:
schema:
$ref: '#/components/schemas/ComparisonResult'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/{vault_id}/export:
get:
summary: Export vault data
description: Export vault data, history, and audit log in JSON or CSV format
operationId: exportVault
tags:
- Vaults
parameters:
- name: vault_id
in: path
required: true
schema:
type: string
description: The vault ID
- name: format
in: query
required: false
schema:
type: string
enum: [json, csv]
default: json
description: Export format
responses:
'200':
description: Vault data exported successfully
content:
application/json:
schema:
$ref: '#/components/schemas/ExportData'
text/csv:
schema:
type: string
'404':
description: Vault not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Invalid format specified
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/{vault_id}/analytics:
get:
summary: Get vault analytics
description: Retrieve analytics data for vault activity, TTL, and release rates
operationId: getVaultAnalytics
tags:
- Vaults
parameters:
- name: vault_id
in: path
required: true
schema:
type: string
description: The vault ID
responses:
'200':
description: Analytics data retrieved
content:
application/json:
schema:
$ref: '#/components/schemas/VaultAnalytics'
'404':
description: Vault not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/{vault_id}/share:
post:
summary: Share vault access
description: Grant another address access to view or edit vault with specified permissions
operationId: shareVault
tags:
- Vault Sharing
parameters:
- name: vault_id
in: path
required: true
schema:
type: string
description: The vault ID
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ShareRequest'
responses:
'201':
description: Vault shared successfully
content:
application/json:
schema:
$ref: '#/components/schemas/VaultShare'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Insufficient permissions
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/{vault_id}/backup:
post:
summary: Create vault backup
description: Create an encrypted backup of vault state for disaster recovery
operationId: createVaultBackup
tags:
- Vault Backup
parameters:
- name: vault_id
in: path
required: true
schema:
type: string
description: The vault ID
responses:
'201':
description: Backup created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/VaultBackup'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
get:
summary: List vault backups
description: List all backups for a specific vault
operationId: listVaultBackups
tags:
- Vault Backup
parameters:
- name: vault_id
in: path
required: true
schema:
type: string
description: The vault ID
responses:
'200':
description: Backups retrieved successfully
content:
application/json:
schema:
type: object
properties:
backups:
type: array
items:
$ref: '#/components/schemas/VaultBackup'
'404':
description: Vault not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/restore:
post:
summary: Restore vault from backup
description: Restore a vault to a previous state using an encrypted backup and decryption key
operationId: restoreVaultBackup
tags:
- Vault Backup
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RestoreRequest'
responses:
'200':
description: Vault restored successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Vault'
'400':
description: Invalid request or decryption failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Backup not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/vaults/{vault_id}/simulate-release:
get:
summary: Simulate vault release scenarios
description: >
Projects when a vault will release to its beneficiary under one or more
check-in behaviour scenarios. Useful for owners who want to understand
the impact of their check-in habits on release timing.
operationId: simulateVaultRelease
tags:
- Release Simulator
parameters:
- name: vault_id
in: path
required: true
description: The ID of the vault to simulate
schema:
type: string
example: vault-abc-123
- name: scenarios
in: query
required: false
description: >
Comma-separated list of scenarios to run. Defaults to all three when
omitted. Valid values: `no_check_ins`, `consistent_check_ins`,
`missed_check_in_dates`.
schema:
type: string
example: "no_check_ins,missed_check_in_dates"
- name: missed_count
in: query
required: false
description: >
For the `missed_check_in_dates` scenario: number of consecutive
check-ins the owner misses before stopping entirely. Defaults to 1.
schema:
type: integer
minimum: 1
default: 1
example: 2
responses:
'200':
description: Simulation results for the requested scenarios
content:
application/json:
schema:
$ref: '#/components/schemas/SimulateReleaseResponse'
example:
vault_id: "vault-abc-123"
current_ttl_remaining: 86400
check_in_interval: 2592000
last_check_in: "2026-06-29T10:00:00Z"
simulated_at: "2026-06-30T06:39:00Z"
scenarios:
- scenario: "no_check_ins"
description: "Owner performs no further check-ins. Vault releases when the current TTL expires."
projected_release_at: "2026-07-01T06:39:00Z"
seconds_until_release: 86400
confidence: "high"
notes: "Current TTL remaining: 86400 seconds (1.0 days)."
- scenario: "consistent_check_ins"
description: "Owner checks in consistently at the configured interval. Vault does not release."
projected_release_at: "2126-06-30T06:39:00Z"
seconds_until_release: -1
confidence: "high"
notes: "With a check-in interval of 2592000 seconds (30.0 days), consistent check-ins prevent vault release indefinitely."
- scenario: "missed_check_in_dates"
description: "Owner misses 1 consecutive check-in(s), then stops entirely."
projected_release_at: "2026-08-01T06:39:00Z"
seconds_until_release: 2678400
confidence: "medium"
notes: "Each missed check-in adds 2592000 seconds (30.0 days) to the release window. 1 missed check-in(s) → 2592000 additional seconds."
'404':
description: Vault not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Invalid scenario name(s) specified
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
# ── Time-Series Data Optimizations (#75) ──────────────────────────────────
/timeseries/ingest:
post:
summary: Ingest a time-series data point
description: Store a single metric data point in the time-series engine. Data is automatically routed to a monthly partition for the given series.
operationId: ingestTimeSeriesPoint
tags:
- Time-Series
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/IngestRequest'
responses:
'204':
description: Point ingested successfully
'400':
description: Invalid request body
/timeseries/query:
post:
summary: Query time-series data
description: Retrieve data points for a series, optionally downsampled to hourly, daily, or weekly resolution.
operationId: queryTimeSeries
tags:
- Time-Series
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TimeSeriesQueryRequest'
responses:
'200':
description: Query results
content:
application/json:
schema:
$ref: '#/components/schemas/TimeSeriesQueryResponse'
/timeseries/{series}/compress:
post:
summary: Compress all partitions for a series
description: Apply lossy compression (value rounding to 4dp) to all uncompressed partitions. Returns bytes saved.
operationId: compressTimeSeries
tags:
- Time-Series
parameters:
- name: series
in: path
required: true
schema:
type: string
example: vault.balance
responses:
'200':
description: Compression result
content:
application/json:
schema:
$ref: '#/components/schemas/CompressResponse'
/timeseries/{series}/retention:
post:
summary: Set retention policy for a series
description: Configure how long raw, hourly, and daily data is retained before automatic pruning.
operationId: setRetentionPolicy
tags:
- Time-Series
parameters:
- name: series
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SetRetentionRequest'
responses:
'200':
description: Applied retention policy
content:
application/json:
schema:
$ref: '#/components/schemas/RetentionPolicy'
/timeseries/{series}/benchmark:
post:
summary: Benchmark storage for a series
description: Run a full storage benchmark — measures raw bytes, compression savings, and downsampled counts.
operationId: benchmarkTimeSeries
tags:
- Time-Series
parameters:
- name: series
in: path
required: true
schema:
type: string
responses:
'200':
description: Benchmark result
content:
application/json:
schema:
$ref: '#/components/schemas/BenchmarkResult'
# ── Bulk Operation Queuing (#74) ───────────────────────────────────────────
/jobs:
post:
summary: Submit a bulk operation job
description: Enqueue an async bulk operation (e.g., update TTL for multiple vaults, send reminders). Returns immediately with a job ID for status polling.
operationId: createBulkJob
tags:
- Bulk Jobs
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateJobRequest'
responses:
'202':
description: Job accepted and queued
content:
application/json:
schema:
$ref: '#/components/schemas/CreateJobResponse'
'400':
description: Invalid request (empty items list)
get:
summary: List all bulk jobs
description: Returns all jobs ordered by creation time (newest first). Filter by status with the `status` query parameter.
operationId: listBulkJobs
tags:
- Bulk Jobs
parameters:
- name: status
in: query
required: false
schema:
$ref: '#/components/schemas/JobStatus'
responses:
'200':
description: List of jobs
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/BulkJob'
/jobs/{job_id}:
get:
summary: Get job status and progress
description: Returns detailed status, progress percentage, and estimated time remaining for a job.
operationId: getBulkJob
tags:
- Bulk Jobs
parameters:
- name: job_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Job status
content:
application/json:
schema:
$ref: '#/components/schemas/JobStatusResponse'
'404':
description: Job not found
delete:
summary: Cancel a job
description: Cancel a queued or running job. Completed or failed jobs cannot be cancelled.
operationId: cancelBulkJob
tags:
- Bulk Jobs
parameters: