@celigo/api-specs 0.2.1

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 (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -0
  3. package/dist/account.yml +592 -0
  4. package/dist/agent.yml +908 -0
  5. package/dist/ai-agent.yml +5471 -0
  6. package/dist/api.yml +4140 -0
  7. package/dist/apim.yml +1286 -0
  8. package/dist/asynchelper.yml +3391 -0
  9. package/dist/audit.yml +2006 -0
  10. package/dist/connection.yml +8665 -0
  11. package/dist/connector.yml +1406 -0
  12. package/dist/ediprofile.yml +911 -0
  13. package/dist/editransaction.yml +1210 -0
  14. package/dist/enduser.yml +1724 -0
  15. package/dist/environment.yml +568 -0
  16. package/dist/eventreport.yml +692 -0
  17. package/dist/export.yml +17610 -0
  18. package/dist/filedefinition.yml +1396 -0
  19. package/dist/filestorage.yml +3102 -0
  20. package/dist/flow.yml +7928 -0
  21. package/dist/guardrail.yml +2763 -0
  22. package/dist/httpconnector.yml +2277 -0
  23. package/dist/httpconnectorendpoint.yml +722 -0
  24. package/dist/httpconnectorresource.yml +396 -0
  25. package/dist/iclient.yml +4452 -0
  26. package/dist/import.yml +15381 -0
  27. package/dist/integration.yml +4406 -0
  28. package/dist/job.yml +2014 -0
  29. package/dist/lookupcache.yml +1325 -0
  30. package/dist/marketplace.yml +685 -0
  31. package/dist/mcp-oauth-provider.yml +590 -0
  32. package/dist/mcp-server.yml +2656 -0
  33. package/dist/notification.yml +488 -0
  34. package/dist/processor.yml +1253 -0
  35. package/dist/profile.yml +455 -0
  36. package/dist/recyclebin.yml +768 -0
  37. package/dist/script.yml +1128 -0
  38. package/dist/stack.yml +1291 -0
  39. package/dist/state.yml +894 -0
  40. package/dist/subscription.yml +1405 -0
  41. package/dist/sync.yml +4857 -0
  42. package/dist/tag.yml +553 -0
  43. package/dist/template.yml +897 -0
  44. package/dist/tool.yml +33656 -0
  45. package/dist/tradingpartnerconnector.yml +1490 -0
  46. package/dist/user.yml +831 -0
  47. package/package.json +41 -0
  48. package/schemas.json +8420 -0
@@ -0,0 +1,768 @@
1
+ openapi: 3.2.0
2
+ info:
3
+ version: 1.0.0
4
+ title: Recycle Bin
5
+ description: Manage soft-deleted resources held in the recycle bin.
6
+ servers:
7
+ - url: https://api.integrator.io
8
+ description: Production (US / default region)
9
+ - url: https://api.eu.integrator.io
10
+ description: Production (EU region)
11
+ - url: https://api.au.integrator.io
12
+ description: Production (AU region)
13
+ - url: https://api.ca.integrator.io
14
+ description: Production (CA region)
15
+ security:
16
+ - bearerAuth: []
17
+ tags:
18
+ - name: Recycle Bin
19
+ description: |-
20
+ The recycle bin holds soft-deleted resources for 30 days before
21
+ automatic permanent purge. During this window, resources can be
22
+ inspected, restored individually or with dependents (cascade
23
+ restore), or permanently deleted ahead of the 30-day deadline.
24
+
25
+ ## Recycle bin schema
26
+
27
+ {% openapi-schemas spec="recyclebin" schemas="RecycleBin" grouped="true" %}
28
+ paths:
29
+ /v1/recycleBinTTL:
30
+ get:
31
+ x-internal: false
32
+ operationId: listRecycleBin
33
+ tags:
34
+ - Recycle Bin
35
+ summary: List deleted resources
36
+ description: |-
37
+ Returns all resources deleted within the last 30 days, across all
38
+ resource types. Files and folders deleted from Celigo Storage are
39
+ included as `StorageItem` entries. Sorted by `lastModified`
40
+ descending. Not paginated — the full result set is returned in a
41
+ single response.
42
+ parameters:
43
+ - name: limit
44
+ in: query
45
+ required: false
46
+ description: |-
47
+ Maximum number of entries to return per resource type. Applied
48
+ independently to each type, so the total response size is up to
49
+ `limit` × the number of resource types with deleted items.
50
+ Does not apply to `StorageItem` entries — every deleted storage
51
+ item is always included.
52
+ schema:
53
+ type: integer
54
+ minimum: 1
55
+ example: 10
56
+ responses:
57
+ '200':
58
+ description: Array of deleted resource entries.
59
+ content:
60
+ application/json:
61
+ schema:
62
+ type: array
63
+ items:
64
+ $ref: '#/components/schemas/RecycleBin'
65
+ examples:
66
+ default:
67
+ value:
68
+ - model: StorageItem
69
+ doc:
70
+ _id: 6a55baeec4855ce84f89995d
71
+ type: file
72
+ name: old-report.pdf
73
+ size: 245760
74
+ mimeType: application/pdf
75
+ status: active
76
+ isSystem: false
77
+ createdAt: '2026-07-14T04:28:30.456Z'
78
+ lastModified: '2026-07-14T04:30:17.254Z'
79
+ deletedAt: '2026-07-14T04:30:17.253Z'
80
+ deletedBy: 624cb0346309dc3a543733a2
81
+ - model: Connection
82
+ doc:
83
+ _id: 6a074dce9dc296c4ef80c547
84
+ name: Shopify Production
85
+ type: http
86
+ createdAt: '2026-05-15T16:46:06.754Z'
87
+ lastModified: '2026-05-15T16:53:12.492Z'
88
+ - model: Flow
89
+ doc:
90
+ _id: 6a0faff9987bc622fa144d8d
91
+ name: Sync orders to NetSuite
92
+ disabled: true
93
+ createdAt: '2026-05-22T01:23:06.000Z'
94
+ lastModified: '2026-05-22T01:25:17.971Z'
95
+ lastExecutedAt: '2026-05-22T01:24:43.849Z'
96
+ - model: LookupCache
97
+ doc:
98
+ _id: 6a07e31dc6c9a763e00d6f47
99
+ name: SKU cross-reference cache
100
+ includeDataInTemplatesAndCloning: false
101
+ size: 0
102
+ sizeInMB: 0 MB
103
+ createdAt: '2026-05-16T03:23:09.399Z'
104
+ lastModified: '2026-05-16T03:23:11.578Z'
105
+ deletedAt: '2026-05-16T03:23:11.522Z'
106
+ '204':
107
+ description: Recycle bin is empty (no body returned).
108
+ '401':
109
+ $ref: '#/components/responses/401-unauthorized'
110
+ /v1/recycleBinTTL/{_resourceType}:
111
+ get:
112
+ x-internal: false
113
+ operationId: listRecycleBinByType
114
+ tags:
115
+ - Recycle Bin
116
+ summary: List deleted resources by type
117
+ description: |-
118
+ Returns deleted resources of a specific type from the recycle bin
119
+ (last 30 days). Sort order is not guaranteed. Not paginated — the
120
+ full result set is returned in a single response.
121
+
122
+ `storageitems` behaves differently: the request is proxied to Celigo
123
+ Storage, which returns an object wrapping an `items` array (not a
124
+ bare array), sorted by newest deletion first and paginated via the
125
+ `Link` response header.
126
+ parameters:
127
+ - $ref: '#/components/parameters/ResourceType'
128
+ - name: limit
129
+ in: query
130
+ required: false
131
+ description: Maximum number of resources to return.
132
+ schema:
133
+ type: integer
134
+ minimum: 1
135
+ example: 10
136
+ responses:
137
+ '200':
138
+ description: Array of deleted resource documents.
139
+ content:
140
+ application/json:
141
+ schema:
142
+ type: array
143
+ items:
144
+ type: object
145
+ required:
146
+ - _id
147
+ - name
148
+ - lastModified
149
+ properties:
150
+ _id:
151
+ type: string
152
+ format: objectId
153
+ description: Unique identifier for the resource.
154
+ examples:
155
+ - 6a07738df8b91b72d72903c6
156
+ name:
157
+ type: string
158
+ description: Display name for the resource.
159
+ examples:
160
+ - Transform order payload
161
+ createdAt:
162
+ type: string
163
+ format: date-time
164
+ description: Timestamp when the resource was created.
165
+ examples:
166
+ - '2026-05-15T19:27:09.037Z'
167
+ lastModified:
168
+ type: string
169
+ format: date-time
170
+ description: Timestamp when the resource was last modified.
171
+ examples:
172
+ - '2026-05-15T19:27:10.146Z'
173
+ deletedAt:
174
+ type: string
175
+ format: date-time
176
+ description: Timestamp when the resource was deleted.
177
+ examples:
178
+ - '2026-05-16T01:42:50.767Z'
179
+ additionalProperties: true
180
+ examples:
181
+ scripts:
182
+ summary: Deleted scripts
183
+ value:
184
+ - _id: 6a07738df8b91b72d72903c6
185
+ name: Transform order payload
186
+ sandbox: false
187
+ postResponseHookToProcessOnChildRecord: false
188
+ createdAt: '2026-05-15T19:27:09.037Z'
189
+ lastModified: '2026-05-15T19:27:10.146Z'
190
+ - _id: 6a0fc53d5f269e647c8c0df2
191
+ name: Parse CSV line items
192
+ sandbox: false
193
+ postResponseHookToProcessOnChildRecord: false
194
+ createdAt: '2026-05-22T02:53:49.356Z'
195
+ lastModified: '2026-05-22T03:10:28.669Z'
196
+ lookupcaches:
197
+ summary: Deleted lookup caches
198
+ value:
199
+ - _id: 6a07cb9a2334574c8c54bcb6
200
+ name: SKU cross-reference cache
201
+ includeDataInTemplatesAndCloning: false
202
+ size: 0
203
+ sizeInMB: 0 MB
204
+ createdAt: '2026-05-16T01:42:50.081Z'
205
+ lastModified: '2026-05-16T01:42:50.806Z'
206
+ deletedAt: '2026-05-16T01:42:50.767Z'
207
+ '204':
208
+ description: No deleted resources of this type (no body returned).
209
+ '401':
210
+ $ref: '#/components/responses/401-unauthorized'
211
+ '403':
212
+ description: The resource type is not supported by the recycle bin.
213
+ content:
214
+ application/json:
215
+ schema:
216
+ $ref: '#/components/schemas/Error'
217
+ example:
218
+ errors:
219
+ - code: invalid_arguments
220
+ message: Recycle Bin operations are not supported for the given model at this time
221
+ /v1/recycleBinTTL/{_resourceType}/{_id}:
222
+ get:
223
+ x-internal: false
224
+ operationId: getRecycleBinResource
225
+ tags:
226
+ - Recycle Bin
227
+ summary: Get a deleted resource
228
+ description: |-
229
+ Returns the full document of a specific deleted resource from
230
+ the recycle bin. May include fields that the list endpoints omit
231
+ (e.g. `content` on scripts, `queues` on connections). Not supported
232
+ for `storageitems` — deleted storage item documents are available
233
+ only from the list endpoints.
234
+ parameters:
235
+ - $ref: '#/components/parameters/ResourceType'
236
+ - name: _id
237
+ in: path
238
+ required: true
239
+ schema:
240
+ type: string
241
+ format: objectId
242
+ description: Identifies which deleted resource to retrieve.
243
+ example: 6a024e629a0943889001f33a
244
+ responses:
245
+ '200':
246
+ description: The deleted resource document.
247
+ content:
248
+ application/json:
249
+ schema:
250
+ type: object
251
+ required:
252
+ - _id
253
+ - name
254
+ - lastModified
255
+ properties:
256
+ _id:
257
+ type: string
258
+ format: objectId
259
+ description: Unique identifier for the resource.
260
+ example: 6a024e629a0943889001f33a
261
+ name:
262
+ type: string
263
+ description: Display name for the resource.
264
+ examples:
265
+ - Parse AI agent final_output JSON
266
+ createdAt:
267
+ type: string
268
+ format: date-time
269
+ description: Timestamp when the resource was created.
270
+ examples:
271
+ - '2026-05-11T21:47:14.145Z'
272
+ lastModified:
273
+ type: string
274
+ format: date-time
275
+ description: Timestamp when the resource was last modified.
276
+ examples:
277
+ - '2026-05-11T22:27:53.062Z'
278
+ deletedAt:
279
+ type: string
280
+ format: date-time
281
+ description: Timestamp when the resource was deleted.
282
+ examples:
283
+ - '2026-05-16T01:42:50.767Z'
284
+ additionalProperties: true
285
+ examples:
286
+ script:
287
+ summary: Deleted script
288
+ value:
289
+ _id: 6a024e629a0943889001f33a
290
+ name: Transform order payload
291
+ sandbox: false
292
+ postResponseHookToProcessOnChildRecord: false
293
+ content: |-
294
+ function preSavePage({ data }) {
295
+ return data;
296
+ }
297
+ createdAt: '2026-05-11T21:47:14.145Z'
298
+ lastModified: '2026-05-11T22:27:53.062Z'
299
+ connection:
300
+ summary: Deleted connection
301
+ value:
302
+ _id: 6a074dce9dc296c4ef80c547
303
+ name: Shopify Production
304
+ type: http
305
+ http:
306
+ formType: http
307
+ mediaType: json
308
+ baseURI: https://httpbin.org
309
+ concurrencyLevel: 25
310
+ createdAt: '2026-05-15T16:46:06.754Z'
311
+ lastModified: '2026-05-15T16:53:12.492Z'
312
+ lookupcache:
313
+ summary: Deleted lookup cache
314
+ value:
315
+ _id: 6a07cb9a2334574c8c54bcb6
316
+ name: SKU cross-reference cache
317
+ includeDataInTemplatesAndCloning: false
318
+ size: 0
319
+ sizeInMB: 0 MB
320
+ createdAt: '2026-05-16T01:42:50.081Z'
321
+ lastModified: '2026-05-16T01:42:50.806Z'
322
+ deletedAt: '2026-05-16T01:42:50.767Z'
323
+ '400':
324
+ $ref: '#/components/responses/400-bad-request'
325
+ '401':
326
+ $ref: '#/components/responses/401-unauthorized'
327
+ '403':
328
+ description: The resource type is not supported by the recycle bin.
329
+ content:
330
+ application/json:
331
+ schema:
332
+ $ref: '#/components/schemas/Error'
333
+ example:
334
+ errors:
335
+ - code: invalid_arguments
336
+ message: Recycle Bin operations are not supported for the given model at this time
337
+ '404':
338
+ $ref: '#/components/responses/404-not-found'
339
+ '501':
340
+ description: |-
341
+ Returned when `_resourceType` is `storageitems`, regardless of
342
+ `_id` — storage items cannot be fetched individually from the
343
+ recycle bin.
344
+ content:
345
+ application/json:
346
+ schema:
347
+ $ref: '#/components/schemas/Error'
348
+ example:
349
+ errors:
350
+ - code: storage_recyclebin_op_unsupported
351
+ message: Recycle-bin operation "getOne" is not supported for storage items.
352
+ post:
353
+ x-internal: false
354
+ operationId: restoreRecycleBinResource
355
+ tags:
356
+ - Recycle Bin
357
+ summary: Restore a deleted resource
358
+ description: |-
359
+ Restores a single resource from the recycle bin back to the
360
+ account's active resources. Any request body is ignored.
361
+
362
+ Standalone restore is blocked if a child resource is still in the
363
+ recycle bin. To restore a resource along with all of its dependents
364
+ (child flows, exports, imports, etc.), use the cascade-restore
365
+ endpoint instead.
366
+ parameters:
367
+ - $ref: '#/components/parameters/ResourceType'
368
+ - name: _id
369
+ in: path
370
+ required: true
371
+ schema:
372
+ type: string
373
+ format: objectId
374
+ description: Identifies which deleted resource to restore.
375
+ example: 6a024e629a0943889001f33a
376
+ responses:
377
+ '204':
378
+ description: Resource restored successfully (no body returned).
379
+ '400':
380
+ $ref: '#/components/responses/400-bad-request'
381
+ '401':
382
+ $ref: '#/components/responses/401-unauthorized'
383
+ '403':
384
+ description: |-
385
+ The resource type is not supported by the recycle bin. Also
386
+ returned for `storageitems` — storage items cannot be restored
387
+ through this endpoint.
388
+ content:
389
+ application/json:
390
+ schema:
391
+ $ref: '#/components/schemas/Error'
392
+ example:
393
+ errors:
394
+ - code: invalid_arguments
395
+ message: Recycle Bin operations are not supported for the given model at this time
396
+ '404':
397
+ $ref: '#/components/responses/404-not-found'
398
+ '422':
399
+ description: |-
400
+ Resource has dependents still in the recycle bin. Restore the
401
+ dependents first, or use cascade restore.
402
+ content:
403
+ application/json:
404
+ schema:
405
+ $ref: '#/components/schemas/Error'
406
+ example:
407
+ errors:
408
+ - code: descendants_not_restored
409
+ message: flow 60a2c4e6f321d800129a1a3c must be restored before you can restore integration 5f8b3c2e1a2b3c4d5e6f7a8b
410
+ delete:
411
+ x-internal: false
412
+ operationId: deleteRecycleBinResource
413
+ tags:
414
+ - Recycle Bin
415
+ summary: Permanently delete a resource
416
+ description: |-
417
+ Permanently purges a resource from the recycle bin. This action
418
+ cannot be undone — the resource data is irrecoverably removed.
419
+ Resources are auto-purged after 30 days.
420
+ parameters:
421
+ - $ref: '#/components/parameters/ResourceType'
422
+ - name: _id
423
+ in: path
424
+ required: true
425
+ schema:
426
+ type: string
427
+ format: objectId
428
+ description: Identifies which deleted resource to purge.
429
+ example: 6a024e629a0943889001f33a
430
+ responses:
431
+ '204':
432
+ description: Resource permanently deleted (no body returned).
433
+ '400':
434
+ $ref: '#/components/responses/400-bad-request'
435
+ '401':
436
+ $ref: '#/components/responses/401-unauthorized'
437
+ '403':
438
+ description: |-
439
+ The resource type is not supported by the recycle bin. Also
440
+ returned for `storageitems` — storage items cannot be purged
441
+ through this endpoint.
442
+ content:
443
+ application/json:
444
+ schema:
445
+ $ref: '#/components/schemas/Error'
446
+ example:
447
+ errors:
448
+ - code: invalid_arguments
449
+ message: Recycle Bin operations are not supported for the given model at this time
450
+ '404':
451
+ $ref: '#/components/responses/404-not-found'
452
+ /v1/recycleBinTTL/{resourceType}/{_id}/doCascadeRestore:
453
+ post:
454
+ x-internal: false
455
+ operationId: cascadeRestoreRecycleBinResource
456
+ tags:
457
+ - Recycle Bin
458
+ summary: Cascade-restore a deleted resource
459
+ description: |-
460
+ Restores a resource from the recycle bin along with all of its
461
+ dependent resources (child flows, exports, imports, connections,
462
+ scripts, etc.). Any request body is ignored. Prefer this over
463
+ standalone restore when restoring integrations or flows.
464
+
465
+ This path uses `resourceType` (no leading underscore), unlike
466
+ the other recycle bin paths which use `_resourceType`.
467
+ parameters:
468
+ - $ref: '#/components/parameters/CascadeResourceType'
469
+ - name: _id
470
+ in: path
471
+ required: true
472
+ schema:
473
+ type: string
474
+ format: objectId
475
+ description: Identifies which deleted resource to cascade-restore.
476
+ example: 6a074dce9dc296c4ef80c547
477
+ responses:
478
+ '204':
479
+ description: Resource and all dependents restored successfully (no body returned).
480
+ '401':
481
+ $ref: '#/components/responses/401-unauthorized'
482
+ '403':
483
+ description: The resource type does not support cascade restore.
484
+ content:
485
+ application/json:
486
+ schema:
487
+ $ref: '#/components/schemas/Error'
488
+ example:
489
+ errors:
490
+ - code: invalid_arguments
491
+ message: Recycle Bin cascade restore is not supported for the given model at this time.
492
+ '404':
493
+ $ref: '#/components/responses/404-not-found'
494
+ components:
495
+ securitySchemes:
496
+ bearerAuth:
497
+ type: http
498
+ scheme: bearer
499
+ schemas:
500
+ RecycleBin:
501
+ type: object
502
+ required:
503
+ - model
504
+ - doc
505
+ properties:
506
+ model:
507
+ type: string
508
+ description: Identifies the resource type of the wrapped document.
509
+ examples:
510
+ - Script
511
+ enum:
512
+ - Connection
513
+ - Flow
514
+ - Export
515
+ - Import
516
+ - Script
517
+ - Integration
518
+ - Stack
519
+ - FileDefinition
520
+ - AsyncHelper
521
+ - LookupCache
522
+ - Tool
523
+ - Api
524
+ - McpServer
525
+ - EDIProfile
526
+ - Agent
527
+ - StorageItem
528
+ x-enumDescriptions:
529
+ Connection: An authenticated link to an external application or service.
530
+ Flow: A data pipeline that moves records between systems.
531
+ Export: The source step in a flow that reads data from an external system.
532
+ Import: The destination step in a flow that writes data to an external system.
533
+ Script: A custom JavaScript hook that transforms data during flow execution.
534
+ Integration: A workspace that groups related flows and resources.
535
+ Stack: An execution environment for custom extension code (hooks, wrappers).
536
+ FileDefinition: A parsing/generation template for structured file formats (EDI, CSV, fixed-width).
537
+ AsyncHelper: A configuration for polling long-running asynchronous operations to completion.
538
+ LookupCache: An in-memory key-value store used for fast lookups during flow execution.
539
+ Tool: A reusable building block encapsulating lookups, imports, or transforms.
540
+ Api: A custom HTTP endpoint that lets external systems push or query data through Celigo.
541
+ McpServer: An MCP server endpoint exposing tools and APIs to external AI agents.
542
+ EDIProfile: A trading partner profile for EDI document exchange (X12/EDIFACT).
543
+ Agent: An on-premise agent that proxies API traffic to systems behind a firewall.
544
+ StorageItem: A file or folder stored in Celigo Storage.
545
+ doc:
546
+ type: object
547
+ required:
548
+ - _id
549
+ - name
550
+ - lastModified
551
+ description: |-
552
+ The resource document as it existed at deletion time.
553
+ Fields vary by resource type; common fields are listed below.
554
+ properties:
555
+ _id:
556
+ type: string
557
+ format: objectId
558
+ description: Unique identifier for the resource.
559
+ examples:
560
+ - 6a07738df8b91b72d72903c6
561
+ name:
562
+ type: string
563
+ description: Display name for the resource.
564
+ examples:
565
+ - Transform order payload
566
+ createdAt:
567
+ type: string
568
+ format: date-time
569
+ description: Timestamp when the resource was created.
570
+ examples:
571
+ - '2026-05-15T19:27:09.037Z'
572
+ lastModified:
573
+ type: string
574
+ format: date-time
575
+ description: Timestamp when the resource was last modified.
576
+ examples:
577
+ - '2026-05-15T19:27:10.146Z'
578
+ deletedAt:
579
+ type: string
580
+ format: date-time
581
+ description: Timestamp when the resource was deleted.
582
+ examples:
583
+ - '2026-05-16T01:42:50.767Z'
584
+ additionalProperties: true
585
+ Error:
586
+ type: object
587
+ description: Standard error response envelope returned by integrator.io APIs.
588
+ properties:
589
+ errors:
590
+ type: array
591
+ description: List of errors that occurred while processing the request.
592
+ items:
593
+ type: object
594
+ properties:
595
+ code:
596
+ oneOf:
597
+ - type: string
598
+ - type: integer
599
+ description: |-
600
+ Machine-readable error code. Usually a string like
601
+ `invalid_ref`, `missing_required_field`, or `unauthorized`;
602
+ may be an **integer** when the error mirrors an upstream HTTP
603
+ status (e.g. `500`) — most commonly returned by connection-ping
604
+ and adaptor-proxy responses.
605
+ message:
606
+ type: string
607
+ description: Human-readable description of the error.
608
+ field:
609
+ type: string
610
+ description: |-
611
+ Optional pointer to the document field that caused the error.
612
+ Used by structural validation errors (`missing_required_field`,
613
+ `invalid_ref`) to indicate which field is at fault
614
+ (e.g. `_id`, `type`, `http.baseURI`).
615
+ source:
616
+ type: string
617
+ description: |-
618
+ Optional origin layer for the error — e.g. `application` when
619
+ the error came from the remote system the adaptor called,
620
+ `connector` when the adaptor itself rejected the request.
621
+ required:
622
+ - message
623
+ required:
624
+ - errors
625
+ responses:
626
+ 401-unauthorized:
627
+ description: |-
628
+ Unauthorized. The request lacks a valid bearer token, or the provided token
629
+ failed to authenticate.
630
+
631
+ Note: the 401 response is produced by the auth middleware **before** the
632
+ request reaches the endpoint handler, so it does **not** follow the
633
+ standard `{errors: [...]}` envelope. Instead the body is a bare
634
+ `{message: string}` object with no `code`, no `errors` array. Callers
635
+ handling 401s should key off the HTTP status and the `message` string,
636
+ not try to destructure an `errors[]`.
637
+ content:
638
+ application/json:
639
+ schema:
640
+ type: object
641
+ properties:
642
+ message:
643
+ type: string
644
+ description: |-
645
+ Human-readable description of the auth failure. Known values:
646
+ - `"Unauthorized"` — no `Authorization` header on the request.
647
+ - `"Bearer Authentication Failed"` — header present but token
648
+ is invalid, revoked, or expired.
649
+ required:
650
+ - message
651
+ examples:
652
+ missing_token:
653
+ summary: No Authorization header sent
654
+ value:
655
+ message: Unauthorized
656
+ invalid_token:
657
+ summary: Bearer token invalid or revoked
658
+ value:
659
+ message: Bearer Authentication Failed
660
+ 400-bad-request:
661
+ description: |
662
+ Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
663
+ content:
664
+ application/json:
665
+ schema:
666
+ $ref: '#/components/schemas/Error'
667
+ examples:
668
+ default:
669
+ value:
670
+ errors:
671
+ - code: invalid_request
672
+ message: The request body failed validation.
673
+ 404-not-found:
674
+ description: |
675
+ Not found. The requested resource does not exist or is not visible to the caller.
676
+ content:
677
+ application/json:
678
+ schema:
679
+ $ref: '#/components/schemas/Error'
680
+ examples:
681
+ default:
682
+ value:
683
+ errors:
684
+ - code: not_found
685
+ message: The requested resource was not found.
686
+ parameters:
687
+ ResourceType:
688
+ name: _resourceType
689
+ in: path
690
+ required: true
691
+ description: Resource type to operate on.
692
+ schema:
693
+ type: string
694
+ enum:
695
+ - connections
696
+ - flows
697
+ - exports
698
+ - imports
699
+ - scripts
700
+ - integrations
701
+ - stacks
702
+ - filedefinitions
703
+ - asynchelpers
704
+ - lookupcaches
705
+ - tools
706
+ - apis
707
+ - mcpservers
708
+ - ediprofiles
709
+ - agents
710
+ - storageitems
711
+ x-enumDescriptions:
712
+ connections: Authenticated links to external applications.
713
+ flows: Data pipelines that move records between systems.
714
+ exports: Source steps that read data from external systems.
715
+ imports: Destination steps that write data to external systems.
716
+ scripts: Custom JavaScript hooks for data transformation.
717
+ integrations: Workspaces grouping related flows and resources.
718
+ stacks: Execution environments for custom extension code.
719
+ filedefinitions: Parsing/generation templates for structured files.
720
+ asynchelpers: Configurations for polling long-running async operations.
721
+ lookupcaches: In-memory key-value stores for flow lookups.
722
+ tools: Reusable building blocks for lookups, imports, or transforms.
723
+ apis: Custom HTTP endpoints for external data push/query.
724
+ mcpservers: MCP server endpoints for external AI agents.
725
+ ediprofiles: Trading partner profiles for EDI document exchange.
726
+ agents: On-premise agents proxying traffic behind firewalls.
727
+ storageitems: Files and folders deleted from Celigo Storage (list-only).
728
+ CascadeResourceType:
729
+ name: resourceType
730
+ in: path
731
+ required: true
732
+ description: Resource type to cascade-restore. Uses `resourceType` (no leading underscore), unlike the other recycle bin paths.
733
+ schema:
734
+ type: string
735
+ enum:
736
+ - connections
737
+ - flows
738
+ - exports
739
+ - imports
740
+ - scripts
741
+ - integrations
742
+ - stacks
743
+ - filedefinitions
744
+ - asynchelpers
745
+ - lookupcaches
746
+ - tools
747
+ - apis
748
+ - mcpservers
749
+ - ediprofiles
750
+ - agents
751
+ x-enumDescriptions:
752
+ connections: Connection and its dependents.
753
+ flows: Flow, its exports, imports, scripts, and connections.
754
+ exports: Export and its dependents.
755
+ imports: Import and its dependents.
756
+ scripts: Script and its dependents.
757
+ integrations: Integration workspace and all child resources.
758
+ stacks: Stack and its dependents.
759
+ filedefinitions: File definition and its dependents.
760
+ asynchelpers: Async helper and its dependents.
761
+ lookupcaches: Lookup cache and its dependents.
762
+ tools: Tool and its dependents.
763
+ apis: Custom API endpoint and its dependents.
764
+ mcpservers: MCP server and its dependents.
765
+ ediprofiles: EDI profile and its dependents.
766
+ agents: On-premise agent and its dependents.
767
+ x-enable-proxy: true
768
+ x-internal: false