@celigo/api-specs 0.2.3 → 0.2.4-IO-168454-EPIC-fb

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.
Files changed (52) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +456 -55
  3. package/dist/agent.yml +15 -0
  4. package/dist/ai-agent.yml +1000 -192
  5. package/dist/alert.yml +1226 -0
  6. package/dist/api.yml +6375 -178
  7. package/dist/apim.yml +0 -4
  8. package/dist/asynchelper.yml +441 -62
  9. package/dist/audit.yml +57 -2
  10. package/dist/bartendertemplate.yml +508 -0
  11. package/dist/connection.yml +2533 -189
  12. package/dist/connector.yml +8 -0
  13. package/dist/ediprofile.yml +15 -0
  14. package/dist/editransaction.yml +250 -14
  15. package/dist/enduser.yml +6063 -47
  16. package/dist/environment.yml +8 -0
  17. package/dist/eventreport.yml +8 -0
  18. package/dist/export.yml +1624 -1804
  19. package/dist/filedefinition.yml +47 -0
  20. package/dist/filedefinitionrules.yml +722 -0
  21. package/dist/fileserver.yml +1457 -0
  22. package/dist/filestorage.yml +1087 -535
  23. package/dist/flow.yml +896 -209
  24. package/dist/guardrail.yml +310 -499
  25. package/dist/httpconnector.yml +8 -0
  26. package/dist/httpconnectorendpoint.yml +610 -126
  27. package/dist/httpconnectorresource.yml +1160 -84
  28. package/dist/iclient.yml +245 -114
  29. package/dist/import.yml +2583 -448
  30. package/dist/integration.yml +1114 -45
  31. package/dist/job.yml +188 -92
  32. package/dist/lookupcache.yml +45 -14
  33. package/dist/marketplace.yml +352 -107
  34. package/dist/mcp-oauth-provider.yml +15 -30
  35. package/dist/mcp-server.yml +7004 -68
  36. package/dist/networkpolicy.yml +1221 -0
  37. package/dist/notification.yml +59 -9
  38. package/dist/processor.yml +8 -3
  39. package/dist/recyclebin.yml +32 -2
  40. package/dist/script.yml +91 -16
  41. package/dist/stack.yml +642 -5
  42. package/dist/storagequery.yml +935 -0
  43. package/dist/subscription.yml +428 -67
  44. package/dist/sync.yml +435 -79
  45. package/dist/tag.yml +8 -0
  46. package/dist/template.yml +47 -1
  47. package/dist/tool.yml +7932 -3273
  48. package/dist/topic.yml +1806 -0
  49. package/dist/tradingpartnerconnector.yml +18 -0
  50. package/dist/user.yml +465 -42
  51. package/package.json +13 -1
  52. package/schemas.json +2358 -1887
@@ -156,6 +156,11 @@ paths:
156
156
  `404`, and `422` responses); failures during the post-save registration itself do not
157
157
  roll back the new connection and are reported in `__failedIntegrationRegistrations` on
158
158
  the `201` response.
159
+
160
+ Creates `standard` connections only: a body with `connectionRole: mcpChild` is rejected,
161
+ because MCP end-user child connections are written solely by the end-user setup page. To
162
+ make a connection the parent that an MCP server collects end-user credentials for, list the
163
+ per-user fields in `endUserProvidedFields`.
159
164
  operationId: createConnection
160
165
  tags:
161
166
  - Connections
@@ -193,6 +198,34 @@ paths:
193
198
  type: custom
194
199
  __integrationIds:
195
200
  - 6a55be91d16ee8270022893e
201
+ httpMcpParent:
202
+ summary: HTTP connection that MCP end users supply their own API key for
203
+ value:
204
+ name: Support Desk API
205
+ type: http
206
+ endUserProvidedFields:
207
+ - http.encrypted.apiKey
208
+ http:
209
+ mediaType: json
210
+ baseURI: https://api.example.com
211
+ auth:
212
+ type: custom
213
+ headers:
214
+ - name: X-API-Key
215
+ value: '{{{connection.http.encrypted.apiKey}}}'
216
+ encrypted:
217
+ apiKey: <owner-api-key>
218
+ httpAwsIam:
219
+ summary: HTTP connection signing requests with an AWS IAM role (iClient)
220
+ value:
221
+ name: SQS - orders account
222
+ type: http
223
+ http:
224
+ mediaType: json
225
+ baseURI: https://sqs.us-east-1.amazonaws.com
226
+ _iClientId: 6ab1f51c7b3d01a908423f0a
227
+ auth:
228
+ type: awsiam
196
229
  netsuiteTokenAuto:
197
230
  summary: NetSuite connection (automatic token-based auth — recommended)
198
231
  value:
@@ -453,6 +486,7 @@ paths:
453
486
  lastModified: '2026-06-08T00:45:50.951Z'
454
487
  type: http
455
488
  name: My HTTP API
489
+ connectionRole: standard
456
490
  enableMicroBatchForOneToMany: true
457
491
  enableCsvObjectParsing: true
458
492
  autoRecoverRateLimitErrors: true
@@ -559,7 +593,9 @@ paths:
559
593
  description: |-
560
594
  Unprocessable entity. The request was well-formed but was unable to be followed
561
595
  due to semantic errors — for example, a missing config object for the connection
562
- `type`, or an invalid `__integrationIds` value. The connection is not created.
596
+ `type`, an invalid `__integrationIds` value, a decimal concurrency value, an
597
+ `http._iClientId` that does not satisfy the auth type's iClient rules, or an
598
+ `mcpChild` role. The connection is not created.
563
599
  content:
564
600
  application/json:
565
601
  schema:
@@ -589,16 +625,102 @@ paths:
589
625
  errors:
590
626
  - code: invalid_request
591
627
  message: __integrationIds must not contain duplicate integration IDs.
628
+ mcpChildNotAllowed:
629
+ summary: connectionRole is mcpChild
630
+ value:
631
+ errors:
632
+ - code: mcp_child_generic_route_not_allowed
633
+ message: An mcpChild connection cannot be created, updated or deleted through the connections API, including the recurse and recycle bin routes.
634
+ endUserProvidedFieldParentOwned:
635
+ summary: endUserProvidedFields names a field the account owns
636
+ value:
637
+ errors:
638
+ - field: endUserProvidedFields
639
+ code: mcp_end_user_provided_field_not_allowed
640
+ message: http._iClientId is managed by the account owner and cannot be requested from an end user.
641
+ concurrencyNotInteger:
642
+ summary: Decimal concurrency value
643
+ value:
644
+ errors:
645
+ - field: http.concurrencyLevel
646
+ code: invalid_field_value
647
+ message: The field "http.concurrencyLevel" must be a whole number (no decimals) between 1 and 50.
648
+ awsIamIClientMissing:
649
+ summary: auth.type awsiam without http._iClientId
650
+ value:
651
+ errors:
652
+ - field: http._iClientId
653
+ code: missing_required_field
654
+ message: 'Expected field: _iClientId to be present.'
655
+ awsIamIClientWrongProvider:
656
+ summary: awsiam connection referencing a non-awsIam iClient
657
+ value:
658
+ errors:
659
+ - field: http._iClientId
660
+ code: invalid_field
661
+ message: IClient provider must be awsIam for HTTP IAM Role authentication.
662
+ awsIamRoleArnPrefix:
663
+ summary: awsIam iClient whose role name lacks the celigo-http-adaptor- prefix
664
+ value:
665
+ errors:
666
+ - field: http._iClientId
667
+ code: invalid_field_value
668
+ message: HTTP IAM Role authentication requires awsIam.roleArn to reference a role name starting with celigo-http-adaptor-.
669
+ awsIamRoleArnMissingOnS3:
670
+ summary: S3 awsIam connection referencing an iClient without roleArn
671
+ value:
672
+ errors:
673
+ - field: s3._iClientId
674
+ code: missing_required_field
675
+ message: 'Expected field: awsIam.roleArn to be present.'
676
+ awsIamRoleArnPrefixS3:
677
+ summary: S3 awsIam iClient whose role name lacks the celigo-file-adaptor- prefix
678
+ value:
679
+ errors:
680
+ - field: s3._iClientId
681
+ code: invalid_field_value
682
+ message: 'Invalid value for field "_iClientId": Your role ARN''s name must begin with celigo-file-adaptor.'
683
+ awsIamRoleArnPrefixRedshift:
684
+ summary: Redshift awsIam iClient whose role name lacks the celigo-data-warehouse-adaptor- prefix
685
+ value:
686
+ errors:
687
+ - field: rdbms._iClientId
688
+ code: invalid_field_value
689
+ message: 'Invalid value for field "_iClientId": Your role ARN''s name must begin with celigo-data-warehouse-adaptor.'
690
+ iClientOtherAccount:
691
+ summary: iClient owned by another account
692
+ value:
693
+ errors:
694
+ - field: http._iClientId
695
+ code: invalid_ref
696
+ message: The referenced IClient must belong to the same user.
697
+ adlsIClientWrongProvider:
698
+ summary: Azure Data Lake Storage Gen2 connection referencing a non-service-principal iClient
699
+ value:
700
+ errors:
701
+ - field: http._iClientId
702
+ code: invalid_field
703
+ message: IClient provider must be azureserviceprincipal for Azure Data Lake Storage Gen2 connections.
704
+ gcsIClientWrongProvider:
705
+ summary: Google Cloud Storage connection referencing an iClient that is neither a service account nor OAuth
706
+ value:
707
+ errors:
708
+ - field: http._iClientId
709
+ code: invalid_field
710
+ message: IClient provider must be googleserviceaccount or custom_oauth2 for Google Cloud Storage connections.
711
+ gcsProjectIdMissing:
712
+ summary: Google Cloud Storage OAuth connection without a project id
713
+ value:
714
+ errors:
715
+ - field: http.unencrypted.googleProjectId
716
+ code: project_id_missing
717
+ message: Default project ID is required on OAuth Google Cloud Storage connections (http.unencrypted.googleProjectId).
592
718
  x-celigo-ai-guidance:
593
719
  - |-
594
- Performs a comprehensive test of the connection including authentication, permissions,
595
- and basic data operations to verify the connection is fully operational.
596
-
597
- This is more thorough than a ping operation and may include:
598
- - Sample data retrieval
599
- - Permission verification for read/write operations
600
- - Schema or metadata validation
601
- - Rate limiting and quota checks
720
+ Send exactly one adaptor config object, the one named by `type`. Credentials are accepted
721
+ in clear on create and come back masked as "******"; the response also carries the
722
+ server-populated fields (`connectionRole: standard`, `concurrencyLevel`,
723
+ `targetConcurrencyLevel`, `microServices`).
602
724
  /v1/connections/{_id}:
603
725
  get:
604
726
  x-internal: false
@@ -649,6 +771,31 @@ paths:
649
771
  disableHttp: false
650
772
  disableNetSuiteDistributed: false
651
773
  disableRdbms: false
774
+ httpMcpParent:
775
+ summary: HTTP connection that MCP end users supply their own API key for
776
+ value:
777
+ _id: 6ab1f41f4db5688fd8ca71fb
778
+ createdAt: '2026-09-21T20:21:03.924Z'
779
+ lastModified: '2026-09-21T20:22:22.140Z'
780
+ type: http
781
+ name: Support Desk API
782
+ connectionRole: standard
783
+ endUserProvidedFields:
784
+ - http.encrypted.apiKey
785
+ enableMicroBatchForOneToMany: true
786
+ enableCsvObjectParsing: true
787
+ autoRecoverRateLimitErrors: true
788
+ http:
789
+ formType: http
790
+ mediaType: json
791
+ baseURI: https://api.example.com
792
+ concurrencyLevel: 25
793
+ targetConcurrencyLevel: 25
794
+ encrypted: '******'
795
+ isRest: false
796
+ useNewAuthFailSchema: true
797
+ auth:
798
+ type: custom
652
799
  mcp:
653
800
  summary: MCP connection
654
801
  value:
@@ -682,7 +829,15 @@ paths:
682
829
  summary: Update a connection
683
830
  description: |
684
831
  Updates an existing connection configuration. This is a full-replace operation —
685
- send the complete connection document, not just the fields you want to change.
832
+ send the complete connection document, not just the fields you want to change; a field
833
+ omitted from the body is cleared, including credentials (re-send them, or the masked
834
+ `"******"` value clears them too).
835
+
836
+ Three settings are the exception and survive an omission: `endUserProvidedFields`
837
+ (send `null` to clear it — `[]` is treated like an omission), and on `ftp` connections
838
+ `ftp.concurrencyLevel` and `ftp.targetConcurrencyLevel` (the latter is unset whenever
839
+ `autoRecoverRateLimitErrors` is false). `connectionRole` is read-only here: a body carrying
840
+ `mcpChild` is rejected.
686
841
  operationId: updateConnection
687
842
  tags:
688
843
  - Connections
@@ -792,26 +947,81 @@ paths:
792
947
  '404':
793
948
  $ref: '#/components/responses/404-not-found'
794
949
  '422':
795
- $ref: '#/components/responses/422-unprocessable-entity'
950
+ description: |-
951
+ Unprocessable entity. The body was well-formed but fails the connection's validation
952
+ rules — the same rules as on create (missing config object, decimal concurrency,
953
+ iClient rules, parent-owned `endUserProvidedFields` path, `mcpChild` role).
954
+ content:
955
+ application/json:
956
+ schema:
957
+ $ref: '#/components/schemas/Error'
958
+ examples:
959
+ default:
960
+ summary: Semantic validation failure
961
+ value:
962
+ errors:
963
+ - code: unprocessable_entity
964
+ message: The request could not be processed due to a semantic error.
965
+ mcpChildNotAllowed:
966
+ summary: connectionRole is mcpChild
967
+ value:
968
+ errors:
969
+ - code: mcp_child_generic_route_not_allowed
970
+ message: An mcpChild connection cannot be created, updated or deleted through the connections API, including the recurse and recycle bin routes.
971
+ endUserProvidedFieldParentOwned:
972
+ summary: endUserProvidedFields names a field the account owns
973
+ value:
974
+ errors:
975
+ - field: endUserProvidedFields
976
+ code: mcp_end_user_provided_field_not_allowed
977
+ message: type is managed by the account owner and cannot be requested from an end user.
978
+ concurrencyNotInteger:
979
+ summary: Decimal concurrency value
980
+ value:
981
+ errors:
982
+ - field: ftp.multiThreadCount
983
+ code: invalid_field_value
984
+ message: The field "ftp.multiThreadCount" must be a whole number (no decimals) between 1 and 50.
796
985
  x-celigo-ai-guidance:
797
986
  - |-
798
- Updates an existing connection configuration. This operation supports partial updates
799
- where only the provided fields will be modified.
987
+ PUT replaces the document: GET it first, change what you need, and send the whole body
988
+ back with the real credential values (masked "******" values clear the stored secret).
989
+ To change only name, debug window, or concurrency settings without touching credentials,
990
+ use PATCH instead.
800
991
  patch:
801
992
  x-internal: false
802
993
  summary: Patch a connection
803
994
  description: |-
804
- Partially updates a connection using a JSON Patch document (RFC 6902).
805
- Only the `replace` operation is supported, and only on the following
806
- whitelisted paths:
995
+ Partially updates a connection using a JSON Patch document (RFC 6902)
996
+ without re-sending its credentials — stored credentials are never read,
997
+ required, or changed by this operation. Use it for the settings below;
998
+ everything else goes through `PUT`, which replaces the whole document.
999
+ Only these paths are accepted (`<adaptor>` is the connection's `type`,
1000
+ e.g. `/http/concurrencyLevel`, `/netsuite/targetConcurrencyLevel`):
807
1001
 
808
1002
  | Path | Description |
809
1003
  |------|-------------|
810
1004
  | `/name` | Connection display name |
811
1005
  | `/debugDate` | Debug logging expiry (ISO-8601, max 1 hour from now) |
812
1006
  | `/debugUntil` | Alias for `/debugDate` |
1007
+ | `/<adaptor>/concurrencyLevel` | Concurrent requests allowed. Platform-managed while `autoRecoverRateLimitErrors` is true — the recovery machinery moves it toward the target, so set `targetConcurrencyLevel` instead |
1008
+ | `/<adaptor>/targetConcurrencyLevel` | Ceiling auto-recovery climbs back to. Persists only while `autoRecoverRateLimitErrors` is true; while false the save unsets it |
1009
+ | `/_borrowConcurrencyFromConnectionId` | Share another connection's concurrency budget. `remove` clears it |
1010
+ | `/autoRecoverRateLimitErrors` | Rate-limit auto-recovery toggle. Turning it on copies the current level into the target; turning it off unsets the target and leaves the level at its current value |
1011
+ | `/endUserProvidedFields` | Dot-paths MCP end users must supply on their own child copy of this connection. `replace` with `[]` or `remove` clears the list, and `add` on `/endUserProvidedFields/-` appends one path; a path the account owns (`type`, `_agentId`, `wrapper._stackId`, any `<adaptor>._iClientId`) is rejected |
813
1012
 
814
- All other paths are rejected with `422`.
1013
+ `replace` and `add` both set the value (a currently unset field is fine);
1014
+ `remove` unsets it. A `null` value is rejected. Any other path — including
1015
+ `/connectionRole`, `/netsuite/concurrencyLevelRESTlet`,
1016
+ `/netsuite/concurrencyLevelWebServices` and `rateLimit` fields — fails with
1017
+ `<path> is not a whitelisted property`.
1018
+ Concurrency values must be whole numbers (a decimal fails with 422
1019
+ `invalid_field_value`); out-of-range integers are clamped into the account's
1020
+ licensed range rather than rejected. A whitelisted path under an adaptor
1021
+ block the connection does not use is accepted but never read. The
1022
+ borrowed-from connection must exist in the account, may not itself borrow,
1023
+ and a connection that others borrow from cannot start borrowing.
1024
+ Settings-only changes are recorded in the connection's audit log.
815
1025
  operationId: patchConnection
816
1026
  tags:
817
1027
  - Connections
@@ -841,6 +1051,39 @@ paths:
841
1051
  - op: replace
842
1052
  path: /name
843
1053
  value: Shopify US Production
1054
+ set_target_concurrency:
1055
+ summary: Raise the target concurrency of an HTTP connection (auto-recovery on)
1056
+ value:
1057
+ - op: replace
1058
+ path: /http/targetConcurrencyLevel
1059
+ value: 10
1060
+ disable_auto_recovery_and_set_level:
1061
+ summary: Turn off rate-limit auto-recovery and fix the concurrency level
1062
+ value:
1063
+ - op: replace
1064
+ path: /autoRecoverRateLimitErrors
1065
+ value: false
1066
+ - op: replace
1067
+ path: /http/concurrencyLevel
1068
+ value: 4
1069
+ borrow_concurrency:
1070
+ summary: Share another connection's concurrency budget
1071
+ value:
1072
+ - op: replace
1073
+ path: /_borrowConcurrencyFromConnectionId
1074
+ value: 615dfa0742763671275b70ab
1075
+ stop_borrowing:
1076
+ summary: Stop borrowing concurrency
1077
+ value:
1078
+ - op: remove
1079
+ path: /_borrowConcurrencyFromConnectionId
1080
+ set_end_user_provided_fields:
1081
+ summary: Make MCP end users supply their own API key on this connection
1082
+ value:
1083
+ - op: replace
1084
+ path: /endUserProvidedFields
1085
+ value:
1086
+ - http.encrypted.apiKey
844
1087
  responses:
845
1088
  '204':
846
1089
  description: Connection patched successfully
@@ -849,7 +1092,33 @@ paths:
849
1092
  '404':
850
1093
  $ref: '#/components/responses/404-not-found'
851
1094
  '422':
852
- $ref: '#/components/responses/422-unprocessable-entity'
1095
+ description: |-
1096
+ Patch rejected — a path outside the whitelist, a `null` value, a decimal concurrency
1097
+ value, or an `endUserProvidedFields` entry the account owns.
1098
+ content:
1099
+ application/json:
1100
+ schema:
1101
+ $ref: '#/components/schemas/Error'
1102
+ examples:
1103
+ nonWhitelisted:
1104
+ summary: Path is not patchable
1105
+ value:
1106
+ errors:
1107
+ - message: /connectionRole is not a whitelisted property
1108
+ concurrencyNotInteger:
1109
+ summary: Decimal concurrency value
1110
+ value:
1111
+ errors:
1112
+ - field: http.targetConcurrencyLevel
1113
+ code: invalid_field_value
1114
+ message: The field "http.targetConcurrencyLevel" must be a whole number (no decimals) between 1 and 50.
1115
+ endUserProvidedFieldParentOwned:
1116
+ summary: endUserProvidedFields names a field the account owns
1117
+ value:
1118
+ errors:
1119
+ - field: endUserProvidedFields
1120
+ code: mcp_end_user_provided_field_not_allowed
1121
+ message: _agentId is managed by the account owner and cannot be requested from an end user.
853
1122
  delete:
854
1123
  x-internal: false
855
1124
  summary: Delete a connection
@@ -882,9 +1151,91 @@ paths:
882
1151
  $ref: '#/components/responses/422-dependency-conflict'
883
1152
  x-celigo-ai-guidance:
884
1153
  - |-
885
- Deletes a connection permanently. This operation cannot be undone.
886
- The connection must not be in use by any active flows or integrations.
1154
+ Soft-deletes the connection into the recycle bin (restorable for 30 days). Check
1155
+ `GET /v1/connections/{_id}/dependencies` first — a connection still referenced by flows,
1156
+ exports, or imports is rejected with 422.
887
1157
  /v1/connections/{_id}/ping:
1158
+ get:
1159
+ x-internal: false
1160
+ summary: Ping an existing connection via GET
1161
+ description: |-
1162
+ GET variant of the saved-connection ping — identical behavior to
1163
+ `POST /v1/connections/{_id}/ping`, with no request body to send. Runs the adaptor's ping
1164
+ routine against the connection identified by `_id` to verify its credentials and network
1165
+ configuration still work; no data is read, written, or modified.
1166
+
1167
+ Inspect the response body, not the HTTP status, to determine the outcome: success and
1168
+ adaptor-level failures both return HTTP 200 — success is `{code: 200}`, failures are
1169
+ `{errors: [...]}`. The only non-success status is 404, when `_id` does not resolve to a
1170
+ connection.
1171
+ operationId: pingConnectionByGet
1172
+ tags:
1173
+ - Connections
1174
+ parameters:
1175
+ - in: path
1176
+ name: _id
1177
+ required: true
1178
+ schema:
1179
+ type: string
1180
+ format: objectId
1181
+ x-celigo-refModel: connections
1182
+ description: Connection ID to ping.
1183
+ responses:
1184
+ '200':
1185
+ description: |-
1186
+ Ping executed. **Inspect the body** to determine outcome — success and
1187
+ adaptor-level failures both return HTTP 200. Success returns
1188
+ `{code: 200}`; adaptor-level failures return `{errors: [...]}`.
1189
+ content:
1190
+ application/json:
1191
+ schema:
1192
+ oneOf:
1193
+ - title: Ping success
1194
+ type: object
1195
+ required:
1196
+ - code
1197
+ properties:
1198
+ code:
1199
+ type: integer
1200
+ description: Mirrors the HTTP status — always 200 on success.
1201
+ example: 200
1202
+ additionalProperties: true
1203
+ - $ref: '#/components/schemas/Error'
1204
+ examples:
1205
+ success:
1206
+ summary: Connection reachable
1207
+ value:
1208
+ code: 200
1209
+ dns_failure:
1210
+ summary: Connection's baseURI host could not be resolved
1211
+ value:
1212
+ errors:
1213
+ - code: invalid_host
1214
+ message: 'Unknown host: api.example.invalid. We were unable to verify this host using a DNS lookup.'
1215
+ source: resource
1216
+ '401':
1217
+ $ref: '#/components/responses/401-unauthorized'
1218
+ '404':
1219
+ description: |-
1220
+ No connection found for the given `_id`. The body is an `invalid_ref`
1221
+ error — note this is a 404, not a 400, and the field pointer is `_id`.
1222
+ content:
1223
+ application/json:
1224
+ schema:
1225
+ $ref: '#/components/schemas/Error'
1226
+ examples:
1227
+ invalid_ref:
1228
+ value:
1229
+ errors:
1230
+ - field: _id
1231
+ code: invalid_ref
1232
+ message: unable to find connection for the given id.
1233
+ x-celigo-ai-guidance:
1234
+ - |-
1235
+ Behaves identically to POST /v1/connections/{_id}/ping and takes no request body — use
1236
+ whichever verb the client supports. Both verbs return HTTP 200 with {code: 200} on
1237
+ success and HTTP 200 with {errors: [...]} on adaptor-level failure, so inspect the body,
1238
+ not the status code.
888
1239
  post:
889
1240
  x-internal: false
890
1241
  summary: Ping an existing connection
@@ -1003,6 +1354,1079 @@ paths:
1003
1354
  - Test network connectivity
1004
1355
  - Verify permissions for basic operations
1005
1356
  - Return connection status and any error details
1357
+ /v1/connections/{_id}/proxy:
1358
+ post:
1359
+ x-internal: false
1360
+ summary: Send a request through a connection (proxy)
1361
+ description: |-
1362
+ Sends one HTTP request to the system behind a saved connection, using that connection's
1363
+ base URI and stored authentication, and returns the target's response as-is. Use it to call
1364
+ an endpoint the connection's exports and imports do not expose — a metadata or describe call,
1365
+ an ad-hoc read, a one-off write — without copying credentials out of integrator.io.
1366
+
1367
+ The proxy call is always `POST`; the request to the target is shaped by headers:
1368
+
1369
+ - `Integrator-Method` (required) is the HTTP method used against the target. One of `HEAD`,
1370
+ `GET`, `PUT`, `PATCH`, `POST`, `DELETE`; any other value is rejected with
1371
+ `405 method_not_allowed`, and omitting the header returns `400 missing_header`.
1372
+ - `Integrator-Relative-URI` (optional) is appended to the connection's base URI, query string
1373
+ included. Omitted, the request goes to the base URI itself.
1374
+ - The proxy request body is forwarded to the target as its body. Send an empty JSON object
1375
+ when the target expects no body.
1376
+
1377
+ Only these headers are read. Any other header on the proxy request — a custom
1378
+ `X-Correlation-Id`, an `Authorization` meant for the target — is dropped, not forwarded; the
1379
+ target receives the connection's authentication plus the standard request headers
1380
+ (`Accept`, `Content-Type`, `Content-Length`).
1381
+
1382
+ The response is the target's response: its status code, body, and headers come back
1383
+ unchanged, so a `404` or `422` here is the target's answer, not the proxy's. Non-JSON bodies
1384
+ (XML, text) pass through with their own `Content-Type`. Only two statuses are the proxy's
1385
+ own: `400 missing_header` and `404 invalid_ref` when `_id` is not a connection in the account.
1386
+
1387
+ NetSuite connections route to a RESTlet instead of a relative URI: send
1388
+ `Integrator-NetSuite-ScriptId` and `Integrator-NetSuite-DeployId` with the script and
1389
+ deployment ids of the RESTlet to call. See
1390
+ [Connect to custom NetSuite RESTlets](https://docs.celigo.com/hc/en-us/articles/360059639272-Connect-to-custom-NetSuite-RESTlets)
1391
+ and
1392
+ [Connect to Salesforce REST relative URIs via proxy](https://docs.celigo.com/hc/en-us/articles/19906581226779-Connect-to-Salesforce-REST-relative-URIs-via-proxy)
1393
+ for the flow-step form of the same call (an integrator.io export or import whose relative URI
1394
+ is this path).
1395
+ operationId: proxyConnectionRequest
1396
+ tags:
1397
+ - Connections
1398
+ parameters:
1399
+ - in: path
1400
+ name: _id
1401
+ required: true
1402
+ schema:
1403
+ type: string
1404
+ format: objectId
1405
+ x-celigo-refModel: connections
1406
+ description: Connection whose base URI and authentication the request is sent with.
1407
+ - in: header
1408
+ name: Integrator-Method
1409
+ required: true
1410
+ description: HTTP method to use against the target. Header names are case-insensitive.
1411
+ schema:
1412
+ type: string
1413
+ enum:
1414
+ - HEAD
1415
+ - GET
1416
+ - PUT
1417
+ - PATCH
1418
+ - POST
1419
+ - DELETE
1420
+ x-enumDescriptions:
1421
+ HEAD: Headers only; the body returned to the caller is empty.
1422
+ GET: Read from the target.
1423
+ PUT: Replace a target resource with the forwarded body.
1424
+ PATCH: Partially update a target resource with the forwarded body.
1425
+ POST: Create or invoke on the target with the forwarded body.
1426
+ DELETE: Delete a target resource.
1427
+ examples:
1428
+ - GET
1429
+ - in: header
1430
+ name: Integrator-Relative-URI
1431
+ required: false
1432
+ description: |-
1433
+ Path and query string appended to the connection's base URI, for example
1434
+ `/v1/flows?limit=1`. Omit to send the request to the base URI. Not used by NetSuite
1435
+ connections, which route by RESTlet script and deployment id instead.
1436
+ schema:
1437
+ type: string
1438
+ examples:
1439
+ - /services/data/v58.0/sobjects/account/describe
1440
+ - in: header
1441
+ name: Integrator-NetSuite-ScriptId
1442
+ required: false
1443
+ description: |-
1444
+ NetSuite connections only — the script id of the RESTlet to call
1445
+ (`customscript_…`). Send together with `Integrator-NetSuite-DeployId`.
1446
+ schema:
1447
+ type: string
1448
+ examples:
1449
+ - customscript_celigo_myrestlet
1450
+ - in: header
1451
+ name: Integrator-NetSuite-DeployId
1452
+ required: false
1453
+ description: |-
1454
+ NetSuite connections only — the deployment id of the RESTlet to call
1455
+ (`customdeploy_…`). Send together with `Integrator-NetSuite-ScriptId`.
1456
+ schema:
1457
+ type: string
1458
+ examples:
1459
+ - customdeploy_celigo_myrestlet
1460
+ requestBody:
1461
+ required: true
1462
+ content:
1463
+ application/json:
1464
+ schema:
1465
+ type: object
1466
+ description: |-
1467
+ Forwarded to the target as the request body. Send `{}` when the target method takes
1468
+ no body (`GET`, `HEAD`, `DELETE`).
1469
+ additionalProperties: true
1470
+ examples:
1471
+ read:
1472
+ summary: GET through an HTTP connection — no body
1473
+ value: {}
1474
+ write:
1475
+ summary: POST a record to the target
1476
+ value:
1477
+ name: Acme Corp
1478
+ status: active
1479
+ responses:
1480
+ '200':
1481
+ description: |-
1482
+ The target's response, passed through. The status is whatever the target returned —
1483
+ a `2xx` here, or the target's own `4xx`/`5xx` — with its body and headers unchanged.
1484
+ content:
1485
+ application/json:
1486
+ schema:
1487
+ description: The target's response body, as returned by the target.
1488
+ examples:
1489
+ list:
1490
+ summary: Target returned a JSON array
1491
+ value:
1492
+ - _id: 69f4b2cb95ec28be9ca1a88d
1493
+ name: Shopify orders
1494
+ application/xml:
1495
+ schema:
1496
+ type: string
1497
+ description: Non-JSON target bodies pass through with the target's `Content-Type`.
1498
+ '400':
1499
+ description: '`missing_header` — `Integrator-Method` was not sent.'
1500
+ content:
1501
+ application/json:
1502
+ schema:
1503
+ $ref: '#/components/schemas/Error'
1504
+ examples:
1505
+ missingMethod:
1506
+ value:
1507
+ errors:
1508
+ - code: missing_header
1509
+ message: Integrator-Method header missing in the Request
1510
+ source: resource
1511
+ '401':
1512
+ $ref: '#/components/responses/401-unauthorized'
1513
+ '404':
1514
+ description: |-
1515
+ `invalid_ref` — `_id` is not a connection in this account. A `404` with any other body
1516
+ is the target's response to the forwarded request.
1517
+ content:
1518
+ application/json:
1519
+ schema:
1520
+ $ref: '#/components/schemas/Error'
1521
+ examples:
1522
+ unknownConnection:
1523
+ value:
1524
+ errors:
1525
+ - code: invalid_ref
1526
+ message: Connection not found for the given id.
1527
+ '405':
1528
+ description: '`method_not_allowed` — `Integrator-Method` is not one of the allowed values.'
1529
+ content:
1530
+ application/json:
1531
+ schema:
1532
+ $ref: '#/components/schemas/Error'
1533
+ examples:
1534
+ badMethod:
1535
+ value:
1536
+ errors:
1537
+ - code: method_not_allowed
1538
+ message: HTTP Method 'FETCH' not allowed. Allowed methods are HEAD, GET, PUT, PATCH, POST, DELETE
1539
+ source: resource
1540
+ default:
1541
+ description: |-
1542
+ Any other status is the target's response to the forwarded request, returned unchanged
1543
+ with its body and headers.
1544
+ x-celigo-ai-guidance:
1545
+ - |-
1546
+ Custom headers are not forwarded to the target: only Integrator-Method,
1547
+ Integrator-Relative-URI, and the NetSuite RESTlet id headers are read, and the target
1548
+ receives the connection's own authentication. If the target needs a header the connection
1549
+ does not send, the proxy cannot supply it.
1550
+ - |-
1551
+ Read the status as the target's, not the proxy's: a 422 or 404 with a non-invalid_ref
1552
+ body is the downstream system's validation result for the forwarded request.
1553
+ /v1/connections/{_id}/import:
1554
+ post:
1555
+ x-internal: false
1556
+ operationId: invokeVirtualImport
1557
+ tags:
1558
+ - Connections
1559
+ summary: Run an import document through a connection
1560
+ description: |-
1561
+ Runs an import document sent in the request body — a virtual import —
1562
+ through this connection against the supplied records and returns one
1563
+ result per record, synchronously. Nothing is saved: the document can be
1564
+ an unsaved draft, a modified copy, or a saved import as fetched (`_id`
1565
+ and metadata accepted). Each record runs the document's own pipeline —
1566
+ input filter, preMap hook, mappings, postMap hook, request, postSubmit
1567
+ hook — and the request executes against the live destination: a real
1568
+ write, not a dry run; a saved `mockResponse` does not substitute. A
1569
+ record the input filter excludes comes back `ignored`, never sent.
1570
+ Adaptors `POST /v1/imports/preview` rejects with `invalid_adaptor` run
1571
+ here — NetSuite and RDBMS verified alongside HTTP.
1572
+
1573
+ The step runs with the document's own `settings` only: hooks receive
1574
+ `options.settings` with an `import` key but no `integration` or `flow`
1575
+ key and no `_flowId` / `_integrationId`; `{{settings.integration.*}}`
1576
+ and `{{settings.flow.*}}` templates render empty. To run the document
1577
+ with the context a real run of its parent supplies, use the
1578
+ integration-scoped forms —
1579
+ `POST /v1/integrations/{_integrationId}/flows/{_flowId}/connections/{_connectionId}/import`
1580
+ and the `tools/{_toolId}` and `apis/{_apiId}` siblings. The connection
1581
+ in the path is the one used; a `_connectionId` on the document is
1582
+ ignored.
1583
+
1584
+ `POST /v1/imports/{_id}/invoke` runs a saved import the same way with
1585
+ the same per-record shape; the read-side sibling is the virtual export,
1586
+ `POST /v1/connections/{_id}/export`.
1587
+ parameters:
1588
+ - in: path
1589
+ name: _id
1590
+ required: true
1591
+ schema:
1592
+ type: string
1593
+ format: objectId
1594
+ x-celigo-refModel: connections
1595
+ examples:
1596
+ - 6a04b5309dc296c4efb1a6e0
1597
+ description: Connection the import document runs through.
1598
+ requestBody:
1599
+ required: true
1600
+ content:
1601
+ application/json:
1602
+ schema:
1603
+ type: object
1604
+ description: The import document to run and the records to run through it.
1605
+ x-celigo-ai-guidance:
1606
+ - |-
1607
+ This executes the request against the live destination — a real write, even when the
1608
+ document carries a saved `mockResponse`. Treat it like a flow run, never like a preview.
1609
+ - |-
1610
+ The step gets the document's own settings only: hooks see `options.settings = {import}`
1611
+ with no `integration` / `flow` key and no `_flowId` / `_integrationId`, and
1612
+ `{{settings.integration.*}}` / `{{settings.flow.*}}` render empty. A step whose hooks or
1613
+ templates read those settings builds a different record here than in a flow run — send
1614
+ it through the integration-scoped form
1615
+ (`/v1/integrations/{_integrationId}/flows/{_flowId}/connections/{_connectionId}/import`,
1616
+ or the `tools` / `apis` sibling) instead, which resolves that context from the URL.
1617
+ - |-
1618
+ NetSuite and RDBMS documents run here, where `POST /v1/imports/preview` answers
1619
+ `invalid_adaptor`. A record the input filter excludes comes back
1620
+ `{ignored: true, stage: "inputFilter"}` and was never sent; omitting `data` is a
1621
+ `400 invalid_request`.
1622
+ required:
1623
+ - import
1624
+ - data
1625
+ properties:
1626
+ import:
1627
+ type: object
1628
+ description: |-
1629
+ The import document to run (mirror of the `POST /v1/imports`
1630
+ body shape); `name` and `_connectionId` are not needed, and a
1631
+ saved import's `_id` and metadata may ride along unchanged.
1632
+ Adaptor-specific blocks (`http`, `netsuite_da`, `rdbms`, …),
1633
+ `mapping`, `filter` and `hooks` apply exactly as on a saved
1634
+ import.
1635
+ additionalProperties: true
1636
+ data:
1637
+ type: array
1638
+ description: |-
1639
+ Records to run through the document, each becoming one result.
1640
+ An empty array returns an empty array; omitting `data` is
1641
+ rejected.
1642
+ items:
1643
+ type: object
1644
+ additionalProperties: true
1645
+ additionalProperties: true
1646
+ examples:
1647
+ unsaved_http_import:
1648
+ summary: Run an unsaved HTTP import against one record
1649
+ value:
1650
+ import:
1651
+ adaptorType: HTTPImport
1652
+ mapping:
1653
+ fields:
1654
+ - extract: email
1655
+ generate: Email
1656
+ lists: []
1657
+ http:
1658
+ relativeURI:
1659
+ - /post
1660
+ method:
1661
+ - POST
1662
+ requestType:
1663
+ - CREATE
1664
+ requestMediaType: json
1665
+ successMediaType: json
1666
+ sendPostMappedData: true
1667
+ formType: http
1668
+ data:
1669
+ - email: contact@acme.com
1670
+ responses:
1671
+ '200':
1672
+ description: |-
1673
+ One result per input record, in input order — accepted, failed at
1674
+ the destination, or ignored by the document's own input filter.
1675
+ content:
1676
+ application/json:
1677
+ schema:
1678
+ type: array
1679
+ items:
1680
+ $ref: '#/components/schemas/ImportRecordResult'
1681
+ examples:
1682
+ accepted:
1683
+ summary: Record accepted — the destination's response body in _json
1684
+ value:
1685
+ - statusCode: 200
1686
+ _json:
1687
+ Email: contact@acme.com
1688
+ _headers:
1689
+ content-type: application/json; charset=utf-8
1690
+ destination_rejected:
1691
+ summary: Destination rejected the record
1692
+ value:
1693
+ - statusCode: 422
1694
+ _json: {}
1695
+ errors:
1696
+ - message: 'Failed to create, update/transform record because com.netledger.common.exceptions.NLUserError: The record type [CUSTOMRECORD_ZZ] is invalid.'
1697
+ code: javaexception
1698
+ source: application
1699
+ resolved: false
1700
+ occurredAt: 1791309460117
1701
+ stage: apiCall
1702
+ classification: missing
1703
+ ignored_by_input_filter:
1704
+ summary: Record excluded by the input filter — nothing sent
1705
+ value:
1706
+ - statusCode: 200
1707
+ _json: {}
1708
+ ignored: true
1709
+ stage: inputFilter
1710
+ '400':
1711
+ description: |-
1712
+ Request body is malformed — the top-level `import` object or the
1713
+ `data` array is missing. Returned as a bare array of error objects,
1714
+ not the standard `errors` envelope.
1715
+ content:
1716
+ application/json:
1717
+ schema:
1718
+ type: array
1719
+ items:
1720
+ type: object
1721
+ properties:
1722
+ code:
1723
+ type: string
1724
+ message:
1725
+ type: string
1726
+ examples:
1727
+ missing_import:
1728
+ value:
1729
+ - code: invalid_request
1730
+ message: Request body should contain an import object details.
1731
+ missing_data:
1732
+ value:
1733
+ - code: invalid_request
1734
+ message: Request body should contain data which is to be imported.
1735
+ '401':
1736
+ $ref: '#/components/responses/401-unauthorized'
1737
+ '422':
1738
+ description: '`invalid_ref` — `_id` is not a connection in the account.'
1739
+ content:
1740
+ application/json:
1741
+ schema:
1742
+ $ref: '#/components/schemas/Error'
1743
+ examples:
1744
+ connection_not_found:
1745
+ value:
1746
+ errors:
1747
+ - field: connection
1748
+ code: invalid_ref
1749
+ message: connection not found.
1750
+ - field: _connectionId
1751
+ code: invalid_ref
1752
+ message: a9e11dc0de1ec0de00000009 is not a valid _connectionId
1753
+ /v1/connections/{_id}/export:
1754
+ post:
1755
+ x-internal: false
1756
+ operationId: invokeVirtualExport
1757
+ tags:
1758
+ - Connections
1759
+ summary: Run an export document through a connection
1760
+ description: |-
1761
+ Runs an export document sent in the request body — a virtual export —
1762
+ through this connection against the live source and returns the fetched
1763
+ records, synchronously. Nothing is saved and no job is created: the
1764
+ document can be an unsaved draft, a modified copy of a saved export, or
1765
+ a saved export as fetched. Use it to read from a system through an
1766
+ existing connection before an export exists, or to check what a changed
1767
+ export definition would return.
1768
+
1769
+ The connection in the path is the one used; a `_connectionId` on the
1770
+ document is not needed. The read executes against the live source
1771
+ (HTTP and NetSuite RESTlet searches verified) and `dataURIs` carries,
1772
+ per record, a link to the record in the source system when the adaptor
1773
+ provides one (`null` otherwise).
1774
+
1775
+ The export-side preview surfaces, `POST /v1/exports/preview` and the
1776
+ flow-scoped `POST /v1/integrations/{_integrationId}/flows/{_flowId}/exports/preview`,
1777
+ return the same records inside a stage-by-stage envelope; prefer them
1778
+ when the export's transform or filter output matters. The write-side
1779
+ sibling is the virtual import, `POST /v1/connections/{_id}/import`.
1780
+ parameters:
1781
+ - in: path
1782
+ name: _id
1783
+ required: true
1784
+ schema:
1785
+ type: string
1786
+ format: objectId
1787
+ x-celigo-refModel: connections
1788
+ examples:
1789
+ - 6a04b5309dc296c4efb1a6e0
1790
+ description: Connection the export document runs through.
1791
+ requestBody:
1792
+ required: true
1793
+ content:
1794
+ application/json:
1795
+ schema:
1796
+ type: object
1797
+ description: The export document to run.
1798
+ required:
1799
+ - export
1800
+ properties:
1801
+ export:
1802
+ type: object
1803
+ description: |-
1804
+ The export document to run (mirror of the `POST /v1/exports`
1805
+ body shape); `name` and `_connectionId` are not needed.
1806
+ Adaptor-specific blocks (`http`, `netsuite`, `rdbms`, …) apply
1807
+ exactly as on a saved export.
1808
+ additionalProperties: true
1809
+ additionalProperties: true
1810
+ examples:
1811
+ netsuite_search:
1812
+ summary: Run an ad-hoc NetSuite search by externalid
1813
+ value:
1814
+ export:
1815
+ adaptorType: NetSuiteExport
1816
+ netsuite:
1817
+ type: restlet
1818
+ skipGrouping: true
1819
+ restlet:
1820
+ recordType: customrecord_payout_variance
1821
+ restletVersion: suitebundle
1822
+ columns:
1823
+ - name: internalid
1824
+ label: internalid
1825
+ - name: externalid
1826
+ label: externalid
1827
+ criteria:
1828
+ - field: externalid
1829
+ operator: is
1830
+ searchValue: SEED-01
1831
+ responses:
1832
+ '200':
1833
+ description: The records the source returned, with a per-record link when the adaptor provides one.
1834
+ content:
1835
+ application/json:
1836
+ schema:
1837
+ type: object
1838
+ properties:
1839
+ data:
1840
+ type: array
1841
+ description: Records fetched from the source, in the order the source returned them.
1842
+ items:
1843
+ type: object
1844
+ additionalProperties: true
1845
+ dataURIs:
1846
+ type: array
1847
+ description: |-
1848
+ One entry per record in `data`: a link to the record in the
1849
+ source system when the adaptor provides one, otherwise `null`.
1850
+ items:
1851
+ type:
1852
+ - string
1853
+ - 'null'
1854
+ additionalProperties: true
1855
+ examples:
1856
+ netsuite_rows:
1857
+ summary: NetSuite search result with record links
1858
+ value:
1859
+ data:
1860
+ - id: '1'
1861
+ recordType: customrecord_payout_variance
1862
+ internalid: '1'
1863
+ externalid: SEED-01
1864
+ dataURIs:
1865
+ - https://1234567.app.netsuite.com/app/common/custom/custrecordentry.nl?rectype=923&id=1
1866
+ '400':
1867
+ description: The top-level `export` object is missing.
1868
+ content:
1869
+ application/json:
1870
+ schema:
1871
+ $ref: '#/components/schemas/Error'
1872
+ examples:
1873
+ missing_export:
1874
+ value:
1875
+ errors:
1876
+ - code: invalid_request
1877
+ message: Request body should contain an export object details.
1878
+ '401':
1879
+ $ref: '#/components/responses/401-unauthorized'
1880
+ '422':
1881
+ description: '`invalid_ref` — `_id` is not a connection in the account.'
1882
+ content:
1883
+ application/json:
1884
+ schema:
1885
+ $ref: '#/components/schemas/Error'
1886
+ examples:
1887
+ connection_not_found:
1888
+ value:
1889
+ errors:
1890
+ - field: _connectionId
1891
+ code: invalid_ref
1892
+ message: a9e11dc0de1ec0de00000009 is not a valid _connectionId
1893
+ - field: connection
1894
+ code: invalid_ref
1895
+ message: connection not found.
1896
+ /v1/integrations/{_integrationId}/flows/{_flowId}/connections/{_connectionId}/import:
1897
+ post:
1898
+ x-internal: false
1899
+ operationId: invokeVirtualImportForFlow
1900
+ tags:
1901
+ - Connections
1902
+ summary: Run an import document through a connection as a step of a flow
1903
+ description: |-
1904
+ Runs an import document sent in the request body — a virtual import —
1905
+ through the connection, with the flow and the integration in the
1906
+ path supplying the execution context a real run gives the step — hooks receive `options.settings` with the flow's and the integration's settings (a resource with none contributes no key) plus `_flowId` / `_integrationId`, as on the flow's own preview chain.
1907
+ Nothing is saved — the document can be an unsaved draft, a modified
1908
+ copy, or a saved import as fetched — and the request executes against
1909
+ the live destination: a real write; a saved
1910
+ `mockResponse` does not substitute. Pipeline and per-record result are
1911
+ those of `POST /v1/connections/{_id}/import`, which runs the document
1912
+ with its own settings only. The flow must belong to the
1913
+ integration, the connection must be registered to it, and the caller
1914
+ needs manage access to the account or the integration.
1915
+ parameters:
1916
+ - in: path
1917
+ name: _integrationId
1918
+ required: true
1919
+ schema:
1920
+ type: string
1921
+ format: objectId
1922
+ x-celigo-refModel: integrations
1923
+ examples:
1924
+ - 6a0602a45927c70694e1092b
1925
+ description: Integration whose settings feed the execution context; the flow and the connection must belong to it.
1926
+ - in: path
1927
+ name: _flowId
1928
+ required: true
1929
+ schema:
1930
+ type: string
1931
+ format: objectId
1932
+ x-celigo-refModel: flows
1933
+ examples:
1934
+ - 6ac3ee0a12b28806990380d3
1935
+ description: Flow whose settings feed the execution context; must belong to the integration.
1936
+ - in: path
1937
+ name: _connectionId
1938
+ required: true
1939
+ schema:
1940
+ type: string
1941
+ format: objectId
1942
+ x-celigo-refModel: connections
1943
+ examples:
1944
+ - 6a04b5309dc296c4efb1a6e0
1945
+ description: Connection the import document runs through; must be registered to the integration.
1946
+ requestBody:
1947
+ required: true
1948
+ content:
1949
+ application/json:
1950
+ schema:
1951
+ $ref: '#/components/schemas/ScopedVirtualImportRequest'
1952
+ examples:
1953
+ saved_import_one_record:
1954
+ summary: Run a step's saved document against one record
1955
+ value:
1956
+ import:
1957
+ adaptorType: HTTPImport
1958
+ mapping:
1959
+ fields:
1960
+ - extract: email
1961
+ generate: Email
1962
+ lists: []
1963
+ http:
1964
+ relativeURI:
1965
+ - /post
1966
+ method:
1967
+ - POST
1968
+ requestType:
1969
+ - CREATE
1970
+ requestMediaType: json
1971
+ successMediaType: json
1972
+ sendPostMappedData: true
1973
+ formType: http
1974
+ data:
1975
+ - email: contact@acme.com
1976
+ responses:
1977
+ '200':
1978
+ description: |-
1979
+ One result per input record, in input order — accepted, failed at
1980
+ the destination, or ignored by the document's own input filter.
1981
+ content:
1982
+ application/json:
1983
+ schema:
1984
+ type: array
1985
+ items:
1986
+ $ref: '#/components/schemas/ImportRecordResult'
1987
+ examples:
1988
+ accepted:
1989
+ summary: Record accepted — the destination's response body in _json
1990
+ value:
1991
+ - statusCode: 200
1992
+ _json:
1993
+ Email: contact@acme.com
1994
+ _headers:
1995
+ content-type: application/json; charset=utf-8
1996
+ destination_rejected:
1997
+ summary: Destination rejected the record
1998
+ value:
1999
+ - statusCode: 422
2000
+ _json: {}
2001
+ errors:
2002
+ - message: 'Failed to create, update/transform record because com.netledger.common.exceptions.NLUserError: The record type [CUSTOMRECORD_ZZ] is invalid.'
2003
+ code: javaexception
2004
+ source: application
2005
+ resolved: false
2006
+ occurredAt: 1791309460117
2007
+ stage: apiCall
2008
+ classification: missing
2009
+ '400':
2010
+ description: |-
2011
+ `invalid_request`, in one of two shapes: the `errors[]` envelope when
2012
+ the flow does not belong to the integration in the path (also
2013
+ the answer for an unknown integration id), or the bare error array
2014
+ `POST /v1/connections/{_id}/import` returns when the body is
2015
+ malformed — the top-level `import` object or the `data` array is
2016
+ missing.
2017
+ content:
2018
+ application/json:
2019
+ schema:
2020
+ oneOf:
2021
+ - $ref: '#/components/schemas/Error'
2022
+ - title: Body validation errors
2023
+ type: array
2024
+ items:
2025
+ type: object
2026
+ properties:
2027
+ code:
2028
+ type: string
2029
+ message:
2030
+ type: string
2031
+ examples:
2032
+ not_in_integration:
2033
+ summary: The flow is not in the integration
2034
+ value:
2035
+ errors:
2036
+ - code: invalid_request
2037
+ source: integrator
2038
+ message: The flow 6ace605a6ac2e65233ea4c3c does not belong to the integration 6a0215e99a09438890eb3e8b.
2039
+ missing_data:
2040
+ summary: Malformed body — the data array is missing
2041
+ value:
2042
+ - code: invalid_request
2043
+ message: Request body should contain data which is to be imported.
2044
+ '401':
2045
+ $ref: '#/components/responses/401-unauthorized'
2046
+ '403':
2047
+ description: |-
2048
+ `invalid_request` — the connection is not registered to the
2049
+ integration (an unknown connection id answers the same).
2050
+ content:
2051
+ application/json:
2052
+ schema:
2053
+ $ref: '#/components/schemas/Error'
2054
+ examples:
2055
+ connection_not_registered:
2056
+ value:
2057
+ errors:
2058
+ - code: invalid_request
2059
+ source: integrator
2060
+ message: The connection 6a0000000000000000000000 is not registered to the integration 6a0215e99a09438890eb3e8b.
2061
+ '404':
2062
+ description: '`invalid_ref` — no flow with the given id is visible to the account.'
2063
+ content:
2064
+ application/json:
2065
+ schema:
2066
+ $ref: '#/components/schemas/Error'
2067
+ examples:
2068
+ flow_not_found:
2069
+ value:
2070
+ errors:
2071
+ - field: _flowId
2072
+ code: invalid_ref
2073
+ message: unable to find flow for the given id.
2074
+ /v1/integrations/{_integrationId}/tools/{_toolId}/connections/{_connectionId}/import:
2075
+ post:
2076
+ x-internal: false
2077
+ operationId: invokeVirtualImportForTool
2078
+ tags:
2079
+ - Connections
2080
+ summary: Run an import document through a connection as a step of a tool
2081
+ description: |-
2082
+ Runs an import document sent in the request body — a virtual import —
2083
+ through the connection, with the tool and the integration in the
2084
+ path supplying the execution context a real run gives the step — hooks receive `options.settings` with the integration's settings (none when it carries none) plus `_integrationId`, and no flow.
2085
+ Nothing is saved — the document can be an unsaved draft, a modified
2086
+ copy, or a saved import as fetched — and the request executes against
2087
+ the live destination: a real write, not a dry run; a saved
2088
+ `mockResponse` does not substitute. Pipeline and per-record result are
2089
+ those of `POST /v1/connections/{_id}/import`, which runs the document
2090
+ with its own settings only. The tool must belong to the
2091
+ integration, the connection must be registered to it, and the caller
2092
+ needs manage access to the account or the integration.
2093
+ parameters:
2094
+ - in: path
2095
+ name: _integrationId
2096
+ required: true
2097
+ schema:
2098
+ type: string
2099
+ format: objectId
2100
+ x-celigo-refModel: integrations
2101
+ examples:
2102
+ - 6a0602a45927c70694e1092b
2103
+ description: Integration whose settings feed the execution context; the tool and the connection must belong to it.
2104
+ - in: path
2105
+ name: _toolId
2106
+ required: true
2107
+ schema:
2108
+ type: string
2109
+ format: objectId
2110
+ x-celigo-refModel: tools
2111
+ examples:
2112
+ - 6ac3e6667968a10c70628911
2113
+ description: Tool the step belongs to; must belong to the integration.
2114
+ - in: path
2115
+ name: _connectionId
2116
+ required: true
2117
+ schema:
2118
+ type: string
2119
+ format: objectId
2120
+ x-celigo-refModel: connections
2121
+ examples:
2122
+ - 6a04b5309dc296c4efb1a6e0
2123
+ description: Connection the import document runs through; must be registered to the integration.
2124
+ requestBody:
2125
+ required: true
2126
+ content:
2127
+ application/json:
2128
+ schema:
2129
+ $ref: '#/components/schemas/ScopedVirtualImportRequest'
2130
+ examples:
2131
+ saved_import_one_record:
2132
+ summary: Run a step's saved document against one record
2133
+ value:
2134
+ import:
2135
+ adaptorType: HTTPImport
2136
+ mapping:
2137
+ fields:
2138
+ - extract: email
2139
+ generate: Email
2140
+ lists: []
2141
+ http:
2142
+ relativeURI:
2143
+ - /post
2144
+ method:
2145
+ - POST
2146
+ requestType:
2147
+ - CREATE
2148
+ requestMediaType: json
2149
+ successMediaType: json
2150
+ sendPostMappedData: true
2151
+ formType: http
2152
+ data:
2153
+ - email: contact@acme.com
2154
+ responses:
2155
+ '200':
2156
+ description: |-
2157
+ One result per input record, in input order — accepted, failed at
2158
+ the destination, or ignored by the document's own input filter.
2159
+ content:
2160
+ application/json:
2161
+ schema:
2162
+ type: array
2163
+ items:
2164
+ $ref: '#/components/schemas/ImportRecordResult'
2165
+ examples:
2166
+ accepted:
2167
+ summary: Record accepted — the destination's response body in _json
2168
+ value:
2169
+ - statusCode: 200
2170
+ _json:
2171
+ Email: contact@acme.com
2172
+ _headers:
2173
+ content-type: application/json; charset=utf-8
2174
+ destination_rejected:
2175
+ summary: Destination rejected the record
2176
+ value:
2177
+ - statusCode: 422
2178
+ _json: {}
2179
+ errors:
2180
+ - message: 'Failed to create, update/transform record because com.netledger.common.exceptions.NLUserError: The record type [CUSTOMRECORD_ZZ] is invalid.'
2181
+ code: javaexception
2182
+ source: application
2183
+ resolved: false
2184
+ occurredAt: 1791309460117
2185
+ stage: apiCall
2186
+ classification: missing
2187
+ '400':
2188
+ description: |-
2189
+ `invalid_request`, in one of two shapes: the `errors[]` envelope when
2190
+ the tool does not belong to the integration in the path (also
2191
+ the answer for an unknown integration id), or the bare error array
2192
+ `POST /v1/connections/{_id}/import` returns when the body is
2193
+ malformed — the top-level `import` object or the `data` array is
2194
+ missing.
2195
+ content:
2196
+ application/json:
2197
+ schema:
2198
+ oneOf:
2199
+ - $ref: '#/components/schemas/Error'
2200
+ - title: Body validation errors
2201
+ type: array
2202
+ items:
2203
+ type: object
2204
+ properties:
2205
+ code:
2206
+ type: string
2207
+ message:
2208
+ type: string
2209
+ examples:
2210
+ not_in_integration:
2211
+ summary: The tool is not in the integration
2212
+ value:
2213
+ errors:
2214
+ - code: invalid_request
2215
+ source: integrator
2216
+ message: The tool 6ace605a6ac2e65233ea4c3c does not belong to the integration 6a0215e99a09438890eb3e8b.
2217
+ missing_data:
2218
+ summary: Malformed body — the data array is missing
2219
+ value:
2220
+ - code: invalid_request
2221
+ message: Request body should contain data which is to be imported.
2222
+ '401':
2223
+ $ref: '#/components/responses/401-unauthorized'
2224
+ '403':
2225
+ description: |-
2226
+ `invalid_request` — the connection is not registered to the
2227
+ integration (an unknown connection id answers the same).
2228
+ content:
2229
+ application/json:
2230
+ schema:
2231
+ $ref: '#/components/schemas/Error'
2232
+ examples:
2233
+ connection_not_registered:
2234
+ value:
2235
+ errors:
2236
+ - code: invalid_request
2237
+ source: integrator
2238
+ message: The connection 6a0000000000000000000000 is not registered to the integration 6a0215e99a09438890eb3e8b.
2239
+ '404':
2240
+ description: '`invalid_ref` — no tool with the given id is visible to the account.'
2241
+ content:
2242
+ application/json:
2243
+ schema:
2244
+ $ref: '#/components/schemas/Error'
2245
+ examples:
2246
+ tool_not_found:
2247
+ value:
2248
+ errors:
2249
+ - field: _toolId
2250
+ code: invalid_ref
2251
+ message: unable to find tool for the given id.
2252
+ /v1/integrations/{_integrationId}/apis/{_apiId}/connections/{_connectionId}/import:
2253
+ post:
2254
+ x-internal: false
2255
+ operationId: invokeVirtualImportForApi
2256
+ tags:
2257
+ - Connections
2258
+ summary: Run an import document through a connection as a step of an API
2259
+ description: |-
2260
+ Runs an import document sent in the request body — a virtual import —
2261
+ through the connection, with the API and the integration in the
2262
+ path supplying the execution context a real run gives the step — hooks receive `options.settings` with the integration's settings (none when it carries none) plus `_integrationId`, and no flow.
2263
+ Nothing is saved — the document can be an unsaved draft, a modified
2264
+ copy, or a saved import as fetched — and the request executes against
2265
+ the live destination: a real write, not a dry run; a saved
2266
+ `mockResponse` does not substitute. Pipeline and per-record result are
2267
+ those of `POST /v1/connections/{_id}/import`, which runs the document
2268
+ with its own settings only. The API must belong to the
2269
+ integration, the connection must be registered to it, and the caller
2270
+ needs manage access to the account or the integration.
2271
+ parameters:
2272
+ - in: path
2273
+ name: _integrationId
2274
+ required: true
2275
+ schema:
2276
+ type: string
2277
+ format: objectId
2278
+ x-celigo-refModel: integrations
2279
+ examples:
2280
+ - 6a0602a45927c70694e1092b
2281
+ description: Integration whose settings feed the execution context; the API and the connection must belong to it.
2282
+ - in: path
2283
+ name: _apiId
2284
+ required: true
2285
+ schema:
2286
+ type: string
2287
+ format: objectId
2288
+ x-celigo-refModel: apis
2289
+ examples:
2290
+ - 6ac5966390f6ab94d6429012
2291
+ description: API the step belongs to; must belong to the integration.
2292
+ - in: path
2293
+ name: _connectionId
2294
+ required: true
2295
+ schema:
2296
+ type: string
2297
+ format: objectId
2298
+ x-celigo-refModel: connections
2299
+ examples:
2300
+ - 6a04b5309dc296c4efb1a6e0
2301
+ description: Connection the import document runs through; must be registered to the integration.
2302
+ requestBody:
2303
+ required: true
2304
+ content:
2305
+ application/json:
2306
+ schema:
2307
+ $ref: '#/components/schemas/ScopedVirtualImportRequest'
2308
+ examples:
2309
+ saved_import_one_record:
2310
+ summary: Run a step's saved document against one record
2311
+ value:
2312
+ import:
2313
+ adaptorType: HTTPImport
2314
+ mapping:
2315
+ fields:
2316
+ - extract: email
2317
+ generate: Email
2318
+ lists: []
2319
+ http:
2320
+ relativeURI:
2321
+ - /post
2322
+ method:
2323
+ - POST
2324
+ requestType:
2325
+ - CREATE
2326
+ requestMediaType: json
2327
+ successMediaType: json
2328
+ sendPostMappedData: true
2329
+ formType: http
2330
+ data:
2331
+ - email: contact@acme.com
2332
+ responses:
2333
+ '200':
2334
+ description: |-
2335
+ One result per input record, in input order — accepted, failed at
2336
+ the destination, or ignored by the document's own input filter.
2337
+ content:
2338
+ application/json:
2339
+ schema:
2340
+ type: array
2341
+ items:
2342
+ $ref: '#/components/schemas/ImportRecordResult'
2343
+ examples:
2344
+ accepted:
2345
+ summary: Record accepted — the destination's response body in _json
2346
+ value:
2347
+ - statusCode: 200
2348
+ _json:
2349
+ Email: contact@acme.com
2350
+ _headers:
2351
+ content-type: application/json; charset=utf-8
2352
+ destination_rejected:
2353
+ summary: Destination rejected the record
2354
+ value:
2355
+ - statusCode: 422
2356
+ _json: {}
2357
+ errors:
2358
+ - message: 'Failed to create, update/transform record because com.netledger.common.exceptions.NLUserError: The record type [CUSTOMRECORD_ZZ] is invalid.'
2359
+ code: javaexception
2360
+ source: application
2361
+ resolved: false
2362
+ occurredAt: 1791309460117
2363
+ stage: apiCall
2364
+ classification: missing
2365
+ '400':
2366
+ description: |-
2367
+ `invalid_request`, in one of two shapes: the `errors[]` envelope when
2368
+ the API does not belong to the integration in the path (also
2369
+ the answer for an unknown integration id), or the bare error array
2370
+ `POST /v1/connections/{_id}/import` returns when the body is
2371
+ malformed — the top-level `import` object or the `data` array is
2372
+ missing.
2373
+ content:
2374
+ application/json:
2375
+ schema:
2376
+ oneOf:
2377
+ - $ref: '#/components/schemas/Error'
2378
+ - title: Body validation errors
2379
+ type: array
2380
+ items:
2381
+ type: object
2382
+ properties:
2383
+ code:
2384
+ type: string
2385
+ message:
2386
+ type: string
2387
+ examples:
2388
+ not_in_integration:
2389
+ summary: The API is not in the integration
2390
+ value:
2391
+ errors:
2392
+ - code: invalid_request
2393
+ source: integrator
2394
+ message: The api 6ace605a6ac2e65233ea4c3c does not belong to the integration 6a0215e99a09438890eb3e8b.
2395
+ missing_data:
2396
+ summary: Malformed body — the data array is missing
2397
+ value:
2398
+ - code: invalid_request
2399
+ message: Request body should contain data which is to be imported.
2400
+ '401':
2401
+ $ref: '#/components/responses/401-unauthorized'
2402
+ '403':
2403
+ description: |-
2404
+ `invalid_request` — the connection is not registered to the
2405
+ integration (an unknown connection id answers the same).
2406
+ content:
2407
+ application/json:
2408
+ schema:
2409
+ $ref: '#/components/schemas/Error'
2410
+ examples:
2411
+ connection_not_registered:
2412
+ value:
2413
+ errors:
2414
+ - code: invalid_request
2415
+ source: integrator
2416
+ message: The connection 6a0000000000000000000000 is not registered to the integration 6a0215e99a09438890eb3e8b.
2417
+ '404':
2418
+ description: '`invalid_ref` — no API with the given id is visible to the account.'
2419
+ content:
2420
+ application/json:
2421
+ schema:
2422
+ $ref: '#/components/schemas/Error'
2423
+ examples:
2424
+ api_not_found:
2425
+ value:
2426
+ errors:
2427
+ - field: _apiId
2428
+ code: invalid_ref
2429
+ message: unable to find api for the given id.
1006
2430
  /v1/connections/{_id}/debug:
1007
2431
  get:
1008
2432
  x-internal: false
@@ -1091,6 +2515,96 @@ paths:
1091
2515
  $ref: '#/components/responses/401-unauthorized'
1092
2516
  '404':
1093
2517
  $ref: '#/components/responses/404-not-found'
2518
+ /v1/connections/{_id}/debug/{typeId}:
2519
+ get:
2520
+ x-internal: false
2521
+ operationId: getConnectionDebugLogsForResource
2522
+ tags:
2523
+ - Connections
2524
+ summary: Fetch a connection's debug logs for one export or import
2525
+ description: |-
2526
+ Same buffered debug log stream as `GET /v1/connections/{_id}/debug`, narrowed to the
2527
+ request/response pairs recorded for a single export or import (`typeId`) that uses the
2528
+ connection. Use it instead of filtering the shared stream client-side when one flow step
2529
+ is under investigation. Capture is still gated by the connection's `debugDate`, so the
2530
+ stream is empty until debug logging is enabled.
2531
+
2532
+ `typeId` must be the id of an export or import in the account; an id that resolves to
2533
+ neither answers 404, and a value that is not an ObjectId answers 400.
2534
+ parameters:
2535
+ - name: _id
2536
+ in: path
2537
+ required: true
2538
+ description: The connection id.
2539
+ schema:
2540
+ type: string
2541
+ format: objectId
2542
+ x-celigo-refModel: connections
2543
+ - name: typeId
2544
+ in: path
2545
+ required: true
2546
+ description: Id of the export or import whose traffic through the connection to return.
2547
+ schema:
2548
+ type: string
2549
+ format: objectId
2550
+ responses:
2551
+ '200':
2552
+ description: Debug log stream (plain text) for the given export or import.
2553
+ content:
2554
+ text/plain:
2555
+ schema:
2556
+ type: string
2557
+ description: |-
2558
+ Newline-separated debug log entries in the same format as
2559
+ `GET /v1/connections/{_id}/debug`: a header line
2560
+ (`timestamp traceKey resourceType resourceId`) followed by a JSON payload line,
2561
+ entries separated by blank lines. Every entry's `resourceId` equals `typeId`.
2562
+ examples:
2563
+ default:
2564
+ value: |
2565
+ 2026-04-19T03:44:06.673Z b45a75a5b72e4522972e55edf26de1c8 import 69e44eb7a749d34a975a4747
2566
+ {"url":"https://httpbin.org/post","method":"POST","body":"{\"id\":\"_id\"}","headers":{"X-None":"********","content-type":"application/json"},"requestIndex":0}
2567
+
2568
+ 2026-04-19T03:44:06.774Z b45a75a5b72e4522972e55edf26de1c8 import 69e44eb7a749d34a975a4747
2569
+ {"headers":{"date":"Sun, 19 Apr 2026 03:44:06 GMT","content-type":"application/json"},"body":"{\"ok\":true}"}
2570
+ '204':
2571
+ description: |-
2572
+ No debug logs for this export or import — debug capture is off (no future `debugDate`),
2573
+ the step has not run through the connection since it was enabled, or the buffer was
2574
+ cleared.
2575
+ '400':
2576
+ description: '`typeId` is not a valid ObjectId.'
2577
+ content:
2578
+ application/json:
2579
+ schema:
2580
+ $ref: '#/components/schemas/Error'
2581
+ examples:
2582
+ invalidTypeId:
2583
+ value:
2584
+ errors:
2585
+ - code: invalid_ref
2586
+ message: Please provide a valid typeId.
2587
+ '401':
2588
+ $ref: '#/components/responses/401-unauthorized'
2589
+ '404':
2590
+ description: The connection, or the export/import named by `typeId`, does not exist in the account.
2591
+ content:
2592
+ application/json:
2593
+ schema:
2594
+ $ref: '#/components/schemas/Error'
2595
+ examples:
2596
+ connectionNotFound:
2597
+ summary: Unknown connection id
2598
+ value:
2599
+ errors:
2600
+ - code: invalid_ref
2601
+ message: Connection not found.
2602
+ resourceNotFound:
2603
+ summary: typeId is neither an export nor an import
2604
+ value:
2605
+ errors:
2606
+ - code: invalid_ref
2607
+ message: Export/Import not found.
1094
2608
  /v1/connections/{_id}/metadata:
1095
2609
  put:
1096
2610
  x-internal: false
@@ -1389,7 +2903,8 @@ paths:
1389
2903
  `authorizationUrl` response field serves both OAuth 2.0 and OAuth 1.0a connections (NetSuite
1390
2904
  returns an OAuth 1.0a URL with an `oauth_token` parameter).
1391
2905
 
1392
- Note the resource segment is singular — `/v1/connection/{_id}/oauth2`, not plural. The URL's
2906
+ The resource segment is singular — `/v1/connection/{_id}/oauth2`; the plural form
2907
+ `/v1/connections/{_id}/oauth2` is an alias that answers identically. The URL's
1393
2908
  `state` token is one-time and expires quickly, so request a fresh one if the flow is
1394
2909
  interrupted, then poll `GET /v1/connections/{_id}` until `needsAuthorization` is `false`.
1395
2910
  parameters:
@@ -1509,6 +3024,186 @@ paths:
1509
3024
  - 64ff4b21612a134bd2f45534
1510
3025
  '401':
1511
3026
  $ref: '#/components/responses/401-unauthorized'
3027
+ /v1/connections/{_id}/distributedApps:
3028
+ get:
3029
+ x-internal: false
3030
+ summary: Check the Celigo SuiteApp and bundle on a NetSuite connection
3031
+ description: |-
3032
+ Reports, live from the connected NetSuite account, whether the Celigo integrator.io SuiteApp
3033
+ (SuiteScript 2.x) and the legacy Celigo bundle are installed — the check the UI runs before
3034
+ offering a NetSuite API version that depends on either. Round-trips to NetSuite, so expect a
3035
+ few seconds. Only connections of type `netsuite` are accepted.
3036
+
3037
+ Use this instead of the connection's `netsuite.suiteAppInstalled`, which reflects only the
3038
+ SuiteApp as detected the last time the connection authenticated. For a single combined
3039
+ reachability result, or for a Salesforce connection, use `GET /v1/connections/{_id}/distributed`.
3040
+ operationId: getConnectionDistributedApps
3041
+ tags:
3042
+ - Connections
3043
+ parameters:
3044
+ - in: path
3045
+ name: _id
3046
+ required: true
3047
+ schema:
3048
+ type: string
3049
+ format: objectId
3050
+ x-celigo-refModel: connections
3051
+ description: NetSuite connection to check.
3052
+ responses:
3053
+ '200':
3054
+ description: Installation state of each component.
3055
+ content:
3056
+ application/json:
3057
+ schema:
3058
+ type: object
3059
+ required:
3060
+ - bundle
3061
+ - suiteapp
3062
+ properties:
3063
+ bundle:
3064
+ description: The legacy Celigo integrator.io bundle (SuiteScript 1.0).
3065
+ allOf:
3066
+ - $ref: '#/components/schemas/DistributedAppStatus'
3067
+ suiteapp:
3068
+ description: The Celigo integrator.io SuiteApp (SuiteScript 2.x).
3069
+ allOf:
3070
+ - $ref: '#/components/schemas/DistributedAppStatus'
3071
+ examples:
3072
+ both_installed:
3073
+ summary: SuiteApp and bundle both present
3074
+ value:
3075
+ bundle:
3076
+ success: true
3077
+ suiteapp:
3078
+ success: true
3079
+ neither_installed:
3080
+ summary: Neither component installed (NetSuite reports the RESTlets missing)
3081
+ value:
3082
+ bundle:
3083
+ success: false
3084
+ statusCode: 404
3085
+ resBody: That Suitelet is invalid, disabled, or no longer exists.
3086
+ URL: https://tstdrv1234567.app.netsuite.com/app/bundler/bundledetails.nl?sourcecompanyid=TSTDRV916910&domain=PRODUCTION&config=F&id=20038
3087
+ suiteapp:
3088
+ success: false
3089
+ statusCode: 404
3090
+ resBody: That Suitelet is invalid, disabled, or no longer exists.
3091
+ URL: https://tstdrv1234567.app.netsuite.com/suiteapp/ui/marketplace.nl?whence=#/app?id=com.celigo.integratorio
3092
+ '401':
3093
+ $ref: '#/components/responses/401-unauthorized'
3094
+ '404':
3095
+ description: No connection found for the given `_id`.
3096
+ content:
3097
+ application/json:
3098
+ schema:
3099
+ $ref: '#/components/schemas/Error'
3100
+ examples:
3101
+ invalid_ref:
3102
+ value:
3103
+ errors:
3104
+ - code: invalid_ref
3105
+ message: Connection not found for the given id.
3106
+ '422':
3107
+ description: The connection exists but is not a NetSuite connection.
3108
+ content:
3109
+ application/json:
3110
+ schema:
3111
+ $ref: '#/components/schemas/Error'
3112
+ examples:
3113
+ invalid_connection_type:
3114
+ value:
3115
+ errors:
3116
+ - message: 'invalid connection type: http'
3117
+ x-celigo-ai-guidance:
3118
+ - |-
3119
+ Decides the NetSuite import adaptor: when `suiteapp.success` or `bundle.success` is true,
3120
+ author a NetSuiteDistributedImport (netsuite_da) — Celigo RESTlets; when both are false,
3121
+ author a NetSuiteHTTPImport (NetSuite REST APIs). Exports and lookups do not depend on this
3122
+ check — NetSuiteHTTPExport needs neither component.
3123
+ - |-
3124
+ A non-NetSuite connection answers 422 with the message "invalid connection type: <type>"
3125
+ and no `code`; an unknown `_id` answers 404 `invalid_ref`.
3126
+ /v1/connections/{_id}/distributed:
3127
+ get:
3128
+ x-internal: false
3129
+ summary: Ping the distributed adaptor behind a connection
3130
+ description: |-
3131
+ Pings, live, the Celigo distributed adaptor installed in the account behind a `netsuite`
3132
+ or `salesforce` connection — the integrator.io bundle or SuiteApp RESTlet in NetSuite, the
3133
+ Celigo managed package in Salesforce — and reports one combined result. Round-trips to the
3134
+ remote system, so expect a few seconds. The distributed adaptor is what NetSuite real-time
3135
+ exports and `netsuite_da` imports, and Salesforce real-time exports, run through, so this
3136
+ is the check to run before building them.
3137
+
3138
+ Use `GET /v1/connections/{_id}/distributedApps` instead when you need the NetSuite bundle
3139
+ and SuiteApp reported separately; this endpoint is the only one of the two that also covers
3140
+ Salesforce. Any other connection type is rejected with 422.
3141
+ operationId: pingConnectionDistributedAdaptor
3142
+ tags:
3143
+ - Connections
3144
+ parameters:
3145
+ - in: path
3146
+ name: _id
3147
+ required: true
3148
+ schema:
3149
+ type: string
3150
+ format: objectId
3151
+ x-celigo-refModel: connections
3152
+ description: NetSuite or Salesforce connection to check.
3153
+ responses:
3154
+ '200':
3155
+ description: 'Ping result. `success: false` is still HTTP 200 — inspect the body.'
3156
+ content:
3157
+ application/json:
3158
+ schema:
3159
+ $ref: '#/components/schemas/DistributedAdaptorStatus'
3160
+ examples:
3161
+ installed:
3162
+ summary: Distributed adaptor reachable
3163
+ value:
3164
+ success: true
3165
+ netsuiteMissing:
3166
+ summary: NetSuite account without the Celigo bundle or SuiteApp
3167
+ value:
3168
+ success: false
3169
+ statusCode: 404
3170
+ resBody: That Suitelet is invalid, disabled, or no longer exists.
3171
+ bundleURL: https://tstdrv1234567.app.netsuite.com/app/bundler/bundledetails.nl?sourcecompanyid=TSTDRV916910&domain=PRODUCTION&config=F&id=20038
3172
+ salesforceOffline:
3173
+ summary: Salesforce connection that is offline
3174
+ value:
3175
+ success: false
3176
+ resBody: 'Connection is taken offline: expired access/refresh token'
3177
+ bundleURL: https://mycompany.my.salesforce.com/packaging/installPackage.apexp?p0=04t3m000000Q89d
3178
+ '401':
3179
+ $ref: '#/components/responses/401-unauthorized'
3180
+ '404':
3181
+ description: No connection found for the given `_id`.
3182
+ content:
3183
+ application/json:
3184
+ schema:
3185
+ $ref: '#/components/schemas/Error'
3186
+ examples:
3187
+ invalid_ref:
3188
+ value:
3189
+ errors:
3190
+ - code: invalid_ref
3191
+ message: Connection not found for the given id.
3192
+ '422':
3193
+ description: The connection exists but is neither a NetSuite nor a Salesforce connection.
3194
+ content:
3195
+ application/json:
3196
+ schema:
3197
+ $ref: '#/components/schemas/Error'
3198
+ examples:
3199
+ invalid_connection_type:
3200
+ value:
3201
+ errors:
3202
+ - message: 'invalid connection type: http'
3203
+ x-celigo-ai-guidance:
3204
+ - |-
3205
+ A non-NetSuite, non-Salesforce connection answers 422 with the message "invalid
3206
+ connection type: <type>" and no `code`; an unknown `_id` answers 404 `invalid_ref`.
1512
3207
  /v1/salesforce/metadata/connections/{_id}/sObjectTypes:
1513
3208
  get:
1514
3209
  x-internal: false
@@ -2087,6 +3782,14 @@ components:
2087
3782
  description: Timestamp when the resource was last updated. Changes whenever any property is modified.
2088
3783
  x-celigo-ai-guidance:
2089
3784
  - Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
3785
+ - |-
3786
+ Records that something was written, not what — a settings edit, a flag flip, or a
3787
+ platform workflow all move it. What changed and when is in the audit log: the
3788
+ per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
3789
+ `resourceType` enum lists, or the account-wide
3790
+ `GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
3791
+ endpoint's enum accepts (users, environments, notifications among them). A type absent
3792
+ from both enums — jobs, connectors, templates — has only this timestamp.
2090
3793
  examples:
2091
3794
  - '2023-04-15T14:30:15Z'
2092
3795
  deletedAt:
@@ -2341,16 +4044,16 @@ components:
2341
4044
  netsuite: NetSuite ERP connection using token-based authentication (TBA).
2342
4045
  salesforce: Salesforce CRM connection with OAuth 2.0 authentication.
2343
4046
  ftp: FTP, SFTP, or FTPS file transfer connection.
2344
- s3: Amazon S3 cloud storage connection.
4047
+ s3: Amazon S3 cloud storage connection, authenticated with an access key pair or an AWS IAM role (`s3.authType`).
2345
4048
  wrapper: Wrapper connection that delegates to another connection type.
2346
4049
  http: Generic HTTP/REST API connection with full configuration control.
2347
- rdbms: Relational database connection (MySQL, PostgreSQL, Snowflake, etc.).
4050
+ rdbms: Native relational-database connection — MySQL, PostgreSQL, MariaDB, Microsoft SQL Server, Azure Synapse, Oracle, Snowflake, Google BigQuery, Amazon Redshift (the database is `rdbms.type`).
2348
4051
  mongodb: MongoDB NoSQL database connection.
2349
4052
  as2: AS2 (Applicability Statement 2) EDI connection.
2350
4053
  filesystem: Local or network filesystem connection (requires an Agent).
2351
4054
  mcp: MCP (Model Context Protocol) server connection.
2352
4055
  dynamodb: Amazon DynamoDB NoSQL database connection.
2353
- jdbc: JDBC database connection for systems not covered by RDBMS.
4056
+ jdbc: JDBC connection for relational systems without a native `rdbms` type (Databricks, Db2, Workday, NetSuite JDBC) and for the driver-specific paths `jdbc.type` names (Oracle Thin, SQL Server with Active Directory); Redshift, BigQuery and Snowflake are `rdbms` types.
2354
4057
  van: Value-Added Network connection for EDI document exchange.
2355
4058
  rest: REST connection driven by a pre-built HTTP Connector template. Deprecated — use `http` instead.
2356
4059
  externalId:
@@ -2381,12 +4084,24 @@ components:
2381
4084
  type: string
2382
4085
  format: objectId
2383
4086
  x-celigo-refModel: connections
2384
- description: |
2385
- Reference to another connection to share concurrency limits with.
2386
- When set, this connection's concurrency is counted against the referenced
2387
- connection's limit instead of maintaining its own.
4087
+ description: |-
4088
+ Reference to another connection to share concurrency limits with. When set, this
4089
+ connection's traffic counts against the referenced connection's limit instead of its own,
4090
+ and its own concurrency and auto-recovery settings have no effect. One level only: the
4091
+ referenced connection may not itself borrow, and a connection that others borrow from
4092
+ cannot start borrowing.
2388
4093
  examples:
2389
4094
  - 615dfa0742763671275b70ab
4095
+ x-celigo-ai-guidance:
4096
+ - |-
4097
+ Set this when several connections target one external account whose API enforces a
4098
+ single account-wide concurrency limit (for example one NetSuite account): put the limit
4099
+ on one parent connection and point the others here, so their combined traffic can never
4100
+ exceed it.
4101
+ - |-
4102
+ A borrower drains through the parent's queue as well as its ceiling, so a high-volume
4103
+ borrower competes with the parent's own flows — settle the priority split before
4104
+ choosing who borrows from whom.
2390
4105
  debugDate:
2391
4106
  type: string
2392
4107
  format: date-time
@@ -2419,11 +4134,77 @@ components:
2419
4134
  readOnly: true
2420
4135
  examples:
2421
4136
  - 5f29dbc69e8a0f0e29a491b7
4137
+ connectionRole:
4138
+ type: string
4139
+ enum:
4140
+ - standard
4141
+ - mcpChild
4142
+ x-enumDescriptions:
4143
+ standard: An ordinary account-owned connection, created and edited through this API
4144
+ mcpChild: An MCP end user's private credential copy of a parent connection, created by the end-user setup page
4145
+ readOnly: true
4146
+ description: |-
4147
+ Distinguishes account-owned connections from the per-end-user credential copies
4148
+ MCP servers collect. Absent on connections last saved before the field existed,
4149
+ which behave as `standard`. Sending `mcpChild` on `POST` or `PUT /v1/connections`
4150
+ fails with 422 `mcp_child_generic_route_not_allowed`, and `/connectionRole` is not a
4151
+ patchable path; child connections are written only by the MCP end-user setup page,
4152
+ never through `/v1`.
4153
+ examples:
4154
+ - standard
4155
+ endUserProvidedFields:
4156
+ type: array
4157
+ items:
4158
+ type: string
4159
+ description: |-
4160
+ Dot-paths of this connection's fields (for example `http.encrypted.apiKey` or
4161
+ `rdbms.user`) that each MCP end user must supply on their own `mcpChild` copy instead
4162
+ of inheriting the parent's value. Only returned on a `standard` connection that has
4163
+ paths set; never returned on a child. Writable through `POST`, `PUT`, and `PATCH`;
4164
+ by the platform contract, a write that changes the list invalidates the children end
4165
+ users already hold against this parent.
4166
+ examples:
4167
+ - - http.encrypted.apiKey
4168
+ - http.unencrypted.accountId
4169
+ _parentConnectionId:
4170
+ type: string
4171
+ format: objectId
4172
+ x-celigo-refModel: connections
4173
+ readOnly: true
4174
+ description: |-
4175
+ Parent connection this child copies its non-credential configuration from. Present
4176
+ only when `connectionRole` is `mcpChild`; set by the end-user setup page and ignored
4177
+ when sent on a standard connection.
4178
+ examples:
4179
+ - 615dfa0742763671275b70ab
4180
+ _mcpOwnerId:
4181
+ type: string
4182
+ format: objectId
4183
+ x-celigo-refModel: users
4184
+ readOnly: true
4185
+ description: |-
4186
+ Account owner whose parent connection and MCP servers this child belongs to. Present
4187
+ only when `connectionRole` is `mcpChild`; on a child, `_userId` is the end user and
4188
+ this field is the account.
4189
+ examples:
4190
+ - 5d2e1f0a9b8c7d6e5f4a3b2c
4191
+ _parentSyncedAt:
4192
+ type: string
4193
+ format: date-time
4194
+ readOnly: true
4195
+ description: |-
4196
+ Timestamp when the child's non-credential fields were last synced from the parent
4197
+ connection. Present only when `connectionRole` is `mcpChild`.
4198
+ examples:
4199
+ - '2026-09-15T18:42:10.331Z'
2422
4200
  _userId:
2423
4201
  type: string
2424
4202
  format: objectId
2425
4203
  x-celigo-refModel: users
2426
- description: User who owns this connection.
4204
+ description: |-
4205
+ End user who owns this `mcpChild` connection's credentials. Present only when
4206
+ `connectionRole` is `mcpChild`; a standard connection belongs to the account and
4207
+ omits this field.
2427
4208
  readOnly: true
2428
4209
  examples:
2429
4210
  - 5d2e1f0a9b8c7d6e5f4a3b2c
@@ -2445,7 +4226,17 @@ components:
2445
4226
  autoRecoverRateLimitErrors:
2446
4227
  type: boolean
2447
4228
  default: true
2448
- description: When true, the connection automatically backs off and retries when it encounters rate-limit errors from the target system.
4229
+ description: |-
4230
+ When true, rate-limit errors from the target system trigger automatic recovery: concurrency
4231
+ drops to 1, the rate-limited requests are retried with doubling waits (1 to 1024 minutes,
4232
+ after which the flag switches itself off), and concurrency climbs back toward
4233
+ `targetConcurrencyLevel`. While true, `targetConcurrencyLevel` is the throughput lever: a
4234
+ `concurrencyLevel` sent in a PUT is ignored, and one sent in a PATCH is stored but the
4235
+ recovery machinery moves it back toward the target.
4236
+ x-celigo-ai-guidance:
4237
+ - To change throughput while this is true, write `targetConcurrencyLevel`; a `concurrencyLevel` sent in a PUT returns 200 and changes nothing.
4238
+ - Turning it on copies `concurrencyLevel` into `targetConcurrencyLevel`; turning it off unsets the target and leaves `concurrencyLevel` at its current value, which may be below the old target if a recovery was in progress. A `targetConcurrencyLevel` written while this is false is unset by the save.
4239
+ - These four settings (`concurrencyLevel`, `targetConcurrencyLevel`, `_borrowConcurrencyFromConnectionId`, this flag) accept a credential-free `PATCH /v1/connections/{_id}`. A PUT must re-send the credentials — omitting them or echoing their masked `******` values clears them.
2449
4240
  enableMicroBatchForOneToMany:
2450
4241
  type: boolean
2451
4242
  default: true
@@ -2687,22 +4478,53 @@ components:
2687
4478
  NetSuite application ID from the integration record.
2688
4479
  Required for some authentication configurations to identify the calling application.
2689
4480
  concurrencyLevel:
2690
- type: number
2691
- description: |
2692
- General concurrency level for this connection. Controls the overall
2693
- maximum concurrent requests across all operation types.
2694
- Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
4481
+ type: integer
4482
+ description: |-
4483
+ Maximum number of requests this connection sends to NetSuite in parallel, across SOAP,
4484
+ REST and RESTlet calls. Values above the integrator.io license ceiling (25 standard, 50
4485
+ with an Environments license) are stored as that ceiling. NetSuite separately enforces one
4486
+ concurrency limit per NetSuite account that every caller of its SOAP, REST and RESTlet
4487
+ APIs shares — all integrator.io connections to that account and every other client
4488
+ calling those APIs from outside integrator.io (other integrations, third-party tools).
2695
4489
  minimum: 1
2696
4490
  maximum: 50
2697
4491
  default: 5
4492
+ x-celigo-ai-guidance:
4493
+ - |-
4494
+ Before raising this connection's ceiling — `targetConcurrencyLevel` while
4495
+ `autoRecoverRateLimitErrors` is on (the default; a PUT of `concurrencyLevel` then
4496
+ changes nothing), `concurrencyLevel` only while it is off — total the ceilings of every
4497
+ connection that targets the same NetSuite `account` and `environment` (a connection
4498
+ that borrows counts under its parent) and keep that total, plus whatever calls the
4499
+ account's APIs from outside integrator.io, within the NetSuite account limit; a value
4500
+ that fits this connection alone can still push the whole account over.
4501
+ - |-
4502
+ The NetSuite limit is the service-tier base (Standard 5, Premium 15, Enterprise and
4503
+ Ultimate 20; legacy tiers 5–20) plus 10 per SuiteCloud Plus license; a sandbox matches
4504
+ its production account. Development and partner accounts are fixed at 5 and do not
4505
+ scale with licenses. NetSuite shows the limit at Setup > Integration > Integration
4506
+ Management > Integration Governance; integrator.io cannot read it — ask for the number
4507
+ rather than assuming headroom.
4508
+ - |-
4509
+ Over the limit, NetSuite rejects requests from every caller of that account at once,
4510
+ not only this connection's — SOAP: `ExceededConcurrentRequestLimitFault` /
4511
+ `WS_REQUEST_BLOCKED`; REST web services: HTTP 429; RESTlets: HTTP 400
4512
+ `SSS_REQUEST_LIMIT_EXCEEDED`. To run several connections against one NetSuite account,
4513
+ put the limit on one parent and point the others at it with
4514
+ `_borrowConcurrencyFromConnectionId`; otherwise raise in small steps.
2698
4515
  targetConcurrencyLevel:
2699
- type: number
2700
- description: |
4516
+ type: integer
4517
+ description: |-
2701
4518
  Target concurrency level for auto-scaling. The system adjusts concurrency
2702
4519
  between 1 and this value based on rate limit and governance feedback.
2703
4520
  minimum: 1
2704
4521
  maximum: 50
2705
4522
  default: 5
4523
+ x-celigo-ai-guidance:
4524
+ - |-
4525
+ With `autoRecoverRateLimitErrors` on, this is the level the connection climbs back to
4526
+ after a recovery, so it — not `concurrencyLevel` — is the value that must fit the shared
4527
+ NetSuite account budget described on `concurrencyLevel`.
2706
4528
  _iClientId:
2707
4529
  type: string
2708
4530
  format: objectId
@@ -2840,7 +4662,7 @@ components:
2840
4662
  - 'Never set or repair this field to fix an authentication failure: an empty or absent list is the normal stored state, and UI saves reset API-written values.'
2841
4663
  - For a custom Connected App (`salesforce._iClientId` set), requested scopes are configured on the iClient's `oauth2.scope` and constrained by the Connected App inside Salesforce — not on the connection.
2842
4664
  concurrencyLevel:
2843
- type: number
4665
+ type: integer
2844
4666
  description: |-
2845
4667
  Maximum number of concurrent API requests to Salesforce. Salesforce enforces per-org API
2846
4668
  request limits, so setting this high consumes the org's API call allocation faster. Values
@@ -2850,7 +4672,7 @@ components:
2850
4672
  maximum: 50
2851
4673
  default: 5
2852
4674
  targetConcurrencyLevel:
2853
- type: number
4675
+ type: integer
2854
4676
  description: |-
2855
4677
  Upper bound for auto-scaling concurrency. When automatic rate-limit recovery is enabled, the
2856
4678
  system adjusts concurrency between 1 and this value based on rate-limit feedback from
@@ -2923,14 +4745,20 @@ components:
2923
4745
  x-celigo-ui-override: 'Required by the connection form: a password for ftp/ftps, or a password or SSH key (authKey) for sftp (see the if/then/else rule below). Encoded here to mirror the form so builders produce complete, connectable configurations.'
2924
4746
  x-celigo-ai-guidance:
2925
4747
  - For ftp/ftps set password; for sftp set password or authKey. The connection cannot authenticate without credentials.
4748
+ - For key-only sftp, omit password rather than filling it with a stand-in value — the form's required marker on Password does not apply once authKey is set, and the Help Center notes that servers enforcing a strict authentication order (public key first, then password) are not compatible with supplying both.
2926
4749
  examples:
2927
4750
  - s3cr3t-ftp-passw0rd
2928
4751
  authKey:
2929
4752
  type: string
2930
- description: |
4753
+ description: |-
2931
4754
  SSH private key for SFTP key-based authentication (encrypted at rest; returned masked as `"******"`).
2932
- Only used when type is "sftp". Provide the full PEM-encoded private key.
2933
- Can be used alone or alongside a password for two-factor auth.
4755
+ Only used when type is "sftp"; can be used alone or alongside a password. Must be an RSA (SSH-2) key
4756
+ in PEM format, supplied whole from its BEGIN line to its END line — OpenSSH-format keys (first line
4757
+ `-----BEGIN OPENSSH PRIVATE KEY-----`), passphrase-protected keys, SSH-1 keys and PuTTY `.ppk` files
4758
+ are not supported and must be converted to an unencrypted PEM key first.
4759
+ x-celigo-ai-guidance:
4760
+ - Never take the key through chat; write a placeholder the user replaces in the connection editor. The matching public key must be in the server's authorized_keys for the username — Celigo holds only the private half.
4761
+ - A key whose first line is `-----BEGIN OPENSSH PRIVATE KEY-----`, or one that asks for a passphrase, is outside the supported format per the Help Center; `ssh-keygen -p -m PEM -f <key>` rewrites it as PEM (`-N ""` also removes the passphrase).
2934
4762
  writeOnly: true
2935
4763
  usePassiveMode:
2936
4764
  type: boolean
@@ -3013,19 +4841,24 @@ components:
3013
4841
  examples:
3014
4842
  - 66a1b2c3d4e5f60718293a4b
3015
4843
  concurrencyLevel:
3016
- type: number
4844
+ type: integer
3017
4845
  description: |
3018
4846
  Maximum number of concurrent file transfer operations.
3019
4847
  FTP servers often have low connection limits — keep this value conservative.
3020
4848
  Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
4849
+ Unlike the rest of the `ftp` object, a `PUT` that omits this field keeps the stored value instead of clearing it.
3021
4850
  minimum: 1
3022
4851
  maximum: 50
3023
4852
  default: 1
4853
+ examples:
4854
+ - 3
3024
4855
  targetConcurrencyLevel:
3025
- type: number
4856
+ type: integer
3026
4857
  description: |
3027
4858
  Target concurrency level for auto-scaling. The system adjusts concurrency
3028
4859
  between 1 and this value based on server response feedback.
4860
+ Kept on a `PUT` that omits it, like `concurrencyLevel`; unset by the save while
4861
+ `autoRecoverRateLimitErrors` is false.
3029
4862
  minimum: 1
3030
4863
  maximum: 50
3031
4864
  examples:
@@ -3040,7 +4873,8 @@ components:
3040
4873
  save the value is mirrored into `userConcurrencyLevel` (and into
3041
4874
  `userTargetConcurrencyLevel` when auto-recovery of rate-limit errors
3042
4875
  is active with `targetConcurrencyLevel` set); clearing it clears the
3043
- mirrors.
4876
+ mirrors. Not preserved across a `PUT` — re-send it with the rest of
4877
+ the `ftp` object or it is cleared.
3044
4878
  examples:
3045
4879
  - 2
3046
4880
  userConcurrencyLevel:
@@ -3102,26 +4936,39 @@ components:
3102
4936
  (s3:GetObject, s3:PutObject, s3:ListBucket, etc.). Used when authType is `accesskey`.
3103
4937
  examples:
3104
4938
  - AKIAIOSFODNN7EXAMPLE
3105
- x-celigo-ui-override: The connection form marks accessKeyId required (the form only exposes static-key auth). The API enforces it for authType `accesskey` (POST without it returns 422 missing_required_field) — encoded via the if/then/else rule below.
4939
+ x-celigo-ui-override: The connection form marks accessKeyId required when Auth type is "Access key & secret" (`accesskey`) and removes it when Auth type is "IAM role" (`awsIam`). The API enforces it for authType `accesskey` (POST without it returns 422 missing_required_field) — encoded via the if/then/else rule below.
3106
4940
  secretAccessKey:
3107
4941
  type: string
3108
4942
  writeOnly: true
3109
4943
  description: AWS secret access key, paired with accessKeyId. Used when authType is `accesskey`. Encrypted at rest; returned masked as `"******"`.
3110
4944
  examples:
3111
4945
  - wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
3112
- x-celigo-ui-override: The connection form marks secretAccessKey required (the form only exposes static-key auth). The API enforces it for authType `accesskey` (POST without it returns 422 missing_required_field) — encoded via the if/then/else rule below.
4946
+ x-celigo-ui-override: The connection form marks secretAccessKey required when Auth type is "Access key & secret" (`accesskey`) and removes it when Auth type is "IAM role" (`awsIam`). The API enforces it for authType `accesskey` (POST without it returns 422 missing_required_field) — encoded via the if/then/else rule below.
3113
4947
  _iClientId:
3114
4948
  type: string
3115
4949
  format: objectId
3116
4950
  x-celigo-refModel: iclients
3117
4951
  description: |-
3118
4952
  Reference to an iClient that holds AWS IAM role credentials. Required when authType is
3119
- `awsIam`; ignored otherwise.
4953
+ `awsIam`; ignored otherwise. The iClient must carry `awsIam.roleArn`, and that role's name
4954
+ must start with `celigo-file-adaptor-` — the S3 service assumes only roles in that family,
4955
+ so a role created for an HTTP or Redshift connection cannot be reused here.
3120
4956
  examples:
3121
4957
  - 65f99e3e6b5b420fea998454
3122
4958
  x-celigo-ai-guidance:
3123
4959
  - When authType is "awsIam", set _iClientId to an existing iClient; omitting it fails the POST with 422 "Expected field: _iClientId to be present."
3124
4960
  - The referenced iClient must itself be an awsIam-provider iClient; referencing any other iClient fails the POST with 422 "IClient provider must be awsIam for S3 IAM Role authentication."
4961
+ - |-
4962
+ The referenced iClient must have awsIam.roleArn set (otherwise 422 missing_required_field on
4963
+ s3._iClientId "Expected field: awsIam.roleArn to be present.") and its role name must start
4964
+ with "celigo-file-adaptor-" (otherwise 422 invalid_field_value on s3._iClientId "Invalid
4965
+ value for field \"_iClientId\": Your role ARN's name must begin with celigo-file-adaptor.").
4966
+ Point an S3 connection at an iClient whose role was named for S3; do not reuse a
4967
+ celigo-http-adaptor- or celigo-data-warehouse-adaptor- role.
4968
+ - |-
4969
+ With authType "awsIam", omit accessKeyId and secretAccessKey — the API does not reject
4970
+ them, it stores them alongside the iClient reference, leaving a stray static credential
4971
+ on a connection that no longer uses one.
3125
4972
  pingBucket:
3126
4973
  type: string
3127
4974
  description: |-
@@ -3130,7 +4977,7 @@ components:
3130
4977
  examples:
3131
4978
  - my-data-lake
3132
4979
  concurrencyLevel:
3133
- type: number
4980
+ type: integer
3134
4981
  description: |-
3135
4982
  Maximum number of concurrent S3 operations. Applies when `autoRecoverRateLimitErrors` is
3136
4983
  false; when auto-recover is on (the default) concurrency auto-scales up to
@@ -3140,7 +4987,7 @@ components:
3140
4987
  maximum: 50
3141
4988
  default: 5
3142
4989
  targetConcurrencyLevel:
3143
- type: number
4990
+ type: integer
3144
4991
  description: |-
3145
4992
  Upper bound for auto-scaled concurrency when `autoRecoverRateLimitErrors` is true (the
3146
4993
  default). The system raises and lowers concurrency between 1 and this value based on
@@ -3211,6 +5058,9 @@ components:
3211
5058
  to authorize the application.
3212
5059
  Handlebars expressions are supported for tenant-specific endpoints — e.g.
3213
5060
  "https://{{{connection.settings.storeName}}}.myshopify.com/admin/oauth/authorize".
5061
+
5062
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol; data sent
5063
+ to an HTTP endpoint is not encrypted and may be intercepted or modified in transit.
3214
5064
  examples:
3215
5065
  - https://login.example.com/oauth2/authorize
3216
5066
  tokenURI:
@@ -3220,6 +5070,9 @@ components:
3220
5070
  Required for "authorizecode", "clientcredentials", and "password" grant types.
3221
5071
  The system exchanges credentials or authorization codes for access tokens at this URL.
3222
5072
  Handlebars expressions are supported for tenant-specific endpoints.
5073
+
5074
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol; data sent
5075
+ to an HTTP endpoint is not encrypted and may be intercepted or modified in transit.
3223
5076
  examples:
3224
5077
  - https://login.example.com/oauth2/token
3225
5078
  skipOauthValidations:
@@ -3628,7 +5481,7 @@ components:
3628
5481
  "Amazon-Hybrid", populate unencrypted.marketplaceId ("ATVPDKIKX0DER") and
3629
5482
  unencrypted.sellingRegion ("northAmerica"), and let the user finish the connection in the
3630
5483
  Celigo UI. Omitting either field fails the POST with 422 "Expected field: marketplaceId to be present".
3631
- x-celigo-ui-override: The auth.type conditional below encodes the connection form's credential requireds. Most are also API-enforced; the form-only additions (the API creates the connection without them, or accepts a weaker rule) are auth.basic.password (the API accepts a username alone), auth.token.location, auth.token.headerName (wsse), auth.cookie.method, auth.cookie.body, and _iClientId (oauth) — each flagged on its own field.
5484
+ x-celigo-ui-override: The auth.type conditional below encodes the connection form's credential requireds. Most are also API-enforced; the form-only additions (the API creates the connection without them, or accepts a weaker rule) are auth.basic.password (the API accepts a username alone), auth.token.location, auth.token.headerName (wsse), auth.cookie.method, auth.cookie.body, and _iClientId (oauth) — each flagged on its own field. _iClientId for awsiam is both form- and API-required.
3632
5485
  required:
3633
5486
  - baseURI
3634
5487
  - mediaType
@@ -3703,6 +5556,9 @@ components:
3703
5556
  "https://{{{connection.settings.subdomain}}}.example.com".
3704
5557
 
3705
5558
  Do NOT include trailing slashes — relative URIs in exports/imports should start with "/".
5559
+
5560
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol; data sent
5561
+ to an HTTP endpoint is not encrypted and may be intercepted or modified in transit.
3706
5562
  examples:
3707
5563
  - https://api.example.com/v2
3708
5564
  - https://{{{connection.settings.subdomain}}}.zendesk.com
@@ -3715,23 +5571,28 @@ components:
3715
5571
  NEVER disable in production — it removes protection against man-in-the-middle attacks.
3716
5572
  default: false
3717
5573
  concurrencyLevel:
3718
- type: number
5574
+ type: integer
3719
5575
  description: |
3720
5576
  Maximum number of concurrent HTTP requests this connection can make simultaneously.
3721
5577
 
3722
5578
  Higher values increase throughput but may trigger API rate limits.
3723
5579
  Set this based on the target API's rate limit documentation.
3724
- Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
5580
+ Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down,
5581
+ but a decimal is rejected with 422 `invalid_field_value` on every write (the same rule applies to every
5582
+ adaptor's `concurrencyLevel` and `targetConcurrencyLevel`, and to `ftp.multiThreadCount`).
5583
+ Platform-managed while `autoRecoverRateLimitErrors` is true — a PUT ignores the value and the recovery machinery moves it toward the target; set `targetConcurrencyLevel` instead.
3725
5584
  minimum: 1
3726
5585
  maximum: 50
3727
5586
  default: 25
5587
+ examples:
5588
+ - 10
3728
5589
  targetConcurrencyLevel:
3729
- type: number
5590
+ type: integer
3730
5591
  description: |
3731
- Target concurrency level for auto-scaling. The system automatically adjusts
3732
- concurrency between 1 and this value based on rate limit feedback.
5592
+ Ceiling the platform climbs back to after rate-limit recovery, in steps of 25% of this value.
5593
+ Writing it also sets `concurrencyLevel` to the same value and stops any recovery in progress.
3733
5594
 
3734
- Only relevant when autoRecoverRateLimitErrors is enabled on the connection.
5595
+ Honored only while `autoRecoverRateLimitErrors` is true; ignored, and unset, when it is false.
3735
5596
  minimum: 1
3736
5597
  maximum: 50
3737
5598
  examples:
@@ -3762,6 +5623,23 @@ components:
3762
5623
  Controls the UI form layout for configuring this connection. Determines which
3763
5624
  fields are shown and how they are organized in the Celigo UI.
3764
5625
  For programmatic creation, http is the most common choice.
5626
+ x-celigo-ai-guidance:
5627
+ - |-
5628
+ The value selects a form, not a protocol: a plain `http` connection sends GraphQL requests
5629
+ identically. What `graph_ql` adds is the GraphQL editing experience — the connection form
5630
+ authors the ping as Query / Operation name / Variables fields compiled into `http.ping.body`,
5631
+ and every export and import on the connection gets a Form view toggle between the GraphQL
5632
+ editor (Query / Operation name / Variables) and the raw HTTP form.
5633
+ - |-
5634
+ A `graph_ql` connection's `baseURI` should be the GraphQL endpoint itself
5635
+ (`https://host/graphql`, `https://<store>.myshopify.com/admin/api/<version>/graphql.json`):
5636
+ the GraphQL export and import forms have no relative URI field.
5637
+ - |-
5638
+ The connection form offers no control to change this value on a connection without an HTTP
5639
+ connector, and connections cannot be cloned through the API. A user who wants the GraphQL
5640
+ editor for steps that live on an `http` connection needs a new `graph_ql` connection (same
5641
+ base URI and auth, credentials re-entered) with the steps re-pointed to it — this is the
5642
+ setup to recommend, not a product gap.
3765
5643
  x-lowercase: true
3766
5644
  examples:
3767
5645
  - http
@@ -3945,10 +5823,12 @@ components:
3945
5823
  x-lowercase: true
3946
5824
  x-celigo-ai-guidance:
3947
5825
  - |-
3948
- When type is "awsiam", the connection must also carry
3949
- http._iClientId pointing at an AWS-IAM iClient — the save is
3950
- rejected without it. The signing credentials live on the
3951
- iClient, not on the connection.
5826
+ When type is "awsiam", the connection must also carry http._iClientId pointing at
5827
+ an iClient with provider "awsIam" that belongs to the same account and has
5828
+ awsIam.roleArn whose role name starts with "celigo-http-adaptor-"; the save fails
5829
+ with 422 (missing_required_field, invalid_field, invalid_field_value, or invalid_ref
5830
+ respectively) when any of these is off. The signing credentials live on the iClient,
5831
+ not on the connection.
3952
5832
  examples:
3953
5833
  - token
3954
5834
  failStatusCode:
@@ -4238,6 +6118,10 @@ components:
4238
6118
  description: |
4239
6119
  Login endpoint URI for cookie authentication. Required.
4240
6120
  The system sends a request to this URI to obtain session cookies.
6121
+
6122
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol;
6123
+ data sent to an HTTP endpoint is not encrypted and may be intercepted or
6124
+ modified in transit.
4241
6125
  examples:
4242
6126
  - https://api.example.com/login
4243
6127
  body:
@@ -4548,11 +6432,15 @@ components:
4548
6432
  x-celigo-ai-guidance:
4549
6433
  - |-
4550
6434
  Required when the GCS connection authenticates through an OAuth
4551
- iClient (provider custom_oauth2) — omitting it fails the save
4552
- with GCS_PROJECT_ID_MISSING. With a googleserviceaccount
4553
- iClient the server fills it automatically from the iClient's
4554
- projectId; any other iClient provider is rejected with
4555
- GCS_ICLIENT_INVALID_PROVIDER.
6435
+ iClient (provider custom_oauth2). Omitting it fails the save
6436
+ with 422 project_id_missing on http.unencrypted.googleProjectId
6437
+ — "Default project ID is required on OAuth Google Cloud Storage
6438
+ connections (http.unencrypted.googleProjectId)." With a
6439
+ googleserviceaccount iClient the server fills this from the
6440
+ key's project_id. Any other provider fails with 422
6441
+ invalid_field on http._iClientId — "IClient provider must be
6442
+ googleserviceaccount or custom_oauth2 for Google Cloud Storage
6443
+ connections."
4556
6444
  unencryptedFields:
4557
6445
  type: array
4558
6446
  description: |
@@ -4594,28 +6482,82 @@ components:
4594
6482
  type: string
4595
6483
  format: objectId
4596
6484
  x-celigo-refModel: iclients
4597
- description: ID of the iClient used for OAuth authentication.
6485
+ description: |-
6486
+ iClient that holds the credentials this connection signs with: the OAuth 2.0 client for
6487
+ `auth.type` `oauth` (including the `azureserviceprincipal` service principal an Azure
6488
+ Data Lake Storage Gen2 connection authenticates with and the `googleserviceaccount` key
6489
+ a Google Cloud Storage connection uses), or the `awsIam` role for `auth.type` `awsiam`.
6490
+ Must belong to the same account as the connection. Omit for every other auth type.
4598
6491
  examples:
4599
6492
  - 6203a7e4f321d800129a1b8e
4600
- x-celigo-ui-override: Required by the connection form for oauth (OAuth 2.0) auth; the API creates the connection without it (the OAuth authorization is completed afterward).
6493
+ x-celigo-ui-override: 'Required by the connection form for oauth (subForms/httpOAuth.js: required true, iClient filter provider custom_oauth2, or googleserviceaccount / azureserviceprincipal for the GCS and ADLS Gen2 variants) and for awsIam (subForms/httpAwsIam.js: required true, filter provider awsIam). For oauth the API creates the connection without it and the authorization is completed afterward; for awsiam the API also rejects its absence (see the if/then rule on this schema).'
6494
+ x-celigo-ai-guidance:
6495
+ - |-
6496
+ For auth.type "awsiam" the referenced iClient must have provider "awsIam" (any other
6497
+ provider → 422 invalid_field "IClient provider must be awsIam for HTTP IAM Role
6498
+ authentication."), must carry awsIam.roleArn (missing → 422 missing_required_field
6499
+ "Expected field: awsIam.roleArn to be present."), and its role name must start with
6500
+ "celigo-http-adaptor-" (otherwise → 422 invalid_field_value). Omitting _iClientId
6501
+ altogether → 422 missing_required_field "Expected field: _iClientId to be present."
6502
+ - |-
6503
+ An Azure Data Lake Storage Gen2 connection (assistant "azuredatalakestoragegen2", or any
6504
+ http.baseURI containing "dfs.core.windows.net") must reference an iClient with provider
6505
+ "azureserviceprincipal"; any other provider fails the save with 422 invalid_field
6506
+ "IClient provider must be azureserviceprincipal for Azure Data Lake Storage Gen2
6507
+ connections."
6508
+ - |-
6509
+ The iClient must belong to the same account as the connection — an iClient id from
6510
+ another account fails with 422 invalid_ref "The referenced IClient must belong to the
6511
+ same user."
4601
6512
  _httpConnectorId:
4602
6513
  type: string
4603
6514
  format: objectId
4604
6515
  x-celigo-refModel: httpconnectors
4605
- description: ID of the HTTP connector template this connection is based on.
6516
+ description: |-
6517
+ HTTP connector (pre-built application template) this connection is linked to. Linking
6518
+ lets exports and imports on the connection pick endpoints from the connector's catalog and
6519
+ drives the `assistant` form in the UI. The link is resolved server-side on create and on
6520
+ any update that changes `assistant` or a connector id, and the result overwrites
6521
+ `_httpConnectorId`, `_httpConnectorApiId` and `_httpConnectorVersionId`: an id that does
6522
+ not resolve to an accessible connector is dropped rather than rejected, and when the
6523
+ top-level `assistant` names an application with a legacy adaptor (the connector's
6524
+ `legacyId`, e.g. `shopify`) the connector resolved from that slug replaces the id you sent
6525
+ and a sent `_httpConnectorVersionId` is dropped. Read the response back to confirm the
6526
+ link took.
4606
6527
  examples:
4607
6528
  - 5d8f6a2b9c1e4f00112a3b4c
6529
+ x-celigo-ai-guidance:
6530
+ - |-
6531
+ To link an Azure Data Lake Storage Gen2 connection to its connector, send
6532
+ `_httpConnectorId` and `_httpConnectorVersionId` and omit the top-level `assistant`:
6533
+ with `assistant` set (`azuredatalakestoragegen2` or any other slug) the save answers
6534
+ 201/200 and stores neither id. Dropping `assistant` and re-sending both ids on a PUT
6535
+ restores the link.
4608
6536
  _httpConnectorApiId:
4609
6537
  type: string
4610
6538
  format: objectId
4611
6539
  x-celigo-refModel: httpconnectorapis
4612
- description: ID of the HTTP connector API definition (an API within the referenced HTTP connector).
6540
+ description: |-
6541
+ API within the linked HTTP connector that this connection targets, for connectors that
6542
+ publish more than one API. Only meaningful together with `_httpConnectorId`; an id that is
6543
+ not one of that connector's APIs is dropped on save, not rejected.
6544
+ x-celigo-ai-guidance:
6545
+ - |-
6546
+ The connector catalog flags GraphQL APIs with `isGraphQL`. The API bound here is inherited
6547
+ by every export and import created on the connection — the step form's API type control
6548
+ is disabled once a connection is selected — so a connector's GraphQL editor requires a
6549
+ connection bound to its GraphQL API, not a per-step setting.
4613
6550
  examples:
4614
6551
  - 5d8f6a2b9c1e4f00112a3b4d
4615
6552
  _httpConnectorVersionId:
4616
6553
  type: string
4617
6554
  format: objectId
4618
- description: ID of the HTTP connector version (a version within the referenced HTTP connector).
6555
+ description: |-
6556
+ Version entry of the linked HTTP connector (an item of the connector's `versions` array)
6557
+ whose endpoint definitions this connection uses. Only meaningful together with
6558
+ `_httpConnectorId`; an id that is not one of that connector's published versions is
6559
+ replaced by a published version of the connector on create and dropped on update, never
6560
+ rejected.
4619
6561
  examples:
4620
6562
  - 5d8f6a2b9c1e4f00112a3b4e
4621
6563
  isRest:
@@ -4641,6 +6583,20 @@ components:
4641
6583
  required:
4642
6584
  - marketplaceId
4643
6585
  - sellingRegion
6586
+ else:
6587
+ if:
6588
+ properties:
6589
+ auth:
6590
+ properties:
6591
+ type:
6592
+ const: awsiam
6593
+ required:
6594
+ - type
6595
+ required:
6596
+ - auth
6597
+ then:
6598
+ required:
6599
+ - _iClientId
4644
6600
  RDBMS:
4645
6601
  type: object
4646
6602
  description: |-
@@ -4675,11 +6631,12 @@ components:
4675
6631
  - `database` — required for every type EXCEPT `oracle` (uses `serviceName`)
4676
6632
  and `bigquery` (uses `bigquery.dataset`).
4677
6633
  - `user` — required for every type EXCEPT `bigquery`, `redshift`, and
4678
- `mssql` with `mssql.authType=azure-service-principal`.
6634
+ `mssql` / `azuresynapse` with `mssql.authType=azure-service-principal`.
4679
6635
  - `password` — required when no SSL cert material is provided AND the
4680
- type is NOT `bigquery`, `redshift`, `snowflake`, or `mssql` with
4681
- `azure-service-principal` auth. When SSL cert material IS provided
4682
- without a password, both `ssl.key` and `ssl.cert` become required.
6636
+ type is NOT `bigquery`, `redshift`, `snowflake`, or `mssql` /
6637
+ `azuresynapse` with `azure-service-principal` auth. When SSL cert
6638
+ material IS provided without a password, both `ssl.key` and `ssl.cert`
6639
+ become required.
4683
6640
  - **Snowflake** — additionally requires `snowflake.warehouse` and
4684
6641
  `snowflake.authType`. When `snowflake.authType=keyPair`, also
4685
6642
  requires the `key` field at the rdbms level (the RSA private key).
@@ -4695,8 +6652,14 @@ components:
4695
6652
  iClient holding the role ARN) plus exactly one of
4696
6653
  `redshift.clusterIdentifier` (provisioned cluster) or
4697
6654
  `redshift.workgroupName` (Redshift Serverless).
4698
- - **MSSQL with `mssql.authType=azure-service-principal`** — requires
4699
- `_iClientId` (service principal credentials live in the iClient).
6655
+ - **MSSQL / Azure Synapse with `mssql.authType=azure-service-principal`**
6656
+ — requires `_iClientId` referencing an `azureserviceprincipal` iClient
6657
+ (the Microsoft Entra tenant id, client id and client secret or
6658
+ certificate live in the iClient); `user` and `password` are not used.
6659
+ `_iClientId` with `basic` auth is rejected. Both types share the
6660
+ `mssql` sub-object; `azuresynapse` is cloud-only, and the SQL Server
6661
+ connection form offers service-principal auth in Cloud mode only — it
6662
+ saves `basic` for an on-premise connection (`_agentId` set).
4700
6663
  - **Oracle** — runs in agent mode only, so requires `_agentId` on the
4701
6664
  parent connection object. Uses `serviceName` instead of `database`.
4702
6665
  Optionally also takes `serverType` and `instanceName`.
@@ -4789,8 +6752,10 @@ components:
4789
6752
  user:
4790
6753
  type: string
4791
6754
  description: |
4792
- Database username for authentication.
4793
- Required for all types except BigQuery (which uses service account auth).
6755
+ Database username for authentication. Required for all types except
6756
+ BigQuery (service account auth), Redshift, and `mssql` / `azuresynapse`
6757
+ with `mssql.authType=azure-service-principal`, where the Entra principal
6758
+ in the iClient signs in and a `user` sent anyway is stored unused.
4794
6759
  examples:
4795
6760
  - integration_user
4796
6761
  password:
@@ -4843,7 +6808,7 @@ components:
4843
6808
  examples:
4844
6809
  - dedicated
4845
6810
  concurrencyLevel:
4846
- type: number
6811
+ type: integer
4847
6812
  description: |
4848
6813
  Maximum number of concurrent database connections.
4849
6814
  Set based on the database server's connection limit and available resources.
@@ -4852,7 +6817,7 @@ components:
4852
6817
  maximum: 50
4853
6818
  default: 5
4854
6819
  targetConcurrencyLevel:
4855
- type: number
6820
+ type: integer
4856
6821
  description: |
4857
6822
  Target concurrency level for auto-scaling. The system adjusts the number of
4858
6823
  concurrent connections between 1 and this value based on performance feedback.
@@ -4917,8 +6882,11 @@ components:
4917
6882
  - keyPair
4918
6883
  mssql:
4919
6884
  type: object
4920
- description: |
4921
- Microsoft SQL Server / Azure Synapse-specific configuration.
6885
+ description: |-
6886
+ Microsoft SQL Server / Azure Synapse-specific configuration. Read for
6887
+ both the `mssql` and the `azuresynapse` types — Azure Synapse
6888
+ Analytics shares SQL Server's authentication model and this
6889
+ sub-object.
4922
6890
  properties:
4923
6891
  authType:
4924
6892
  type: string
@@ -4926,14 +6894,30 @@ components:
4926
6894
  - basic
4927
6895
  - azure-service-principal
4928
6896
  x-enumDescriptions:
4929
- basic: Standard SQL Server authentication with username and password.
4930
- azure-service-principal: Azure Active Directory service principal authentication via iClient.
6897
+ basic: Database user — SQL authentication with `user` and `password`
6898
+ azure-service-principal: Microsoft Entra service principal held in the `azureserviceprincipal` iClient referenced by `_iClientId`; `user` and `password` are not used
4931
6899
  description: |-
4932
- Authentication type for MS SQL Server. Defaults to basic (username/password).
4933
- Use azure-service-principal for Azure AD service principal auth via an iClient.
6900
+ How a Microsoft SQL Server or Azure Synapse connection
6901
+ authenticates. Defaults to `basic` when omitted (the connection
6902
+ form's "Database user"). With `azure-service-principal` the
6903
+ connection signs in as the Entra application registered in the
6904
+ iClient — a client secret, or on SQL Server a certificate — and
6905
+ `_iClientId` must reference it. The SQL Server connection form
6906
+ offers `azure-service-principal` in Cloud mode only and saves
6907
+ `basic` for an on-premise connection (`_agentId` set).
4934
6908
  default: basic
4935
6909
  examples:
4936
6910
  - basic
6911
+ x-celigo-ai-guidance:
6912
+ - |-
6913
+ With azure-service-principal, omit user and password: the API does not reject them —
6914
+ it stores them unused on the connection (live-verified 201 with both present), while
6915
+ the connection form removes them on save. Set them only for basic.
6916
+ - |-
6917
+ A certificate-method azureserviceprincipal iClient is offered by the form on Microsoft
6918
+ SQL Server connections only; the Azure Synapse form's picker lists client-secret
6919
+ iClients. The API accepts either on either type (live-verified 201), so follow the
6920
+ form: bind a certificate iClient to mssql connections only.
4937
6921
  bigquery:
4938
6922
  type: object
4939
6923
  description: |
@@ -5114,12 +7098,44 @@ components:
5114
7098
  x-celigo-refModel: iclients
5115
7099
  description: |-
5116
7100
  Reference to an iClient holding auth credentials, stored inside the
5117
- rdbms object. Required when type is `mssql` and `mssql.authType` is
5118
- `azure-service-principal` (Azure service-principal credentials), and
5119
- when type is `redshift` and `redshift.authType` is `awsIam` (an
5120
- `awsIam`-provider iClient holding the role ARN to assume).
7101
+ rdbms object. Required when type is `mssql` or `azuresynapse` and
7102
+ `mssql.authType` is `azure-service-principal` (an
7103
+ `azureserviceprincipal` iClient — the Microsoft Entra tenant id,
7104
+ client id and client secret or certificate), and when type is
7105
+ `redshift` and `redshift.authType` is `awsIam` (an `awsIam`-provider
7106
+ iClient holding the role ARN to assume). On `mssql` / `azuresynapse`
7107
+ it is rejected when `mssql.authType` is `basic` or omitted. For
7108
+ Redshift the iClient must carry `awsIam.roleArn`, and that role's name
7109
+ must start with `celigo-data-warehouse-adaptor-` — the data-warehouse
7110
+ service assumes only roles in that family, so a role created for an S3
7111
+ or HTTP connection cannot be reused here.
5121
7112
  examples:
5122
7113
  - 66a1b2c3d4e5f60718293a4b
7114
+ x-celigo-ai-guidance:
7115
+ - |-
7116
+ For a mssql or azuresynapse connection with mssql.authType "azure-service-principal",
7117
+ _iClientId is required (otherwise 422 missing_required_field on rdbms._iClientId
7118
+ "Expected field: _iClientId to be present.") and must reference an azureserviceprincipal
7119
+ iClient (otherwise 422 invalid_field on rdbms._iClientId "IClient provider must be
7120
+ azureserviceprincipal for Service Principal authentication."). The same iClient can back
7121
+ Azure Data Lake Storage Gen2, SQL Server and Synapse connections.
7122
+ - |-
7123
+ With mssql.authType "basic" (or omitted) on mssql / azuresynapse, do not set _iClientId:
7124
+ 422 invalid_field on rdbms._iClientId "The _iClientId field should not be set when using
7125
+ basic authentication. Remove _iClientId or switch to azure-service-principal
7126
+ authentication."
7127
+ - |-
7128
+ For a Redshift connection with redshift.authType "awsIam", the referenced iClient must
7129
+ have awsIam.roleArn set (otherwise 422 missing_required_field on rdbms._iClientId
7130
+ "Expected field: awsIam.roleArn to be present.") and its role name must start with
7131
+ "celigo-data-warehouse-adaptor-" (otherwise 422 invalid_field_value on rdbms._iClientId
7132
+ "Invalid value for field \"_iClientId\": Your role ARN's name must begin with
7133
+ celigo-data-warehouse-adaptor."). Do not reuse a celigo-file-adaptor- or
7134
+ celigo-http-adaptor- role.
7135
+ - |-
7136
+ With redshift.authType "awsIam", omit the top-level user and password — the API does not
7137
+ reject them, it stores them on a connection whose form has no field that could ever
7138
+ clear them; the database user is derived from the assumed role at runtime.
5123
7139
  if:
5124
7140
  properties:
5125
7141
  type:
@@ -5127,7 +7143,6 @@ components:
5127
7143
  - mysql
5128
7144
  - postgresql
5129
7145
  - mariadb
5130
- - azuresynapse
5131
7146
  required:
5132
7147
  - type
5133
7148
  then:
@@ -5171,120 +7186,149 @@ components:
5171
7186
  if:
5172
7187
  properties:
5173
7188
  type:
5174
- const: snowflake
7189
+ const: azuresynapse
5175
7190
  required:
5176
7191
  - type
5177
7192
  then:
5178
- required:
5179
- - host
5180
- - database
5181
- - user
5182
- properties:
5183
- snowflake:
5184
- required:
5185
- - authType
5186
- - warehouse
5187
7193
  if:
5188
7194
  properties:
5189
- snowflake:
7195
+ mssql:
5190
7196
  properties:
5191
7197
  authType:
5192
- const: keyPair
7198
+ const: azure-service-principal
5193
7199
  required:
5194
7200
  - authType
5195
7201
  required:
5196
- - snowflake
7202
+ - mssql
5197
7203
  then:
5198
7204
  required:
5199
- - key
7205
+ - host
7206
+ - database
7207
+ - _iClientId
5200
7208
  else:
5201
7209
  required:
7210
+ - host
7211
+ - database
7212
+ - user
5202
7213
  - password
5203
7214
  else:
5204
7215
  if:
5205
7216
  properties:
5206
7217
  type:
5207
- const: oracle
7218
+ const: snowflake
5208
7219
  required:
5209
7220
  - type
5210
7221
  then:
5211
7222
  required:
5212
7223
  - host
7224
+ - database
5213
7225
  - user
5214
- - password
7226
+ properties:
7227
+ snowflake:
7228
+ required:
7229
+ - authType
7230
+ - warehouse
7231
+ if:
7232
+ properties:
7233
+ snowflake:
7234
+ properties:
7235
+ authType:
7236
+ const: keyPair
7237
+ required:
7238
+ - authType
7239
+ required:
7240
+ - snowflake
7241
+ then:
7242
+ required:
7243
+ - key
7244
+ else:
7245
+ required:
7246
+ - password
5215
7247
  else:
5216
7248
  if:
5217
7249
  properties:
5218
7250
  type:
5219
- const: bigquery
7251
+ const: oracle
5220
7252
  required:
5221
7253
  - type
5222
7254
  then:
5223
7255
  required:
5224
- - bigquery
5225
- properties:
5226
- bigquery:
5227
- required:
5228
- - projectId
5229
- - dataset
5230
- - clientEmail
5231
- - privateKey
7256
+ - host
7257
+ - user
7258
+ - password
5232
7259
  else:
5233
7260
  if:
5234
7261
  properties:
5235
7262
  type:
5236
- const: redshift
7263
+ const: bigquery
5237
7264
  required:
5238
7265
  - type
5239
7266
  then:
5240
7267
  required:
5241
- - database
5242
- - user
5243
- - redshift
7268
+ - bigquery
5244
7269
  properties:
5245
- redshift:
7270
+ bigquery:
5246
7271
  required:
5247
- - region
7272
+ - projectId
7273
+ - dataset
7274
+ - clientEmail
7275
+ - privateKey
7276
+ else:
5248
7277
  if:
5249
- required:
5250
- - redshift
5251
7278
  properties:
5252
- redshift:
5253
- required:
5254
- - authType
5255
- properties:
5256
- authType:
5257
- const: awsIam
7279
+ type:
7280
+ const: redshift
7281
+ required:
7282
+ - type
5258
7283
  then:
5259
7284
  required:
5260
- - _iClientId
5261
- properties:
5262
- redshift:
5263
- oneOf:
5264
- - required:
5265
- - clusterIdentifier
5266
- not:
5267
- required:
5268
- - workgroupName
5269
- - required:
5270
- - workgroupName
5271
- not:
5272
- required:
5273
- - clusterIdentifier
5274
- else:
7285
+ - database
7286
+ - user
7287
+ - redshift
5275
7288
  properties:
5276
7289
  redshift:
5277
7290
  required:
5278
- - aws
5279
- - clusterIdentifier
5280
- not:
7291
+ - region
7292
+ if:
7293
+ required:
7294
+ - redshift
7295
+ properties:
7296
+ redshift:
5281
7297
  required:
5282
- - workgroupName
5283
- properties:
5284
- aws:
7298
+ - authType
7299
+ properties:
7300
+ authType:
7301
+ const: awsIam
7302
+ then:
7303
+ required:
7304
+ - _iClientId
7305
+ properties:
7306
+ redshift:
7307
+ oneOf:
7308
+ - required:
7309
+ - clusterIdentifier
7310
+ not:
7311
+ required:
7312
+ - workgroupName
7313
+ - required:
7314
+ - workgroupName
7315
+ not:
7316
+ required:
7317
+ - clusterIdentifier
7318
+ else:
7319
+ properties:
7320
+ redshift:
7321
+ required:
7322
+ - aws
7323
+ - clusterIdentifier
7324
+ not:
5285
7325
  required:
5286
- - accessKeyId
5287
- - secretAccessKey
7326
+ - workgroupName
7327
+ properties:
7328
+ aws:
7329
+ required:
7330
+ - accessKeyId
7331
+ - secretAccessKey
5288
7332
  MongoDB:
5289
7333
  type: object
5290
7334
  description: |-
@@ -5385,7 +7429,7 @@ components:
5385
7429
  examples:
5386
7430
  - admin
5387
7431
  concurrencyLevel:
5388
- type: number
7432
+ type: integer
5389
7433
  description: |
5390
7434
  Maximum number of concurrent MongoDB operations.
5391
7435
  Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
@@ -5393,7 +7437,7 @@ components:
5393
7437
  maximum: 50
5394
7438
  default: 5
5395
7439
  targetConcurrencyLevel:
5396
- type: number
7440
+ type: integer
5397
7441
  description: |
5398
7442
  Target concurrency level for auto-scaling. The system adjusts concurrency
5399
7443
  between 1 and this value based on rate limit feedback.
@@ -5478,7 +7522,11 @@ components:
5478
7522
  as2URI:
5479
7523
  type: string
5480
7524
  format: uri
5481
- description: Partner's AS2 endpoint that integrator.io posts outbound messages to.
7525
+ description: |-
7526
+ Partner's AS2 endpoint that integrator.io posts outbound messages to.
7527
+
7528
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol; data
7529
+ sent to an HTTP endpoint is not encrypted and may be intercepted or modified in transit.
5482
7530
  examples:
5483
7531
  - https://partner.example.com/as2
5484
7532
  x-celigo-ui-override: Required by the connection form (as2.partnerStationInfo.as2URI).
@@ -5491,7 +7539,13 @@ components:
5491
7539
  mdnURL:
5492
7540
  type: string
5493
7541
  format: uri
5494
- description: Endpoint the partner posts asynchronous MDNs to. Set only when the partner returns MDNs asynchronously rather than on the same connection.
7542
+ description: |-
7543
+ Endpoint the partner posts asynchronous MDNs to. Set only when the partner
7544
+ returns MDNs asynchronously rather than on the same connection.
7545
+
7546
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol;
7547
+ data sent to an HTTP endpoint is not encrypted and may be intercepted or
7548
+ modified in transit.
5495
7549
  examples:
5496
7550
  - https://partner.example.com/as2/mdn
5497
7551
  signatureProtocol:
@@ -5809,6 +7863,10 @@ components:
5809
7863
  description: |-
5810
7864
  Partner's endpoint this station posts asynchronous MDNs to. Set only when
5811
7865
  the partner requires asynchronous MDNs; stored as an empty string otherwise.
7866
+
7867
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol;
7868
+ data sent to an HTTP endpoint is not encrypted and may be intercepted or
7869
+ modified in transit.
5812
7870
  examples:
5813
7871
  - https://partner.example.com/as2/async-mdn
5814
7872
  signatureProtocol:
@@ -5832,7 +7890,10 @@ components:
5832
7890
  SHA1: Sign returned MDNs using the SHA-1 hash algorithm.
5833
7891
  MD5: Sign returned MDNs using the MD5 hash algorithm.
5834
7892
  SHA256: Sign returned MDNs using the SHA-256 hash algorithm.
5835
- description: Hash algorithm used to sign MDNs this station returns to the partner.
7893
+ description: |-
7894
+ Hash algorithm used to sign MDNs this station returns to the partner. Signs the MDN
7895
+ only — the hash algorithm of its `Received-Content-MIC` follows
7896
+ userStationInfo.signing, not this field.
5836
7897
  examples:
5837
7898
  - SHA256
5838
7899
  x-celigo-ui-override: Required by the connection form (as2.userStationInfo.mdn.mdnSigning).
@@ -5855,11 +7916,17 @@ components:
5855
7916
  - MD5
5856
7917
  - SHA256
5857
7918
  x-enumDescriptions:
5858
- NONE: Accept inbound messages without verifying their signature.
7919
+ NONE: Accept inbound messages without verifying their signature; returned MDNs then carry a SHA-1 MIC.
5859
7920
  SHA1: Verify inbound message signatures using the SHA-1 hash algorithm.
5860
7921
  MD5: Verify inbound message signatures using the MD5 hash algorithm.
5861
7922
  SHA256: Verify inbound message signatures using the SHA-256 hash algorithm.
5862
- description: Hash algorithm for verifying signatures on inbound messages. Any value other than NONE requires unencrypted.partnerCertificate.
7923
+ description: |-
7924
+ Hash algorithm for verifying signatures on inbound messages; the same algorithm is used
7925
+ for the `Received-Content-MIC` in the MDN returned for each message (NONE falls back to
7926
+ SHA-1, and the algorithm the partner requests in `Disposition-Notification-Options` is
7927
+ not used). The MIC is computed when a message is received, so a change here applies only
7928
+ to messages received afterwards — the partner must resend to get an MDN with the new
7929
+ algorithm. Any value other than NONE requires unencrypted.partnerCertificate.
5863
7930
  examples:
5864
7931
  - SHA256
5865
7932
  x-celigo-ui-override: Required by the connection form (as2.userStationInfo.signing — labeled Signature verification algorithm).
@@ -5946,7 +8013,7 @@ components:
5946
8013
  Required when signing or encryption is enabled (not NONE).
5947
8014
  Auto-generated self-signed certificates will be injected if not provided.
5948
8015
  concurrencyLevel:
5949
- type: number
8016
+ type: integer
5950
8017
  description: |-
5951
8018
  Maximum number of messages processed concurrently for this connection. The default of 5
5952
8019
  is safe for most partners. Values above the account's licensed maximum (25 standard, 50
@@ -5955,7 +8022,7 @@ components:
5955
8022
  maximum: 50
5956
8023
  default: 5
5957
8024
  targetConcurrencyLevel:
5958
- type: number
8025
+ type: integer
5959
8026
  description: |-
5960
8027
  Concurrency ceiling integrator.io scales up to when auto-recovering from rate-limit
5961
8028
  errors. Only applies when autoRecoverRateLimitErrors is true on the connection.
@@ -5965,7 +8032,12 @@ components:
5965
8032
  - 5
5966
8033
  preventCanonicalization:
5967
8034
  type: boolean
5968
- description: When true, message content is not canonicalized before signing or encryption. Enable only when a partner reports signature-verification failures caused by canonicalization.
8035
+ description: |-
8036
+ When true, inbound messages are verified — and the `Received-Content-MIC` in the returned
8037
+ MDN is computed — over the content exactly as received, without first normalizing line
8038
+ endings to CRLF; the partner's MDN signatures are verified the same way. Enable only when a
8039
+ partner reports signature-verification failures or MIC mismatches caused by
8040
+ canonicalization.
5969
8041
  default: false
5970
8042
  Filesystem:
5971
8043
  type: object
@@ -5995,7 +8067,7 @@ components:
5995
8067
  The system verifies the directory exists and is accessible.
5996
8068
  Example: "/data/integrations/incoming" or "C:\\Data\\Integrations".
5997
8069
  concurrencyLevel:
5998
- type: number
8070
+ type: integer
5999
8071
  description: |-
6000
8072
  Maximum number of files processed concurrently. Cannot exceed `targetConcurrencyLevel`; a higher
6001
8073
  value is silently clamped down to it. Values above the account's licensed maximum (25 standard,
@@ -6004,7 +8076,7 @@ components:
6004
8076
  maximum: 50
6005
8077
  default: 1
6006
8078
  targetConcurrencyLevel:
6007
- type: number
8079
+ type: integer
6008
8080
  description: |-
6009
8081
  Upper bound for auto-scaling. The agent scales concurrency between 1 and this value based on
6010
8082
  throughput, so it also caps `concurrencyLevel`. Values above the account's licensed maximum
@@ -6263,6 +8335,9 @@ components:
6263
8335
  description: |-
6264
8336
  MCP server endpoint URL. Must be a valid absolute URL
6265
8337
  (e.g. "https://mcp-server.example.com/mcp").
8338
+
8339
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol; data sent
8340
+ to an HTTP endpoint is not encrypted and may be intercepted or modified in transit.
6266
8341
  examples:
6267
8342
  - https://mcp-server.example.com/mcp
6268
8343
  x-celigo-ai-guidance:
@@ -6270,6 +8345,9 @@ components:
6270
8345
  MCP server endpoint URL. REQUIRED.
6271
8346
  Must be a valid absolute URL (e.g., "https://mcp-server.example.com/mcp").
6272
8347
  The system validates this as a proper URL.
8348
+
8349
+ Use an HTTPS URL whenever possible. HTTP is not considered a secure protocol; data
8350
+ sent to an HTTP endpoint is not encrypted and may be intercepted or modified in transit.
6273
8351
  timeout:
6274
8352
  type: number
6275
8353
  default: 600000
@@ -6448,7 +8526,7 @@ components:
6448
8526
  examples:
6449
8527
  - wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
6450
8528
  concurrencyLevel:
6451
- type: number
8529
+ type: integer
6452
8530
  description: |-
6453
8531
  Maximum number of DynamoDB requests this connection runs at once.
6454
8532
 
@@ -6462,7 +8540,7 @@ components:
6462
8540
  Maximum number of concurrent DynamoDB operations.
6463
8541
  DynamoDB throughput is governed by table-level read/write capacity units.
6464
8542
  targetConcurrencyLevel:
6465
- type: number
8543
+ type: integer
6466
8544
  description: |-
6467
8545
  Concurrency ceiling for auto-scaling. The system adjusts the active concurrency between 1
6468
8546
  and this value based on rate-limit feedback. Only applied when `autoRecoverRateLimitErrors`
@@ -6622,7 +8700,7 @@ components:
6622
8700
  - name: ServerDataSource
6623
8701
  value: NetSuite2.com
6624
8702
  concurrencyLevel:
6625
- type: number
8703
+ type: integer
6626
8704
  description: |
6627
8705
  Maximum number of concurrent database connections.
6628
8706
  JDBC connections often run through a single Agent, so keep this value
@@ -6634,7 +8712,7 @@ components:
6634
8712
  examples:
6635
8713
  - 5
6636
8714
  targetConcurrencyLevel:
6637
- type: number
8715
+ type: integer
6638
8716
  description: |
6639
8717
  Target concurrency level for auto-scaling. The system adjusts the number of
6640
8718
  concurrent connections between 1 and this value based on performance feedback.
@@ -6930,7 +9008,7 @@ components:
6930
9008
  examples:
6931
9009
  - 566686c4d0b969657e7850ba
6932
9010
  concurrencyLevel:
6933
- type: number
9011
+ type: integer
6934
9012
  description: |
6935
9013
  Maximum number of concurrent operations through this wrapper connection.
6936
9014
  Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
@@ -6938,7 +9016,7 @@ components:
6938
9016
  maximum: 50
6939
9017
  default: 5
6940
9018
  targetConcurrencyLevel:
6941
- type: number
9019
+ type: integer
6942
9020
  description: |
6943
9021
  Target concurrency level for auto-scaling. The system adjusts concurrency
6944
9022
  between 1 and this value based on performance feedback.
@@ -6985,7 +9063,11 @@ components:
6985
9063
  suiteAppInstalled:
6986
9064
  type: boolean
6987
9065
  readOnly: true
6988
- description: When true, the Celigo SuiteApp bundle is installed in the connected NetSuite account. Detected by the server when the connection authenticates to NetSuite.
9066
+ description: |-
9067
+ When true, the Celigo integrator.io SuiteApp (SuiteScript 2.x) was detected in
9068
+ the connected NetSuite account the last time the connection authenticated. It
9069
+ says nothing about the legacy Celigo bundle; for a live check of both, use
9070
+ `GET /v1/connections/{_id}/distributedApps`.
6989
9071
  salesforce:
6990
9072
  description: Present when `type` is `salesforce`.
6991
9073
  allOf:
@@ -7270,16 +9352,16 @@ components:
7270
9352
  netsuite: NetSuite ERP connection using token-based authentication (TBA).
7271
9353
  salesforce: Salesforce CRM connection with OAuth 2.0 authentication.
7272
9354
  ftp: FTP, SFTP, or FTPS file transfer connection.
7273
- s3: Amazon S3 cloud storage connection.
9355
+ s3: Amazon S3 cloud storage connection, authenticated with an access key pair or an AWS IAM role (`s3.authType`).
7274
9356
  wrapper: Wrapper connection that delegates to another connection type.
7275
9357
  http: Generic HTTP/REST API connection with full configuration control.
7276
- rdbms: Relational database connection (MySQL, PostgreSQL, Snowflake, etc.).
9358
+ rdbms: Native relational-database connection — MySQL, PostgreSQL, MariaDB, Microsoft SQL Server, Azure Synapse, Oracle, Snowflake, Google BigQuery, Amazon Redshift (the database is `rdbms.type`).
7277
9359
  mongodb: MongoDB NoSQL database connection.
7278
9360
  as2: AS2 (Applicability Statement 2) EDI connection.
7279
9361
  filesystem: Local or network filesystem connection (requires an Agent).
7280
9362
  mcp: MCP (Model Context Protocol) server connection.
7281
9363
  dynamodb: Amazon DynamoDB NoSQL database connection.
7282
- jdbc: JDBC database connection for systems not covered by RDBMS.
9364
+ jdbc: JDBC connection for relational systems without a native `rdbms` type (Databricks, Db2, Workday, NetSuite JDBC) and for the driver-specific paths `jdbc.type` names (Oracle Thin, SQL Server with Active Directory); Redshift, BigQuery and Snowflake are `rdbms` types.
7283
9365
  van: Value-Added Network connection for EDI document exchange.
7284
9366
  rest: REST connection driven by a pre-built HTTP Connector template. Deprecated — use `http` instead.
7285
9367
  externalId:
@@ -7291,9 +9373,24 @@ components:
7291
9373
  type: string
7292
9374
  description: |-
7293
9375
  Lowercase application name for HTTP connections to systems with an integrator.io
7294
- adaptor (e.g. "shopify", "ebay"). Only applies to http connections.
9376
+ adaptor (e.g. "shopify", "ebay"). Only applies to http connections. The platform
9377
+ checks the slug against its current adaptor list — an unknown value fails the save
9378
+ with 422 `enum` — and uses it to resolve the HTTP connector link on every save (see
9379
+ `http._httpConnectorId`), so send it only when the application really is a legacy
9380
+ adaptor: on an Azure Data Lake Storage Gen2 connection it drops the connector ids.
7295
9381
  examples:
7296
9382
  - shopify
9383
+ x-celigo-ai-guidance:
9384
+ - |-
9385
+ Omit `assistant` on an Azure Data Lake Storage Gen2 connection. With
9386
+ `assistant: "azuredatalakestoragegen2"` (or any other slug) the save answers 201/200
9387
+ but stores no `http._httpConnectorId` or `http._httpConnectorVersionId`; the
9388
+ connection form never sends it. Send the ADLS connector id and version id without
9389
+ `assistant` — a PUT that drops `assistant` and re-sends them restores the link.
9390
+ - |-
9391
+ A value outside the platform's adaptor list fails with 422 `enum` on `assistant`
9392
+ ("`<value>` is not a valid enum value for path `assistant`."); for a connector-framework
9393
+ application with no legacy adaptor, link it through `http._httpConnectorId` instead.
7297
9394
  _agentId:
7298
9395
  type: string
7299
9396
  format: objectId
@@ -7311,9 +9408,30 @@ components:
7311
9408
  x-celigo-refModel: connections
7312
9409
  description: |-
7313
9410
  Reference to another connection to share concurrency limits with. When set, this
7314
- connection's traffic counts against the referenced connection's limit instead of its own.
9411
+ connection's traffic counts against the referenced connection's limit instead of its own,
9412
+ and its own concurrency and auto-recovery settings have no effect. One level only: the
9413
+ referenced connection may not itself borrow, and a connection that others borrow from
9414
+ cannot start borrowing.
7315
9415
  examples:
7316
9416
  - 615dfa0742763671275b70ab
9417
+ x-celigo-ai-guidance:
9418
+ - |-
9419
+ Set this when several connections target one external account whose API enforces a
9420
+ single account-wide concurrency limit (for example one NetSuite account): put the limit
9421
+ on one parent connection and point the others here, so their combined traffic can never
9422
+ exceed it.
9423
+ - |-
9424
+ A borrower drains through the parent's queue as well as its ceiling, so a high-volume
9425
+ borrower competes with the parent's own flows — settle the priority split before
9426
+ choosing who borrows from whom.
9427
+ autoRecoverRateLimitErrors:
9428
+ type: boolean
9429
+ default: true
9430
+ description: |-
9431
+ When true, rate-limit errors from the target system trigger automatic recovery — concurrency
9432
+ drops to 1 and climbs back toward the adaptor block's `targetConcurrencyLevel`, which is the
9433
+ throughput lever while this is on. Turning it on copies the current `concurrencyLevel` into
9434
+ the target; turning it off unsets the target and leaves `concurrencyLevel` at its current value.
7317
9435
  __integrationIds:
7318
9436
  type: array
7319
9437
  maxItems: 100
@@ -7340,6 +9458,34 @@ components:
7340
9458
  __failedIntegrationRegistrations with code not_allowed.
7341
9459
  examples:
7342
9460
  - - 6a55be91d16ee8270022893e
9461
+ endUserProvidedFields:
9462
+ type:
9463
+ - array
9464
+ - 'null'
9465
+ items:
9466
+ type: string
9467
+ description: |-
9468
+ Dot-paths of this connection's fields (for example `http.encrypted.apiKey` or
9469
+ `rdbms.user`) that each MCP end user must supply on their own `mcpChild` copy instead of
9470
+ inheriting the parent's value. Set it on the parent connection an MCP server collects
9471
+ end-user credentials for; omit it everywhere else. Omitting it (or sending `[]`) on
9472
+ `PUT` keeps the stored paths; send `null` to clear them. By the platform contract,
9473
+ changing the stored list — adding, removing, or clearing paths — invalidates the
9474
+ `mcpChild` connections end users already hold against this parent, so each of them
9475
+ sets up again through the MCP setup page before tools that use it run for them.
9476
+ x-celigo-ai-guidance:
9477
+ - |-
9478
+ List only the credential and tenant fields that differ per end user, never a path the
9479
+ account owns: `type`, `_agentId`, `wrapper._stackId`, or any `<adaptor>._iClientId`
9480
+ (e.g. `http._iClientId`) fails the save with 422
9481
+ `mcp_end_user_provided_field_not_allowed`.
9482
+ - |-
9483
+ This is the only MCP end-user field writable through `/v1/connections`; the child
9484
+ connections themselves are created by the end-user setup page, and `connectionRole:
9485
+ mcpChild` in a `POST` or `PUT` body fails with 422 `mcp_child_generic_route_not_allowed`.
9486
+ examples:
9487
+ - - http.encrypted.apiKey
9488
+ - http.unencrypted.accountId
7343
9489
  debugDate:
7344
9490
  type: string
7345
9491
  format: date-time
@@ -7700,6 +9846,133 @@ components:
7700
9846
  minItems: 1
7701
9847
  items:
7702
9848
  $ref: '#/components/schemas/JsonPatchOperation'
9849
+ ImportRecordResult:
9850
+ type: object
9851
+ description: |-
9852
+ The outcome of running one input record through an import — one element
9853
+ per record, in input order — shared by `POST /v1/imports/{_id}/invoke`
9854
+ and the virtual import `POST /v1/connections/{_id}/import`. A record the
9855
+ import itself ignored before any request carries `ignored: true` and the
9856
+ `stage` that dropped it; a record the destination accepted carries its
9857
+ parsed response; a record the destination rejected — or that the
9858
+ import's `failPath` / `failValues` rules judged a failure even on a
9859
+ `2xx` — carries `errors[]`.
9860
+ properties:
9861
+ statusCode:
9862
+ type: integer
9863
+ description: |-
9864
+ HTTP status of the record's outcome. The destination's status for an
9865
+ accepted record; `422` when the import recorded a failure for the
9866
+ record — including when the destination itself answered `200` and
9867
+ the import's `failPath` rules declared it a failure.
9868
+ _json:
9869
+ type: object
9870
+ description: |-
9871
+ The destination's parsed response body for the record — the slice
9872
+ under the import's `response.resourcePath` when one is defined — not
9873
+ the record that was sent. `{}` when the record was ignored or the
9874
+ destination returned no usable body.
9875
+ additionalProperties: true
9876
+ _headers:
9877
+ type: object
9878
+ description: Response headers the destination returned for the record.
9879
+ additionalProperties: true
9880
+ ignored:
9881
+ type: boolean
9882
+ description: |-
9883
+ When true, the import dropped the record before sending anything and
9884
+ `stage` names the gate; the destination was not called for it.
9885
+ stage:
9886
+ type: string
9887
+ description: |-
9888
+ The import stage that ignored the record — `inputFilter` when the
9889
+ import's own input filter excluded it. Present only with `ignored`.
9890
+ examples:
9891
+ - inputFilter
9892
+ errors:
9893
+ type: array
9894
+ description: |-
9895
+ Errors recorded for the record. `source: application` with
9896
+ `stage: apiCall` means the request reached the destination and its
9897
+ answer was the failure; the destination's response body rides in
9898
+ `message`.
9899
+ items:
9900
+ type: object
9901
+ properties:
9902
+ source:
9903
+ type: string
9904
+ code:
9905
+ oneOf:
9906
+ - type: string
9907
+ - type: integer
9908
+ description: |-
9909
+ The adaptor's error code, or the destination's HTTP status as
9910
+ an integer when the import's `failPath` rules turned a
9911
+ successful-looking response into a failure.
9912
+ message:
9913
+ type: string
9914
+ resolved:
9915
+ type: boolean
9916
+ occurredAt:
9917
+ type: integer
9918
+ format: int64
9919
+ stage:
9920
+ type: string
9921
+ classification:
9922
+ type: string
9923
+ additionalProperties: true
9924
+ additionalProperties: true
9925
+ ScopedVirtualImportRequest:
9926
+ type: object
9927
+ description: |-
9928
+ The import document to run and the records to run through it — the
9929
+ same body as `POST /v1/connections/{_id}/import`. The parent (flow,
9930
+ tool or API) and the integration in the URL supply the execution
9931
+ context; the body carries no `settings`.
9932
+ x-celigo-ai-guidance:
9933
+ - |-
9934
+ This executes the request against the live destination — a real write, even when the
9935
+ document carries a saved `mockResponse`. Treat it like a run of the parent, never like a
9936
+ preview.
9937
+ - |-
9938
+ Hooks and templates see the context a real run of the parent gives them: for a flow step,
9939
+ `options.settings` carries `import`, `flow` and `integration` with `_flowId` /
9940
+ `_integrationId` — identical to the flow's own preview chain; for a tool or an API step it
9941
+ carries `import` and `integration` with `_integrationId` and no flow. A parent or
9942
+ integration with no settings contributes no key at all (no `integration` key when the
9943
+ integration carries none).
9944
+ - |-
9945
+ The connection in the path must be registered to the integration in the path (flows and
9946
+ tools register the connections their steps use) — an unregistered or unknown connection is a
9947
+ `403 invalid_request`; a parent that is not in the integration is a `400 invalid_request` in
9948
+ the `errors[]` envelope (an unknown integration id answers the same, the membership check
9949
+ running first); an unknown flow, tool or API id is a `404 invalid_ref` on the parent's path
9950
+ field. NetSuite and RDBMS documents run here, where `POST /v1/imports/preview` answers
9951
+ `invalid_adaptor`. A record the input filter excludes comes back
9952
+ `{ignored: true, stage: "inputFilter"}` and was never sent; omitting `import` or `data` is a
9953
+ `400 invalid_request` in the bare error array `POST /v1/connections/{_id}/import` returns.
9954
+ required:
9955
+ - import
9956
+ - data
9957
+ properties:
9958
+ import:
9959
+ type: object
9960
+ description: |-
9961
+ The import document to run (mirror of the `POST /v1/imports` body
9962
+ shape); `name` and `_connectionId` are not needed, and a saved
9963
+ import's `_id` and metadata may ride along unchanged.
9964
+ Adaptor-specific blocks (`http`, `netsuite_da`, `rdbms`, …),
9965
+ `mapping`, `filter` and `hooks` apply exactly as on a saved import.
9966
+ additionalProperties: true
9967
+ data:
9968
+ type: array
9969
+ description: |-
9970
+ Records to run through the document, each becoming one result. An
9971
+ empty array returns an empty array; omitting `data` is rejected.
9972
+ items:
9973
+ type: object
9974
+ additionalProperties: true
9975
+ additionalProperties: true
7703
9976
  ConnectionMetadataRequest:
7704
9977
  type: object
7705
9978
  description: |-
@@ -8060,6 +10333,13 @@ components:
8060
10333
  description: Display name of the dependent resource.
8061
10334
  examples:
8062
10335
  - Import Orders to NetSuite
10336
+ type:
10337
+ type: string
10338
+ description: |-
10339
+ Sub-type of the dependent resource when its collection distinguishes one, such as
10340
+ `stream` for a listener export. Only present for resource types that carry a `type`.
10341
+ examples:
10342
+ - stream
8063
10343
  paths:
8064
10344
  type: array
8065
10345
  description: |-
@@ -8122,6 +10402,70 @@ components:
8122
10402
  dependencyIds:
8123
10403
  export:
8124
10404
  - 64ff4b21612a134bd2f45534
10405
+ DistributedAppStatus:
10406
+ type: object
10407
+ required:
10408
+ - success
10409
+ properties:
10410
+ success:
10411
+ type: boolean
10412
+ description: When true, the component is installed in the connected NetSuite account. The remaining fields are present only when false.
10413
+ examples:
10414
+ - true
10415
+ statusCode:
10416
+ type: integer
10417
+ description: HTTP status NetSuite returned for the failed check — 404 when the component's RESTlet is not installed.
10418
+ examples:
10419
+ - 404
10420
+ resBody:
10421
+ type: string
10422
+ description: NetSuite's error text for the failed check.
10423
+ examples:
10424
+ - That Suitelet is invalid, disabled, or no longer exists.
10425
+ URL:
10426
+ type: string
10427
+ format: uri
10428
+ description: |-
10429
+ Install link for the component. Absent when `success` is true; the integrator.io UI
10430
+ reads it to render its install prompt when the component is missing.
10431
+ examples:
10432
+ - https://tstdrv1234567.app.netsuite.com/suiteapp/ui/marketplace.nl?whence=#/app?id=com.celigo.integratorio
10433
+ DistributedAdaptorStatus:
10434
+ type: object
10435
+ required:
10436
+ - success
10437
+ description: Result of pinging the Celigo distributed adaptor installed in the connected account.
10438
+ properties:
10439
+ success:
10440
+ type: boolean
10441
+ description: |-
10442
+ When true, the Celigo distributed adaptor (the integrator.io bundle or SuiteApp in
10443
+ NetSuite, the Celigo managed package in Salesforce) answered the ping and the
10444
+ connection can run distributed exports and imports. The remaining fields are present
10445
+ only when false.
10446
+ examples:
10447
+ - true
10448
+ statusCode:
10449
+ type: integer
10450
+ description: |-
10451
+ HTTP status the remote system returned for the failed ping — for example 404 when
10452
+ NetSuite reports the Celigo RESTlet is not installed. Absent when the failure did not
10453
+ reach the remote system (for example, a connection that is offline).
10454
+ examples:
10455
+ - 404
10456
+ resBody:
10457
+ type: string
10458
+ description: Remote system's error text, or the platform's reason when the ping was not attempted.
10459
+ examples:
10460
+ - That Suitelet is invalid, disabled, or no longer exists.
10461
+ bundleURL:
10462
+ type: string
10463
+ format: uri
10464
+ description: |-
10465
+ Install link for the missing component in the connected account — the NetSuite bundle
10466
+ details page, or the Salesforce package installer — for the UI's install prompt.
10467
+ examples:
10468
+ - https://tstdrv1234567.app.netsuite.com/app/bundler/bundledetails.nl?sourcecompanyid=TSTDRV916910&domain=PRODUCTION&config=F&id=20038
8125
10469
  SObjectType:
8126
10470
  type: object
8127
10471
  description: |
@@ -8639,9 +10983,10 @@ components:
8639
10983
  errors:
8640
10984
  - code: invalid_request
8641
10985
  message: The request body failed validation.
8642
- 422-unprocessable-entity:
8643
- description: |
8644
- Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
10986
+ 422-dependency-conflict:
10987
+ description: |-
10988
+ The resource has dependents that must be deleted first. Each entry
10989
+ in the `errors` array names one blocking resource.
8645
10990
  content:
8646
10991
  application/json:
8647
10992
  schema:
@@ -8650,12 +10995,11 @@ components:
8650
10995
  default:
8651
10996
  value:
8652
10997
  errors:
8653
- - code: unprocessable_entity
8654
- message: The request could not be processed due to a semantic error.
8655
- 422-dependency-conflict:
8656
- description: |-
8657
- The resource has dependents that must be deleted first. Each entry
8658
- in the `errors` array names one blocking resource.
10998
+ - code: dependencies_not_deleted
10999
+ message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
11000
+ 422-unprocessable-entity:
11001
+ description: |
11002
+ Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
8659
11003
  content:
8660
11004
  application/json:
8661
11005
  schema:
@@ -8664,7 +11008,7 @@ components:
8664
11008
  default:
8665
11009
  value:
8666
11010
  errors:
8667
- - code: dependencies_not_deleted
8668
- message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
11011
+ - code: unprocessable_entity
11012
+ message: The request could not be processed due to a semantic error.
8669
11013
  x-enable-proxy: true
8670
11014
  x-internal: false