Repository navigation
Expand file tree
/
Copy pathopenapi.yaml
More file actions
8554 lines (8545 loc) · 321 KB
/
Copy pathopenapi.yaml
File metadata and controls
8554 lines (8545 loc) · 321 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: Quivr V2 public text foundation contract
version: 0.0.0-draft
description: THE-543 and THE-547 evaluation contracts; endpoint implementations are separate work. Matching
criterion is plugin-owned and deferred. One configured webhook destination, immutable Matches, independent
at-least-once Delivery and reference-only notifications. OpenAPI is authoritative for transport shapes.
THE-640 adds text search and asynchronous Corpus projection rebuild initiation.
security:
- ApiKey: []
# Public engine error classes and the operations that can return them.
# Documentation only: responses and schemas below remain authoritative.
# embedded errors occur inside a successful result, not as its HTTP status.
# response_code records a domain condition reported with an existing envelope code.
# response_code_from marks delivery conditions whose public code comes from the provider.
x-public-errors:
record_count_too_broad:
status_class: 422
retryable: false
operations: [countRecords]
corpus_archived:
status_class: 409
retryable: false
operations: [getCorpusStats, searchRecords, listRecords, countRecords, countFacets, pollChanges, streamChanges, requestConnectorRun]
delivery_failed:
status_class: 500
retryable: false
response_code_from: provider_delivery
operations: [challengeConnectorAPI, pushConnectorAPI, relayConnectorChallenge, relayConnectorDelivery]
delivery_unavailable:
status_class: 503
retryable: true
response_code_from: provider_delivery
operations: [challengeConnectorAPI, pushConnectorAPI, relayConnectorChallenge, relayConnectorDelivery]
invalid_idempotency_key:
status_class: 400
retryable: false
operations: [challengeConnectorAPI, pushConnectorAPI, relayConnectorChallenge, relayConnectorDelivery]
ip_not_allowed:
status_class: 403
retryable: false
operations: [challengeConnectorAPI, pushConnectorAPI, relayConnectorChallenge, relayConnectorDelivery]
rate_limited:
status_class: 429
retryable: true
operations: [challengeConnectorAPI, pushConnectorAPI, relayConnectorChallenge, relayConnectorDelivery]
backfill_in_progress:
status_class: 409
retryable: false
operations: [requestBackfill, rerunOperation]
batch_too_large:
status_class: 413
retryable: false
operations: [ingestBatch]
changes_unavailable:
status_class: 503
retryable: true
operations: [pollChanges, streamChanges]
connector_disabled:
status_class: 409
retryable: false
operations: [createConnectorToken, pauseConnector, resumeConnector, requestConnectorRun, rotateConnectorToken]
connector_paused:
status_class: 409
retryable: false
operations: [requestConnectorRun]
connectors_unavailable:
status_class: 503
retryable: true
operations: [challengeConnectorAPI, changeConnectorSchedule, createConnector, createConnectorToken, disableConnector, pauseConnector, resumeConnector, getConnector, listConnectorKinds, listConnectorTokens, listConnectors, pushConnectorAPI, relayConnectorChallenge, relayConnectorDelivery, replaceConnectorCredential, requestConnectorRun, revokeConnectorToken, rotateConnectorToken]
content_unavailable:
status_class: 503
retryable: true
operations: [getCorpusStats, getReceipt, getRecord, getVersion, ingestBatch, ingestRecord, listRecords, countRecords, countFacets, withdrawRecord]
cost_confirmation_required:
status_class: 409
retryable: false
operations: [requestBackfill]
coverage_incomplete:
status_class: 409
retryable: false
operations: [promoteVectorSpace]
credentials_unavailable:
status_class: 503
retryable: false
operations: [createConnector, replaceConnectorCredential]
cursor_expired:
status_class: 410
retryable: false
operations: [pollChanges, streamChanges]
cursor_scope_changed:
status_class: 409
retryable: false
operations: [getCorpusStats, listAdminDocuments, listCorpora, listDeliveryAttempts, listMatches, listQuarantinedVersions, listRecords, listSubscriptions, pollChanges, streamChanges]
definition_too_large:
status_class: 422
retryable: false
operations: [createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, previewSubscription]
dependency_unavailable:
status_class: 503
retryable: true
operations: [listVectorSpaces]
dry_run_required:
status_class: 409
retryable: false
operations: [reprocessQuarantine, requestBackfill]
entry_too_large:
status_class: 413
retryable: false
operations: [ingestBatch]
evidence_expired:
status_class: 410
retryable: false
operations: [getMatch, listMatches]
evaluator_error:
status_class: 502
retryable: false
operations: [previewSubscription]
evaluator_unavailable:
status_class: 503
retryable: true
operations: [previewSubscription]
extension_namespace_owned:
status_class: 422
retryable: false
operations: [ingestBatch, ingestRecord, withdrawRecord]
forbidden:
status_class: 403
retryable: false
operations: [getCorpusStats, activatePlugin, cancelOperation, challengeConnectorAPI, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createConnectorToken, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, getActivePipelinePlan, getBlob, getConnector, listConnectorPushStats, getCorpus, getDelivery, getDocumentTimeline, getEvaluationRetirement, getMatch, getMatchStats, getOperation, getPipelinePlan, getPluginCallStats, getPluginRegistration, getReceipt, getReceivedStats, getRecord, getSavedQuery, getSavedQueryVersion, getSearchStats, getStepStats, getSubscription, getSubscriptionVersion, getTopQueries, getUpload, getVersion, ingestBatch, ingestRecord, listActivePlugins, listAdminDocuments, listConnectorKinds, listConnectorTokens, listConnectors, listCorpora, listDeliveryAttempts, listEvaluationBacklog, listMatches, listPipelinePlans, listPluginRegistrations, listQuarantinedVersions, listRecords, countRecords, countFacets, listSearchProfiles, listSubscriptions, listVectorSpaces, migrateSubscriptionEvaluators, pauseOperation, pollChanges, previewSubscription, promoteVectorSpace, pushConnectorAPI, rebuildCorpusProjection, registerPlugin, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, revokeConnectorToken, rollbackPipelinePlan, rotateConnectorToken, searchRecords, streamChanges, withdrawRecord]
idempotency_conflict:
status_class: 409
retryable: false
operations: [activatePlugin, cancelOperation, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, ingestBatch, ingestRecord, migrateSubscriptionEvaluators, pauseOperation, rebuildCorpusProjection, registerPlugin, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, rollbackPipelinePlan, withdrawRecord]
invalid_api_key:
status_class: 401
retryable: false
operations: [activatePlugin, cancelOperation, challengeConnectorAPI, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createConnectorToken, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, getActivePipelinePlan, getBlob, getConnector, listConnectorPushStats, getCorpus, getDelivery, getDocumentTimeline, getEvaluationRetirement, getMatch, getMatchStats, getOperation, getPipelinePlan, getPluginCallStats, getPluginRegistration, getReceipt, getReceivedStats, getRecord, getSavedQuery, getSavedQueryVersion, getSearchStats, getStepStats, getSubscription, getSubscriptionVersion, getTopQueries, getUpload, getVersion, ingestBatch, ingestRecord, listActivePlugins, listAdminDocuments, listConnectorKinds, listConnectorTokens, listConnectors, listCorpora, listDeliveryAttempts, listEvaluationBacklog, listMatches, listPipelinePlans, listPluginRegistrations, listQuarantinedVersions, listRecords, countRecords, countFacets, listSearchProfiles, listSubscriptions, listVectorSpaces, migrateSubscriptionEvaluators, pauseOperation, pollChanges, previewSubscription, promoteVectorSpace, pushConnectorAPI, rebuildCorpusProjection, registerPlugin, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, revokeConnectorToken, rollbackPipelinePlan, rotateConnectorToken, searchRecords, streamChanges, withdrawRecord]
invalid_backfill:
status_class: 422
retryable: false
operations: [requestBackfill]
invalid_config:
status_class: 422
retryable: false
operations: [changeConnectorSchedule, createConnector, replaceConnectorCredential]
invalid_credential:
status_class: 422
retryable: false
operations: [changeConnectorSchedule, createConnector, replaceConnectorCredential]
invalid_cursor:
status_class: 422
retryable: false
operations: [getCorpusStats, listAdminDocuments, listConnectors, listCorpora, listDeliveryAttempts, listMatches, listPipelinePlans, listPluginRegistrations, listQuarantinedVersions, listRecords, listSubscriptions, pollChanges, streamChanges]
invalid_expression:
status_class: 422
retryable: false
operations: [createSubscription, createSubscriptionVersion, migrateSubscriptionEvaluators, previewSubscription]
invalid_input:
status_class: 422
retryable: false
operations: [confirmUpload, createConnector, createUpload, ingestBatch, ingestRecord, retireEvaluations, withdrawRecord]
invalid_instance_token:
status_class: 401
retryable: false
operations: [challengeConnectorAPI, pushConnectorAPI]
invalid_interval:
status_class: 422
retryable: false
operations: [changeConnectorSchedule, createConnector, replaceConnectorCredential]
invalid_json:
status_class: 400
retryable: false
operations: [challengeConnectorAPI, pushConnectorAPI, relayConnectorChallenge, relayConnectorDelivery]
invalid_limit:
status_class: 422
retryable: false
operations: [listConnectorPushStats, getReceivedStats, getTopQueries, listAdminDocuments, listConnectorTokens, listConnectors, listCorpora, listDeliveryAttempts, listEvaluationBacklog, listMatches, listPipelinePlans, listPluginRegistrations, listQuarantinedVersions, listRecords, listSubscriptions, pollChanges, retireEvaluations]
invalid_mapping:
status_class: 422
retryable: false
operations: [configureRetrieval, createCorpus]
invalid_migration:
status_class: 422
retryable: false
operations: [migrateSubscriptionEvaluators]
invalid_owner:
status_class: 422
retryable: false
operations: [createSubscription, listSubscriptions]
invalid_plugin:
status_class: 422
retryable: false
operations: [activatePlugin, registerPlugin]
invalid_query:
status_class: 422
retryable: false
operations: [getCorpusStats, searchRecords, listConnectorPushStats, getEvaluationRetirement, getMatchStats, getPluginCallStats, getReceivedStats, getSearchStats, getStepStats, getTopQueries, listAdminDocuments, listConnectorKinds, listConnectorTokens, listConnectors, listCorpora, listDeliveryAttempts, listEvaluationBacklog, listMatches, listPipelinePlans, listPluginRegistrations, listQuarantinedVersions, listRecords, countRecords, countFacets, listSubscriptions, pollChanges, streamChanges]
invalid_reprocess:
status_class: 422
retryable: false
operations: [reprocessQuarantine]
invalid_schema:
status_class: 422
retryable: false
operations: [activatePlugin, cancelOperation, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, ingestBatch, ingestRecord, migrateSubscriptionEvaluators, pauseOperation, previewSubscription, promoteVectorSpace, rebuildCorpusProjection, registerPlugin, relayConnectorChallenge, relayConnectorDelivery, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, rollbackPipelinePlan, searchRecords, withdrawRecord, countFacets]
invalid_signature:
status_class: 401
retryable: false
operations: [pushConnectorAPI, relayConnectorDelivery]
invalid_subscription_configuration:
status_class: 422
retryable: false
operations: [createSubscription, createSubscriptionVersion, migrateSubscriptionEvaluators, previewSubscription]
invalid_window:
status_class: 422
retryable: false
operations: [listConnectorPushStats, getMatchStats, getPluginCallStats, getReceivedStats, getSearchStats, getStepStats, getTopQueries]
item_rejected:
status_class: 422
retryable: false
operations: [challengeConnectorAPI, pushConnectorAPI, relayConnectorChallenge, relayConnectorDelivery]
malformed_json:
status_class: 400
retryable: false
operations: [activatePlugin, cancelOperation, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, ingestBatch, ingestRecord, migrateSubscriptionEvaluators, pauseOperation, previewSubscription, promoteVectorSpace, rebuildCorpusProjection, registerPlugin, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, rollbackPipelinePlan, searchRecords, withdrawRecord, countFacets]
method_not_allowed:
status_class: 405
retryable: false
operations: [activatePlugin, cancelOperation, challengeConnectorAPI, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createConnectorToken, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, getActivePipelinePlan, getBlob, getConnector, getCorpus, getDelivery, getDocumentTimeline, getEvaluationRetirement, getMatch, getMatchStats, getOperation, getPipelinePlan, getPluginCallStats, getPluginRegistration, getReceipt, getReceivedStats, getRecord, getSavedQuery, getSavedQueryVersion, getSearchStats, getStepStats, getSubscription, getSubscriptionVersion, getTopQueries, getUpload, getVersion, ingestBatch, ingestRecord, listActivePlugins, listAdminDocuments, listConnectorKinds, listConnectorPushStats, listConnectorTokens, listConnectors, listCorpora, listDeliveryAttempts, listEvaluationBacklog, listMatches, listPipelinePlans, listPluginRegistrations, listQuarantinedVersions, listRecords, countRecords, countFacets, listSearchProfiles, listSubscriptions, listVectorSpaces, migrateSubscriptionEvaluators, pauseOperation, pollChanges, previewSubscription, promoteVectorSpace, pushConnectorAPI, rebuildCorpusProjection, registerPlugin, relayConnectorChallenge, relayConnectorDelivery, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, revokeConnectorToken, rollbackPipelinePlan, rotateConnectorToken, searchRecords, streamChanges, withdrawRecord]
no_previous_plan:
status_class: 409
retryable: false
operations: [rollbackPipelinePlan]
not_evaluation_space:
status_class: 422
retryable: false
operations: [promoteVectorSpace]
not_found:
status_class: 404
retryable: false
operations: [getCorpusStats, activatePlugin, cancelOperation, challengeConnectorAPI, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createConnectorToken, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, getActivePipelinePlan, getBlob, getConnector, getCorpus, getDelivery, getDocumentTimeline, getEvaluationRetirement, getMatch, getMatchStats, getOperation, getPipelinePlan, getPluginCallStats, getPluginRegistration, getReceipt, getReceivedStats, getRecord, getSavedQuery, getSavedQueryVersion, getSearchStats, getStepStats, getSubscription, getSubscriptionVersion, getTopQueries, getUpload, getVersion, ingestBatch, ingestRecord, listActivePlugins, listAdminDocuments, listConnectorKinds, listConnectorPushStats, listConnectorTokens, listConnectors, listCorpora, listDeliveryAttempts, listEvaluationBacklog, listMatches, listPipelinePlans, listPluginRegistrations, listQuarantinedVersions, listRecords, countRecords, countFacets, listSearchProfiles, listSubscriptions, listVectorSpaces, migrateSubscriptionEvaluators, pauseOperation, pollChanges, previewSubscription, promoteVectorSpace, pushConnectorAPI, rebuildCorpusProjection, registerPlugin, relayConnectorChallenge, relayConnectorDelivery, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, revokeConnectorToken, rollbackPipelinePlan, rotateConnectorToken, searchRecords, streamChanges, withdrawRecord]
operation_not_terminal:
status_class: 409
retryable: false
operations: [cancelOperation, pauseOperation, rerunOperation, resumeOperation]
plugin_conflict:
status_class: 409
retryable: false
operations: [activatePlugin, rollbackPipelinePlan]
plugin_unreachable:
status_class: 409
retryable: false
operations: [activatePlugin, rollbackPipelinePlan]
push_replayed:
status_class: 409
retryable: false
operations: [pushConnectorAPI, relayConnectorDelivery]
query_too_long:
status_class: 422
retryable: false
operations: [searchRecords]
rebuild_required:
status_class: 409
retryable: false
operations: [requestBackfill]
registration_not_active:
status_class: 409
retryable: false
operations: [requestBackfill, rerunOperation]
registration_not_validated:
status_class: 409
retryable: false
operations: [activatePlugin, rollbackPipelinePlan]
reprocess_in_progress:
status_class: 409
retryable: false
operations: [reprocessQuarantine, rerunOperation]
request_too_large:
status_class: 413
retryable: false
operations: [activatePlugin, cancelOperation, challengeConnectorAPI, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, ingestBatch, ingestRecord, migrateSubscriptionEvaluators, pauseOperation, previewSubscription, promoteVectorSpace, pushConnectorAPI, rebuildCorpusProjection, registerPlugin, relayConnectorChallenge, relayConnectorDelivery, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, rollbackPipelinePlan, searchRecords, withdrawRecord, countFacets]
reserved_idempotency_key:
status_class: 422
retryable: false
operations: [ingestBatch, ingestRecord, withdrawRecord]
retrieval_plugin_invalid:
status_class: 502
retryable: false
operations: [searchRecords]
saved_query_deleted:
status_class: 409
retryable: false
operations: [createSavedQueryVersion, deleteSavedQuery, getSavedQuery, getSavedQueryVersion, renameSavedQuery]
saved_query_in_use:
status_class: 409
retryable: false
operations: [deleteSavedQuery]
search_deadline_exceeded:
status_class: 504
retryable: false
operations: [searchRecords]
preview_deadline_exceeded:
status_class: 504
retryable: true
operations: [previewSubscription]
search_unavailable:
status_class: 503
retryable: true
operations: [searchRecords]
model_unavailable:
status_class: 503
retryable: true
operations: [searchRecords]
metadata_filter_unavailable:
status_class: 422
retryable: false
operations: [searchRecords, listRecords, countFacets]
filter_too_broad:
status_class: 422
retryable: false
operations: [listRecords]
source_filter_unavailable:
status_class: 422
retryable: false
operations: [searchRecords]
source_namespace_in_use:
status_class: 409
retryable: false
operations: [createConnector]
storage_unavailable:
status_class: 503
retryable: true
operations: [activatePlugin, cancelOperation, configureRetrieval, confirmUpload, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableSubscription, enableSubscription, getActivePipelinePlan, getBlob, listConnectorPushStats, getCorpus, getDelivery, getDocumentTimeline, getEvaluationRetirement, getMatch, getMatchStats, getOperation, getPipelinePlan, getPluginCallStats, getPluginRegistration, getReceivedStats, getSavedQuery, getSavedQueryVersion, getSearchStats, getStepStats, getSubscription, getSubscriptionVersion, getTopQueries, getUpload, listActivePlugins, listAdminDocuments, listCorpora, listDeliveryAttempts, listEvaluationBacklog, listMatches, listPipelinePlans, listPluginRegistrations, listQuarantinedVersions, listSubscriptions, migrateSubscriptionEvaluators, pauseOperation, previewSubscription, promoteVectorSpace, rebuildCorpusProjection, registerPlugin, renameSavedQuery, renameSubscription, reprocessQuarantine, requestBackfill, rerunOperation, resumeOperation, retireEvaluations, rollbackPipelinePlan]
subscription_changed:
status_class: 409
retryable: false
embedded: true
operations: [migrateSubscriptionEvaluators]
subscription_deleted:
status_class: 409
retryable: false
operations: [createSubscriptionVersion, deleteSubscription, disableSubscription, enableSubscription, getSubscription, getSubscriptionVersion, renameSubscription]
token_inactive:
status_class: 409
retryable: false
operations: [rotateConnectorToken]
tokens_unavailable:
status_class: 503
retryable: true
response_code: connectors_unavailable
operations: [challengeConnectorAPI, createConnectorToken, listConnectorTokens, pushConnectorAPI, revokeConnectorToken, rotateConnectorToken]
unknown_destination:
status_class: 422
retryable: false
operations: [createSubscription, createSubscriptionVersion, previewSubscription]
unknown_saved_query:
status_class: 422
retryable: false
operations: [createSubscription, createSubscriptionVersion, previewSubscription]
unsupported_connector_kind:
status_class: 422
retryable: false
operations: [changeConnectorSchedule, createConnector, replaceConnectorCredential]
unsupported_content:
status_class: 422
retryable: false
operations: [ingestBatch, ingestRecord, withdrawRecord]
unsupported_evaluator:
status_class: 422
retryable: false
operations: [createSubscription, createSubscriptionVersion, migrateSubscriptionEvaluators, previewSubscription]
unsupported_media_type:
status_class: 415
retryable: false
operations: [activatePlugin, cancelOperation, changeConnectorSchedule, configureRetrieval, confirmUpload, createConnector, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, createUpload, deleteSavedQuery, deleteSubscription, disableConnector, pauseConnector, resumeConnector, disableSubscription, enableSubscription, ingestBatch, ingestRecord, migrateSubscriptionEvaluators, pauseOperation, previewSubscription, promoteVectorSpace, rebuildCorpusProjection, registerPlugin, renameSavedQuery, renameSubscription, replaceConnectorCredential, reprocessQuarantine, requestBackfill, requestConnectorRun, rerunOperation, resumeOperation, retireEvaluations, rollbackPipelinePlan, searchRecords, withdrawRecord, countFacets]
unsupported_operation_kind:
status_class: 422
retryable: false
operations: [cancelOperation, pauseOperation, rerunOperation, resumeOperation]
unsupported_profile:
status_class: 422
retryable: false
operations: [configureRetrieval, createCorpus, createSavedQuery, createSavedQueryVersion, createSubscription, createSubscriptionVersion, previewSubscription, searchRecords]
unsupported_search:
status_class: 422
retryable: false
operations: [searchRecords]
unverified_blob:
status_class: 422
retryable: false
operations: [ingestBatch, ingestRecord, withdrawRecord]
# Existing HTTP aliases are routing metadata, not additional operations.
x-quivr-route-aliases:
/v0/admin/plugins/: /v0/admin/plugins
paths:
/v0/version:
get:
operationId: getBuildVersion
summary: Read the running Quivr build
description: Reports the distribution release, source revision and API and plugin engine compatibility versions. Any valid API key can read it; no database access is needed.
responses:
'200':
description: The running build identity.
content:
application/json:
schema:
$ref: '#/components/schemas/BuildVersion'
default:
description: Structured error. 401 unauthenticated.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-required-permissions: []
/v0/records:
post:
operationId: ingestRecord
description: Commit durable input, Receipt and dispatch intent before responding. Same key and canonical
request returns same Receipt; changed request conflicts. A new source revision corrects the Record.
All accepted/replayed submissions use 202, even when a replayed Receipt has resolved.
responses:
'202':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Receipt'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/IngestCommand'
x-required-permissions:
- content:write
get:
operationId: listRecords
description: >-
List authorized canonical Records from one or several Corpora. Without metadata
predicates the catalog includes withdrawn Records. Metadata predicates require
the current Version to be projected in the routed generation; withdrawn Records
can disappear from filtered pages after projection purge or rebuild. Use the
unfiltered catalog and change feed for complete resynchronization.
Metadata equality and datetime-range pages use scoped indexes and bounded
reads. A filter that exceeds the bounded read budget returns 422
filter_too_broad with retryable false; narrow the metadata or acceptance-time
range before sending another request. No partial page is returned.
The default record_id order is ascending byte-wise ID order for resynchronization.
accepted_at_desc orders by the current Version's acceptance time, newest first,
then by Record ID descending for ties. A correction moves the Record when its
replacement Version becomes current. Records without a current Version have no
acceptance time; they appear last in unbounded date listings and are excluded by
either time bound. Bounds also work with the default ID order. Equal bounds select
an empty range; reversed bounds, malformed dates, duplicate or unknown parameters
and unknown orders return 422 invalid_query.
The opaque page cursor binds Corpus selection, authorization scope, order, time
bounds and metadata predicates with their routed generations;
changing any returns 409 cursor_scope_changed with resync_url. Repeat the same
parameters for subsequent pages. Newer arrivals between pages do not shift the
keyset or duplicate previously listed Records. Each page is an independent read,
not a historical snapshot: concurrent corrections, withdrawals and readiness
changes are reconciled through the change feed. Capture a start-now Change Cursor
before scanning and consume changes as invalidations by rereading current resources.
This route, relative to the API base, is the resync_url of catalog cursor errors.
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/RecordPage'
default:
description: Structured error; see contract HTTP mapping.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: corpus_id
in: query
required: false
schema:
type: string
minLength: 1
- name: corpus_ids
in: query
required: false
description: Comma-separated selection of up to 16 distinct Corpora. Supply exactly one of corpus_id or corpus_ids.
style: form
explode: false
schema:
type: array
minItems: 1
maxItems: 16
uniqueItems: true
items:
type: string
minLength: 1
- name: metadata
in: query
required: false
description: JSON array of MetadataFilter predicates, at most 16. Applied before ordering and pagination to current Versions projected in the routed generation. Withdrawn Records can be omitted after projection purge or rebuild; use the unfiltered catalog for full resynchronization. Repeat on later pages. Filters require a metadata-capable generation; rebuild older Corpora first.
schema:
type: string
maxLength: 262144
- name: order
in: query
required: false
schema:
type: string
enum: [record_id, accepted_at_desc]
default: record_id
- name: accepted_after
in: query
required: false
description: Inclusive lower bound on the current Version's acceptance time. RFC 3339 with an offset and at most 9 fractional-second digits; clients convert local days into bounds. Quivr applies no time-zone rules.
schema:
type: string
format: date-time
- name: accepted_before
in: query
required: false
description: Exclusive upper bound on the current Version's acceptance time. RFC 3339 with an offset and at most 9 fractional-second digits.
schema:
type: string
format: date-time
- name: page_cursor
in: query
required: false
schema:
type: string
minLength: 1
- name: limit
in: query
required: false
description: The most items to return. An empty, non-integer or out-of-range value is 422 invalid_limit.
schema:
type: integer
minimum: 1
maximum: 100
default: 100
x-required-permissions:
- content:read
/v0/facets:
post:
operationId: countFacets
description: >-
Exact document counts for projected metadata fields across authorized Corpora.
Uses content:read and validates every requested Corpus before resolving mappings,
including Corpora excluded for missing facet or predicate fields. Exclusions use
the same excluded_corpora shape and rules as search and metadata-filtered listing.
All fields are aggregated in one read snapshot from current baseline-ready,
non-quarantined Versions; withdrawn Records and Tombstones are excluded immediately.
Each distinct array value counts a document once. Missing field values contribute
no bucket. Common metadata.* fields and custom fields declared with the filter
role are supported. Incompatible types across Corpora return 422 invalid_query.
Existing projections without metadata require rebuilding (422 metadata_filter_unavailable).
Each field returns at most its limit, selected by descending count then JSON value
text in byte order for ties. UTC date buckets are then returned chronologically;
empty date buckets are omitted. Histograms require day, month or year on datetime
fields; interval on another type is invalid_query. Counts are independent of search
and listing reads and can change with ingestion. No text query or ranking is applied.
Each API process admits at most 8 active facet requests; excess work returns retryable
503 content_unavailable with Retry-After: 1. Requests have a 25-second execution deadline.
With accuracy fast, counts may instead come from each Corpus's stored snapshot, exact
as of the response's as_of and refreshed in the background while it is read, when the
request has no predicate or only whole UTC days of the single date field it counts;
otherwise from an exact count that ends within about a second, or else estimates
scaled from a uniform sample of the Corpora's Records, marked approximate with their
sample_fraction. Exact responses carry neither as_of nor approximate.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/FacetRequest'
responses:
'200':
description: Bounded document counts and excluded Corpus explanations.
content:
application/json:
schema:
$ref: '#/components/schemas/FacetResponse'
default:
description: Structured error; malformed_json, invalid_schema, request_too_large, unsupported_media_type, invalid_query, forbidden, not_found, metadata_filter_unavailable or content_unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-required-permissions:
- content:read
/v0/corpora/{corpus_id}/stats:
get:
operationId: getCorpusStats
description: >-
Running eligible-document and catalog totals from transactional aggregates.
Eligible documents have a current baseline-ready, non-quarantined Version and
no withdrawal or tombstone. Catalog membership includes withdrawn and unready
Record identities. Counts are independent of projection generations.
All requested fields share one database snapshot at observed_at. complete=false
and approximate=true mean historical initialization has not finished; partial
zeros are not certified empty. Archived Corpora return 409 corpus_archived.
Default reads return totals only. Include histogram and/or sources explicitly.
History uses the CURRENT Version's acceptance time, stored in UTC hours; a
correction moves its Record to the new hour. Day resolution groups UTC days.
Local days can be reconstructed exactly only for whole-hour UTC offsets.
Fractional-hour offsets require finer data and must not be labelled exact.
History has no lifetime cutoff: each page covers at most 10000 consecutive
buckets, with missing buckets zero only within its covered interval at observed_at
when complete=true. Boundary days may be clipped by the requested time range.
Consume histogram.next_page_cursor with histogram_cursor and repeat the original
parameters. Sources use namespace plus trusted connector identity; historical
and public submissions have connector_id unknown. Source counts are lifetime
totals regardless of histogram bounds. Consume sources.next_page_cursor with
sources_cursor. Each continuation is an independent snapshot; concurrent
corrections can change earlier pages, so multiple pages are not one census.
Cursors bind Corpus, authorization scope and every query option.
parameters:
- name: corpus_id
in: path
required: true
schema: {type: string, minLength: 1}
- name: include
in: query
description: Comma-separated histogram and/or sources; omit for totals only.
schema: {type: string}
- name: resolution
in: query
description: Histogram grouping. Requires include=histogram.
schema: {type: string, enum: [day, hour], default: day}
- name: accepted_after
in: query
description: Inclusive histogram bound, RFC 3339 at a UTC-hour boundary.
schema: {type: string, format: date-time}
- name: accepted_before
in: query
description: Exclusive histogram bound, RFC 3339 at a UTC-hour boundary.
schema: {type: string, format: date-time}
- name: histogram_cursor
in: query
schema: {type: string, minLength: 1}
- name: sources_cursor
in: query
schema: {type: string, minLength: 1}
- name: source_limit
in: query
schema: {type: integer, minimum: 1, maximum: 1000, default: 100}
responses:
'200':
description: Totals and any requested series.
content:
application/json:
schema: {$ref: '#/components/schemas/CorpusStats'}
default:
description: Structured error; see contract HTTP mapping.
content:
application/json:
schema: {$ref: '#/components/schemas/Error'}
x-required-permissions: [content:read]
/v0/records/count:
get:
operationId: countRecords
description: >-
Count of one Corpus's authorized Records. Time-bounded counts are exact within
a two-second query budget; larger windows return non-retryable 422
record_count_too_broad and require narrower bounds. Unbounded counts probe at
most 10001 identities: up to 10000 are exact, larger Corpora return stored
catalog totals with approximate=true. complete=false means initialization
has not finished; incomplete zeros must not be presented as empty. observed_at
names the independent read snapshot. Includes withdrawn Records, as the listing does. Records
without a current Version are counted only when neither bound is supplied.
Uses content:read and the same Corpus scope as listRecords. This is an independent
read, not a snapshot shared with listing pages. Equal bounds count zero; reversed
bounds, malformed dates, duplicate or unknown parameters return 422 invalid_query.
parameters:
- name: corpus_id
in: query
required: true
schema:
type: string
minLength: 1
- name: accepted_after
in: query
required: false
description: Inclusive lower bound on the current Version's acceptance time. RFC 3339 with an offset and at most 9 fractional-second digits; clients convert local days into bounds. Quivr applies no time-zone rules.
schema:
type: string
format: date-time
- name: accepted_before
in: query
required: false
description: Exclusive upper bound on the current Version's acceptance time. RFC 3339 with an offset and at most 9 fractional-second digits.
schema:
type: string
format: date-time
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/RecordCount'
default:
description: Structured error; see contract HTTP mapping.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-required-permissions:
- content:read
/v0/records/batch:
post:
operationId: ingestBatch
description: 'Initial bound: 100 entries (413 batch_too_large), envelope 10 MiB (413 request_too_large).
Validate envelope structure/size first, then each entry independently against IngestCommand,
including wrong types or missing fields. Each raw entry is also held to the 1 MiB single-request
bound (entry error entry_too_large), so the same entry bytes are never refused for size alone. HTTP
200 carries Receipt or Error per entry, with the same error codes as single submission. Same ingestion
family/key as single submission. Each entry has a fresh 5-second acceptance budget, bounded by
an 8-second deadline for the whole batch, including envelope decoding and validation. Caller
cancellation or an earlier caller deadline also applies. An entry that times out, and every
remaining entry after the batch deadline, returns retryable content_unavailable. Retry with
the same entry keys to recover the original Receipts. If the envelope cannot be read before
the deadline, HTTP 503 returns retryable content_unavailable without attempting entries.
Reuse entry keys after unknown transport outcomes.'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/BatchResult'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchRequest'
x-required-permissions:
- content:write
/v0/records/withdrawals:
post:
operationId: withdrawRecord
description: Durably commit withdrawal and Receipt before responding. Terminal identity fence, including
before first materialization; no physical purge and no cascade. Uses a distinct withdrawal route
family.
responses:
'202':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Receipt'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WithdrawalCommand'
x-required-permissions:
- content:write
/v0/records/{record_id}:
get:
operationId: getRecord
description: Authorized canonical currentness and withdrawal view.
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Record'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: record_id
in: path
required: true
schema:
type: string
minLength: 1
x-required-permissions:
- content:read
/v0/records/{record_id}/versions/{version_id}:
get:
operationId: getVersion
description: Authorized immutable source Manifest plus separate live availability and relation expansion.
Available links supply current eligible target Record and Version IDs; unavailable links reveal
no resolved target IDs or absence/access reason. Historical lookup grants no new rights.
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Version'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: record_id
in: path
required: true
schema:
type: string
minLength: 1
- name: version_id
in: path
required: true
schema:
type: string
minLength: 1
x-required-permissions:
- content:read
/v0/ingestion-receipts/{receipt_id}:
get:
operationId: getReceipt
description: Return outcome and separately authorized linked availability/diagnostics. Omit unavailable
linked content rather than bypassing rights through the Receipt. Linked Version/Record details
require current content:read permission and target Corpus authorization.
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Receipt'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: receipt_id
in: path
required: true
schema:
type: string
minLength: 1
x-required-permissions:
- content:read
/v0/uploads:
post:
operationId: createUpload
description: 'Create a transfer session with a single presigned PUT URL, required headers and expiry.
Initial limits: 1 GiB Blob, configurable; oversized uploads are rejected before a session is issued.'
responses:
'201':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Upload'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UploadRequest'
x-required-permissions:
- blobs:write
/v0/uploads/{upload_id}/confirm:
post:
operationId: confirmUpload
description: Start or observe checksum/size verification; SDK polls until verified before referencing
the Blob in ingestion. Confirmation is repeatable for this session.
responses:
'202':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Upload'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: upload_id
in: path
required: true
schema:
type: string
minLength: 1
x-required-permissions:
- blobs:write
/v0/uploads/{upload_id}:
get:
operationId: getUpload
description: Observe upload verification independently of Ingestion Receipt.
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Upload'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: upload_id
in: path
required: true
schema:
type: string
minLength: 1
x-required-permissions:
- blobs:read
/v0/blobs/{blob_id}:
get:
operationId: getBlob
description: Inspect verified Blob metadata within authorized Organization scope; ID possession
does not grant access.
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Blob'
default:
description: Structured error. 400 malformed; 401 unauthenticated; 403 forbidden action; 404
absent or inaccessible; 409 conflict; 413 oversized; 422 invalid input; 429 throttled; 503
temporary failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: blob_id
in: path
required: true
schema:
type: string
minLength: 1
x-required-permissions:
- blobs:read
/v0/operations/{operation_id}:
get:
operationId: getOperation
description: Follow administrative progress. Corpus Operations require operations:read and matching Corpus grants. vector_space_promotion, plugin_activation and plugin_rollback require plugins:admin in the Organization that requested them; they carry admin and have no corpus_id.
responses: