-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathopenapi_v1.yaml
More file actions
2191 lines (2048 loc) · 82.4 KB
/
openapi_v1.yaml
File metadata and controls
2191 lines (2048 loc) · 82.4 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
components:
schemas:
ApplicationReadResponse:
description: Response schema for `List available applications` and `Read Application by Id` endpoints
properties:
application_id:
description: Application ID
examples:
- he-tme
title: Application Id
type: string
description:
description: 'Describing what the application can do '
examples:
- The Atlas H&E TME is an AI application designed to examine FFPE (formalin-fixed, paraffin-embedded) tissues stained with H&E (hematoxylin and eosin), delivering comprehensive insights into the tumor microenvironment.
title: Description
type: string
name:
description: Application display name
examples:
- Atlas H&E-TME
title: Name
type: string
regulatory_classes:
description: 'Regulatory classes, to which the applications comply with. Possible values include: RUO, IVDR, FDA.'
examples:
- - RUO
items:
type: string
title: Regulatory Classes
type: array
versions:
description: All version numbers available to the user
items:
$ref: '#/components/schemas/ApplicationVersion'
title: Versions
type: array
required:
- application_id
- name
- regulatory_classes
- description
- versions
title: ApplicationReadResponse
type: object
ApplicationReadShortResponse:
description: Response schema for `List available applications` and `Read Application by Id` endpoints
properties:
application_id:
description: Application ID
examples:
- he-tme
title: Application Id
type: string
description:
description: 'Describing what the application can do '
examples:
- The Atlas H&E TME is an AI application designed to examine FFPE (formalin-fixed, paraffin-embedded) tissues stained with H&E (hematoxylin and eosin), delivering comprehensive insights into the tumor microenvironment.
title: Description
type: string
latest_version:
anyOf:
- $ref: '#/components/schemas/ApplicationVersion'
- type: 'null'
description: The version with highest version number available to the user
name:
description: Application display name
examples:
- Atlas H&E-TME
title: Name
type: string
regulatory_classes:
description: 'Regulatory classes, to which the applications comply with. Possible values include: RUO, IVDR, FDA.'
examples:
- - RUO
items:
type: string
title: Regulatory Classes
type: array
required:
- application_id
- name
- regulatory_classes
- description
title: ApplicationReadShortResponse
type: object
ApplicationVersion:
properties:
number:
description: The number of the latest version
examples:
- 1.0.0
pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
title: Number
type: string
released_at:
description: The timestamp for when the application version was made available in the Platform
examples:
- '2025-09-15T10:30:45.123Z'
format: date-time
title: Released At
type: string
required:
- number
- released_at
title: ApplicationVersion
type: object
ArtifactOutput:
enum:
- NONE
- AVAILABLE
- DELETED_BY_USER
- DELETED_BY_SYSTEM
title: ArtifactOutput
type: string
ArtifactState:
enum:
- PENDING
- PROCESSING
- TERMINATED
title: ArtifactState
type: string
ArtifactTerminationReason:
enum:
- SUCCEEDED
- USER_ERROR
- SYSTEM_ERROR
- SKIPPED
title: ArtifactTerminationReason
type: string
CustomMetadataUpdateRequest:
properties:
custom_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
description: JSON metadata that should be set for the run
examples:
- department: D1
study: abc-1
title: Custom Metadata
custom_metadata_checksum:
anyOf:
- type: string
- type: 'null'
description: Optional field to verify that the latest custom metadata was known. If set to the checksum retrieved via the /runs endpoint, it must match the checksum of the current value in the database.
examples:
- f54fe109
title: Custom Metadata Checksum
title: CustomMetadataUpdateRequest
type: object
CustomMetadataUpdateResponse:
properties:
custom_metadata_checksum:
anyOf:
- type: string
- type: 'null'
description: 'The checksum of the updated custom metadata. If the `custom_metadata` is None,
the checksum also None.'
readOnly: true
title: Custom Metadata Checksum
required:
- custom_metadata_checksum
title: CustomMetadataUpdateResponse
type: object
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
title: Detail
type: array
title: HTTPValidationError
type: object
InputArtifact:
properties:
metadata_schema:
additionalProperties: true
title: Metadata Schema
type: object
mime_type:
examples:
- image/tiff
pattern: ^\w+\/\w+[-+.|\w+]+\w+$
title: Mime Type
type: string
name:
title: Name
type: string
required:
- name
- mime_type
- metadata_schema
title: InputArtifact
type: object
InputArtifactCreationRequest:
description: Input artifact containing the slide image and associated metadata.
properties:
download_url:
description: '[Signed URL](https://cloud.google.com/cdn/docs/using-signed-urls) to the input artifact file. The URL should be valid for at least 6 days from the payload submission time.'
examples:
- https://example.com/case-no-1-slide.tiff
format: uri
maxLength: 2083
minLength: 1
title: Download Url
type: string
metadata:
additionalProperties: true
description: The metadata of the artifact, required by the application version. The JSON schema of the metadata can be requested by `/v1/versions/{application_version_id}`. The schema is located in `input_artifacts.[].metadata_schema`
examples:
- checksum_base64_crc32c: 752f9554
height: 2000
height_mpp: 0.5
width: 10000
width_mpp: 0.5
title: Metadata
type: object
name:
description: Type of artifact. For Atlas H&E-TME, use "input_slide"
examples:
- input_slide
title: Name
type: string
required:
- name
- download_url
- metadata
title: InputArtifactCreationRequest
type: object
ItemCreationRequest:
description: Individual item (slide) to be processed in a run.
properties:
custom_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
description: Optional JSON custom_metadata to store additional information alongside an item.
examples:
- case: abc
title: Custom Metadata
external_id:
description: Unique identifier for this item within the run. Used for referencing items. Must be unique across all items in the same run
examples:
- slide_1
- patient_001_slide_A
- sample_12345
maxLength: 255
title: External Id
type: string
input_artifacts:
description: List of input artifacts for this item. For Atlas H&E-TME, typically contains one artifact (the slide image)
examples:
- - download_url: https://example-bucket.s3.amazonaws.com/slide1.tiff
metadata:
checksum_base64_crc32c: 64RKKA==
height_px: 87761
media-type: image/tiff
resolution_mpp: 0.2628238
specimen:
disease: LUNG_CANCER
tissue: LUNG
staining_method: H&E
width_px: 136223
name: input_slide
items:
$ref: '#/components/schemas/InputArtifactCreationRequest'
title: Input Artifacts
type: array
required:
- external_id
- input_artifacts
title: ItemCreationRequest
type: object
ItemOutput:
enum:
- NONE
- FULL
title: ItemOutput
type: string
ItemResultReadResponse:
description: Response schema for items in `List Run Items` endpoint
properties:
custom_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
description: The custom_metadata of the item that has been provided by the user on run creation.
title: Custom Metadata
custom_metadata_checksum:
anyOf:
- type: string
- type: 'null'
description: 'The checksum of the `custom_metadata` field.
Can be used in the `PUT /runs/{run-id}/items/{external_id}/custom_metadata`
request to avoid unwanted override of the values in concurrent requests.'
examples:
- f54fe109
title: Custom Metadata Checksum
error_code:
anyOf:
- type: string
- type: 'null'
title: Error Code
error_message:
anyOf:
- type: string
- type: 'null'
description: "\n The error message in case the `termination_reason` is in `USER_ERROR` or `SYSTEM_ERROR`\n "
examples:
- This item was not processed because the threshold of 3 items finishing in error state (user or system error) was reached before the item was processed.
- The item was not processed because the run was cancelled by the user before the item was processed.
- 'User error raised by Application because the input data provided by the user cannot be processed:
The image width is 123000 px, but the maximum width is 100000 px'
- "A system error occurred during the item execution:\n System went out of memory in cell classification"
- An unknown system error occurred during the item execution
title: Error Message
external_id:
description: The external_id of the item from the user payload
examples:
- slide_1
title: External Id
type: string
item_id:
description: Item UUID generated by the Platform
format: uuid
title: Item Id
type: string
output:
$ref: '#/components/schemas/ItemOutput'
description: The output status of the item (NONE, FULL)
output_artifacts:
description: "\nThe list of the results generated by the application algorithm. The number of files and their\ntypes depend on the particular application version, call `/v1/versions/{version_id}` to get\nthe details.\n "
items:
$ref: '#/components/schemas/OutputArtifactResultReadResponse'
title: Output Artifacts
type: array
queue_position_org:
anyOf:
- type: integer
- type: 'null'
description: The position of the item in the organization's queue.
title: Queue Position Org
queue_position_platform:
anyOf:
- type: integer
- type: 'null'
description: The position of the item in the platform's queue.
title: Queue Position Platform
state:
$ref: '#/components/schemas/ItemState'
description: "\nThe item moves from `PENDING` to `PROCESSING` to `TERMINATED` state.\nWhen terminated, consult the `termination_reason` property to see whether it was successful.\n "
terminated_at:
anyOf:
- format: date-time
type: string
- type: 'null'
description: Timestamp showing when the item reached a terminal state.
examples:
- '2024-01-15T10:30:45.123Z'
title: Terminated At
termination_reason:
anyOf:
- $ref: '#/components/schemas/ItemTerminationReason'
- type: 'null'
description: '
When the `state` is `TERMINATED` this will explain why
`SUCCEEDED` -> Successful processing.
`USER_ERROR` -> Failed because the provided input was invalid.
`SYSTEM_ERROR` -> There was an error in the model or platform.
`SKIPPED` -> Was cancelled
'
required:
- item_id
- external_id
- custom_metadata
- state
- output
- output_artifacts
title: ItemResultReadResponse
type: object
ItemState:
enum:
- PENDING
- PROCESSING
- TERMINATED
title: ItemState
type: string
ItemTerminationReason:
enum:
- SUCCEEDED
- USER_ERROR
- SYSTEM_ERROR
- SKIPPED
title: ItemTerminationReason
type: string
MeReadResponse:
description: Response schema for `Get current user` endpoint
properties:
organization:
$ref: '#/components/schemas/OrganizationReadResponse'
user:
$ref: '#/components/schemas/UserReadResponse'
required:
- user
- organization
title: MeReadResponse
type: object
OrganizationReadResponse:
description: 'Part of response schema for Organization object in `Get current user` endpoint.
This model corresponds to the response schema returned from
Auth0 GET /v2/organizations/{id} endpoint, flattens out the metadata out
and doesn''t return branding or token_quota objects.
For details, see:
https://auth0.com/docs/api/management/v2/organizations/get-organizations-by-id
#### Configuration for integrating with Aignostics Platform services.
The Aignostics Platform API requires signed URLs for input artifacts (slide images). To simplify this process,
Aignostics provides a dedicated storage bucket. The HMAC credentials below grant read and write
access to this bucket, allowing you to upload files and generate the signed URLs needed for API calls.
Additionally, logging and error reporting tokens enable Aignostics to provide better support and monitor
system performance for your integration.'
properties:
aignostics_bucket_hmac_access_key_id:
description: HMAC access key ID for the Aignostics-provided storage bucket. Used to authenticate requests for uploading files and generating signed URLs
examples:
- YOUR_HMAC_ACCESS_KEY_ID
title: Aignostics Bucket Hmac Access Key Id
type: string
aignostics_bucket_hmac_secret_access_key:
description: HMAC secret access key paired with the access key ID. Keep this credential secure.
examples:
- YOUR/HMAC/SECRET_ACCESS_KEY
title: Aignostics Bucket Hmac Secret Access Key
type: string
aignostics_bucket_name:
description: Name of the bucket provided by Aignostics for storing input artifacts (slide images)
examples:
- aignostics-platform-bucket
title: Aignostics Bucket Name
type: string
aignostics_bucket_protocol:
description: Protocol to use for bucket access. Defines the URL scheme for connecting to the storage service
examples:
- gs
title: Aignostics Bucket Protocol
type: string
aignostics_logfire_token:
description: Authentication token for Logfire observability service. Enables sending application logs and performance metrics to Aignostics for monitoring and support
examples:
- your-logfire-token
title: Aignostics Logfire Token
type: string
aignostics_sentry_dsn:
description: Data Source Name (DSN) for Sentry error tracking service. Allows automatic reporting of errors and exceptions to Aignostics support team
examples:
- https://2354s3#ewsha@o44.ingest.us.sentry.io/34345123432
title: Aignostics Sentry Dsn
type: string
display_name:
anyOf:
- type: string
- type: 'null'
description: Public organization name (E.g. “Aignostics GmbH”)
examples:
- Aignostics GmbH
title: Display Name
id:
description: Unique organization identifier
examples:
- org_123456
title: Id
type: string
name:
anyOf:
- type: string
- type: 'null'
description: Organization name (E.g. “aignx”)
examples:
- aignx
title: Name
required:
- id
- aignostics_bucket_hmac_access_key_id
- aignostics_bucket_hmac_secret_access_key
- aignostics_bucket_name
- aignostics_bucket_protocol
- aignostics_logfire_token
- aignostics_sentry_dsn
title: OrganizationReadResponse
type: object
OutputArtifact:
properties:
metadata_schema:
additionalProperties: true
title: Metadata Schema
type: object
mime_type:
examples:
- application/vnd.apache.parquet
pattern: ^\w+\/\w+[-+.|\w+]+\w+$
title: Mime Type
type: string
name:
title: Name
type: string
scope:
$ref: '#/components/schemas/OutputArtifactScope'
visibility:
$ref: '#/components/schemas/OutputArtifactVisibility'
required:
- name
- mime_type
- metadata_schema
- scope
- visibility
title: OutputArtifact
type: object
OutputArtifactResultReadResponse:
properties:
download_url:
anyOf:
- format: uri
maxLength: 2083
minLength: 1
type: string
- type: 'null'
deprecated: true
description: "\nThe download URL to the output file. The URL is valid for 1 hour after the endpoint is called.\nA new URL is generated every time the endpoint is called.\n "
title: Download Url
error_code:
anyOf:
- type: string
- type: 'null'
title: Error Code
error_message:
anyOf:
- type: string
- type: 'null'
title: Error Message
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
description: The metadata of the output artifact, provided by the application. Can only be None if the artifact itself was deleted.
title: Metadata
name:
description: "\nName of the output from the output schema from the `/v1/versions/{version_id}` endpoint.\n "
examples:
- tissue_qc:tiff_heatmap
title: Name
type: string
output:
$ref: '#/components/schemas/ArtifactOutput'
description: The output status of the artifact (NONE, FULL)
output_artifact_id:
description: The Id of the artifact. Used internally
format: uuid
title: Output Artifact Id
type: string
state:
$ref: '#/components/schemas/ArtifactState'
description: The current state of the artifact (PENDING, PROCESSING, TERMINATED)
termination_reason:
anyOf:
- $ref: '#/components/schemas/ArtifactTerminationReason'
- type: 'null'
description: The reason for termination when state is TERMINATED
required:
- output_artifact_id
- name
- state
- output
title: OutputArtifactResultReadResponse
type: object
OutputArtifactScope:
enum:
- ITEM
- GLOBAL
title: OutputArtifactScope
type: string
OutputArtifactVisibility:
enum:
- INTERNAL
- EXTERNAL
title: OutputArtifactVisibility
type: string
RunCreationRequest:
description: 'Request schema for `Initiate Run` endpoint.
It describes which application version is chosen, and which user data should be processed.'
properties:
application_id:
description: Unique ID for the application to use for processing
examples:
- he-tme
title: Application Id
type: string
custom_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
description: Optional JSON metadata to store additional information alongside the run
examples:
- department: D1
study: abc-1
title: Custom Metadata
items:
description: List of items (slides) to process. Each item represents a whole slide image (WSI) with its associated metadata and artifacts
examples:
- - external_id: slide_1
input_artifacts:
- download_url: https://example-bucket.s3.amazonaws.com/slide1.tiff?signature=...
metadata:
checksum_base64_crc32c: 64RKKA==
height_px: 87761
media-type: image/tiff
resolution_mpp: 0.2628238
specimen:
disease: LUNG_CANCER
tissue: LUNG
staining_method: H&E
width_px: 136223
name: input_slide
items:
$ref: '#/components/schemas/ItemCreationRequest'
minItems: 1
title: Items
type: array
scheduling:
anyOf:
- $ref: '#/components/schemas/SchedulingRequest'
- type: 'null'
description: Optional scheduling constraints for this run.
examples:
- deadline: '2026-03-05T23:59:59Z'
due_date: '2026-03-04T23:59:59Z'
version_number:
anyOf:
- type: string
- type: 'null'
description: Semantic version of the application to use for processing. If not provided, the latest available version will be used
examples:
- 1.0.0-beta1
title: Version Number
required:
- application_id
- items
title: RunCreationRequest
type: object
RunCreationResponse:
properties:
run_id:
examples:
- 3fa85f64-5717-4562-b3fc-2c963f66afa6
format: uuid
title: Run Id
type: string
required:
- run_id
title: RunCreationResponse
type: object
RunItemStatistics:
properties:
item_count:
description: Total number of the items in the run
title: Item Count
type: integer
item_pending_count:
description: The number of items in `PENDING` state
title: Item Pending Count
type: integer
item_processing_count:
description: The number of items in `PROCESSING` state
title: Item Processing Count
type: integer
item_skipped_count:
description: The number of items in `TERMINATED` state, and the item termination reason is `SKIPPED`
title: Item Skipped Count
type: integer
item_succeeded_count:
description: The number of items in `TERMINATED` state, and the item termination reason is `SUCCEEDED`
title: Item Succeeded Count
type: integer
item_system_error_count:
description: The number of items in `TERMINATED` state, and the item termination reason is `SYSTEM_ERROR`
title: Item System Error Count
type: integer
item_user_error_count:
description: The number of items in `TERMINATED` state, and the item termination reason is `USER_ERROR`
title: Item User Error Count
type: integer
required:
- item_count
- item_pending_count
- item_processing_count
- item_user_error_count
- item_system_error_count
- item_skipped_count
- item_succeeded_count
title: RunItemStatistics
type: object
RunOutput:
enum:
- NONE
- PARTIAL
- FULL
title: RunOutput
type: string
RunReadResponse:
description: Response schema for `Get run details` endpoint
properties:
application_id:
description: Application id
examples:
- he-tme
title: Application Id
type: string
custom_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
description: Optional JSON metadata that was stored in alongside the run by the user
examples:
- department: D1
study: abc-1
title: Custom Metadata
custom_metadata_checksum:
anyOf:
- type: string
- type: 'null'
description: 'The checksum of the `custom_metadata` field. Can be used in the `PUT /runs/{run-id}/custom_metadata`
request to avoid unwanted override of the values in concurrent requests.'
examples:
- f54fe109
title: Custom Metadata Checksum
error_code:
anyOf:
- type: string
- type: 'null'
description: "When the termination_reason is set to CANCELED_BY_SYSTEM, the error_code is set to define the\n structured description of the error."
examples:
- SCHEDULER.ITEMS_WITH_ERROR_THRESHOLD_REACHED
title: Error Code
error_message:
anyOf:
- type: string
- type: 'null'
description: "When the termination_reason is set to CANCELED_BY_SYSTEM, the error_message is set to provide\n more insights to the error cause."
examples:
- Run canceled given errors on more than 10 items.
title: Error Message
num_preceding_items_org:
anyOf:
- type: integer
- type: 'null'
description: How many Items from other Runs in the same Organization are due to begin processing before this Run's next Item does.
title: Num Preceding Items Org
num_preceding_items_platform:
anyOf:
- type: integer
- type: 'null'
description: How many Items from other Runs are due to begin processing before this Run's next Item does.
title: Num Preceding Items Platform
output:
$ref: '#/components/schemas/RunOutput'
description: 'The status of the output of the run. When 0 items are successfully processed the output is
`NONE`, after one item is successfully processed, the value is set to `PARTIAL`. When all items of the run are
successfully processed, the output is set to `FULL`.'
run_id:
description: UUID of the application
format: uuid
title: Run Id
type: string
scheduling:
anyOf:
- $ref: '#/components/schemas/SchedulingResponse'
- type: 'null'
description: Scheduling constraints set for this run.
state:
$ref: '#/components/schemas/RunState'
description: 'When the run request is received by the Platform, the `state` of it is set to
`PENDING`. The state changes to `PROCESSING` when at least one item is being processed. After `PROCESSING`, the
state of the run can switch back to `PENDING` if there are no processing items, or to `TERMINATED` when the run
finished processing.'
statistics:
$ref: '#/components/schemas/RunItemStatistics'
description: Aggregated statistics of the run execution
submitted_at:
description: Timestamp showing when the run was triggered
format: date-time
title: Submitted At
type: string
submitted_by:
description: Id of the user who triggered the run
examples:
- auth0|123456
title: Submitted By
type: string
terminated_at:
anyOf:
- format: date-time
type: string
- type: 'null'
description: Timestamp showing when the run reached a terminal state.
examples:
- '2024-01-15T10:30:45.123Z'
title: Terminated At
termination_reason:
anyOf:
- $ref: '#/components/schemas/RunTerminationReason'
- type: 'null'
description: "The termination reason of the run. When the run is not in `TERMINATED` state, the\n termination_reason is `null`. If all items of of the run are processed (successfully or with an error), then\n termination_reason is set to `ALL_ITEMS_PROCESSED`. If the run is cancelled by the user, the value is set to\n `CANCELED_BY_USER`. If the run reaches the threshold of number of failed items, the Platform cancels the run\n and sets the termination_reason to `CANCELED_BY_SYSTEM`.\n "
version_number:
description: Application version number
examples:
- 0.4.4
title: Version Number
type: string
required:
- run_id
- application_id
- version_number
- state
- output
- termination_reason
- error_code
- error_message
- statistics
- submitted_at
- submitted_by
title: RunReadResponse
type: object
RunState:
enum:
- PENDING
- PROCESSING
- TERMINATED
title: RunState
type: string
RunTerminationReason:
enum:
- ALL_ITEMS_PROCESSED
- CANCELED_BY_SYSTEM
- CANCELED_BY_USER
title: RunTerminationReason
type: string
SchedulingRequest:
description: Scheduling constraints for a run.
properties:
deadline:
anyOf:
- format: date-time
type: string
- type: 'null'
description: Hard deadline. The run will be cancelled if not completed by this time.
examples:
- '2026-03-05T23:59:59Z'
title: Deadline
due_date:
anyOf:
- format: date-time
type: string
- type: 'null'
description: Requested completion time. Items are prioritized to meet this target.
examples:
- '2026-03-04T23:59:59Z'
title: Due Date
title: SchedulingRequest
type: object
SchedulingResponse:
description: Scheduling fields returned in run responses.
properties:
deadline:
anyOf:
- format: date-time
type: string
- type: 'null'
title: Deadline
due_date:
anyOf:
- format: date-time
type: string
- type: 'null'
title: Due Date
title: SchedulingResponse
type: object
UserReadResponse:
description: 'Part of response schema for User object in `Get current user` endpoint.
This model corresponds to the response schema returned from
Auth0 GET /v2/users/{id} endpoint.
For details, see:
https://auth0.com/docs/api/management/v2/users/get-users-by-id'
properties:
email:
anyOf:
- type: string
- type: 'null'
description: User email
examples:
- user@domain.com
title: Email
email_verified:
anyOf:
- type: boolean
- type: 'null'
examples:
- true
title: Email Verified
family_name:
anyOf:
- type: string
- type: 'null'
examples:
- Doe
title: Family Name
given_name:
anyOf:
- type: string
- type: 'null'
examples:
- Jane
title: Given Name
id:
description: Unique user identifier
examples:
- auth0|123456
title: Id
type: string
name:
anyOf:
- type: string
- type: 'null'
description: First and last name of the user
examples:
- Jane Doe
title: Name
nickname:
anyOf:
- type: string
- type: 'null'
examples:
- jdoe
title: Nickname
picture:
anyOf:
- type: string
- type: 'null'
examples:
- https://example.com/jdoe.jpg
title: Picture
updated_at:
anyOf:
- format: date-time
type: string
- type: 'null'
examples:
- '2023-10-05T14:48:00.000Z'
title: Updated At
required:
- id