@celigo/api-specs 0.2.301 → 0.2.303

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,9 @@ tags:
32
32
  Integrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,
33
33
  pull, revert) promote changes between an integration and its lifecycle-linked clones,
34
34
  and carry every resource the integration contains. Only the UI's clone-and-install
35
- links a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy.
35
+ links a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration
36
+ App installation is the exception: every route that reads its revisions answers 400
37
+ `not_supported`.
36
38
 
37
39
  ## Integration schema
38
40
 
@@ -601,6 +603,7 @@ paths:
601
603
  An integration with no revision history returns an empty response (204), not `[]`.
602
604
  x-celigo-ai-guidance:
603
605
  - To roll back a pull, find its revision here (its diff shows what it changed) and have the user revert it in the integration's Revisions tab with **Revert to before this revision**. The API can't start a revert, and writing old values back to the resources by hand misses what the pull created or deleted and records no revert.
606
+ - Revisions can't be read for an integration that carries `_connectorId` (an Integration App installation). This route and the revision, diff and errors routes answer 400 `not_supported` for one, whether or not its install is finished, so don't retry it. An integration without `_connectorId` whose `installSteps` hold a step with `completed` false is refused on the same four routes with 400 `invalid_integration_state`, while a marketplace template install whose steps are all completed is served.
604
607
  parameters:
605
608
  - name: _id
606
609
  in: path
@@ -640,14 +643,33 @@ paths:
640
643
  description: No revisions exist for this integration.
641
644
  '400':
642
645
  description: |-
643
- The integration belongs to another environment of the account than the one the token
644
- acts in. `GET /v1/integrations/{_id}` answers 404 for the same id; an id that exists in no
645
- environment answers 404 here too.
646
+ Error code `not_supported` means the integration is an Integration App installation (it
647
+ carries `_connectorId`). A marketplace template install is not one, though the message
648
+ names templates.
649
+
650
+ Error code `invalid_integration_state` means an install step is not completed (`completed`
651
+ false in `installSteps`).
652
+
653
+ Error code `invalid_environment_for_integration` means the integration belongs to another
654
+ environment of the account than the one the token acts in. `GET /v1/integrations/{_id}`
655
+ answers 404 for the same id; an id that exists in no environment answers 404 here too.
646
656
  content:
647
657
  application/json:
648
658
  schema:
649
659
  $ref: '#/components/schemas/Error'
650
660
  examples:
661
+ integration_app:
662
+ summary: Integration App installation
663
+ value:
664
+ errors:
665
+ - message: This operation is not supported for IAs or marketplace templates right now.
666
+ code: not_supported
667
+ install_unfinished:
668
+ summary: Integration with an install step not completed
669
+ value:
670
+ errors:
671
+ - message: Failed to perform operation. Integration is in an invalid state
672
+ code: invalid_integration_state
651
673
  other_environment:
652
674
  summary: Integration from another environment
653
675
  value:
@@ -715,13 +737,34 @@ paths:
715
737
  lastModified: '2026-06-10T02:57:51.483Z'
716
738
  '400':
717
739
  description: |-
718
- The integration belongs to another environment of the account than the one the token
719
- acts in. The environment is checked before the revision is looked up.
740
+ Error code `not_supported` means the integration is an Integration App installation (it
741
+ carries `_connectorId`). A marketplace template install is not one, though the message
742
+ names templates.
743
+
744
+ Error code `invalid_integration_state` means an install step is not completed (`completed`
745
+ false in `installSteps`).
746
+
747
+ Error code `invalid_environment_for_integration` means the integration belongs to another
748
+ environment of the account than the one the token acts in.
749
+
750
+ All three are checked before the revision is looked up.
720
751
  content:
721
752
  application/json:
722
753
  schema:
723
754
  $ref: '#/components/schemas/Error'
724
755
  examples:
756
+ integration_app:
757
+ summary: Integration App installation
758
+ value:
759
+ errors:
760
+ - message: This operation is not supported for IAs or marketplace templates right now.
761
+ code: not_supported
762
+ install_unfinished:
763
+ summary: Integration with an install step not completed
764
+ value:
765
+ errors:
766
+ - message: Failed to perform operation. Integration is in an invalid state
767
+ code: invalid_integration_state
725
768
  other_environment:
726
769
  summary: Integration from another environment
727
770
  value:
@@ -748,6 +791,11 @@ paths:
748
791
  A standalone copy made with `POST /v1/integrations/{_id}/clone` can't be snapshotted: it isn't
749
792
  lifecycle-linked to its source, so the request fails with 422 `lifecycleerror`. Snapshot the
750
793
  source integration instead.
794
+
795
+ An Integration App installation (an integration that carries `_connectorId`) can't be
796
+ snapshotted either: the check every revision route runs first refuses one with 400
797
+ `not_supported` (source-only on this route: live-verified on the four routes that read
798
+ revisions, not yet confirmed with a snapshot request).
751
799
  parameters:
752
800
  - name: _id
753
801
  in: path
@@ -794,7 +842,31 @@ paths:
794
842
  createdAt: '2026-06-10T02:57:51.483Z'
795
843
  lastModified: '2026-06-10T02:57:51.483Z'
796
844
  '400':
797
- $ref: '#/components/responses/400-bad-request'
845
+ description: |-
846
+ The request is malformed, or the integration is refused by the check every revision route
847
+ runs first. That check answers `not_supported` for an Integration App installation (an
848
+ integration that carries `_connectorId`; a marketplace template install is not refused,
849
+ though the message names templates) and `invalid_integration_state` for an integration
850
+ with an install step not completed. On this route the `not_supported` refusal is
851
+ source-only: live-verified on the four routes that read revisions, not yet confirmed with
852
+ a snapshot request.
853
+ content:
854
+ application/json:
855
+ schema:
856
+ $ref: '#/components/schemas/Error'
857
+ examples:
858
+ integration_app:
859
+ summary: Integration App installation
860
+ value:
861
+ errors:
862
+ - message: This operation is not supported for IAs or marketplace templates right now.
863
+ code: not_supported
864
+ install_unfinished:
865
+ summary: Integration with an install step not completed
866
+ value:
867
+ errors:
868
+ - message: Failed to perform operation. Integration is in an invalid state
869
+ code: invalid_integration_state
798
870
  '401':
799
871
  $ref: '#/components/responses/401-unauthorized'
800
872
  '404':
@@ -877,9 +949,9 @@ paths:
877
949
  `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors` instead), and
878
950
  `inprogress` revisions whose install steps haven't materialized yet.
879
951
 
880
- Error code `invalid_environment_for_integration` means the integration belongs to another
881
- environment of the account than the one the token acts in. That check runs before the
882
- revision is looked up.
952
+ The integration is checked before the revision: `not_supported` (an Integration App
953
+ installation), `invalid_integration_state` (an install step not completed),
954
+ `invalid_environment_for_integration` (another environment than the token's).
883
955
  content:
884
956
  application/json:
885
957
  schema:
@@ -890,6 +962,18 @@ paths:
890
962
  errors:
891
963
  - message: Failed to perform operation. Revision is in an invalid state
892
964
  code: invalid_revision_state
965
+ integration_app:
966
+ summary: Integration App installation
967
+ value:
968
+ errors:
969
+ - message: This operation is not supported for IAs or marketplace templates right now.
970
+ code: not_supported
971
+ install_unfinished:
972
+ summary: Integration with an install step not completed
973
+ value:
974
+ errors:
975
+ - message: Failed to perform operation. Integration is in an invalid state
976
+ code: invalid_integration_state
893
977
  other_environment:
894
978
  summary: Integration from another environment
895
979
  value:
@@ -971,9 +1055,11 @@ paths:
971
1055
  `invalid_revision_state` — returned for `completed`, `canceled`, and `inprogress` revisions
972
1056
  of every type, including snapshots.
973
1057
 
974
- Error code `invalid_environment_for_integration` means the integration belongs to another
975
- environment of the account than the one the token acts in. That check runs before the
976
- revision is looked up.
1058
+ Three checks on the integration run before the revision is looked up: `not_supported` for
1059
+ an Integration App installation (it carries `_connectorId`), `invalid_integration_state`
1060
+ for an install step not completed (`completed` false in `installSteps`), and
1061
+ `invalid_environment_for_integration` for an integration in another environment of the
1062
+ account than the one the token acts in.
977
1063
  content:
978
1064
  application/json:
979
1065
  schema:
@@ -984,6 +1070,18 @@ paths:
984
1070
  errors:
985
1071
  - message: Failed to perform operation. Revision is in an invalid state
986
1072
  code: invalid_revision_state
1073
+ integration_app:
1074
+ summary: Integration App installation
1075
+ value:
1076
+ errors:
1077
+ - message: This operation is not supported for IAs or marketplace templates right now.
1078
+ code: not_supported
1079
+ install_unfinished:
1080
+ summary: Integration with an install step not completed
1081
+ value:
1082
+ errors:
1083
+ - message: Failed to perform operation. Integration is in an invalid state
1084
+ code: invalid_integration_state
987
1085
  other_environment:
988
1086
  summary: Integration from another environment
989
1087
  value:
@@ -2489,6 +2587,264 @@ paths:
2489
2587
  errors:
2490
2588
  - code: not_found
2491
2589
  message: 'The topics with following _id''s: 6aab2870bb44c84f7b77e9f7 don''t exist.'
2590
+ /v1/integrations/{_id}/knowledgebases/{_knowledgeBaseId}/register:
2591
+ put:
2592
+ x-internal: false
2593
+ operationId: registerKnowledgeBaseToIntegration
2594
+ tags:
2595
+ - Integrations
2596
+ summary: Register a knowledge base to an integration (by path)
2597
+ description: |-
2598
+ Adds a single knowledge base to the integration's `_registeredKnowledgeBaseIds` so AI agent and
2599
+ guardrail steps in the integration can attach it. No request body is needed; registering an
2600
+ already-registered knowledge base succeeds without duplicating it, and the id is matched
2601
+ case-insensitively. To unregister, use `DELETE` on the same path; to register several knowledge
2602
+ bases at once, use `PUT /v1/integrations/{_id}/knowledgebases/register`.
2603
+
2604
+ Registration also happens automatically when a flow in the integration is saved with a step
2605
+ whose AI agent attaches the knowledge base.
2606
+ parameters:
2607
+ - name: _id
2608
+ in: path
2609
+ required: true
2610
+ description: Integration id.
2611
+ schema:
2612
+ type: string
2613
+ format: objectId
2614
+ x-celigo-refModel: integrations
2615
+ examples:
2616
+ - 6842261335b64c0bcb308e4f
2617
+ - name: _knowledgeBaseId
2618
+ in: path
2619
+ required: true
2620
+ description: Knowledge base id to register.
2621
+ schema:
2622
+ type: string
2623
+ format: objectId
2624
+ x-celigo-refModel: knowledgebases
2625
+ examples:
2626
+ - 6aee9c66c049b57246ffb05c
2627
+ responses:
2628
+ '204':
2629
+ description: Knowledge base registered successfully. No body returned.
2630
+ '400':
2631
+ description: The integration id or the knowledge base id is not a valid id (`invalid_ref`).
2632
+ content:
2633
+ application/json:
2634
+ schema:
2635
+ $ref: '#/components/schemas/Error'
2636
+ examples:
2637
+ bad_knowledge_base_id:
2638
+ value:
2639
+ errors:
2640
+ - code: invalid_ref
2641
+ message: Please provide a valid _knowledgeBaseId.
2642
+ bad_integration_id:
2643
+ value:
2644
+ errors:
2645
+ - code: invalid_ref
2646
+ message: Please provide a valid _integrationId.
2647
+ '401':
2648
+ $ref: '#/components/responses/401-unauthorized'
2649
+ '403':
2650
+ $ref: '#/components/responses/403-forbidden'
2651
+ '404':
2652
+ description: |-
2653
+ The integration does not exist (`invalid_ref`), or no knowledge base has this id
2654
+ (`not_found`).
2655
+ content:
2656
+ application/json:
2657
+ schema:
2658
+ $ref: '#/components/schemas/Error'
2659
+ examples:
2660
+ knowledge_base_not_found:
2661
+ value:
2662
+ errors:
2663
+ - code: not_found
2664
+ message: 'The knowledge bases with following _id''s: 6aee9c66c049b57246ffb05c don''t exist.'
2665
+ integration_not_found:
2666
+ value:
2667
+ errors:
2668
+ - code: invalid_ref
2669
+ message: Integration not found.
2670
+ delete:
2671
+ x-internal: false
2672
+ operationId: unregisterKnowledgeBaseFromIntegration
2673
+ tags:
2674
+ - Integrations
2675
+ summary: Unregister a knowledge base from an integration
2676
+ description: |-
2677
+ Removes a knowledge base's registration from the integration. This does not delete the knowledge
2678
+ base — it only removes it from the integration's `_registeredKnowledgeBaseIds`. Fails when the
2679
+ knowledge base is not registered on the integration, or while a step in the integration uses an
2680
+ AI agent or guardrail that attaches it. Remove that step or detach the knowledge base first,
2681
+ then retry.
2682
+ parameters:
2683
+ - name: _id
2684
+ in: path
2685
+ required: true
2686
+ description: Integration id.
2687
+ schema:
2688
+ type: string
2689
+ format: objectId
2690
+ x-celigo-refModel: integrations
2691
+ examples:
2692
+ - 6842261335b64c0bcb308e4f
2693
+ - name: _knowledgeBaseId
2694
+ in: path
2695
+ required: true
2696
+ description: Knowledge base id to unregister.
2697
+ schema:
2698
+ type: string
2699
+ format: objectId
2700
+ x-celigo-refModel: knowledgebases
2701
+ examples:
2702
+ - 6aee9c66c049b57246ffb05c
2703
+ responses:
2704
+ '204':
2705
+ description: Knowledge base unregistered successfully. No body returned.
2706
+ '400':
2707
+ description: |-
2708
+ The knowledge base is not registered on this integration, or a step in the integration
2709
+ still attaches it (`not_allowed` for both); or the integration id or the knowledge base id
2710
+ is not a valid id (`invalid_ref`).
2711
+ content:
2712
+ application/json:
2713
+ schema:
2714
+ $ref: '#/components/schemas/Error'
2715
+ examples:
2716
+ in_use:
2717
+ value:
2718
+ errors:
2719
+ - code: not_allowed
2720
+ message: The knowledge base is attached to an AI agent or guardrail used by a step in this integration. Detach it from all steps before deregistering.
2721
+ not_registered:
2722
+ value:
2723
+ errors:
2724
+ - code: not_allowed
2725
+ message: The knowledge base which you are trying to deregister is not registered on the integration.
2726
+ bad_knowledge_base_id:
2727
+ value:
2728
+ errors:
2729
+ - code: invalid_ref
2730
+ message: Please provide a valid _knowledgeBaseId.
2731
+ '401':
2732
+ $ref: '#/components/responses/401-unauthorized'
2733
+ '403':
2734
+ $ref: '#/components/responses/403-forbidden'
2735
+ '404':
2736
+ description: |-
2737
+ The integration does not exist (`invalid_ref`), or no knowledge base has this id
2738
+ (`not_found`).
2739
+ content:
2740
+ application/json:
2741
+ schema:
2742
+ $ref: '#/components/schemas/Error'
2743
+ examples:
2744
+ knowledge_base_not_found:
2745
+ value:
2746
+ errors:
2747
+ - code: not_found
2748
+ message: 'The knowledge bases with following _id''s: 6aee9c66c049b57246ffb05c don''t exist.'
2749
+ integration_not_found:
2750
+ value:
2751
+ errors:
2752
+ - code: invalid_ref
2753
+ message: Integration not found.
2754
+ /v1/integrations/{_id}/knowledgebases/register:
2755
+ put:
2756
+ x-internal: false
2757
+ operationId: registerKnowledgeBasesToIntegration
2758
+ tags:
2759
+ - Integrations
2760
+ summary: Register knowledge bases to an integration (by body)
2761
+ description: |-
2762
+ Adds one or more knowledge bases to the integration's `_registeredKnowledgeBaseIds`. The request
2763
+ body is a bare JSON array of knowledge base ids, matched case-insensitively; an id that is
2764
+ already registered is not duplicated, and an empty array is accepted as a no-op. Every id must
2765
+ name an existing knowledge base or nothing is registered.
2766
+ Alternatively, use `PUT /v1/integrations/{_id}/knowledgebases/{_knowledgeBaseId}/register` to
2767
+ register a single knowledge base by path parameter.
2768
+ parameters:
2769
+ - name: _id
2770
+ in: path
2771
+ required: true
2772
+ description: Integration id.
2773
+ schema:
2774
+ type: string
2775
+ format: objectId
2776
+ x-celigo-refModel: integrations
2777
+ examples:
2778
+ - 6842261335b64c0bcb308e4f
2779
+ requestBody:
2780
+ required: true
2781
+ content:
2782
+ application/json:
2783
+ schema:
2784
+ type: array
2785
+ maxItems: 500
2786
+ uniqueItems: true
2787
+ description: Knowledge base ids to register.
2788
+ items:
2789
+ type: string
2790
+ format: objectId
2791
+ x-celigo-refModel: knowledgebases
2792
+ examples:
2793
+ default:
2794
+ value:
2795
+ - 6aee9c66c049b57246ffb05c
2796
+ - 6af435ad39fad8fd3fe9ea24
2797
+ responses:
2798
+ '204':
2799
+ description: Knowledge bases registered successfully. No body returned.
2800
+ '400':
2801
+ description: |-
2802
+ The body is not a JSON array (`invalid_request`), an entry is not a valid knowledge base id
2803
+ (`invalid_ref`), or the array holds more than 500 distinct ids (`batch_size_exceeded`).
2804
+ content:
2805
+ application/json:
2806
+ schema:
2807
+ $ref: '#/components/schemas/Error'
2808
+ examples:
2809
+ not_an_array:
2810
+ summary: 'An object body such as {"_knowledgeBaseId": "..."}'
2811
+ value:
2812
+ errors:
2813
+ - code: invalid_request
2814
+ message: Request body should be a JSON array of _knowledgeBaseId values.
2815
+ bad_id:
2816
+ value:
2817
+ errors:
2818
+ - code: invalid_ref
2819
+ message: Please provide a valid _knowledgeBaseId.
2820
+ too_many:
2821
+ value:
2822
+ errors:
2823
+ - code: batch_size_exceeded
2824
+ message: Maximum batch size is 500.
2825
+ '401':
2826
+ $ref: '#/components/responses/401-unauthorized'
2827
+ '403':
2828
+ $ref: '#/components/responses/403-forbidden'
2829
+ '404':
2830
+ description: |-
2831
+ The integration does not exist (`invalid_ref`), or an id names no knowledge base
2832
+ (`not_found`, listing every such id).
2833
+ content:
2834
+ application/json:
2835
+ schema:
2836
+ $ref: '#/components/schemas/Error'
2837
+ examples:
2838
+ knowledge_base_not_found:
2839
+ value:
2840
+ errors:
2841
+ - code: not_found
2842
+ message: 'The knowledge bases with following _id''s: 6af435ad39fad8fd3fe9ea24 don''t exist.'
2843
+ integration_not_found:
2844
+ value:
2845
+ errors:
2846
+ - code: invalid_ref
2847
+ message: Integration not found.
2492
2848
  /v1/integrations/{_id}/tree/metadata:
2493
2849
  get:
2494
2850
  x-internal: false
@@ -4854,6 +5210,19 @@ components:
4854
5210
  x-celigo-refModel: topics
4855
5211
  examples:
4856
5212
  - - 6aab2870265e1cf39fcbee4d
5213
+ _registeredKnowledgeBaseIds:
5214
+ type: array
5215
+ readOnly: true
5216
+ description: |-
5217
+ Knowledge bases registered to this integration. Maintained by the platform: a
5218
+ value sent on a create or update is ignored. With none registered it is an empty
5219
+ array, or absent on an integration last saved before the field existed.
5220
+ items:
5221
+ type: string
5222
+ format: objectId
5223
+ x-celigo-refModel: knowledgebases
5224
+ examples:
5225
+ - - 6b3a1c2d4e5f60718293a4b5
4857
5226
  Error:
4858
5227
  type: object
4859
5228
  description: Standard error response envelope returned by integrator.io APIs.
@@ -5889,5 +6258,18 @@ components:
5889
6258
  errors:
5890
6259
  - code: not_found
5891
6260
  message: The requested resource was not found.
6261
+ 403-forbidden:
6262
+ description: |
6263
+ Forbidden. The authenticated caller does not have permission to perform this operation.
6264
+ content:
6265
+ application/json:
6266
+ schema:
6267
+ $ref: '#/components/schemas/Error'
6268
+ examples:
6269
+ default:
6270
+ value:
6271
+ errors:
6272
+ - code: forbidden
6273
+ message: You do not have permission to access this resource.
5892
6274
  x-enable-proxy: true
5893
6275
  x-internal: false