> For the complete documentation index, see [llms.txt](https://developer.celigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations.md). Agents can also search and read this documentation through its [MCP server](https://developer.celigo.com/~gitbook/mcp).

# Integrations

Integrations are the top-level containers that group flows, connections, exports, imports, and other resources into a logical unit. Each integration appears as a tile on the Celigo Home page.

Two flavors exist:

* **Standard integrations** — user-created containers that group custom flows.
* **Integration App installations** — created from a published connector/template, with install/uninstall steps, settings forms, editions, and optional child integrations. `_connectorId` is what identifies one. The wizard fields (`mode`, `install`, `installSteps`) also appear on a standard integration created by the UI's clone-and-install, so they do not by themselves mean Integration App.

Integrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot, pull, revert) promote changes between an integration and its lifecycle-linked clones, and carry every resource the integration contains. Only the UI's clone-and-install links a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration App installation is the exception: every route that reads its revisions answers 400 `not_supported`.

### Integration schema

## The Integration object

````json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"components":{"schemas":{"Integration":{"type":"object","description":"Integration object as returned by the API.","required":["_id","name","createdAt","lastModified","install","installSteps","uninstallSteps","changeEditionSteps","flowGroupings","apiGroupings","_registeredConnectionIds"],"allOf":[{"$ref":"#/components/schemas/IntegrationBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_registeredConnectionIds":{"type":"array","readOnly":true,"description":"Connections registered to this integration. Managed by the platform when users\nregister connections through the UI or the integration's registerConnection\noperation; client-sent values are ignored (PUT-verified).","items":{"type":"string","format":"objectId"}},"_registeredLookupCacheIds":{"type":"array","readOnly":true,"description":"Lookup caches registered to this integration, managed by the platform.","items":{"type":"string","format":"objectId"}},"_registeredTopicIds":{"type":"array","readOnly":true,"description":"Topics registered to this integration, so its flows can subscribe to or publish on them.\nMaintained by the platform: added through the integration's topic `register` operations,\n`POST /v1/topics` with `__integrationIds`, or automatically when a flow in the integration\nis saved with a step bound to a topic; removed by the `DELETE …/register` operation or when\nthe topic is deleted. Client-sent values are ignored (PUT-verified). With no topic\nregistered it is an empty array, or absent on older integrations.","items":{"type":"string","format":"objectId"}},"_registeredKnowledgeBaseIds":{"type":"array","readOnly":true,"description":"Knowledge bases registered to this integration. Maintained by the platform: a\nvalue sent on a create or update is ignored. With none registered it is an empty\narray, or absent on an integration last saved before the field existed.","items":{"type":"string","format":"objectId"}}}}]},"IntegrationBase":{"type":"object","description":"Writable integration fields shared by the request and response schemas.","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"Human-readable name for the integration.\n\nUse a short, descriptive label that helps users identify the integration in the UI."},"description":{"type":["string","null"],"maxLength":5120,"description":"Optional description of the integration's purpose and behavior.\n\nHelpful for documentation, onboarding, and clarifying what the integration does."},"readme":{"type":["string","null"],"maxLength":51200,"description":"Long-form README content for the integration (typically Markdown).\n\nUse this to provide setup instructions, prerequisites, and operational notes."},"_connectorId":{"type":"string","format":"objectId","description":"Integration App (connector) identifier when this integration is based on an installed Integration App.\nAn integration carrying it is a tile (or a child of one) and is uninstalled from its Admin →\nUninstall page, never deleted: a DELETE answers 403 `delete_not_allowed`.\n\nIf you are not working with an Integration App installation, omit this field."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template this integration was installed from. Absent on integrations built from scratch and on\nclones. It does not make the integration an Integration App — `_connectorId` does.\n\nOmit unless you are creating/updating an integration from a template."},"install":{"type":"array","description":"Install \"cards\" an Integration App installer shows during installation — UI workflow metadata, not runtime\nconfiguration. The platform also writes it (empty) on a plain custom integration created by the UI's\nclone-and-install, so its presence does not indicate an Integration App.\n\nUnless you are explicitly modeling an install experience, omit this field.","items":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","description":"Display name for this install card."},"description":{"type":"string","description":"Help text shown to the user for this install card."},"imageURL":{"type":"string","description":"Optional image URL to display for this install card."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created/registered by this card (if applicable)."},"installURL":{"type":"string","description":"URL to open during install (if the card is URL-based)."},"completed":{"type":["boolean","null"],"description":"When true, this card has been completed. The server also returns `null` for cards whose completion state was never set."},"installerFunction":{"type":"string","description":"Optional function name used by the platform to run install logic for this card."},"uninstallerFunction":{"type":"string","description":"Optional function name used by the platform to run uninstall logic for this card."},"options":{"type":"object","description":"Free-form options passed to the installer/uninstaller logic.","additionalProperties":true},"sourceConnection":{"type":"object","description":"Source connection metadata used to prefill or drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this card uses a template ZIP artifact."},"_stackId":{"type":"string","format":"objectId","description":"Stack identifier used by install logic (if applicable)."},"isClone":{"type":"boolean","description":"When true, this card is part of a clone workflow."},"form":{"type":"object","description":"Inline form definition used by this card (if applicable).","additionalProperties":true}}}},"mode":{"type":"string","description":"Where the integration stands in its install or uninstall wizard. The platform writes it on a plain custom\nintegration created by the UI's clone-and-install as much as on an Integration App, and leaves it set after\nthe wizard completes, so it does not indicate an Integration App (`_connectorId` does).\n\nOmit when creating an integration directly.","enum":["install","settings","uninstall"]},"settings":{"description":"Integration App settings object for this integration. An Integration App can also keep\nits settings fields here, each with its current value: `settings.general` and\n`settings.sections[]` (tabs, then nested `sections[]`, then `fields[]`; a flow entry's own\nfields sit in its `settings[]`). When `settings.supportsMultiStore` is true, each\n`settings.sections[]` entry is a store and its own `sections[]` are the tabs.\nA write that changes it to a non-empty string, a number, or a boolean fails with 422\n`invalid_field_type` (\"Invalid value provided for settings. Expected an object.\"); an\nobject, an array, an empty string, and `null` are accepted.","allOf":[{"description":"Integration App settings object for this integration.\n\nThese values are typically collected via `settingsForm` and then stored here. When generating values,\nprefer setting only the fields required by the form/workflow and omit unknown keys."},{"$ref":"#/components/schemas/Settings"}]},"version":{"type":["string","null"],"description":"Version of the Integration App (or template) currently installed in this integration.\nFor Integration Apps the connector's update workflow sets it; omit unless you are\nexplicitly controlling versions."},"tag":{"type":["string","null"],"description":"Legacy field for distinguishing multiple instances of the same Integration App within a single Celigo environment.\n\nOnly set this when a customer is running multiple installations of the same Integration App. Otherwise, omit this field."},"updateInProgress":{"type":"boolean","description":"When true, an Integration App update workflow is currently running. Settable via the\nAPI, but normally managed by the platform's update workflow."},"celigoAgentAutoRunMode":{"type":"boolean","description":"When true, the Celigo Agent (Ora) saves its updates to this integration, and to an export\nor import that is a step of one of its flows, without a manual approval step.\n\nOmit unless you are explicitly configuring Celigo Agent behavior for this integration."},"resolvedAt":{"type":"string","format":"date-time","description":"Timestamp indicating when the most recent install/update workflow was resolved/completed.\n\nTypically system-managed; omit in normal create/update payloads."},"settingsForm":{"description":"Settings form definition for the integration.","allOf":[{"description":"Settings form definition for the integration.\n\nThis controls the UI fields shown to users to collect `settings`.\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/Form"}]},"preSave":{"description":"Pre-save hook configuration used to validate/transform settings before saving.","allOf":[{"description":"Pre-save hook configuration used to validate/transform settings before saving.\n\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/PreSave"}]},"update":{"type":"object","description":"Script reference used by the platform to perform integration update logic (e.g., migration between versions).\n\nOnly include when the update workflow explicitly requires it.","properties":{"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the update implementation."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for the update script (if applicable)."},"function":{"type":"string","description":"Function name within the script to invoke for updates."}}},"installSteps":{"type":"array","description":"Ordered steps of the install wizard that created this integration, each marked completed as it finishes.\nWritten by the UI's clone-and-install of a plain custom integration (a `template_zip` step with `isClone`\ntrue) as well as by Integration App installers, and kept after completion — so a populated list does not\nindicate an Integration App.\n\nOmit unless you are building an installer.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Options the installer logic reads for this step. Free-form, except\nthat the MCP-server template install writes `mcpServerTemplate` on\nits `template_zip` step.","additionalProperties":true,"properties":{"mcpServerTemplate":{"type":"object","additionalProperties":true,"description":"Marks the `template_zip` step of the Integration that installing an\nMCP-server template creates when the template packs dependencies\n(`POST /v1/mcpservers/template`, or a Marketplace MCP listing); the\nserver itself is created by this step's final save, not before.\nWritten with the template's identity and connection shapes when the\nIntegration is created, then extended with the step's checkpoint as\nthe step runs, so a retry of a failed step reuses what an earlier\nattempt already created instead of creating it again. Completing the\nstep creates the MCP server, disabled, and copies the template's\nresource files into this Integration's folder in Celigo Storage.","properties":{"sourceIntegrationId":{"type":"string","format":"objectId","description":"Integration document the template's resources belong to — the\n`integration.json` in the template ZIP. The Integration being\ninstalled is cloned from it (its `_sourceId`); it is not an\nIntegration in this account."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template the install came from. Absent when the ZIP was uploaded directly."},"connectionShapes":{"type":"array","description":"One entry per connection the template packs, read when the matching\n`connection` step binds or creates a connection: a connection the step\ncreates receives the entry's `endUserProvidedFields`; an existing\nconnection is updated only when the entry requires end-user\ncredentials and the connection has no list of its own yet. When the\nentry requires end-user credentials, an existing connection of\nanother `type` is refused.","items":{"type":"object","properties":{"_id":{"type":"string","format":"objectId","description":"The connection's id inside the template, matched against the `connection` step's `sourceConnection._id`."},"type":{"type":"string","description":"Connection type the step's connection must have when the entry requires end-user credentials."},"endUserProvidedFields":{"type":"array","items":{"type":"string"},"description":"Dot-paths of the connection's fields each end user supplies on their own copy, as the template's publisher set them."},"requiresEndUserCredentials":{"type":"boolean","description":"When true, the template's server requires every end user to supply their own credentials on this connection."}}}},"mcpServerId":{"type":"string","format":"objectId","description":"Id reserved for the MCP server once the template's tools are created,\nbefore any resource file is uploaded. While the step is incomplete it\nis only a reservation — no server document exists under it until the\nstep's final save; a retry returns the saved server without uploading\nagain only when an earlier attempt already saved a server for this id."},"toolIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Tool id inside the template → id of the Tool the install created from it, written with `mcpServerId`; a retry reuses the created tools."},"apiIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"API id inside the template → id of the API the install created from it, written with `toolIdMap`."},"resourceFileMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Resource file entry in the template ZIP (`resources/<key>`) → id of its\ncopy in this Integration's Celigo Storage folder. Written only after\nevery copied file is active, so a retry that finds the map skips the\nupload; cleared, together with `createdFolderIds` and\n`createdFileIds`, before a failed attempt's files are removed."},"createdFolderIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage folders the install created under this Integration's folder for the resource files' relative paths — the current checkpoint, cleared with `resourceFileMap` before a failed attempt's rollback and rewritten by the next attempt."},"createdFileIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage files the install has copied — the current checkpoint, cleared and rewritten the same way as `createdFolderIds`; the completed server serves them as its resources."}}}}}}}},"uninstallSteps":{"type":"array","description":"Ordered list of lifecycle steps used by the Integration App uninstaller.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"changeEditionSteps":{"type":"array","description":"Ordered list of steps used when changing the integration's edition/license.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"pendingLicense":{"type":["object","null"],"description":"Pending license/edition change information for the integration.\n\nThe server returns `null` when no license/edition change is pending (rather than omitting the field).\nOnly include when a license/edition change workflow explicitly requires it.","properties":{"opts":{"type":"object","description":"Free-form license options/payload.","additionalProperties":true},"_editionId":{"type":["string","null"],"format":"objectId","description":"Target edition ID for the pending license change, or `null` when cleared."}}},"_parentId":{"type":"string","format":"objectId","description":"Parent integration ID when this integration was created as a child of another integration.\nInvalid ids are silently dropped by the server. Omit unless creating/updating child integrations."},"childDisplayName":{"type":"string","description":"Display name used for a child integration created during installation.\n\nOmit unless creating/updating child integrations."},"initChild":{"type":"object","description":"Script reference used to initialize a child integration during installation.\n\nOnly include when the child initialization workflow explicitly requires it.","properties":{"function":{"type":"string","description":"Function name to invoke to initialize the child integration."},"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the initChild function."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for initChild (if applicable)."}}},"flowGroupings":{"type":"array","description":"UI grouping configuration that groups an integration's flows into named\nsections. Works on ANY integration — this is NOT an Integration-App-only\nfeature; a plain integration can define flow groupings too. Create groupings\nhere, then assign flows to them via `PUT /v1/flows/updateFlowGrouping`. A\ngrouping that still has member flows survives being removed from this array —\nungroup its flows first.\n\nOmit unless you are explicitly configuring flow grouping behavior.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the flow grouping section."},"settings":{"type":"object","description":"Group-level settings for flows in this group. At runtime, flows in the\ngroup read these values under the fixed scope key `flowGrouping` — e.g.\nthe Handlebars expression `{{{settings.flowGrouping.salesOrganization}}}`\nor the Mapper 2.0 envelope path `$.settings.flowGrouping.salesOrganization`.","additionalProperties":true},"settingsForm":{"description":"Form definition for this flow grouping's settings UI.","allOf":[{"description":"Form definition for this flow grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"apiGroupings":{"type":"array","description":"UI grouping configuration for APIs within the integration.\n\nUsed to group APIs into named sections with their own settings/settingsForm.\nWorks identically to `flowGroupings` but for API resources. Create groupings here,\nthen assign APIs to them via `PUT /v1/apis/updateApiGrouping`. A grouping that still\nhas member APIs survives being removed from this array — ungroup its APIs first.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the API grouping section."},"settings":{"type":"object","description":"Group-level settings for APIs in this group.","additionalProperties":true},"settingsForm":{"description":"Form definition for this API grouping's settings UI.","allOf":[{"description":"Form definition for this API grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"netSuiteDistributedAdaptor":{"type":"object","description":"NetSuite distributed adaptor metadata (platform feature).\n\nOnly include if you are explicitly configuring distributed NetSuite adaptor behavior.","properties":{"accountId":{"type":"string","description":"NetSuite account identifier."},"environment":{"type":"string","description":"NetSuite environment.","enum":["production","beta","sandbox"]},"integrationId":{"type":"string","description":"Identifier used by the distributed adaptor for this integration."}}},"_sourceId":{"type":"string","format":"objectId","description":"Integration this one was cloned from. Set on every clone, standalone copies included, so\nit doesn't by itself mean the two are lifecycle-linked. Omit in create and update payloads."},"sampleIntegration":{"type":"boolean","description":"Indicates this integration is a sample/demo integration (used for templates/examples).\n\nTypically system-managed."},"syncs":{"type":"boolean","description":"When true, the integration is a container for Celigo Sync resources — set it on\n`POST /v1/integrations` before creating syncs in it (`POST /v1/syncs` into an\nintegration without it fails with `422 integration_not_for_sync`). Fixed at creation:\n`PUT /v1/integrations/{_id}` ignores the field in both directions. Keep flows out of\nit: a flow create isn't refused there. While the integration holds a sync, deleting\nit fails with 422 \"sync <id> must be deleted before you can delete integration <id>\"."},"aliases":{"type":"array","description":"Named aliases that map to specific resources within the integration.","items":{"type":"object","properties":{"alias":{"type":"string","description":"Alias name for the resource reference."},"description":{"type":"string","description":"Description of what this alias represents."},"_exportId":{"type":"string","format":"objectId","description":"Export referenced by this alias."},"_importId":{"type":"string","format":"objectId","description":"Import referenced by this alias."},"_flowId":{"type":"string","format":"objectId","description":"Flow referenced by this alias."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced by this alias."},"_lookupCacheId":{"type":"string","format":"objectId","description":"Lookup cache referenced by this alias. Added automatically when the\ncache is registered to the integration (the alias is a slug of the\ncache name), and must be removed before the cache can be deregistered."}}}},"iLMIgnore":{"type":"object","description":"Fields that integration lifecycle pulls and reverts leave untouched, keyed by resource type\n(`integration`, `flow`, `export`, ...) with an array of field paths for each. Change it with\n`PATCH /v1/integrations/{_id}` on `/iLMIgnore` and read the saved value back here; a field\npath the resource type does not allow is rejected with 422 (\"Invalid path expression\n`<path>` for <type>. Path expression not supported\").","additionalProperties":true}}},"Settings":{"type":"object","description":"Configuration settings that can be accessed by hooks, filters, mappings and handlebars templates at runtime.\n\nIt enables customization of the resource's logic, allowing hooks, mappings, filters, and\nhandlebars to access and apply the settings at runtime.\n\n**Usage**\n\nThe settings object can store arbitrary JSON data that you want to save with the resource.\nWhile it's often populated through a form defined in the `settingsForm` field, you can also:\n\n- Directly provide JSON settings without using a form\n- Store configuration values used by hooks and templates\n- Create resource-specific constants and parameters\n- Maintain lookup tables or mapping structures\n- Define conditional logic parameters\n\n**Accessibility**\n\nSettings are available in:\n- All handlebars fields for building dynamic payloads\n- Field mapping expressions\n- JavaScript hooks via the options object\n- Filters and transformations\n\nAt runtime, the settings objects in the step's execution chain are gathered into a\nsingle `settings` context keyed by fixed scope keys. Flow runs populate the full\nchain: `settings.integration.*`, `settings.flowGrouping.*` (the flow group the flow\nbelongs to), `settings.flow.*`, `settings.connection.*`, `settings.iClient.*`, and\nthe running step's own scope — `settings.export.*` on exports/lookups,\n`settings.import.*` on imports (the key matches the step type). Steps executing\ninside a My API or a Tool receive only the step's own scope plus\n`settings.connection.*` / `settings.iClient.*`; the integration, flowGrouping, and\nflow scopes resolve empty there. The scope key is literal — resource display names\nand settingsForm section labels are never part of the path. The segments after the\nscope mirror the stored settings JSON key path exactly: a top-level field is\n`settings.<scope>.<fieldId>`, and nested objects add one segment per JSON key\n(e.g. `settings.flowGrouping.Customer.region` when the group's settings JSON nests\n`region` under `Customer`). References without a scope key\n(e.g. `{{settings.myField}}`) resolve to empty strings.\n\n**Best practices**\n\nFor non-technical users, create a custom form instead of editing the JSON directly.\nThis provides a user-friendly interface for updating settings without requiring JSON knowledge.\n","additionalProperties":true},"Form":{"type":"object","description":"Configuration for creating user-friendly settings forms that make it easier for less technical users\nto configure integration resources.\n\n**Settings form builder**\n\nThe Settings Form Builder allows you to create or edit user-friendly fields that prompt for text entry\nor selections that will be returned as settings applied to this resource. Your forms can include any\nfield types that you see elsewhere in integrator.io, such as:\n\n- Text fields\n- Dropdown selections\n- Checkboxes\n- Radio buttons\n- Date pickers\n- Multi-select fields\n- Search fields\n\nForm fields make it much easier for less technical users to work with your integration settings by:\n\n- Providing clear labels and help text\n- Enforcing validation rules\n- Offering pre-defined selection options\n- Grouping related settings logically\n- Supporting conditional visibility\n- Creating a consistent user experience\n","properties":{"form":{"type":"object","description":"Configuration that defines the structure, fields, and behavior of the settings form.\n\nThis object contains the complete definition of the form's layout, fields, validation rules,\nand interactive behaviors. The specific structure depends on the form complexity and can include\nfield definitions, sections, conditional display logic, and default values.\n\nThe form configuration is typically created and managed through the visual Form Builder interface\nrather than edited directly as JSON.\n","properties":{"fieldMap":{"type":"object","description":"A mapping of field identifiers to their configuration objects.\nEach key in this object represents a unique field ID, and the value contains\nall the configuration settings for that specific form field.\n","additionalProperties":{"type":"object","description":"Configuration for an individual form field.\n","properties":{"id":{"type":"string","description":"Unique identifier for this field within the form: layout containers and conditions\nrefer to the field by it. Use the same string as the field's fieldMap key and its `name`.\n"},"name":{"type":"string","description":"Key the field's value is saved under: one top-level key of the resource's `settings`,\nwhich the form also reads the value back from when it opens. Nested objects inside\n`settings` are written to it directly, not through a form field's `name`.\n"},"type":{"type":"string","description":"The type of form control to render for this field.\n","enum":["text","checkbox","radiogroup","relativeuri","editor","keyvalue","select","multiselect","toggle","datetime","date","exportSelect","staticMap"]},"label":{"type":"string","description":"Display label shown next to the field in the form.\n"},"description":{"type":"string","description":"Detailed explanation text that appears below the field, providing more context\nthan the label or helpText.\n"},"helpText":{"type":"string","description":"Explanatory text that appears when hovering over the help icon next to the field.\nUsed to provide additional guidance on how to use the field.\n"},"required":{"type":"boolean","description":"When true, the field must have a value before the form can be submitted. Only the form\nenforces it: an API write of `settings` is stored without the value.\n","default":false},"defaultValue":{"description":"Value the form shows while the resource's `settings` holds no value under the field's\n`name`.\n"},"multiline":{"type":"boolean","description":"For text fields, determines whether the input should be a multi-line text area\ninstead of a single-line input.\n","default":false},"rowsMax":{"type":"integer","description":"For multiline text fields, specifies the maximum number of visible rows.\n"},"inputType":{"type":"string","description":"For text fields, specifies the HTML input type attribute to apply additional\nvalidation or specialized input behavior.\n","enum":["text","number","email","password","tel","url"]},"delimiter":{"type":"string","description":"For text fields, specifies a character to use for splitting the input into an array.\nUsed for collecting multiple values in a single text field.\n"},"mode":{"type":"string","description":"For editor fields, specifies the type of content being edited for syntax highlighting.\n","enum":["json","xml","csv","text"]},"keyName":{"type":"string","description":"For keyvalue and staticMap fields, names the first column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `key`.\n"},"valueName":{"type":"string","description":"For keyvalue and staticMap fields, names the second column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `value`.\n"},"keyLabel":{"type":"string","description":"For staticMap fields, heading of the first column.\n"},"valueLabel":{"type":"string","description":"For staticMap fields, heading of the second column.\n"},"keyOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the first column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"valueOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the second column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"keyResource":{"type":"object","description":"For staticMap fields, fills the first column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is. With\n`keyResource` or `valueResource` set, the form requires both columns in every row\nunless `keyValueRequired` is false.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"valueResource":{"type":"object","description":"For staticMap fields, fills the second column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"keyValueRequired":{"type":"boolean","description":"For staticMap fields with `keyResource` or `valueResource`, when false, saves rows\nthat fill only one column; by default the form drops them.\n","default":true},"resource":{"type":"object","description":"For exportSelect fields, the export whose records become the options. When the form\nopens, the UI previews the export in `virtual` (with `test.limit` 100 unless the export\nsets its own) and lists the preview's `data`: each record needs a `label` and a `value`\n(a string or number serves as both), so shape them with the export's `transform`. A\nsaved export can't be referenced, and an HTTP export that finds no records leaves the\nfield showing an error instead of options.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline: `adaptorType`, its adaptor block, and an optional\n`transform`. `_connectionId` defaults to the connection of the export or import the\nform belongs to; set it on any other resource's form. On an integration's form,\nand on the forms of its flows, it may also be the name of one of the integration's\n`aliases[]`, matched without regard to case: the UI previews the block on the\nroute scoped to the form's resource, where the alias resolves to its connection\n(past the preview's type check, a value that is neither a connection id nor an\nalias in that scope is a 400 `invalid_ref` there). Forms installed from a\ntemplate name connections this way, since the same block runs in every account\nthe template is installed in. The unscoped `POST /v1/exports/preview` knows no\naliases: past the preview's type check, an alias name there is 400 `invalid_ref`.\n","additionalProperties":true}}},"multiselect":{"type":"boolean","description":"For exportSelect fields, when true, the user can choose several options and the value\nis saved as an array.\n","default":false},"supportHandlebars":{"type":"boolean","description":"For exportSelect fields, when true, renders the `resource.virtual` export as a Handlebars\ntemplate before each preview (all but its `transform`, `hooks`, and `filter`). On an\nintegration, flow group, flow, export, or import form, the form's current values are\nunder that form's scope name (`integration`, `flowGrouping`, `flow`, `export`, or\n`import`), beside the saved settings of the scopes above it, with no `settings.`\nprefix; on a connection or iClient form the template has no context. The options then\nload through `refreshOptionsOnChangesTo` or `typeAheadSearch`, or when the user\nrefreshes the field.\n","default":false},"refreshOptionsOnChangesTo":{"type":"array","items":{"type":"string"},"description":"For exportSelect fields with `supportHandlebars`, ids of the fields whose values the\ntemplated export uses: the options load once one of them has a value and reload whenever\none changes.\n"},"typeAheadSearch":{"type":"boolean","description":"For exportSelect fields, when true, re-runs the templated export as the user types, with\nthe typed text as this field's own value; an empty box clears the options, and typed\ntext is accepted as the value.\n","default":false},"showDelete":{"type":"boolean","description":"For keyvalue fields, determines whether to show a delete button for each key-value pair.\n"},"doNotAllowFutureDates":{"type":"boolean","description":"For date and datetime fields, restricts selection to dates not in the future.\n"},"skipTimezoneConversion":{"type":"boolean","description":"For datetime fields, prevents automatic timezone conversion of the date value.\n"},"options":{"type":"array","description":"For fields that present choices (select, multiselect, radiogroup, toggle), defines\nthe available options.\n","items":{"anyOf":[{"title":"Option group","type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"oneOf":[{"title":"String value","type":"string"},{"title":"Label-value pair","type":"object","properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]},"description":"Array of option values/labels to display in the selection control.\n"}}},{"title":"Label-value pair","type":"object","required":["label"],"properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]}},"visibleWhen":{"type":"array","description":"Conditional display rules that determine when this field should be visible.\nIf empty or not provided, the field is always visible.\n","items":{"type":"object","properties":{"field":{"type":"string","description":"The ID of another field whose value controls the visibility of this field. The\nsave doesn't check it: a rule naming an ID that isn't in the form counts as met,\nso the field stays visible.\n"},"is":{"type":"array","items":{"type":["string","boolean","number","null"]},"description":"Array of values - if the referenced field has any of these values,\nthis field will be visible. Values may be strings, booleans (for\ncheckbox/toggle fields), numbers (for numeric inputs), or null.\n"}}}}}}},"layout":{"type":"object","description":"Defines how the form fields are arranged and grouped in the UI.\nThe layout can organize fields into columns, sections, or other visual groupings.\n","properties":{"type":{"type":"string","description":"The type of layout to use for the form.\n","enum":["column","collapse","box","indent","tabWithoutSave","verticalTabWithoutSave"]},"fields":{"type":"array","items":{"type":"string"},"description":"Field IDs shown above the containers, without a heading.\n"},"containers":{"type":"array","description":"Array of container objects that group fields or contain nested containers.\nEach container can represent a column, box, indented section, or collapsible section.\n","items":{"type":"object","properties":{"type":{"type":"string","description":"The visual style of the container.\n","enum":["indent","box","collapse"]},"label":{"type":"string","description":"The heading text displayed for this container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this container.\nEach ID must correspond to a key in the fieldMap object: the save doesn't check it,\nand an ID that doesn't renders nothing. A field the layout doesn't list isn't shown.\n"},"containers":{"type":"array","description":"Nested containers within this container. Allows for hierarchical organization\nof fields with different visual styles.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"The heading text displayed for this nested container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this nested container.\n"}}}}}}}}}},"additionalProperties":true},"init":{"type":"object","description":"Configuration for custom JavaScript initialization that executes when the form is first loaded.\n\nThis object defines a JavaScript hook that prepares the form for use, sets initial field values,\nperforms validation, or otherwise customizes the form behavior before it is displayed to the user.\n\n**Function signature**\n\nThe initialization function is invoked with a single 'options' argument containing contextual information:\n```javascript\nfunction formInit(options) {\n  // Process options and return the form object\n  return options.resource.settingsForm.form;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.resource` - The current resource being configured\n- `options.parentResource` - The parent of the current resource\n- `options.grandparentResource` - The grandparent of the current resource\n- `options.license` - For integration apps, the license provisioned to the integration\n- `options.parentLicense` - For integration apps, the parent of the license\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Dynamically generate field options based on resource configuration\n- Pre-populate default values from related resources\n- Apply conditional logic that depends on resource properties\n- Add, remove, or modify form fields based on user permissions or account settings\n- Fetch external data to populate selection options\n- Implement complex validation rules that depend on resource context\n- Create branching form experiences based on user selections\n\n**Return value**\n\nThe function must return a valid form object that the UI can render.\nThrowing an exception will signal an error to the user.\n\nThe UI runs the function each time it opens the form and renders the returned form instead of\n`form`, then fills in the values from `settings`; a thrown error's message replaces the form.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called when the form\nis initialized and should handle any custom setup logic.\n\nThe function must follow the expected signature and return a valid form object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the initialization function.\n\nThe referenced script should contain the function specified in the\n'function' property. On an integration, a flow group, a flow, an export, an import, or a\nconnection, an id that isn't a script in the same account (or, on an Integration App's\nresources, one the app shares) is refused with 422 `invalid_ref`. An iClient save\nstores the id without that check.\n"}}}}},"PreSave":{"type":"object","description":"Defines a JavaScript hook that executes before the resource is saved.\n\nThis hook allows for programmatic validation, transformation, or enrichment of the\nresource itself before it is persisted. It can be used to enforce business rules,\nset derived properties, or implement cross-field validations that can't be expressed\nthrough the standard UI.\n\n**Function signature**\n\nThe preSave function is invoked with a single 'options' argument containing:\n```javascript\nfunction preSave(options) {\n  // Process options and return the modified resource\n  return options.newResource;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.newResource` - The resource being saved (with pending changes)\n- `options.oldResource` - The previous version of the resource (before changes)\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Enforcing complex business rules across multiple fields\n- Automatically deriving field values based on other configuration\n- Performing validation that depends on external systems or data\n- Normalizing or standardizing configuration values\n- Adding computed or derived properties\n- Implementing versioning or change tracking\n- Dynamically looking up data using the Celigo API module to enrich configuration\n\n**Return value**\n\nThe function must return the newResource object (potentially modified) to be saved.\nThrowing an exception will prevent saving and signal an error to the user.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called just before\nthe resource is saved.\n\nThe function must follow the expected signature and return the resource object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the preSave function.\n\nThe referenced script should contain the function specified in the\n'function' property. This script must be accessible within the user's account\nand have appropriate permissions.\n"}}},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]}}}}
````

## List integrations

> Returns all integrations in the account. Supports field projection via \`include\`/\`exclude\`.

````json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"parameters":{"Include":{"name":"include","in":"query","required":false,"description":"Comma-separated list of fields to project into each returned record.\nTriggers summary projection: the response contains a minimal identity\nset (`_id`, `name`, plus resource-specific fields) with the requested\nfields added on top. Supports dot notation for nested fields.\nMutually exclusive with `exclude`.","schema":{"type":"string"}},"Exclude":{"name":"exclude","in":"query","required":false,"description":"Comma-separated list of fields to strip from the default response.\nUnlike `include`, does not trigger summary projection — returns the\nfull record with the named fields removed. Protected identity fields\n(e.g. `name`) cannot be stripped. Mutually exclusive with `include`.","schema":{"type":"string"}}},"schemas":{"Integration":{"type":"object","description":"Integration object as returned by the API.","required":["_id","name","createdAt","lastModified","install","installSteps","uninstallSteps","changeEditionSteps","flowGroupings","apiGroupings","_registeredConnectionIds"],"allOf":[{"$ref":"#/components/schemas/IntegrationBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_registeredConnectionIds":{"type":"array","readOnly":true,"description":"Connections registered to this integration. Managed by the platform when users\nregister connections through the UI or the integration's registerConnection\noperation; client-sent values are ignored (PUT-verified).","items":{"type":"string","format":"objectId"}},"_registeredLookupCacheIds":{"type":"array","readOnly":true,"description":"Lookup caches registered to this integration, managed by the platform.","items":{"type":"string","format":"objectId"}},"_registeredTopicIds":{"type":"array","readOnly":true,"description":"Topics registered to this integration, so its flows can subscribe to or publish on them.\nMaintained by the platform: added through the integration's topic `register` operations,\n`POST /v1/topics` with `__integrationIds`, or automatically when a flow in the integration\nis saved with a step bound to a topic; removed by the `DELETE …/register` operation or when\nthe topic is deleted. Client-sent values are ignored (PUT-verified). With no topic\nregistered it is an empty array, or absent on older integrations.","items":{"type":"string","format":"objectId"}},"_registeredKnowledgeBaseIds":{"type":"array","readOnly":true,"description":"Knowledge bases registered to this integration. Maintained by the platform: a\nvalue sent on a create or update is ignored. With none registered it is an empty\narray, or absent on an integration last saved before the field existed.","items":{"type":"string","format":"objectId"}}}}]},"IntegrationBase":{"type":"object","description":"Writable integration fields shared by the request and response schemas.","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"Human-readable name for the integration.\n\nUse a short, descriptive label that helps users identify the integration in the UI."},"description":{"type":["string","null"],"maxLength":5120,"description":"Optional description of the integration's purpose and behavior.\n\nHelpful for documentation, onboarding, and clarifying what the integration does."},"readme":{"type":["string","null"],"maxLength":51200,"description":"Long-form README content for the integration (typically Markdown).\n\nUse this to provide setup instructions, prerequisites, and operational notes."},"_connectorId":{"type":"string","format":"objectId","description":"Integration App (connector) identifier when this integration is based on an installed Integration App.\nAn integration carrying it is a tile (or a child of one) and is uninstalled from its Admin →\nUninstall page, never deleted: a DELETE answers 403 `delete_not_allowed`.\n\nIf you are not working with an Integration App installation, omit this field."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template this integration was installed from. Absent on integrations built from scratch and on\nclones. It does not make the integration an Integration App — `_connectorId` does.\n\nOmit unless you are creating/updating an integration from a template."},"install":{"type":"array","description":"Install \"cards\" an Integration App installer shows during installation — UI workflow metadata, not runtime\nconfiguration. The platform also writes it (empty) on a plain custom integration created by the UI's\nclone-and-install, so its presence does not indicate an Integration App.\n\nUnless you are explicitly modeling an install experience, omit this field.","items":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","description":"Display name for this install card."},"description":{"type":"string","description":"Help text shown to the user for this install card."},"imageURL":{"type":"string","description":"Optional image URL to display for this install card."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created/registered by this card (if applicable)."},"installURL":{"type":"string","description":"URL to open during install (if the card is URL-based)."},"completed":{"type":["boolean","null"],"description":"When true, this card has been completed. The server also returns `null` for cards whose completion state was never set."},"installerFunction":{"type":"string","description":"Optional function name used by the platform to run install logic for this card."},"uninstallerFunction":{"type":"string","description":"Optional function name used by the platform to run uninstall logic for this card."},"options":{"type":"object","description":"Free-form options passed to the installer/uninstaller logic.","additionalProperties":true},"sourceConnection":{"type":"object","description":"Source connection metadata used to prefill or drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this card uses a template ZIP artifact."},"_stackId":{"type":"string","format":"objectId","description":"Stack identifier used by install logic (if applicable)."},"isClone":{"type":"boolean","description":"When true, this card is part of a clone workflow."},"form":{"type":"object","description":"Inline form definition used by this card (if applicable).","additionalProperties":true}}}},"mode":{"type":"string","description":"Where the integration stands in its install or uninstall wizard. The platform writes it on a plain custom\nintegration created by the UI's clone-and-install as much as on an Integration App, and leaves it set after\nthe wizard completes, so it does not indicate an Integration App (`_connectorId` does).\n\nOmit when creating an integration directly.","enum":["install","settings","uninstall"]},"settings":{"description":"Integration App settings object for this integration. An Integration App can also keep\nits settings fields here, each with its current value: `settings.general` and\n`settings.sections[]` (tabs, then nested `sections[]`, then `fields[]`; a flow entry's own\nfields sit in its `settings[]`). When `settings.supportsMultiStore` is true, each\n`settings.sections[]` entry is a store and its own `sections[]` are the tabs.\nA write that changes it to a non-empty string, a number, or a boolean fails with 422\n`invalid_field_type` (\"Invalid value provided for settings. Expected an object.\"); an\nobject, an array, an empty string, and `null` are accepted.","allOf":[{"description":"Integration App settings object for this integration.\n\nThese values are typically collected via `settingsForm` and then stored here. When generating values,\nprefer setting only the fields required by the form/workflow and omit unknown keys."},{"$ref":"#/components/schemas/Settings"}]},"version":{"type":["string","null"],"description":"Version of the Integration App (or template) currently installed in this integration.\nFor Integration Apps the connector's update workflow sets it; omit unless you are\nexplicitly controlling versions."},"tag":{"type":["string","null"],"description":"Legacy field for distinguishing multiple instances of the same Integration App within a single Celigo environment.\n\nOnly set this when a customer is running multiple installations of the same Integration App. Otherwise, omit this field."},"updateInProgress":{"type":"boolean","description":"When true, an Integration App update workflow is currently running. Settable via the\nAPI, but normally managed by the platform's update workflow."},"celigoAgentAutoRunMode":{"type":"boolean","description":"When true, the Celigo Agent (Ora) saves its updates to this integration, and to an export\nor import that is a step of one of its flows, without a manual approval step.\n\nOmit unless you are explicitly configuring Celigo Agent behavior for this integration."},"resolvedAt":{"type":"string","format":"date-time","description":"Timestamp indicating when the most recent install/update workflow was resolved/completed.\n\nTypically system-managed; omit in normal create/update payloads."},"settingsForm":{"description":"Settings form definition for the integration.","allOf":[{"description":"Settings form definition for the integration.\n\nThis controls the UI fields shown to users to collect `settings`.\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/Form"}]},"preSave":{"description":"Pre-save hook configuration used to validate/transform settings before saving.","allOf":[{"description":"Pre-save hook configuration used to validate/transform settings before saving.\n\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/PreSave"}]},"update":{"type":"object","description":"Script reference used by the platform to perform integration update logic (e.g., migration between versions).\n\nOnly include when the update workflow explicitly requires it.","properties":{"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the update implementation."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for the update script (if applicable)."},"function":{"type":"string","description":"Function name within the script to invoke for updates."}}},"installSteps":{"type":"array","description":"Ordered steps of the install wizard that created this integration, each marked completed as it finishes.\nWritten by the UI's clone-and-install of a plain custom integration (a `template_zip` step with `isClone`\ntrue) as well as by Integration App installers, and kept after completion — so a populated list does not\nindicate an Integration App.\n\nOmit unless you are building an installer.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Options the installer logic reads for this step. Free-form, except\nthat the MCP-server template install writes `mcpServerTemplate` on\nits `template_zip` step.","additionalProperties":true,"properties":{"mcpServerTemplate":{"type":"object","additionalProperties":true,"description":"Marks the `template_zip` step of the Integration that installing an\nMCP-server template creates when the template packs dependencies\n(`POST /v1/mcpservers/template`, or a Marketplace MCP listing); the\nserver itself is created by this step's final save, not before.\nWritten with the template's identity and connection shapes when the\nIntegration is created, then extended with the step's checkpoint as\nthe step runs, so a retry of a failed step reuses what an earlier\nattempt already created instead of creating it again. Completing the\nstep creates the MCP server, disabled, and copies the template's\nresource files into this Integration's folder in Celigo Storage.","properties":{"sourceIntegrationId":{"type":"string","format":"objectId","description":"Integration document the template's resources belong to — the\n`integration.json` in the template ZIP. The Integration being\ninstalled is cloned from it (its `_sourceId`); it is not an\nIntegration in this account."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template the install came from. Absent when the ZIP was uploaded directly."},"connectionShapes":{"type":"array","description":"One entry per connection the template packs, read when the matching\n`connection` step binds or creates a connection: a connection the step\ncreates receives the entry's `endUserProvidedFields`; an existing\nconnection is updated only when the entry requires end-user\ncredentials and the connection has no list of its own yet. When the\nentry requires end-user credentials, an existing connection of\nanother `type` is refused.","items":{"type":"object","properties":{"_id":{"type":"string","format":"objectId","description":"The connection's id inside the template, matched against the `connection` step's `sourceConnection._id`."},"type":{"type":"string","description":"Connection type the step's connection must have when the entry requires end-user credentials."},"endUserProvidedFields":{"type":"array","items":{"type":"string"},"description":"Dot-paths of the connection's fields each end user supplies on their own copy, as the template's publisher set them."},"requiresEndUserCredentials":{"type":"boolean","description":"When true, the template's server requires every end user to supply their own credentials on this connection."}}}},"mcpServerId":{"type":"string","format":"objectId","description":"Id reserved for the MCP server once the template's tools are created,\nbefore any resource file is uploaded. While the step is incomplete it\nis only a reservation — no server document exists under it until the\nstep's final save; a retry returns the saved server without uploading\nagain only when an earlier attempt already saved a server for this id."},"toolIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Tool id inside the template → id of the Tool the install created from it, written with `mcpServerId`; a retry reuses the created tools."},"apiIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"API id inside the template → id of the API the install created from it, written with `toolIdMap`."},"resourceFileMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Resource file entry in the template ZIP (`resources/<key>`) → id of its\ncopy in this Integration's Celigo Storage folder. Written only after\nevery copied file is active, so a retry that finds the map skips the\nupload; cleared, together with `createdFolderIds` and\n`createdFileIds`, before a failed attempt's files are removed."},"createdFolderIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage folders the install created under this Integration's folder for the resource files' relative paths — the current checkpoint, cleared with `resourceFileMap` before a failed attempt's rollback and rewritten by the next attempt."},"createdFileIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage files the install has copied — the current checkpoint, cleared and rewritten the same way as `createdFolderIds`; the completed server serves them as its resources."}}}}}}}},"uninstallSteps":{"type":"array","description":"Ordered list of lifecycle steps used by the Integration App uninstaller.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"changeEditionSteps":{"type":"array","description":"Ordered list of steps used when changing the integration's edition/license.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"pendingLicense":{"type":["object","null"],"description":"Pending license/edition change information for the integration.\n\nThe server returns `null` when no license/edition change is pending (rather than omitting the field).\nOnly include when a license/edition change workflow explicitly requires it.","properties":{"opts":{"type":"object","description":"Free-form license options/payload.","additionalProperties":true},"_editionId":{"type":["string","null"],"format":"objectId","description":"Target edition ID for the pending license change, or `null` when cleared."}}},"_parentId":{"type":"string","format":"objectId","description":"Parent integration ID when this integration was created as a child of another integration.\nInvalid ids are silently dropped by the server. Omit unless creating/updating child integrations."},"childDisplayName":{"type":"string","description":"Display name used for a child integration created during installation.\n\nOmit unless creating/updating child integrations."},"initChild":{"type":"object","description":"Script reference used to initialize a child integration during installation.\n\nOnly include when the child initialization workflow explicitly requires it.","properties":{"function":{"type":"string","description":"Function name to invoke to initialize the child integration."},"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the initChild function."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for initChild (if applicable)."}}},"flowGroupings":{"type":"array","description":"UI grouping configuration that groups an integration's flows into named\nsections. Works on ANY integration — this is NOT an Integration-App-only\nfeature; a plain integration can define flow groupings too. Create groupings\nhere, then assign flows to them via `PUT /v1/flows/updateFlowGrouping`. A\ngrouping that still has member flows survives being removed from this array —\nungroup its flows first.\n\nOmit unless you are explicitly configuring flow grouping behavior.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the flow grouping section."},"settings":{"type":"object","description":"Group-level settings for flows in this group. At runtime, flows in the\ngroup read these values under the fixed scope key `flowGrouping` — e.g.\nthe Handlebars expression `{{{settings.flowGrouping.salesOrganization}}}`\nor the Mapper 2.0 envelope path `$.settings.flowGrouping.salesOrganization`.","additionalProperties":true},"settingsForm":{"description":"Form definition for this flow grouping's settings UI.","allOf":[{"description":"Form definition for this flow grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"apiGroupings":{"type":"array","description":"UI grouping configuration for APIs within the integration.\n\nUsed to group APIs into named sections with their own settings/settingsForm.\nWorks identically to `flowGroupings` but for API resources. Create groupings here,\nthen assign APIs to them via `PUT /v1/apis/updateApiGrouping`. A grouping that still\nhas member APIs survives being removed from this array — ungroup its APIs first.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the API grouping section."},"settings":{"type":"object","description":"Group-level settings for APIs in this group.","additionalProperties":true},"settingsForm":{"description":"Form definition for this API grouping's settings UI.","allOf":[{"description":"Form definition for this API grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"netSuiteDistributedAdaptor":{"type":"object","description":"NetSuite distributed adaptor metadata (platform feature).\n\nOnly include if you are explicitly configuring distributed NetSuite adaptor behavior.","properties":{"accountId":{"type":"string","description":"NetSuite account identifier."},"environment":{"type":"string","description":"NetSuite environment.","enum":["production","beta","sandbox"]},"integrationId":{"type":"string","description":"Identifier used by the distributed adaptor for this integration."}}},"_sourceId":{"type":"string","format":"objectId","description":"Integration this one was cloned from. Set on every clone, standalone copies included, so\nit doesn't by itself mean the two are lifecycle-linked. Omit in create and update payloads."},"sampleIntegration":{"type":"boolean","description":"Indicates this integration is a sample/demo integration (used for templates/examples).\n\nTypically system-managed."},"syncs":{"type":"boolean","description":"When true, the integration is a container for Celigo Sync resources — set it on\n`POST /v1/integrations` before creating syncs in it (`POST /v1/syncs` into an\nintegration without it fails with `422 integration_not_for_sync`). Fixed at creation:\n`PUT /v1/integrations/{_id}` ignores the field in both directions. Keep flows out of\nit: a flow create isn't refused there. While the integration holds a sync, deleting\nit fails with 422 \"sync <id> must be deleted before you can delete integration <id>\"."},"aliases":{"type":"array","description":"Named aliases that map to specific resources within the integration.","items":{"type":"object","properties":{"alias":{"type":"string","description":"Alias name for the resource reference."},"description":{"type":"string","description":"Description of what this alias represents."},"_exportId":{"type":"string","format":"objectId","description":"Export referenced by this alias."},"_importId":{"type":"string","format":"objectId","description":"Import referenced by this alias."},"_flowId":{"type":"string","format":"objectId","description":"Flow referenced by this alias."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced by this alias."},"_lookupCacheId":{"type":"string","format":"objectId","description":"Lookup cache referenced by this alias. Added automatically when the\ncache is registered to the integration (the alias is a slug of the\ncache name), and must be removed before the cache can be deregistered."}}}},"iLMIgnore":{"type":"object","description":"Fields that integration lifecycle pulls and reverts leave untouched, keyed by resource type\n(`integration`, `flow`, `export`, ...) with an array of field paths for each. Change it with\n`PATCH /v1/integrations/{_id}` on `/iLMIgnore` and read the saved value back here; a field\npath the resource type does not allow is rejected with 422 (\"Invalid path expression\n`<path>` for <type>. Path expression not supported\").","additionalProperties":true}}},"Settings":{"type":"object","description":"Configuration settings that can be accessed by hooks, filters, mappings and handlebars templates at runtime.\n\nIt enables customization of the resource's logic, allowing hooks, mappings, filters, and\nhandlebars to access and apply the settings at runtime.\n\n**Usage**\n\nThe settings object can store arbitrary JSON data that you want to save with the resource.\nWhile it's often populated through a form defined in the `settingsForm` field, you can also:\n\n- Directly provide JSON settings without using a form\n- Store configuration values used by hooks and templates\n- Create resource-specific constants and parameters\n- Maintain lookup tables or mapping structures\n- Define conditional logic parameters\n\n**Accessibility**\n\nSettings are available in:\n- All handlebars fields for building dynamic payloads\n- Field mapping expressions\n- JavaScript hooks via the options object\n- Filters and transformations\n\nAt runtime, the settings objects in the step's execution chain are gathered into a\nsingle `settings` context keyed by fixed scope keys. Flow runs populate the full\nchain: `settings.integration.*`, `settings.flowGrouping.*` (the flow group the flow\nbelongs to), `settings.flow.*`, `settings.connection.*`, `settings.iClient.*`, and\nthe running step's own scope — `settings.export.*` on exports/lookups,\n`settings.import.*` on imports (the key matches the step type). Steps executing\ninside a My API or a Tool receive only the step's own scope plus\n`settings.connection.*` / `settings.iClient.*`; the integration, flowGrouping, and\nflow scopes resolve empty there. The scope key is literal — resource display names\nand settingsForm section labels are never part of the path. The segments after the\nscope mirror the stored settings JSON key path exactly: a top-level field is\n`settings.<scope>.<fieldId>`, and nested objects add one segment per JSON key\n(e.g. `settings.flowGrouping.Customer.region` when the group's settings JSON nests\n`region` under `Customer`). References without a scope key\n(e.g. `{{settings.myField}}`) resolve to empty strings.\n\n**Best practices**\n\nFor non-technical users, create a custom form instead of editing the JSON directly.\nThis provides a user-friendly interface for updating settings without requiring JSON knowledge.\n","additionalProperties":true},"Form":{"type":"object","description":"Configuration for creating user-friendly settings forms that make it easier for less technical users\nto configure integration resources.\n\n**Settings form builder**\n\nThe Settings Form Builder allows you to create or edit user-friendly fields that prompt for text entry\nor selections that will be returned as settings applied to this resource. Your forms can include any\nfield types that you see elsewhere in integrator.io, such as:\n\n- Text fields\n- Dropdown selections\n- Checkboxes\n- Radio buttons\n- Date pickers\n- Multi-select fields\n- Search fields\n\nForm fields make it much easier for less technical users to work with your integration settings by:\n\n- Providing clear labels and help text\n- Enforcing validation rules\n- Offering pre-defined selection options\n- Grouping related settings logically\n- Supporting conditional visibility\n- Creating a consistent user experience\n","properties":{"form":{"type":"object","description":"Configuration that defines the structure, fields, and behavior of the settings form.\n\nThis object contains the complete definition of the form's layout, fields, validation rules,\nand interactive behaviors. The specific structure depends on the form complexity and can include\nfield definitions, sections, conditional display logic, and default values.\n\nThe form configuration is typically created and managed through the visual Form Builder interface\nrather than edited directly as JSON.\n","properties":{"fieldMap":{"type":"object","description":"A mapping of field identifiers to their configuration objects.\nEach key in this object represents a unique field ID, and the value contains\nall the configuration settings for that specific form field.\n","additionalProperties":{"type":"object","description":"Configuration for an individual form field.\n","properties":{"id":{"type":"string","description":"Unique identifier for this field within the form: layout containers and conditions\nrefer to the field by it. Use the same string as the field's fieldMap key and its `name`.\n"},"name":{"type":"string","description":"Key the field's value is saved under: one top-level key of the resource's `settings`,\nwhich the form also reads the value back from when it opens. Nested objects inside\n`settings` are written to it directly, not through a form field's `name`.\n"},"type":{"type":"string","description":"The type of form control to render for this field.\n","enum":["text","checkbox","radiogroup","relativeuri","editor","keyvalue","select","multiselect","toggle","datetime","date","exportSelect","staticMap"]},"label":{"type":"string","description":"Display label shown next to the field in the form.\n"},"description":{"type":"string","description":"Detailed explanation text that appears below the field, providing more context\nthan the label or helpText.\n"},"helpText":{"type":"string","description":"Explanatory text that appears when hovering over the help icon next to the field.\nUsed to provide additional guidance on how to use the field.\n"},"required":{"type":"boolean","description":"When true, the field must have a value before the form can be submitted. Only the form\nenforces it: an API write of `settings` is stored without the value.\n","default":false},"defaultValue":{"description":"Value the form shows while the resource's `settings` holds no value under the field's\n`name`.\n"},"multiline":{"type":"boolean","description":"For text fields, determines whether the input should be a multi-line text area\ninstead of a single-line input.\n","default":false},"rowsMax":{"type":"integer","description":"For multiline text fields, specifies the maximum number of visible rows.\n"},"inputType":{"type":"string","description":"For text fields, specifies the HTML input type attribute to apply additional\nvalidation or specialized input behavior.\n","enum":["text","number","email","password","tel","url"]},"delimiter":{"type":"string","description":"For text fields, specifies a character to use for splitting the input into an array.\nUsed for collecting multiple values in a single text field.\n"},"mode":{"type":"string","description":"For editor fields, specifies the type of content being edited for syntax highlighting.\n","enum":["json","xml","csv","text"]},"keyName":{"type":"string","description":"For keyvalue and staticMap fields, names the first column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `key`.\n"},"valueName":{"type":"string","description":"For keyvalue and staticMap fields, names the second column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `value`.\n"},"keyLabel":{"type":"string","description":"For staticMap fields, heading of the first column.\n"},"valueLabel":{"type":"string","description":"For staticMap fields, heading of the second column.\n"},"keyOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the first column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"valueOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the second column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"keyResource":{"type":"object","description":"For staticMap fields, fills the first column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is. With\n`keyResource` or `valueResource` set, the form requires both columns in every row\nunless `keyValueRequired` is false.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"valueResource":{"type":"object","description":"For staticMap fields, fills the second column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"keyValueRequired":{"type":"boolean","description":"For staticMap fields with `keyResource` or `valueResource`, when false, saves rows\nthat fill only one column; by default the form drops them.\n","default":true},"resource":{"type":"object","description":"For exportSelect fields, the export whose records become the options. When the form\nopens, the UI previews the export in `virtual` (with `test.limit` 100 unless the export\nsets its own) and lists the preview's `data`: each record needs a `label` and a `value`\n(a string or number serves as both), so shape them with the export's `transform`. A\nsaved export can't be referenced, and an HTTP export that finds no records leaves the\nfield showing an error instead of options.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline: `adaptorType`, its adaptor block, and an optional\n`transform`. `_connectionId` defaults to the connection of the export or import the\nform belongs to; set it on any other resource's form. On an integration's form,\nand on the forms of its flows, it may also be the name of one of the integration's\n`aliases[]`, matched without regard to case: the UI previews the block on the\nroute scoped to the form's resource, where the alias resolves to its connection\n(past the preview's type check, a value that is neither a connection id nor an\nalias in that scope is a 400 `invalid_ref` there). Forms installed from a\ntemplate name connections this way, since the same block runs in every account\nthe template is installed in. The unscoped `POST /v1/exports/preview` knows no\naliases: past the preview's type check, an alias name there is 400 `invalid_ref`.\n","additionalProperties":true}}},"multiselect":{"type":"boolean","description":"For exportSelect fields, when true, the user can choose several options and the value\nis saved as an array.\n","default":false},"supportHandlebars":{"type":"boolean","description":"For exportSelect fields, when true, renders the `resource.virtual` export as a Handlebars\ntemplate before each preview (all but its `transform`, `hooks`, and `filter`). On an\nintegration, flow group, flow, export, or import form, the form's current values are\nunder that form's scope name (`integration`, `flowGrouping`, `flow`, `export`, or\n`import`), beside the saved settings of the scopes above it, with no `settings.`\nprefix; on a connection or iClient form the template has no context. The options then\nload through `refreshOptionsOnChangesTo` or `typeAheadSearch`, or when the user\nrefreshes the field.\n","default":false},"refreshOptionsOnChangesTo":{"type":"array","items":{"type":"string"},"description":"For exportSelect fields with `supportHandlebars`, ids of the fields whose values the\ntemplated export uses: the options load once one of them has a value and reload whenever\none changes.\n"},"typeAheadSearch":{"type":"boolean","description":"For exportSelect fields, when true, re-runs the templated export as the user types, with\nthe typed text as this field's own value; an empty box clears the options, and typed\ntext is accepted as the value.\n","default":false},"showDelete":{"type":"boolean","description":"For keyvalue fields, determines whether to show a delete button for each key-value pair.\n"},"doNotAllowFutureDates":{"type":"boolean","description":"For date and datetime fields, restricts selection to dates not in the future.\n"},"skipTimezoneConversion":{"type":"boolean","description":"For datetime fields, prevents automatic timezone conversion of the date value.\n"},"options":{"type":"array","description":"For fields that present choices (select, multiselect, radiogroup, toggle), defines\nthe available options.\n","items":{"anyOf":[{"title":"Option group","type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"oneOf":[{"title":"String value","type":"string"},{"title":"Label-value pair","type":"object","properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]},"description":"Array of option values/labels to display in the selection control.\n"}}},{"title":"Label-value pair","type":"object","required":["label"],"properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]}},"visibleWhen":{"type":"array","description":"Conditional display rules that determine when this field should be visible.\nIf empty or not provided, the field is always visible.\n","items":{"type":"object","properties":{"field":{"type":"string","description":"The ID of another field whose value controls the visibility of this field. The\nsave doesn't check it: a rule naming an ID that isn't in the form counts as met,\nso the field stays visible.\n"},"is":{"type":"array","items":{"type":["string","boolean","number","null"]},"description":"Array of values - if the referenced field has any of these values,\nthis field will be visible. Values may be strings, booleans (for\ncheckbox/toggle fields), numbers (for numeric inputs), or null.\n"}}}}}}},"layout":{"type":"object","description":"Defines how the form fields are arranged and grouped in the UI.\nThe layout can organize fields into columns, sections, or other visual groupings.\n","properties":{"type":{"type":"string","description":"The type of layout to use for the form.\n","enum":["column","collapse","box","indent","tabWithoutSave","verticalTabWithoutSave"]},"fields":{"type":"array","items":{"type":"string"},"description":"Field IDs shown above the containers, without a heading.\n"},"containers":{"type":"array","description":"Array of container objects that group fields or contain nested containers.\nEach container can represent a column, box, indented section, or collapsible section.\n","items":{"type":"object","properties":{"type":{"type":"string","description":"The visual style of the container.\n","enum":["indent","box","collapse"]},"label":{"type":"string","description":"The heading text displayed for this container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this container.\nEach ID must correspond to a key in the fieldMap object: the save doesn't check it,\nand an ID that doesn't renders nothing. A field the layout doesn't list isn't shown.\n"},"containers":{"type":"array","description":"Nested containers within this container. Allows for hierarchical organization\nof fields with different visual styles.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"The heading text displayed for this nested container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this nested container.\n"}}}}}}}}}},"additionalProperties":true},"init":{"type":"object","description":"Configuration for custom JavaScript initialization that executes when the form is first loaded.\n\nThis object defines a JavaScript hook that prepares the form for use, sets initial field values,\nperforms validation, or otherwise customizes the form behavior before it is displayed to the user.\n\n**Function signature**\n\nThe initialization function is invoked with a single 'options' argument containing contextual information:\n```javascript\nfunction formInit(options) {\n  // Process options and return the form object\n  return options.resource.settingsForm.form;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.resource` - The current resource being configured\n- `options.parentResource` - The parent of the current resource\n- `options.grandparentResource` - The grandparent of the current resource\n- `options.license` - For integration apps, the license provisioned to the integration\n- `options.parentLicense` - For integration apps, the parent of the license\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Dynamically generate field options based on resource configuration\n- Pre-populate default values from related resources\n- Apply conditional logic that depends on resource properties\n- Add, remove, or modify form fields based on user permissions or account settings\n- Fetch external data to populate selection options\n- Implement complex validation rules that depend on resource context\n- Create branching form experiences based on user selections\n\n**Return value**\n\nThe function must return a valid form object that the UI can render.\nThrowing an exception will signal an error to the user.\n\nThe UI runs the function each time it opens the form and renders the returned form instead of\n`form`, then fills in the values from `settings`; a thrown error's message replaces the form.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called when the form\nis initialized and should handle any custom setup logic.\n\nThe function must follow the expected signature and return a valid form object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the initialization function.\n\nThe referenced script should contain the function specified in the\n'function' property. On an integration, a flow group, a flow, an export, an import, or a\nconnection, an id that isn't a script in the same account (or, on an Integration App's\nresources, one the app shares) is refused with 422 `invalid_ref`. An iClient save\nstores the id without that check.\n"}}}}},"PreSave":{"type":"object","description":"Defines a JavaScript hook that executes before the resource is saved.\n\nThis hook allows for programmatic validation, transformation, or enrichment of the\nresource itself before it is persisted. It can be used to enforce business rules,\nset derived properties, or implement cross-field validations that can't be expressed\nthrough the standard UI.\n\n**Function signature**\n\nThe preSave function is invoked with a single 'options' argument containing:\n```javascript\nfunction preSave(options) {\n  // Process options and return the modified resource\n  return options.newResource;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.newResource` - The resource being saved (with pending changes)\n- `options.oldResource` - The previous version of the resource (before changes)\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Enforcing complex business rules across multiple fields\n- Automatically deriving field values based on other configuration\n- Performing validation that depends on external systems or data\n- Normalizing or standardizing configuration values\n- Adding computed or derived properties\n- Implementing versioning or change tracking\n- Dynamically looking up data using the Celigo API module to enrich configuration\n\n**Return value**\n\nThe function must return the newResource object (potentially modified) to be saved.\nThrowing an exception will prevent saving and signal an error to the user.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called just before\nthe resource is saved.\n\nThe function must follow the expected signature and return the resource object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the preSave function.\n\nThe referenced script should contain the function specified in the\n'function' property. This script must be accessible within the user's account\nand have appropriate permissions.\n"}}},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/integrations":{"get":{"summary":"List integrations","description":"Returns all integrations in the account. Supports field projection via `include`/`exclude`.","operationId":"listIntegrations","tags":["Integrations"],"parameters":[{"$ref":"#/components/parameters/Include"},{"$ref":"#/components/parameters/Exclude"},{"name":"limit","in":"query","required":false,"description":"Maximum number of integrations to return per page. When more results exist, the response includes a `Link` header with a `rel=\"next\"` URL.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Successfully retrieved list of integrations.","headers":{"Link":{"description":"RFC-5988 pagination links. When more pages remain, includes a `<...>; rel=\"next\"` entry;\nabsent on the final page.\n","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Integration"}}}}},"204":{"description":"No integrations exist in the account"},"401":{"$ref":"#/components/responses/401-unauthorized"}}}}}}
````

## Create an integration

> Creates a new integration. Only \`name\` is required — the server populates all other\
> fields with defaults. Do not include \`\_connectorId\` unless you are creating an\
> Integration App installation, or \`\_templateId\` unless the integration is created from\
> a template; leave the install-wizard fields (\`mode\`, \`install\`, \`installSteps\`) to the\
> platform's installers.

````json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Request":{"type":"object","description":"Fields that can be sent when creating or updating an integration.","required":["name"],"allOf":[{"$ref":"#/components/schemas/IntegrationBase"}]},"IntegrationBase":{"type":"object","description":"Writable integration fields shared by the request and response schemas.","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"Human-readable name for the integration.\n\nUse a short, descriptive label that helps users identify the integration in the UI."},"description":{"type":["string","null"],"maxLength":5120,"description":"Optional description of the integration's purpose and behavior.\n\nHelpful for documentation, onboarding, and clarifying what the integration does."},"readme":{"type":["string","null"],"maxLength":51200,"description":"Long-form README content for the integration (typically Markdown).\n\nUse this to provide setup instructions, prerequisites, and operational notes."},"_connectorId":{"type":"string","format":"objectId","description":"Integration App (connector) identifier when this integration is based on an installed Integration App.\nAn integration carrying it is a tile (or a child of one) and is uninstalled from its Admin →\nUninstall page, never deleted: a DELETE answers 403 `delete_not_allowed`.\n\nIf you are not working with an Integration App installation, omit this field."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template this integration was installed from. Absent on integrations built from scratch and on\nclones. It does not make the integration an Integration App — `_connectorId` does.\n\nOmit unless you are creating/updating an integration from a template."},"install":{"type":"array","description":"Install \"cards\" an Integration App installer shows during installation — UI workflow metadata, not runtime\nconfiguration. The platform also writes it (empty) on a plain custom integration created by the UI's\nclone-and-install, so its presence does not indicate an Integration App.\n\nUnless you are explicitly modeling an install experience, omit this field.","items":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","description":"Display name for this install card."},"description":{"type":"string","description":"Help text shown to the user for this install card."},"imageURL":{"type":"string","description":"Optional image URL to display for this install card."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created/registered by this card (if applicable)."},"installURL":{"type":"string","description":"URL to open during install (if the card is URL-based)."},"completed":{"type":["boolean","null"],"description":"When true, this card has been completed. The server also returns `null` for cards whose completion state was never set."},"installerFunction":{"type":"string","description":"Optional function name used by the platform to run install logic for this card."},"uninstallerFunction":{"type":"string","description":"Optional function name used by the platform to run uninstall logic for this card."},"options":{"type":"object","description":"Free-form options passed to the installer/uninstaller logic.","additionalProperties":true},"sourceConnection":{"type":"object","description":"Source connection metadata used to prefill or drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this card uses a template ZIP artifact."},"_stackId":{"type":"string","format":"objectId","description":"Stack identifier used by install logic (if applicable)."},"isClone":{"type":"boolean","description":"When true, this card is part of a clone workflow."},"form":{"type":"object","description":"Inline form definition used by this card (if applicable).","additionalProperties":true}}}},"mode":{"type":"string","description":"Where the integration stands in its install or uninstall wizard. The platform writes it on a plain custom\nintegration created by the UI's clone-and-install as much as on an Integration App, and leaves it set after\nthe wizard completes, so it does not indicate an Integration App (`_connectorId` does).\n\nOmit when creating an integration directly.","enum":["install","settings","uninstall"]},"settings":{"description":"Integration App settings object for this integration. An Integration App can also keep\nits settings fields here, each with its current value: `settings.general` and\n`settings.sections[]` (tabs, then nested `sections[]`, then `fields[]`; a flow entry's own\nfields sit in its `settings[]`). When `settings.supportsMultiStore` is true, each\n`settings.sections[]` entry is a store and its own `sections[]` are the tabs.\nA write that changes it to a non-empty string, a number, or a boolean fails with 422\n`invalid_field_type` (\"Invalid value provided for settings. Expected an object.\"); an\nobject, an array, an empty string, and `null` are accepted.","allOf":[{"description":"Integration App settings object for this integration.\n\nThese values are typically collected via `settingsForm` and then stored here. When generating values,\nprefer setting only the fields required by the form/workflow and omit unknown keys."},{"$ref":"#/components/schemas/Settings"}]},"version":{"type":["string","null"],"description":"Version of the Integration App (or template) currently installed in this integration.\nFor Integration Apps the connector's update workflow sets it; omit unless you are\nexplicitly controlling versions."},"tag":{"type":["string","null"],"description":"Legacy field for distinguishing multiple instances of the same Integration App within a single Celigo environment.\n\nOnly set this when a customer is running multiple installations of the same Integration App. Otherwise, omit this field."},"updateInProgress":{"type":"boolean","description":"When true, an Integration App update workflow is currently running. Settable via the\nAPI, but normally managed by the platform's update workflow."},"celigoAgentAutoRunMode":{"type":"boolean","description":"When true, the Celigo Agent (Ora) saves its updates to this integration, and to an export\nor import that is a step of one of its flows, without a manual approval step.\n\nOmit unless you are explicitly configuring Celigo Agent behavior for this integration."},"resolvedAt":{"type":"string","format":"date-time","description":"Timestamp indicating when the most recent install/update workflow was resolved/completed.\n\nTypically system-managed; omit in normal create/update payloads."},"settingsForm":{"description":"Settings form definition for the integration.","allOf":[{"description":"Settings form definition for the integration.\n\nThis controls the UI fields shown to users to collect `settings`.\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/Form"}]},"preSave":{"description":"Pre-save hook configuration used to validate/transform settings before saving.","allOf":[{"description":"Pre-save hook configuration used to validate/transform settings before saving.\n\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/PreSave"}]},"update":{"type":"object","description":"Script reference used by the platform to perform integration update logic (e.g., migration between versions).\n\nOnly include when the update workflow explicitly requires it.","properties":{"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the update implementation."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for the update script (if applicable)."},"function":{"type":"string","description":"Function name within the script to invoke for updates."}}},"installSteps":{"type":"array","description":"Ordered steps of the install wizard that created this integration, each marked completed as it finishes.\nWritten by the UI's clone-and-install of a plain custom integration (a `template_zip` step with `isClone`\ntrue) as well as by Integration App installers, and kept after completion — so a populated list does not\nindicate an Integration App.\n\nOmit unless you are building an installer.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Options the installer logic reads for this step. Free-form, except\nthat the MCP-server template install writes `mcpServerTemplate` on\nits `template_zip` step.","additionalProperties":true,"properties":{"mcpServerTemplate":{"type":"object","additionalProperties":true,"description":"Marks the `template_zip` step of the Integration that installing an\nMCP-server template creates when the template packs dependencies\n(`POST /v1/mcpservers/template`, or a Marketplace MCP listing); the\nserver itself is created by this step's final save, not before.\nWritten with the template's identity and connection shapes when the\nIntegration is created, then extended with the step's checkpoint as\nthe step runs, so a retry of a failed step reuses what an earlier\nattempt already created instead of creating it again. Completing the\nstep creates the MCP server, disabled, and copies the template's\nresource files into this Integration's folder in Celigo Storage.","properties":{"sourceIntegrationId":{"type":"string","format":"objectId","description":"Integration document the template's resources belong to — the\n`integration.json` in the template ZIP. The Integration being\ninstalled is cloned from it (its `_sourceId`); it is not an\nIntegration in this account."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template the install came from. Absent when the ZIP was uploaded directly."},"connectionShapes":{"type":"array","description":"One entry per connection the template packs, read when the matching\n`connection` step binds or creates a connection: a connection the step\ncreates receives the entry's `endUserProvidedFields`; an existing\nconnection is updated only when the entry requires end-user\ncredentials and the connection has no list of its own yet. When the\nentry requires end-user credentials, an existing connection of\nanother `type` is refused.","items":{"type":"object","properties":{"_id":{"type":"string","format":"objectId","description":"The connection's id inside the template, matched against the `connection` step's `sourceConnection._id`."},"type":{"type":"string","description":"Connection type the step's connection must have when the entry requires end-user credentials."},"endUserProvidedFields":{"type":"array","items":{"type":"string"},"description":"Dot-paths of the connection's fields each end user supplies on their own copy, as the template's publisher set them."},"requiresEndUserCredentials":{"type":"boolean","description":"When true, the template's server requires every end user to supply their own credentials on this connection."}}}},"mcpServerId":{"type":"string","format":"objectId","description":"Id reserved for the MCP server once the template's tools are created,\nbefore any resource file is uploaded. While the step is incomplete it\nis only a reservation — no server document exists under it until the\nstep's final save; a retry returns the saved server without uploading\nagain only when an earlier attempt already saved a server for this id."},"toolIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Tool id inside the template → id of the Tool the install created from it, written with `mcpServerId`; a retry reuses the created tools."},"apiIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"API id inside the template → id of the API the install created from it, written with `toolIdMap`."},"resourceFileMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Resource file entry in the template ZIP (`resources/<key>`) → id of its\ncopy in this Integration's Celigo Storage folder. Written only after\nevery copied file is active, so a retry that finds the map skips the\nupload; cleared, together with `createdFolderIds` and\n`createdFileIds`, before a failed attempt's files are removed."},"createdFolderIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage folders the install created under this Integration's folder for the resource files' relative paths — the current checkpoint, cleared with `resourceFileMap` before a failed attempt's rollback and rewritten by the next attempt."},"createdFileIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage files the install has copied — the current checkpoint, cleared and rewritten the same way as `createdFolderIds`; the completed server serves them as its resources."}}}}}}}},"uninstallSteps":{"type":"array","description":"Ordered list of lifecycle steps used by the Integration App uninstaller.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"changeEditionSteps":{"type":"array","description":"Ordered list of steps used when changing the integration's edition/license.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"pendingLicense":{"type":["object","null"],"description":"Pending license/edition change information for the integration.\n\nThe server returns `null` when no license/edition change is pending (rather than omitting the field).\nOnly include when a license/edition change workflow explicitly requires it.","properties":{"opts":{"type":"object","description":"Free-form license options/payload.","additionalProperties":true},"_editionId":{"type":["string","null"],"format":"objectId","description":"Target edition ID for the pending license change, or `null` when cleared."}}},"_parentId":{"type":"string","format":"objectId","description":"Parent integration ID when this integration was created as a child of another integration.\nInvalid ids are silently dropped by the server. Omit unless creating/updating child integrations."},"childDisplayName":{"type":"string","description":"Display name used for a child integration created during installation.\n\nOmit unless creating/updating child integrations."},"initChild":{"type":"object","description":"Script reference used to initialize a child integration during installation.\n\nOnly include when the child initialization workflow explicitly requires it.","properties":{"function":{"type":"string","description":"Function name to invoke to initialize the child integration."},"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the initChild function."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for initChild (if applicable)."}}},"flowGroupings":{"type":"array","description":"UI grouping configuration that groups an integration's flows into named\nsections. Works on ANY integration — this is NOT an Integration-App-only\nfeature; a plain integration can define flow groupings too. Create groupings\nhere, then assign flows to them via `PUT /v1/flows/updateFlowGrouping`. A\ngrouping that still has member flows survives being removed from this array —\nungroup its flows first.\n\nOmit unless you are explicitly configuring flow grouping behavior.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the flow grouping section."},"settings":{"type":"object","description":"Group-level settings for flows in this group. At runtime, flows in the\ngroup read these values under the fixed scope key `flowGrouping` — e.g.\nthe Handlebars expression `{{{settings.flowGrouping.salesOrganization}}}`\nor the Mapper 2.0 envelope path `$.settings.flowGrouping.salesOrganization`.","additionalProperties":true},"settingsForm":{"description":"Form definition for this flow grouping's settings UI.","allOf":[{"description":"Form definition for this flow grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"apiGroupings":{"type":"array","description":"UI grouping configuration for APIs within the integration.\n\nUsed to group APIs into named sections with their own settings/settingsForm.\nWorks identically to `flowGroupings` but for API resources. Create groupings here,\nthen assign APIs to them via `PUT /v1/apis/updateApiGrouping`. A grouping that still\nhas member APIs survives being removed from this array — ungroup its APIs first.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the API grouping section."},"settings":{"type":"object","description":"Group-level settings for APIs in this group.","additionalProperties":true},"settingsForm":{"description":"Form definition for this API grouping's settings UI.","allOf":[{"description":"Form definition for this API grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"netSuiteDistributedAdaptor":{"type":"object","description":"NetSuite distributed adaptor metadata (platform feature).\n\nOnly include if you are explicitly configuring distributed NetSuite adaptor behavior.","properties":{"accountId":{"type":"string","description":"NetSuite account identifier."},"environment":{"type":"string","description":"NetSuite environment.","enum":["production","beta","sandbox"]},"integrationId":{"type":"string","description":"Identifier used by the distributed adaptor for this integration."}}},"_sourceId":{"type":"string","format":"objectId","description":"Integration this one was cloned from. Set on every clone, standalone copies included, so\nit doesn't by itself mean the two are lifecycle-linked. Omit in create and update payloads."},"sampleIntegration":{"type":"boolean","description":"Indicates this integration is a sample/demo integration (used for templates/examples).\n\nTypically system-managed."},"syncs":{"type":"boolean","description":"When true, the integration is a container for Celigo Sync resources — set it on\n`POST /v1/integrations` before creating syncs in it (`POST /v1/syncs` into an\nintegration without it fails with `422 integration_not_for_sync`). Fixed at creation:\n`PUT /v1/integrations/{_id}` ignores the field in both directions. Keep flows out of\nit: a flow create isn't refused there. While the integration holds a sync, deleting\nit fails with 422 \"sync <id> must be deleted before you can delete integration <id>\"."},"aliases":{"type":"array","description":"Named aliases that map to specific resources within the integration.","items":{"type":"object","properties":{"alias":{"type":"string","description":"Alias name for the resource reference."},"description":{"type":"string","description":"Description of what this alias represents."},"_exportId":{"type":"string","format":"objectId","description":"Export referenced by this alias."},"_importId":{"type":"string","format":"objectId","description":"Import referenced by this alias."},"_flowId":{"type":"string","format":"objectId","description":"Flow referenced by this alias."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced by this alias."},"_lookupCacheId":{"type":"string","format":"objectId","description":"Lookup cache referenced by this alias. Added automatically when the\ncache is registered to the integration (the alias is a slug of the\ncache name), and must be removed before the cache can be deregistered."}}}},"iLMIgnore":{"type":"object","description":"Fields that integration lifecycle pulls and reverts leave untouched, keyed by resource type\n(`integration`, `flow`, `export`, ...) with an array of field paths for each. Change it with\n`PATCH /v1/integrations/{_id}` on `/iLMIgnore` and read the saved value back here; a field\npath the resource type does not allow is rejected with 422 (\"Invalid path expression\n`<path>` for <type>. Path expression not supported\").","additionalProperties":true}}},"Settings":{"type":"object","description":"Configuration settings that can be accessed by hooks, filters, mappings and handlebars templates at runtime.\n\nIt enables customization of the resource's logic, allowing hooks, mappings, filters, and\nhandlebars to access and apply the settings at runtime.\n\n**Usage**\n\nThe settings object can store arbitrary JSON data that you want to save with the resource.\nWhile it's often populated through a form defined in the `settingsForm` field, you can also:\n\n- Directly provide JSON settings without using a form\n- Store configuration values used by hooks and templates\n- Create resource-specific constants and parameters\n- Maintain lookup tables or mapping structures\n- Define conditional logic parameters\n\n**Accessibility**\n\nSettings are available in:\n- All handlebars fields for building dynamic payloads\n- Field mapping expressions\n- JavaScript hooks via the options object\n- Filters and transformations\n\nAt runtime, the settings objects in the step's execution chain are gathered into a\nsingle `settings` context keyed by fixed scope keys. Flow runs populate the full\nchain: `settings.integration.*`, `settings.flowGrouping.*` (the flow group the flow\nbelongs to), `settings.flow.*`, `settings.connection.*`, `settings.iClient.*`, and\nthe running step's own scope — `settings.export.*` on exports/lookups,\n`settings.import.*` on imports (the key matches the step type). Steps executing\ninside a My API or a Tool receive only the step's own scope plus\n`settings.connection.*` / `settings.iClient.*`; the integration, flowGrouping, and\nflow scopes resolve empty there. The scope key is literal — resource display names\nand settingsForm section labels are never part of the path. The segments after the\nscope mirror the stored settings JSON key path exactly: a top-level field is\n`settings.<scope>.<fieldId>`, and nested objects add one segment per JSON key\n(e.g. `settings.flowGrouping.Customer.region` when the group's settings JSON nests\n`region` under `Customer`). References without a scope key\n(e.g. `{{settings.myField}}`) resolve to empty strings.\n\n**Best practices**\n\nFor non-technical users, create a custom form instead of editing the JSON directly.\nThis provides a user-friendly interface for updating settings without requiring JSON knowledge.\n","additionalProperties":true},"Form":{"type":"object","description":"Configuration for creating user-friendly settings forms that make it easier for less technical users\nto configure integration resources.\n\n**Settings form builder**\n\nThe Settings Form Builder allows you to create or edit user-friendly fields that prompt for text entry\nor selections that will be returned as settings applied to this resource. Your forms can include any\nfield types that you see elsewhere in integrator.io, such as:\n\n- Text fields\n- Dropdown selections\n- Checkboxes\n- Radio buttons\n- Date pickers\n- Multi-select fields\n- Search fields\n\nForm fields make it much easier for less technical users to work with your integration settings by:\n\n- Providing clear labels and help text\n- Enforcing validation rules\n- Offering pre-defined selection options\n- Grouping related settings logically\n- Supporting conditional visibility\n- Creating a consistent user experience\n","properties":{"form":{"type":"object","description":"Configuration that defines the structure, fields, and behavior of the settings form.\n\nThis object contains the complete definition of the form's layout, fields, validation rules,\nand interactive behaviors. The specific structure depends on the form complexity and can include\nfield definitions, sections, conditional display logic, and default values.\n\nThe form configuration is typically created and managed through the visual Form Builder interface\nrather than edited directly as JSON.\n","properties":{"fieldMap":{"type":"object","description":"A mapping of field identifiers to their configuration objects.\nEach key in this object represents a unique field ID, and the value contains\nall the configuration settings for that specific form field.\n","additionalProperties":{"type":"object","description":"Configuration for an individual form field.\n","properties":{"id":{"type":"string","description":"Unique identifier for this field within the form: layout containers and conditions\nrefer to the field by it. Use the same string as the field's fieldMap key and its `name`.\n"},"name":{"type":"string","description":"Key the field's value is saved under: one top-level key of the resource's `settings`,\nwhich the form also reads the value back from when it opens. Nested objects inside\n`settings` are written to it directly, not through a form field's `name`.\n"},"type":{"type":"string","description":"The type of form control to render for this field.\n","enum":["text","checkbox","radiogroup","relativeuri","editor","keyvalue","select","multiselect","toggle","datetime","date","exportSelect","staticMap"]},"label":{"type":"string","description":"Display label shown next to the field in the form.\n"},"description":{"type":"string","description":"Detailed explanation text that appears below the field, providing more context\nthan the label or helpText.\n"},"helpText":{"type":"string","description":"Explanatory text that appears when hovering over the help icon next to the field.\nUsed to provide additional guidance on how to use the field.\n"},"required":{"type":"boolean","description":"When true, the field must have a value before the form can be submitted. Only the form\nenforces it: an API write of `settings` is stored without the value.\n","default":false},"defaultValue":{"description":"Value the form shows while the resource's `settings` holds no value under the field's\n`name`.\n"},"multiline":{"type":"boolean","description":"For text fields, determines whether the input should be a multi-line text area\ninstead of a single-line input.\n","default":false},"rowsMax":{"type":"integer","description":"For multiline text fields, specifies the maximum number of visible rows.\n"},"inputType":{"type":"string","description":"For text fields, specifies the HTML input type attribute to apply additional\nvalidation or specialized input behavior.\n","enum":["text","number","email","password","tel","url"]},"delimiter":{"type":"string","description":"For text fields, specifies a character to use for splitting the input into an array.\nUsed for collecting multiple values in a single text field.\n"},"mode":{"type":"string","description":"For editor fields, specifies the type of content being edited for syntax highlighting.\n","enum":["json","xml","csv","text"]},"keyName":{"type":"string","description":"For keyvalue and staticMap fields, names the first column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `key`.\n"},"valueName":{"type":"string","description":"For keyvalue and staticMap fields, names the second column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `value`.\n"},"keyLabel":{"type":"string","description":"For staticMap fields, heading of the first column.\n"},"valueLabel":{"type":"string","description":"For staticMap fields, heading of the second column.\n"},"keyOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the first column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"valueOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the second column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"keyResource":{"type":"object","description":"For staticMap fields, fills the first column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is. With\n`keyResource` or `valueResource` set, the form requires both columns in every row\nunless `keyValueRequired` is false.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"valueResource":{"type":"object","description":"For staticMap fields, fills the second column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"keyValueRequired":{"type":"boolean","description":"For staticMap fields with `keyResource` or `valueResource`, when false, saves rows\nthat fill only one column; by default the form drops them.\n","default":true},"resource":{"type":"object","description":"For exportSelect fields, the export whose records become the options. When the form\nopens, the UI previews the export in `virtual` (with `test.limit` 100 unless the export\nsets its own) and lists the preview's `data`: each record needs a `label` and a `value`\n(a string or number serves as both), so shape them with the export's `transform`. A\nsaved export can't be referenced, and an HTTP export that finds no records leaves the\nfield showing an error instead of options.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline: `adaptorType`, its adaptor block, and an optional\n`transform`. `_connectionId` defaults to the connection of the export or import the\nform belongs to; set it on any other resource's form. On an integration's form,\nand on the forms of its flows, it may also be the name of one of the integration's\n`aliases[]`, matched without regard to case: the UI previews the block on the\nroute scoped to the form's resource, where the alias resolves to its connection\n(past the preview's type check, a value that is neither a connection id nor an\nalias in that scope is a 400 `invalid_ref` there). Forms installed from a\ntemplate name connections this way, since the same block runs in every account\nthe template is installed in. The unscoped `POST /v1/exports/preview` knows no\naliases: past the preview's type check, an alias name there is 400 `invalid_ref`.\n","additionalProperties":true}}},"multiselect":{"type":"boolean","description":"For exportSelect fields, when true, the user can choose several options and the value\nis saved as an array.\n","default":false},"supportHandlebars":{"type":"boolean","description":"For exportSelect fields, when true, renders the `resource.virtual` export as a Handlebars\ntemplate before each preview (all but its `transform`, `hooks`, and `filter`). On an\nintegration, flow group, flow, export, or import form, the form's current values are\nunder that form's scope name (`integration`, `flowGrouping`, `flow`, `export`, or\n`import`), beside the saved settings of the scopes above it, with no `settings.`\nprefix; on a connection or iClient form the template has no context. The options then\nload through `refreshOptionsOnChangesTo` or `typeAheadSearch`, or when the user\nrefreshes the field.\n","default":false},"refreshOptionsOnChangesTo":{"type":"array","items":{"type":"string"},"description":"For exportSelect fields with `supportHandlebars`, ids of the fields whose values the\ntemplated export uses: the options load once one of them has a value and reload whenever\none changes.\n"},"typeAheadSearch":{"type":"boolean","description":"For exportSelect fields, when true, re-runs the templated export as the user types, with\nthe typed text as this field's own value; an empty box clears the options, and typed\ntext is accepted as the value.\n","default":false},"showDelete":{"type":"boolean","description":"For keyvalue fields, determines whether to show a delete button for each key-value pair.\n"},"doNotAllowFutureDates":{"type":"boolean","description":"For date and datetime fields, restricts selection to dates not in the future.\n"},"skipTimezoneConversion":{"type":"boolean","description":"For datetime fields, prevents automatic timezone conversion of the date value.\n"},"options":{"type":"array","description":"For fields that present choices (select, multiselect, radiogroup, toggle), defines\nthe available options.\n","items":{"anyOf":[{"title":"Option group","type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"oneOf":[{"title":"String value","type":"string"},{"title":"Label-value pair","type":"object","properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]},"description":"Array of option values/labels to display in the selection control.\n"}}},{"title":"Label-value pair","type":"object","required":["label"],"properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]}},"visibleWhen":{"type":"array","description":"Conditional display rules that determine when this field should be visible.\nIf empty or not provided, the field is always visible.\n","items":{"type":"object","properties":{"field":{"type":"string","description":"The ID of another field whose value controls the visibility of this field. The\nsave doesn't check it: a rule naming an ID that isn't in the form counts as met,\nso the field stays visible.\n"},"is":{"type":"array","items":{"type":["string","boolean","number","null"]},"description":"Array of values - if the referenced field has any of these values,\nthis field will be visible. Values may be strings, booleans (for\ncheckbox/toggle fields), numbers (for numeric inputs), or null.\n"}}}}}}},"layout":{"type":"object","description":"Defines how the form fields are arranged and grouped in the UI.\nThe layout can organize fields into columns, sections, or other visual groupings.\n","properties":{"type":{"type":"string","description":"The type of layout to use for the form.\n","enum":["column","collapse","box","indent","tabWithoutSave","verticalTabWithoutSave"]},"fields":{"type":"array","items":{"type":"string"},"description":"Field IDs shown above the containers, without a heading.\n"},"containers":{"type":"array","description":"Array of container objects that group fields or contain nested containers.\nEach container can represent a column, box, indented section, or collapsible section.\n","items":{"type":"object","properties":{"type":{"type":"string","description":"The visual style of the container.\n","enum":["indent","box","collapse"]},"label":{"type":"string","description":"The heading text displayed for this container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this container.\nEach ID must correspond to a key in the fieldMap object: the save doesn't check it,\nand an ID that doesn't renders nothing. A field the layout doesn't list isn't shown.\n"},"containers":{"type":"array","description":"Nested containers within this container. Allows for hierarchical organization\nof fields with different visual styles.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"The heading text displayed for this nested container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this nested container.\n"}}}}}}}}}},"additionalProperties":true},"init":{"type":"object","description":"Configuration for custom JavaScript initialization that executes when the form is first loaded.\n\nThis object defines a JavaScript hook that prepares the form for use, sets initial field values,\nperforms validation, or otherwise customizes the form behavior before it is displayed to the user.\n\n**Function signature**\n\nThe initialization function is invoked with a single 'options' argument containing contextual information:\n```javascript\nfunction formInit(options) {\n  // Process options and return the form object\n  return options.resource.settingsForm.form;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.resource` - The current resource being configured\n- `options.parentResource` - The parent of the current resource\n- `options.grandparentResource` - The grandparent of the current resource\n- `options.license` - For integration apps, the license provisioned to the integration\n- `options.parentLicense` - For integration apps, the parent of the license\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Dynamically generate field options based on resource configuration\n- Pre-populate default values from related resources\n- Apply conditional logic that depends on resource properties\n- Add, remove, or modify form fields based on user permissions or account settings\n- Fetch external data to populate selection options\n- Implement complex validation rules that depend on resource context\n- Create branching form experiences based on user selections\n\n**Return value**\n\nThe function must return a valid form object that the UI can render.\nThrowing an exception will signal an error to the user.\n\nThe UI runs the function each time it opens the form and renders the returned form instead of\n`form`, then fills in the values from `settings`; a thrown error's message replaces the form.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called when the form\nis initialized and should handle any custom setup logic.\n\nThe function must follow the expected signature and return a valid form object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the initialization function.\n\nThe referenced script should contain the function specified in the\n'function' property. On an integration, a flow group, a flow, an export, an import, or a\nconnection, an id that isn't a script in the same account (or, on an Integration App's\nresources, one the app shares) is refused with 422 `invalid_ref`. An iClient save\nstores the id without that check.\n"}}}}},"PreSave":{"type":"object","description":"Defines a JavaScript hook that executes before the resource is saved.\n\nThis hook allows for programmatic validation, transformation, or enrichment of the\nresource itself before it is persisted. It can be used to enforce business rules,\nset derived properties, or implement cross-field validations that can't be expressed\nthrough the standard UI.\n\n**Function signature**\n\nThe preSave function is invoked with a single 'options' argument containing:\n```javascript\nfunction preSave(options) {\n  // Process options and return the modified resource\n  return options.newResource;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.newResource` - The resource being saved (with pending changes)\n- `options.oldResource` - The previous version of the resource (before changes)\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Enforcing complex business rules across multiple fields\n- Automatically deriving field values based on other configuration\n- Performing validation that depends on external systems or data\n- Normalizing or standardizing configuration values\n- Adding computed or derived properties\n- Implementing versioning or change tracking\n- Dynamically looking up data using the Celigo API module to enrich configuration\n\n**Return value**\n\nThe function must return the newResource object (potentially modified) to be saved.\nThrowing an exception will prevent saving and signal an error to the user.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called just before\nthe resource is saved.\n\nThe function must follow the expected signature and return the resource object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the preSave function.\n\nThe referenced script should contain the function specified in the\n'function' property. This script must be accessible within the user's account\nand have appropriate permissions.\n"}}},"Integration":{"type":"object","description":"Integration object as returned by the API.","required":["_id","name","createdAt","lastModified","install","installSteps","uninstallSteps","changeEditionSteps","flowGroupings","apiGroupings","_registeredConnectionIds"],"allOf":[{"$ref":"#/components/schemas/IntegrationBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_registeredConnectionIds":{"type":"array","readOnly":true,"description":"Connections registered to this integration. Managed by the platform when users\nregister connections through the UI or the integration's registerConnection\noperation; client-sent values are ignored (PUT-verified).","items":{"type":"string","format":"objectId"}},"_registeredLookupCacheIds":{"type":"array","readOnly":true,"description":"Lookup caches registered to this integration, managed by the platform.","items":{"type":"string","format":"objectId"}},"_registeredTopicIds":{"type":"array","readOnly":true,"description":"Topics registered to this integration, so its flows can subscribe to or publish on them.\nMaintained by the platform: added through the integration's topic `register` operations,\n`POST /v1/topics` with `__integrationIds`, or automatically when a flow in the integration\nis saved with a step bound to a topic; removed by the `DELETE …/register` operation or when\nthe topic is deleted. Client-sent values are ignored (PUT-verified). With no topic\nregistered it is an empty array, or absent on older integrations.","items":{"type":"string","format":"objectId"}},"_registeredKnowledgeBaseIds":{"type":"array","readOnly":true,"description":"Knowledge bases registered to this integration. Maintained by the platform: a\nvalue sent on a create or update is ignored. With none registered it is an empty\narray, or absent on an integration last saved before the field existed.","items":{"type":"string","format":"objectId"}}}}]},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"400-bad-request":{"description":"Bad request. The server could not understand the request because of malformed syntax or invalid parameters.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"422-unprocessable-entity":{"description":"Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations":{"post":{"summary":"Create an integration","description":"Creates a new integration. Only `name` is required — the server populates all other\nfields with defaults. Do not include `_connectorId` unless you are creating an\nIntegration App installation, or `_templateId` unless the integration is created from\na template; leave the install-wizard fields (`mode`, `install`, `installSteps`) to the\nplatform's installers.","operationId":"createIntegration","tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}}},"responses":{"201":{"description":"Integration created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"400":{"$ref":"#/components/responses/400-bad-request"},"401":{"$ref":"#/components/responses/401-unauthorized"},"422":{"$ref":"#/components/responses/422-unprocessable-entity"}}}}}}
````

## Get an integration

> Returns the full integration object.

````json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Integration":{"type":"object","description":"Integration object as returned by the API.","required":["_id","name","createdAt","lastModified","install","installSteps","uninstallSteps","changeEditionSteps","flowGroupings","apiGroupings","_registeredConnectionIds"],"allOf":[{"$ref":"#/components/schemas/IntegrationBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_registeredConnectionIds":{"type":"array","readOnly":true,"description":"Connections registered to this integration. Managed by the platform when users\nregister connections through the UI or the integration's registerConnection\noperation; client-sent values are ignored (PUT-verified).","items":{"type":"string","format":"objectId"}},"_registeredLookupCacheIds":{"type":"array","readOnly":true,"description":"Lookup caches registered to this integration, managed by the platform.","items":{"type":"string","format":"objectId"}},"_registeredTopicIds":{"type":"array","readOnly":true,"description":"Topics registered to this integration, so its flows can subscribe to or publish on them.\nMaintained by the platform: added through the integration's topic `register` operations,\n`POST /v1/topics` with `__integrationIds`, or automatically when a flow in the integration\nis saved with a step bound to a topic; removed by the `DELETE …/register` operation or when\nthe topic is deleted. Client-sent values are ignored (PUT-verified). With no topic\nregistered it is an empty array, or absent on older integrations.","items":{"type":"string","format":"objectId"}},"_registeredKnowledgeBaseIds":{"type":"array","readOnly":true,"description":"Knowledge bases registered to this integration. Maintained by the platform: a\nvalue sent on a create or update is ignored. With none registered it is an empty\narray, or absent on an integration last saved before the field existed.","items":{"type":"string","format":"objectId"}}}}]},"IntegrationBase":{"type":"object","description":"Writable integration fields shared by the request and response schemas.","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"Human-readable name for the integration.\n\nUse a short, descriptive label that helps users identify the integration in the UI."},"description":{"type":["string","null"],"maxLength":5120,"description":"Optional description of the integration's purpose and behavior.\n\nHelpful for documentation, onboarding, and clarifying what the integration does."},"readme":{"type":["string","null"],"maxLength":51200,"description":"Long-form README content for the integration (typically Markdown).\n\nUse this to provide setup instructions, prerequisites, and operational notes."},"_connectorId":{"type":"string","format":"objectId","description":"Integration App (connector) identifier when this integration is based on an installed Integration App.\nAn integration carrying it is a tile (or a child of one) and is uninstalled from its Admin →\nUninstall page, never deleted: a DELETE answers 403 `delete_not_allowed`.\n\nIf you are not working with an Integration App installation, omit this field."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template this integration was installed from. Absent on integrations built from scratch and on\nclones. It does not make the integration an Integration App — `_connectorId` does.\n\nOmit unless you are creating/updating an integration from a template."},"install":{"type":"array","description":"Install \"cards\" an Integration App installer shows during installation — UI workflow metadata, not runtime\nconfiguration. The platform also writes it (empty) on a plain custom integration created by the UI's\nclone-and-install, so its presence does not indicate an Integration App.\n\nUnless you are explicitly modeling an install experience, omit this field.","items":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","description":"Display name for this install card."},"description":{"type":"string","description":"Help text shown to the user for this install card."},"imageURL":{"type":"string","description":"Optional image URL to display for this install card."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created/registered by this card (if applicable)."},"installURL":{"type":"string","description":"URL to open during install (if the card is URL-based)."},"completed":{"type":["boolean","null"],"description":"When true, this card has been completed. The server also returns `null` for cards whose completion state was never set."},"installerFunction":{"type":"string","description":"Optional function name used by the platform to run install logic for this card."},"uninstallerFunction":{"type":"string","description":"Optional function name used by the platform to run uninstall logic for this card."},"options":{"type":"object","description":"Free-form options passed to the installer/uninstaller logic.","additionalProperties":true},"sourceConnection":{"type":"object","description":"Source connection metadata used to prefill or drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this card uses a template ZIP artifact."},"_stackId":{"type":"string","format":"objectId","description":"Stack identifier used by install logic (if applicable)."},"isClone":{"type":"boolean","description":"When true, this card is part of a clone workflow."},"form":{"type":"object","description":"Inline form definition used by this card (if applicable).","additionalProperties":true}}}},"mode":{"type":"string","description":"Where the integration stands in its install or uninstall wizard. The platform writes it on a plain custom\nintegration created by the UI's clone-and-install as much as on an Integration App, and leaves it set after\nthe wizard completes, so it does not indicate an Integration App (`_connectorId` does).\n\nOmit when creating an integration directly.","enum":["install","settings","uninstall"]},"settings":{"description":"Integration App settings object for this integration. An Integration App can also keep\nits settings fields here, each with its current value: `settings.general` and\n`settings.sections[]` (tabs, then nested `sections[]`, then `fields[]`; a flow entry's own\nfields sit in its `settings[]`). When `settings.supportsMultiStore` is true, each\n`settings.sections[]` entry is a store and its own `sections[]` are the tabs.\nA write that changes it to a non-empty string, a number, or a boolean fails with 422\n`invalid_field_type` (\"Invalid value provided for settings. Expected an object.\"); an\nobject, an array, an empty string, and `null` are accepted.","allOf":[{"description":"Integration App settings object for this integration.\n\nThese values are typically collected via `settingsForm` and then stored here. When generating values,\nprefer setting only the fields required by the form/workflow and omit unknown keys."},{"$ref":"#/components/schemas/Settings"}]},"version":{"type":["string","null"],"description":"Version of the Integration App (or template) currently installed in this integration.\nFor Integration Apps the connector's update workflow sets it; omit unless you are\nexplicitly controlling versions."},"tag":{"type":["string","null"],"description":"Legacy field for distinguishing multiple instances of the same Integration App within a single Celigo environment.\n\nOnly set this when a customer is running multiple installations of the same Integration App. Otherwise, omit this field."},"updateInProgress":{"type":"boolean","description":"When true, an Integration App update workflow is currently running. Settable via the\nAPI, but normally managed by the platform's update workflow."},"celigoAgentAutoRunMode":{"type":"boolean","description":"When true, the Celigo Agent (Ora) saves its updates to this integration, and to an export\nor import that is a step of one of its flows, without a manual approval step.\n\nOmit unless you are explicitly configuring Celigo Agent behavior for this integration."},"resolvedAt":{"type":"string","format":"date-time","description":"Timestamp indicating when the most recent install/update workflow was resolved/completed.\n\nTypically system-managed; omit in normal create/update payloads."},"settingsForm":{"description":"Settings form definition for the integration.","allOf":[{"description":"Settings form definition for the integration.\n\nThis controls the UI fields shown to users to collect `settings`.\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/Form"}]},"preSave":{"description":"Pre-save hook configuration used to validate/transform settings before saving.","allOf":[{"description":"Pre-save hook configuration used to validate/transform settings before saving.\n\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/PreSave"}]},"update":{"type":"object","description":"Script reference used by the platform to perform integration update logic (e.g., migration between versions).\n\nOnly include when the update workflow explicitly requires it.","properties":{"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the update implementation."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for the update script (if applicable)."},"function":{"type":"string","description":"Function name within the script to invoke for updates."}}},"installSteps":{"type":"array","description":"Ordered steps of the install wizard that created this integration, each marked completed as it finishes.\nWritten by the UI's clone-and-install of a plain custom integration (a `template_zip` step with `isClone`\ntrue) as well as by Integration App installers, and kept after completion — so a populated list does not\nindicate an Integration App.\n\nOmit unless you are building an installer.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Options the installer logic reads for this step. Free-form, except\nthat the MCP-server template install writes `mcpServerTemplate` on\nits `template_zip` step.","additionalProperties":true,"properties":{"mcpServerTemplate":{"type":"object","additionalProperties":true,"description":"Marks the `template_zip` step of the Integration that installing an\nMCP-server template creates when the template packs dependencies\n(`POST /v1/mcpservers/template`, or a Marketplace MCP listing); the\nserver itself is created by this step's final save, not before.\nWritten with the template's identity and connection shapes when the\nIntegration is created, then extended with the step's checkpoint as\nthe step runs, so a retry of a failed step reuses what an earlier\nattempt already created instead of creating it again. Completing the\nstep creates the MCP server, disabled, and copies the template's\nresource files into this Integration's folder in Celigo Storage.","properties":{"sourceIntegrationId":{"type":"string","format":"objectId","description":"Integration document the template's resources belong to — the\n`integration.json` in the template ZIP. The Integration being\ninstalled is cloned from it (its `_sourceId`); it is not an\nIntegration in this account."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template the install came from. Absent when the ZIP was uploaded directly."},"connectionShapes":{"type":"array","description":"One entry per connection the template packs, read when the matching\n`connection` step binds or creates a connection: a connection the step\ncreates receives the entry's `endUserProvidedFields`; an existing\nconnection is updated only when the entry requires end-user\ncredentials and the connection has no list of its own yet. When the\nentry requires end-user credentials, an existing connection of\nanother `type` is refused.","items":{"type":"object","properties":{"_id":{"type":"string","format":"objectId","description":"The connection's id inside the template, matched against the `connection` step's `sourceConnection._id`."},"type":{"type":"string","description":"Connection type the step's connection must have when the entry requires end-user credentials."},"endUserProvidedFields":{"type":"array","items":{"type":"string"},"description":"Dot-paths of the connection's fields each end user supplies on their own copy, as the template's publisher set them."},"requiresEndUserCredentials":{"type":"boolean","description":"When true, the template's server requires every end user to supply their own credentials on this connection."}}}},"mcpServerId":{"type":"string","format":"objectId","description":"Id reserved for the MCP server once the template's tools are created,\nbefore any resource file is uploaded. While the step is incomplete it\nis only a reservation — no server document exists under it until the\nstep's final save; a retry returns the saved server without uploading\nagain only when an earlier attempt already saved a server for this id."},"toolIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Tool id inside the template → id of the Tool the install created from it, written with `mcpServerId`; a retry reuses the created tools."},"apiIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"API id inside the template → id of the API the install created from it, written with `toolIdMap`."},"resourceFileMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Resource file entry in the template ZIP (`resources/<key>`) → id of its\ncopy in this Integration's Celigo Storage folder. Written only after\nevery copied file is active, so a retry that finds the map skips the\nupload; cleared, together with `createdFolderIds` and\n`createdFileIds`, before a failed attempt's files are removed."},"createdFolderIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage folders the install created under this Integration's folder for the resource files' relative paths — the current checkpoint, cleared with `resourceFileMap` before a failed attempt's rollback and rewritten by the next attempt."},"createdFileIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage files the install has copied — the current checkpoint, cleared and rewritten the same way as `createdFolderIds`; the completed server serves them as its resources."}}}}}}}},"uninstallSteps":{"type":"array","description":"Ordered list of lifecycle steps used by the Integration App uninstaller.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"changeEditionSteps":{"type":"array","description":"Ordered list of steps used when changing the integration's edition/license.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"pendingLicense":{"type":["object","null"],"description":"Pending license/edition change information for the integration.\n\nThe server returns `null` when no license/edition change is pending (rather than omitting the field).\nOnly include when a license/edition change workflow explicitly requires it.","properties":{"opts":{"type":"object","description":"Free-form license options/payload.","additionalProperties":true},"_editionId":{"type":["string","null"],"format":"objectId","description":"Target edition ID for the pending license change, or `null` when cleared."}}},"_parentId":{"type":"string","format":"objectId","description":"Parent integration ID when this integration was created as a child of another integration.\nInvalid ids are silently dropped by the server. Omit unless creating/updating child integrations."},"childDisplayName":{"type":"string","description":"Display name used for a child integration created during installation.\n\nOmit unless creating/updating child integrations."},"initChild":{"type":"object","description":"Script reference used to initialize a child integration during installation.\n\nOnly include when the child initialization workflow explicitly requires it.","properties":{"function":{"type":"string","description":"Function name to invoke to initialize the child integration."},"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the initChild function."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for initChild (if applicable)."}}},"flowGroupings":{"type":"array","description":"UI grouping configuration that groups an integration's flows into named\nsections. Works on ANY integration — this is NOT an Integration-App-only\nfeature; a plain integration can define flow groupings too. Create groupings\nhere, then assign flows to them via `PUT /v1/flows/updateFlowGrouping`. A\ngrouping that still has member flows survives being removed from this array —\nungroup its flows first.\n\nOmit unless you are explicitly configuring flow grouping behavior.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the flow grouping section."},"settings":{"type":"object","description":"Group-level settings for flows in this group. At runtime, flows in the\ngroup read these values under the fixed scope key `flowGrouping` — e.g.\nthe Handlebars expression `{{{settings.flowGrouping.salesOrganization}}}`\nor the Mapper 2.0 envelope path `$.settings.flowGrouping.salesOrganization`.","additionalProperties":true},"settingsForm":{"description":"Form definition for this flow grouping's settings UI.","allOf":[{"description":"Form definition for this flow grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"apiGroupings":{"type":"array","description":"UI grouping configuration for APIs within the integration.\n\nUsed to group APIs into named sections with their own settings/settingsForm.\nWorks identically to `flowGroupings` but for API resources. Create groupings here,\nthen assign APIs to them via `PUT /v1/apis/updateApiGrouping`. A grouping that still\nhas member APIs survives being removed from this array — ungroup its APIs first.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the API grouping section."},"settings":{"type":"object","description":"Group-level settings for APIs in this group.","additionalProperties":true},"settingsForm":{"description":"Form definition for this API grouping's settings UI.","allOf":[{"description":"Form definition for this API grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"netSuiteDistributedAdaptor":{"type":"object","description":"NetSuite distributed adaptor metadata (platform feature).\n\nOnly include if you are explicitly configuring distributed NetSuite adaptor behavior.","properties":{"accountId":{"type":"string","description":"NetSuite account identifier."},"environment":{"type":"string","description":"NetSuite environment.","enum":["production","beta","sandbox"]},"integrationId":{"type":"string","description":"Identifier used by the distributed adaptor for this integration."}}},"_sourceId":{"type":"string","format":"objectId","description":"Integration this one was cloned from. Set on every clone, standalone copies included, so\nit doesn't by itself mean the two are lifecycle-linked. Omit in create and update payloads."},"sampleIntegration":{"type":"boolean","description":"Indicates this integration is a sample/demo integration (used for templates/examples).\n\nTypically system-managed."},"syncs":{"type":"boolean","description":"When true, the integration is a container for Celigo Sync resources — set it on\n`POST /v1/integrations` before creating syncs in it (`POST /v1/syncs` into an\nintegration without it fails with `422 integration_not_for_sync`). Fixed at creation:\n`PUT /v1/integrations/{_id}` ignores the field in both directions. Keep flows out of\nit: a flow create isn't refused there. While the integration holds a sync, deleting\nit fails with 422 \"sync <id> must be deleted before you can delete integration <id>\"."},"aliases":{"type":"array","description":"Named aliases that map to specific resources within the integration.","items":{"type":"object","properties":{"alias":{"type":"string","description":"Alias name for the resource reference."},"description":{"type":"string","description":"Description of what this alias represents."},"_exportId":{"type":"string","format":"objectId","description":"Export referenced by this alias."},"_importId":{"type":"string","format":"objectId","description":"Import referenced by this alias."},"_flowId":{"type":"string","format":"objectId","description":"Flow referenced by this alias."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced by this alias."},"_lookupCacheId":{"type":"string","format":"objectId","description":"Lookup cache referenced by this alias. Added automatically when the\ncache is registered to the integration (the alias is a slug of the\ncache name), and must be removed before the cache can be deregistered."}}}},"iLMIgnore":{"type":"object","description":"Fields that integration lifecycle pulls and reverts leave untouched, keyed by resource type\n(`integration`, `flow`, `export`, ...) with an array of field paths for each. Change it with\n`PATCH /v1/integrations/{_id}` on `/iLMIgnore` and read the saved value back here; a field\npath the resource type does not allow is rejected with 422 (\"Invalid path expression\n`<path>` for <type>. Path expression not supported\").","additionalProperties":true}}},"Settings":{"type":"object","description":"Configuration settings that can be accessed by hooks, filters, mappings and handlebars templates at runtime.\n\nIt enables customization of the resource's logic, allowing hooks, mappings, filters, and\nhandlebars to access and apply the settings at runtime.\n\n**Usage**\n\nThe settings object can store arbitrary JSON data that you want to save with the resource.\nWhile it's often populated through a form defined in the `settingsForm` field, you can also:\n\n- Directly provide JSON settings without using a form\n- Store configuration values used by hooks and templates\n- Create resource-specific constants and parameters\n- Maintain lookup tables or mapping structures\n- Define conditional logic parameters\n\n**Accessibility**\n\nSettings are available in:\n- All handlebars fields for building dynamic payloads\n- Field mapping expressions\n- JavaScript hooks via the options object\n- Filters and transformations\n\nAt runtime, the settings objects in the step's execution chain are gathered into a\nsingle `settings` context keyed by fixed scope keys. Flow runs populate the full\nchain: `settings.integration.*`, `settings.flowGrouping.*` (the flow group the flow\nbelongs to), `settings.flow.*`, `settings.connection.*`, `settings.iClient.*`, and\nthe running step's own scope — `settings.export.*` on exports/lookups,\n`settings.import.*` on imports (the key matches the step type). Steps executing\ninside a My API or a Tool receive only the step's own scope plus\n`settings.connection.*` / `settings.iClient.*`; the integration, flowGrouping, and\nflow scopes resolve empty there. The scope key is literal — resource display names\nand settingsForm section labels are never part of the path. The segments after the\nscope mirror the stored settings JSON key path exactly: a top-level field is\n`settings.<scope>.<fieldId>`, and nested objects add one segment per JSON key\n(e.g. `settings.flowGrouping.Customer.region` when the group's settings JSON nests\n`region` under `Customer`). References without a scope key\n(e.g. `{{settings.myField}}`) resolve to empty strings.\n\n**Best practices**\n\nFor non-technical users, create a custom form instead of editing the JSON directly.\nThis provides a user-friendly interface for updating settings without requiring JSON knowledge.\n","additionalProperties":true},"Form":{"type":"object","description":"Configuration for creating user-friendly settings forms that make it easier for less technical users\nto configure integration resources.\n\n**Settings form builder**\n\nThe Settings Form Builder allows you to create or edit user-friendly fields that prompt for text entry\nor selections that will be returned as settings applied to this resource. Your forms can include any\nfield types that you see elsewhere in integrator.io, such as:\n\n- Text fields\n- Dropdown selections\n- Checkboxes\n- Radio buttons\n- Date pickers\n- Multi-select fields\n- Search fields\n\nForm fields make it much easier for less technical users to work with your integration settings by:\n\n- Providing clear labels and help text\n- Enforcing validation rules\n- Offering pre-defined selection options\n- Grouping related settings logically\n- Supporting conditional visibility\n- Creating a consistent user experience\n","properties":{"form":{"type":"object","description":"Configuration that defines the structure, fields, and behavior of the settings form.\n\nThis object contains the complete definition of the form's layout, fields, validation rules,\nand interactive behaviors. The specific structure depends on the form complexity and can include\nfield definitions, sections, conditional display logic, and default values.\n\nThe form configuration is typically created and managed through the visual Form Builder interface\nrather than edited directly as JSON.\n","properties":{"fieldMap":{"type":"object","description":"A mapping of field identifiers to their configuration objects.\nEach key in this object represents a unique field ID, and the value contains\nall the configuration settings for that specific form field.\n","additionalProperties":{"type":"object","description":"Configuration for an individual form field.\n","properties":{"id":{"type":"string","description":"Unique identifier for this field within the form: layout containers and conditions\nrefer to the field by it. Use the same string as the field's fieldMap key and its `name`.\n"},"name":{"type":"string","description":"Key the field's value is saved under: one top-level key of the resource's `settings`,\nwhich the form also reads the value back from when it opens. Nested objects inside\n`settings` are written to it directly, not through a form field's `name`.\n"},"type":{"type":"string","description":"The type of form control to render for this field.\n","enum":["text","checkbox","radiogroup","relativeuri","editor","keyvalue","select","multiselect","toggle","datetime","date","exportSelect","staticMap"]},"label":{"type":"string","description":"Display label shown next to the field in the form.\n"},"description":{"type":"string","description":"Detailed explanation text that appears below the field, providing more context\nthan the label or helpText.\n"},"helpText":{"type":"string","description":"Explanatory text that appears when hovering over the help icon next to the field.\nUsed to provide additional guidance on how to use the field.\n"},"required":{"type":"boolean","description":"When true, the field must have a value before the form can be submitted. Only the form\nenforces it: an API write of `settings` is stored without the value.\n","default":false},"defaultValue":{"description":"Value the form shows while the resource's `settings` holds no value under the field's\n`name`.\n"},"multiline":{"type":"boolean","description":"For text fields, determines whether the input should be a multi-line text area\ninstead of a single-line input.\n","default":false},"rowsMax":{"type":"integer","description":"For multiline text fields, specifies the maximum number of visible rows.\n"},"inputType":{"type":"string","description":"For text fields, specifies the HTML input type attribute to apply additional\nvalidation or specialized input behavior.\n","enum":["text","number","email","password","tel","url"]},"delimiter":{"type":"string","description":"For text fields, specifies a character to use for splitting the input into an array.\nUsed for collecting multiple values in a single text field.\n"},"mode":{"type":"string","description":"For editor fields, specifies the type of content being edited for syntax highlighting.\n","enum":["json","xml","csv","text"]},"keyName":{"type":"string","description":"For keyvalue and staticMap fields, names the first column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `key`.\n"},"valueName":{"type":"string","description":"For keyvalue and staticMap fields, names the second column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `value`.\n"},"keyLabel":{"type":"string","description":"For staticMap fields, heading of the first column.\n"},"valueLabel":{"type":"string","description":"For staticMap fields, heading of the second column.\n"},"keyOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the first column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"valueOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the second column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"keyResource":{"type":"object","description":"For staticMap fields, fills the first column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is. With\n`keyResource` or `valueResource` set, the form requires both columns in every row\nunless `keyValueRequired` is false.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"valueResource":{"type":"object","description":"For staticMap fields, fills the second column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"keyValueRequired":{"type":"boolean","description":"For staticMap fields with `keyResource` or `valueResource`, when false, saves rows\nthat fill only one column; by default the form drops them.\n","default":true},"resource":{"type":"object","description":"For exportSelect fields, the export whose records become the options. When the form\nopens, the UI previews the export in `virtual` (with `test.limit` 100 unless the export\nsets its own) and lists the preview's `data`: each record needs a `label` and a `value`\n(a string or number serves as both), so shape them with the export's `transform`. A\nsaved export can't be referenced, and an HTTP export that finds no records leaves the\nfield showing an error instead of options.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline: `adaptorType`, its adaptor block, and an optional\n`transform`. `_connectionId` defaults to the connection of the export or import the\nform belongs to; set it on any other resource's form. On an integration's form,\nand on the forms of its flows, it may also be the name of one of the integration's\n`aliases[]`, matched without regard to case: the UI previews the block on the\nroute scoped to the form's resource, where the alias resolves to its connection\n(past the preview's type check, a value that is neither a connection id nor an\nalias in that scope is a 400 `invalid_ref` there). Forms installed from a\ntemplate name connections this way, since the same block runs in every account\nthe template is installed in. The unscoped `POST /v1/exports/preview` knows no\naliases: past the preview's type check, an alias name there is 400 `invalid_ref`.\n","additionalProperties":true}}},"multiselect":{"type":"boolean","description":"For exportSelect fields, when true, the user can choose several options and the value\nis saved as an array.\n","default":false},"supportHandlebars":{"type":"boolean","description":"For exportSelect fields, when true, renders the `resource.virtual` export as a Handlebars\ntemplate before each preview (all but its `transform`, `hooks`, and `filter`). On an\nintegration, flow group, flow, export, or import form, the form's current values are\nunder that form's scope name (`integration`, `flowGrouping`, `flow`, `export`, or\n`import`), beside the saved settings of the scopes above it, with no `settings.`\nprefix; on a connection or iClient form the template has no context. The options then\nload through `refreshOptionsOnChangesTo` or `typeAheadSearch`, or when the user\nrefreshes the field.\n","default":false},"refreshOptionsOnChangesTo":{"type":"array","items":{"type":"string"},"description":"For exportSelect fields with `supportHandlebars`, ids of the fields whose values the\ntemplated export uses: the options load once one of them has a value and reload whenever\none changes.\n"},"typeAheadSearch":{"type":"boolean","description":"For exportSelect fields, when true, re-runs the templated export as the user types, with\nthe typed text as this field's own value; an empty box clears the options, and typed\ntext is accepted as the value.\n","default":false},"showDelete":{"type":"boolean","description":"For keyvalue fields, determines whether to show a delete button for each key-value pair.\n"},"doNotAllowFutureDates":{"type":"boolean","description":"For date and datetime fields, restricts selection to dates not in the future.\n"},"skipTimezoneConversion":{"type":"boolean","description":"For datetime fields, prevents automatic timezone conversion of the date value.\n"},"options":{"type":"array","description":"For fields that present choices (select, multiselect, radiogroup, toggle), defines\nthe available options.\n","items":{"anyOf":[{"title":"Option group","type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"oneOf":[{"title":"String value","type":"string"},{"title":"Label-value pair","type":"object","properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]},"description":"Array of option values/labels to display in the selection control.\n"}}},{"title":"Label-value pair","type":"object","required":["label"],"properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]}},"visibleWhen":{"type":"array","description":"Conditional display rules that determine when this field should be visible.\nIf empty or not provided, the field is always visible.\n","items":{"type":"object","properties":{"field":{"type":"string","description":"The ID of another field whose value controls the visibility of this field. The\nsave doesn't check it: a rule naming an ID that isn't in the form counts as met,\nso the field stays visible.\n"},"is":{"type":"array","items":{"type":["string","boolean","number","null"]},"description":"Array of values - if the referenced field has any of these values,\nthis field will be visible. Values may be strings, booleans (for\ncheckbox/toggle fields), numbers (for numeric inputs), or null.\n"}}}}}}},"layout":{"type":"object","description":"Defines how the form fields are arranged and grouped in the UI.\nThe layout can organize fields into columns, sections, or other visual groupings.\n","properties":{"type":{"type":"string","description":"The type of layout to use for the form.\n","enum":["column","collapse","box","indent","tabWithoutSave","verticalTabWithoutSave"]},"fields":{"type":"array","items":{"type":"string"},"description":"Field IDs shown above the containers, without a heading.\n"},"containers":{"type":"array","description":"Array of container objects that group fields or contain nested containers.\nEach container can represent a column, box, indented section, or collapsible section.\n","items":{"type":"object","properties":{"type":{"type":"string","description":"The visual style of the container.\n","enum":["indent","box","collapse"]},"label":{"type":"string","description":"The heading text displayed for this container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this container.\nEach ID must correspond to a key in the fieldMap object: the save doesn't check it,\nand an ID that doesn't renders nothing. A field the layout doesn't list isn't shown.\n"},"containers":{"type":"array","description":"Nested containers within this container. Allows for hierarchical organization\nof fields with different visual styles.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"The heading text displayed for this nested container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this nested container.\n"}}}}}}}}}},"additionalProperties":true},"init":{"type":"object","description":"Configuration for custom JavaScript initialization that executes when the form is first loaded.\n\nThis object defines a JavaScript hook that prepares the form for use, sets initial field values,\nperforms validation, or otherwise customizes the form behavior before it is displayed to the user.\n\n**Function signature**\n\nThe initialization function is invoked with a single 'options' argument containing contextual information:\n```javascript\nfunction formInit(options) {\n  // Process options and return the form object\n  return options.resource.settingsForm.form;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.resource` - The current resource being configured\n- `options.parentResource` - The parent of the current resource\n- `options.grandparentResource` - The grandparent of the current resource\n- `options.license` - For integration apps, the license provisioned to the integration\n- `options.parentLicense` - For integration apps, the parent of the license\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Dynamically generate field options based on resource configuration\n- Pre-populate default values from related resources\n- Apply conditional logic that depends on resource properties\n- Add, remove, or modify form fields based on user permissions or account settings\n- Fetch external data to populate selection options\n- Implement complex validation rules that depend on resource context\n- Create branching form experiences based on user selections\n\n**Return value**\n\nThe function must return a valid form object that the UI can render.\nThrowing an exception will signal an error to the user.\n\nThe UI runs the function each time it opens the form and renders the returned form instead of\n`form`, then fills in the values from `settings`; a thrown error's message replaces the form.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called when the form\nis initialized and should handle any custom setup logic.\n\nThe function must follow the expected signature and return a valid form object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the initialization function.\n\nThe referenced script should contain the function specified in the\n'function' property. On an integration, a flow group, a flow, an export, an import, or a\nconnection, an id that isn't a script in the same account (or, on an Integration App's\nresources, one the app shares) is refused with 422 `invalid_ref`. An iClient save\nstores the id without that check.\n"}}}}},"PreSave":{"type":"object","description":"Defines a JavaScript hook that executes before the resource is saved.\n\nThis hook allows for programmatic validation, transformation, or enrichment of the\nresource itself before it is persisted. It can be used to enforce business rules,\nset derived properties, or implement cross-field validations that can't be expressed\nthrough the standard UI.\n\n**Function signature**\n\nThe preSave function is invoked with a single 'options' argument containing:\n```javascript\nfunction preSave(options) {\n  // Process options and return the modified resource\n  return options.newResource;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.newResource` - The resource being saved (with pending changes)\n- `options.oldResource` - The previous version of the resource (before changes)\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Enforcing complex business rules across multiple fields\n- Automatically deriving field values based on other configuration\n- Performing validation that depends on external systems or data\n- Normalizing or standardizing configuration values\n- Adding computed or derived properties\n- Implementing versioning or change tracking\n- Dynamically looking up data using the Celigo API module to enrich configuration\n\n**Return value**\n\nThe function must return the newResource object (potentially modified) to be saved.\nThrowing an exception will prevent saving and signal an error to the user.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called just before\nthe resource is saved.\n\nThe function must follow the expected signature and return the resource object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the preSave function.\n\nThe referenced script should contain the function specified in the\n'function' property. This script must be accessible within the user's account\nand have appropriate permissions.\n"}}},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}":{"get":{"summary":"Get an integration","operationId":"getIntegration","tags":["Integrations"],"description":"Returns the full integration object.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Successfully retrieved integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
````

## Update an integration

> Replaces the integration's mutable fields. Send the full object -- omitted fields revert to\
> defaults. GET the integration first, modify the fields you need, then PUT back. For partial\
> updates to \`settings\`, \`flowGroupings\`, or \`apiGroupings\`, prefer PATCH with JSON Patch\
> instead.

````json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Request":{"type":"object","description":"Fields that can be sent when creating or updating an integration.","required":["name"],"allOf":[{"$ref":"#/components/schemas/IntegrationBase"}]},"IntegrationBase":{"type":"object","description":"Writable integration fields shared by the request and response schemas.","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"Human-readable name for the integration.\n\nUse a short, descriptive label that helps users identify the integration in the UI."},"description":{"type":["string","null"],"maxLength":5120,"description":"Optional description of the integration's purpose and behavior.\n\nHelpful for documentation, onboarding, and clarifying what the integration does."},"readme":{"type":["string","null"],"maxLength":51200,"description":"Long-form README content for the integration (typically Markdown).\n\nUse this to provide setup instructions, prerequisites, and operational notes."},"_connectorId":{"type":"string","format":"objectId","description":"Integration App (connector) identifier when this integration is based on an installed Integration App.\nAn integration carrying it is a tile (or a child of one) and is uninstalled from its Admin →\nUninstall page, never deleted: a DELETE answers 403 `delete_not_allowed`.\n\nIf you are not working with an Integration App installation, omit this field."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template this integration was installed from. Absent on integrations built from scratch and on\nclones. It does not make the integration an Integration App — `_connectorId` does.\n\nOmit unless you are creating/updating an integration from a template."},"install":{"type":"array","description":"Install \"cards\" an Integration App installer shows during installation — UI workflow metadata, not runtime\nconfiguration. The platform also writes it (empty) on a plain custom integration created by the UI's\nclone-and-install, so its presence does not indicate an Integration App.\n\nUnless you are explicitly modeling an install experience, omit this field.","items":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","description":"Display name for this install card."},"description":{"type":"string","description":"Help text shown to the user for this install card."},"imageURL":{"type":"string","description":"Optional image URL to display for this install card."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created/registered by this card (if applicable)."},"installURL":{"type":"string","description":"URL to open during install (if the card is URL-based)."},"completed":{"type":["boolean","null"],"description":"When true, this card has been completed. The server also returns `null` for cards whose completion state was never set."},"installerFunction":{"type":"string","description":"Optional function name used by the platform to run install logic for this card."},"uninstallerFunction":{"type":"string","description":"Optional function name used by the platform to run uninstall logic for this card."},"options":{"type":"object","description":"Free-form options passed to the installer/uninstaller logic.","additionalProperties":true},"sourceConnection":{"type":"object","description":"Source connection metadata used to prefill or drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this card uses a template ZIP artifact."},"_stackId":{"type":"string","format":"objectId","description":"Stack identifier used by install logic (if applicable)."},"isClone":{"type":"boolean","description":"When true, this card is part of a clone workflow."},"form":{"type":"object","description":"Inline form definition used by this card (if applicable).","additionalProperties":true}}}},"mode":{"type":"string","description":"Where the integration stands in its install or uninstall wizard. The platform writes it on a plain custom\nintegration created by the UI's clone-and-install as much as on an Integration App, and leaves it set after\nthe wizard completes, so it does not indicate an Integration App (`_connectorId` does).\n\nOmit when creating an integration directly.","enum":["install","settings","uninstall"]},"settings":{"description":"Integration App settings object for this integration. An Integration App can also keep\nits settings fields here, each with its current value: `settings.general` and\n`settings.sections[]` (tabs, then nested `sections[]`, then `fields[]`; a flow entry's own\nfields sit in its `settings[]`). When `settings.supportsMultiStore` is true, each\n`settings.sections[]` entry is a store and its own `sections[]` are the tabs.\nA write that changes it to a non-empty string, a number, or a boolean fails with 422\n`invalid_field_type` (\"Invalid value provided for settings. Expected an object.\"); an\nobject, an array, an empty string, and `null` are accepted.","allOf":[{"description":"Integration App settings object for this integration.\n\nThese values are typically collected via `settingsForm` and then stored here. When generating values,\nprefer setting only the fields required by the form/workflow and omit unknown keys."},{"$ref":"#/components/schemas/Settings"}]},"version":{"type":["string","null"],"description":"Version of the Integration App (or template) currently installed in this integration.\nFor Integration Apps the connector's update workflow sets it; omit unless you are\nexplicitly controlling versions."},"tag":{"type":["string","null"],"description":"Legacy field for distinguishing multiple instances of the same Integration App within a single Celigo environment.\n\nOnly set this when a customer is running multiple installations of the same Integration App. Otherwise, omit this field."},"updateInProgress":{"type":"boolean","description":"When true, an Integration App update workflow is currently running. Settable via the\nAPI, but normally managed by the platform's update workflow."},"celigoAgentAutoRunMode":{"type":"boolean","description":"When true, the Celigo Agent (Ora) saves its updates to this integration, and to an export\nor import that is a step of one of its flows, without a manual approval step.\n\nOmit unless you are explicitly configuring Celigo Agent behavior for this integration."},"resolvedAt":{"type":"string","format":"date-time","description":"Timestamp indicating when the most recent install/update workflow was resolved/completed.\n\nTypically system-managed; omit in normal create/update payloads."},"settingsForm":{"description":"Settings form definition for the integration.","allOf":[{"description":"Settings form definition for the integration.\n\nThis controls the UI fields shown to users to collect `settings`.\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/Form"}]},"preSave":{"description":"Pre-save hook configuration used to validate/transform settings before saving.","allOf":[{"description":"Pre-save hook configuration used to validate/transform settings before saving.\n\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/PreSave"}]},"update":{"type":"object","description":"Script reference used by the platform to perform integration update logic (e.g., migration between versions).\n\nOnly include when the update workflow explicitly requires it.","properties":{"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the update implementation."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for the update script (if applicable)."},"function":{"type":"string","description":"Function name within the script to invoke for updates."}}},"installSteps":{"type":"array","description":"Ordered steps of the install wizard that created this integration, each marked completed as it finishes.\nWritten by the UI's clone-and-install of a plain custom integration (a `template_zip` step with `isClone`\ntrue) as well as by Integration App installers, and kept after completion — so a populated list does not\nindicate an Integration App.\n\nOmit unless you are building an installer.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Options the installer logic reads for this step. Free-form, except\nthat the MCP-server template install writes `mcpServerTemplate` on\nits `template_zip` step.","additionalProperties":true,"properties":{"mcpServerTemplate":{"type":"object","additionalProperties":true,"description":"Marks the `template_zip` step of the Integration that installing an\nMCP-server template creates when the template packs dependencies\n(`POST /v1/mcpservers/template`, or a Marketplace MCP listing); the\nserver itself is created by this step's final save, not before.\nWritten with the template's identity and connection shapes when the\nIntegration is created, then extended with the step's checkpoint as\nthe step runs, so a retry of a failed step reuses what an earlier\nattempt already created instead of creating it again. Completing the\nstep creates the MCP server, disabled, and copies the template's\nresource files into this Integration's folder in Celigo Storage.","properties":{"sourceIntegrationId":{"type":"string","format":"objectId","description":"Integration document the template's resources belong to — the\n`integration.json` in the template ZIP. The Integration being\ninstalled is cloned from it (its `_sourceId`); it is not an\nIntegration in this account."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template the install came from. Absent when the ZIP was uploaded directly."},"connectionShapes":{"type":"array","description":"One entry per connection the template packs, read when the matching\n`connection` step binds or creates a connection: a connection the step\ncreates receives the entry's `endUserProvidedFields`; an existing\nconnection is updated only when the entry requires end-user\ncredentials and the connection has no list of its own yet. When the\nentry requires end-user credentials, an existing connection of\nanother `type` is refused.","items":{"type":"object","properties":{"_id":{"type":"string","format":"objectId","description":"The connection's id inside the template, matched against the `connection` step's `sourceConnection._id`."},"type":{"type":"string","description":"Connection type the step's connection must have when the entry requires end-user credentials."},"endUserProvidedFields":{"type":"array","items":{"type":"string"},"description":"Dot-paths of the connection's fields each end user supplies on their own copy, as the template's publisher set them."},"requiresEndUserCredentials":{"type":"boolean","description":"When true, the template's server requires every end user to supply their own credentials on this connection."}}}},"mcpServerId":{"type":"string","format":"objectId","description":"Id reserved for the MCP server once the template's tools are created,\nbefore any resource file is uploaded. While the step is incomplete it\nis only a reservation — no server document exists under it until the\nstep's final save; a retry returns the saved server without uploading\nagain only when an earlier attempt already saved a server for this id."},"toolIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Tool id inside the template → id of the Tool the install created from it, written with `mcpServerId`; a retry reuses the created tools."},"apiIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"API id inside the template → id of the API the install created from it, written with `toolIdMap`."},"resourceFileMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Resource file entry in the template ZIP (`resources/<key>`) → id of its\ncopy in this Integration's Celigo Storage folder. Written only after\nevery copied file is active, so a retry that finds the map skips the\nupload; cleared, together with `createdFolderIds` and\n`createdFileIds`, before a failed attempt's files are removed."},"createdFolderIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage folders the install created under this Integration's folder for the resource files' relative paths — the current checkpoint, cleared with `resourceFileMap` before a failed attempt's rollback and rewritten by the next attempt."},"createdFileIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage files the install has copied — the current checkpoint, cleared and rewritten the same way as `createdFolderIds`; the completed server serves them as its resources."}}}}}}}},"uninstallSteps":{"type":"array","description":"Ordered list of lifecycle steps used by the Integration App uninstaller.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"changeEditionSteps":{"type":"array","description":"Ordered list of steps used when changing the integration's edition/license.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"pendingLicense":{"type":["object","null"],"description":"Pending license/edition change information for the integration.\n\nThe server returns `null` when no license/edition change is pending (rather than omitting the field).\nOnly include when a license/edition change workflow explicitly requires it.","properties":{"opts":{"type":"object","description":"Free-form license options/payload.","additionalProperties":true},"_editionId":{"type":["string","null"],"format":"objectId","description":"Target edition ID for the pending license change, or `null` when cleared."}}},"_parentId":{"type":"string","format":"objectId","description":"Parent integration ID when this integration was created as a child of another integration.\nInvalid ids are silently dropped by the server. Omit unless creating/updating child integrations."},"childDisplayName":{"type":"string","description":"Display name used for a child integration created during installation.\n\nOmit unless creating/updating child integrations."},"initChild":{"type":"object","description":"Script reference used to initialize a child integration during installation.\n\nOnly include when the child initialization workflow explicitly requires it.","properties":{"function":{"type":"string","description":"Function name to invoke to initialize the child integration."},"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the initChild function."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for initChild (if applicable)."}}},"flowGroupings":{"type":"array","description":"UI grouping configuration that groups an integration's flows into named\nsections. Works on ANY integration — this is NOT an Integration-App-only\nfeature; a plain integration can define flow groupings too. Create groupings\nhere, then assign flows to them via `PUT /v1/flows/updateFlowGrouping`. A\ngrouping that still has member flows survives being removed from this array —\nungroup its flows first.\n\nOmit unless you are explicitly configuring flow grouping behavior.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the flow grouping section."},"settings":{"type":"object","description":"Group-level settings for flows in this group. At runtime, flows in the\ngroup read these values under the fixed scope key `flowGrouping` — e.g.\nthe Handlebars expression `{{{settings.flowGrouping.salesOrganization}}}`\nor the Mapper 2.0 envelope path `$.settings.flowGrouping.salesOrganization`.","additionalProperties":true},"settingsForm":{"description":"Form definition for this flow grouping's settings UI.","allOf":[{"description":"Form definition for this flow grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"apiGroupings":{"type":"array","description":"UI grouping configuration for APIs within the integration.\n\nUsed to group APIs into named sections with their own settings/settingsForm.\nWorks identically to `flowGroupings` but for API resources. Create groupings here,\nthen assign APIs to them via `PUT /v1/apis/updateApiGrouping`. A grouping that still\nhas member APIs survives being removed from this array — ungroup its APIs first.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the API grouping section."},"settings":{"type":"object","description":"Group-level settings for APIs in this group.","additionalProperties":true},"settingsForm":{"description":"Form definition for this API grouping's settings UI.","allOf":[{"description":"Form definition for this API grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"netSuiteDistributedAdaptor":{"type":"object","description":"NetSuite distributed adaptor metadata (platform feature).\n\nOnly include if you are explicitly configuring distributed NetSuite adaptor behavior.","properties":{"accountId":{"type":"string","description":"NetSuite account identifier."},"environment":{"type":"string","description":"NetSuite environment.","enum":["production","beta","sandbox"]},"integrationId":{"type":"string","description":"Identifier used by the distributed adaptor for this integration."}}},"_sourceId":{"type":"string","format":"objectId","description":"Integration this one was cloned from. Set on every clone, standalone copies included, so\nit doesn't by itself mean the two are lifecycle-linked. Omit in create and update payloads."},"sampleIntegration":{"type":"boolean","description":"Indicates this integration is a sample/demo integration (used for templates/examples).\n\nTypically system-managed."},"syncs":{"type":"boolean","description":"When true, the integration is a container for Celigo Sync resources — set it on\n`POST /v1/integrations` before creating syncs in it (`POST /v1/syncs` into an\nintegration without it fails with `422 integration_not_for_sync`). Fixed at creation:\n`PUT /v1/integrations/{_id}` ignores the field in both directions. Keep flows out of\nit: a flow create isn't refused there. While the integration holds a sync, deleting\nit fails with 422 \"sync <id> must be deleted before you can delete integration <id>\"."},"aliases":{"type":"array","description":"Named aliases that map to specific resources within the integration.","items":{"type":"object","properties":{"alias":{"type":"string","description":"Alias name for the resource reference."},"description":{"type":"string","description":"Description of what this alias represents."},"_exportId":{"type":"string","format":"objectId","description":"Export referenced by this alias."},"_importId":{"type":"string","format":"objectId","description":"Import referenced by this alias."},"_flowId":{"type":"string","format":"objectId","description":"Flow referenced by this alias."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced by this alias."},"_lookupCacheId":{"type":"string","format":"objectId","description":"Lookup cache referenced by this alias. Added automatically when the\ncache is registered to the integration (the alias is a slug of the\ncache name), and must be removed before the cache can be deregistered."}}}},"iLMIgnore":{"type":"object","description":"Fields that integration lifecycle pulls and reverts leave untouched, keyed by resource type\n(`integration`, `flow`, `export`, ...) with an array of field paths for each. Change it with\n`PATCH /v1/integrations/{_id}` on `/iLMIgnore` and read the saved value back here; a field\npath the resource type does not allow is rejected with 422 (\"Invalid path expression\n`<path>` for <type>. Path expression not supported\").","additionalProperties":true}}},"Settings":{"type":"object","description":"Configuration settings that can be accessed by hooks, filters, mappings and handlebars templates at runtime.\n\nIt enables customization of the resource's logic, allowing hooks, mappings, filters, and\nhandlebars to access and apply the settings at runtime.\n\n**Usage**\n\nThe settings object can store arbitrary JSON data that you want to save with the resource.\nWhile it's often populated through a form defined in the `settingsForm` field, you can also:\n\n- Directly provide JSON settings without using a form\n- Store configuration values used by hooks and templates\n- Create resource-specific constants and parameters\n- Maintain lookup tables or mapping structures\n- Define conditional logic parameters\n\n**Accessibility**\n\nSettings are available in:\n- All handlebars fields for building dynamic payloads\n- Field mapping expressions\n- JavaScript hooks via the options object\n- Filters and transformations\n\nAt runtime, the settings objects in the step's execution chain are gathered into a\nsingle `settings` context keyed by fixed scope keys. Flow runs populate the full\nchain: `settings.integration.*`, `settings.flowGrouping.*` (the flow group the flow\nbelongs to), `settings.flow.*`, `settings.connection.*`, `settings.iClient.*`, and\nthe running step's own scope — `settings.export.*` on exports/lookups,\n`settings.import.*` on imports (the key matches the step type). Steps executing\ninside a My API or a Tool receive only the step's own scope plus\n`settings.connection.*` / `settings.iClient.*`; the integration, flowGrouping, and\nflow scopes resolve empty there. The scope key is literal — resource display names\nand settingsForm section labels are never part of the path. The segments after the\nscope mirror the stored settings JSON key path exactly: a top-level field is\n`settings.<scope>.<fieldId>`, and nested objects add one segment per JSON key\n(e.g. `settings.flowGrouping.Customer.region` when the group's settings JSON nests\n`region` under `Customer`). References without a scope key\n(e.g. `{{settings.myField}}`) resolve to empty strings.\n\n**Best practices**\n\nFor non-technical users, create a custom form instead of editing the JSON directly.\nThis provides a user-friendly interface for updating settings without requiring JSON knowledge.\n","additionalProperties":true},"Form":{"type":"object","description":"Configuration for creating user-friendly settings forms that make it easier for less technical users\nto configure integration resources.\n\n**Settings form builder**\n\nThe Settings Form Builder allows you to create or edit user-friendly fields that prompt for text entry\nor selections that will be returned as settings applied to this resource. Your forms can include any\nfield types that you see elsewhere in integrator.io, such as:\n\n- Text fields\n- Dropdown selections\n- Checkboxes\n- Radio buttons\n- Date pickers\n- Multi-select fields\n- Search fields\n\nForm fields make it much easier for less technical users to work with your integration settings by:\n\n- Providing clear labels and help text\n- Enforcing validation rules\n- Offering pre-defined selection options\n- Grouping related settings logically\n- Supporting conditional visibility\n- Creating a consistent user experience\n","properties":{"form":{"type":"object","description":"Configuration that defines the structure, fields, and behavior of the settings form.\n\nThis object contains the complete definition of the form's layout, fields, validation rules,\nand interactive behaviors. The specific structure depends on the form complexity and can include\nfield definitions, sections, conditional display logic, and default values.\n\nThe form configuration is typically created and managed through the visual Form Builder interface\nrather than edited directly as JSON.\n","properties":{"fieldMap":{"type":"object","description":"A mapping of field identifiers to their configuration objects.\nEach key in this object represents a unique field ID, and the value contains\nall the configuration settings for that specific form field.\n","additionalProperties":{"type":"object","description":"Configuration for an individual form field.\n","properties":{"id":{"type":"string","description":"Unique identifier for this field within the form: layout containers and conditions\nrefer to the field by it. Use the same string as the field's fieldMap key and its `name`.\n"},"name":{"type":"string","description":"Key the field's value is saved under: one top-level key of the resource's `settings`,\nwhich the form also reads the value back from when it opens. Nested objects inside\n`settings` are written to it directly, not through a form field's `name`.\n"},"type":{"type":"string","description":"The type of form control to render for this field.\n","enum":["text","checkbox","radiogroup","relativeuri","editor","keyvalue","select","multiselect","toggle","datetime","date","exportSelect","staticMap"]},"label":{"type":"string","description":"Display label shown next to the field in the form.\n"},"description":{"type":"string","description":"Detailed explanation text that appears below the field, providing more context\nthan the label or helpText.\n"},"helpText":{"type":"string","description":"Explanatory text that appears when hovering over the help icon next to the field.\nUsed to provide additional guidance on how to use the field.\n"},"required":{"type":"boolean","description":"When true, the field must have a value before the form can be submitted. Only the form\nenforces it: an API write of `settings` is stored without the value.\n","default":false},"defaultValue":{"description":"Value the form shows while the resource's `settings` holds no value under the field's\n`name`.\n"},"multiline":{"type":"boolean","description":"For text fields, determines whether the input should be a multi-line text area\ninstead of a single-line input.\n","default":false},"rowsMax":{"type":"integer","description":"For multiline text fields, specifies the maximum number of visible rows.\n"},"inputType":{"type":"string","description":"For text fields, specifies the HTML input type attribute to apply additional\nvalidation or specialized input behavior.\n","enum":["text","number","email","password","tel","url"]},"delimiter":{"type":"string","description":"For text fields, specifies a character to use for splitting the input into an array.\nUsed for collecting multiple values in a single text field.\n"},"mode":{"type":"string","description":"For editor fields, specifies the type of content being edited for syntax highlighting.\n","enum":["json","xml","csv","text"]},"keyName":{"type":"string","description":"For keyvalue and staticMap fields, names the first column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `key`.\n"},"valueName":{"type":"string","description":"For keyvalue and staticMap fields, names the second column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `value`.\n"},"keyLabel":{"type":"string","description":"For staticMap fields, heading of the first column.\n"},"valueLabel":{"type":"string","description":"For staticMap fields, heading of the second column.\n"},"keyOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the first column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"valueOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the second column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"keyResource":{"type":"object","description":"For staticMap fields, fills the first column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is. With\n`keyResource` or `valueResource` set, the form requires both columns in every row\nunless `keyValueRequired` is false.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"valueResource":{"type":"object","description":"For staticMap fields, fills the second column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"keyValueRequired":{"type":"boolean","description":"For staticMap fields with `keyResource` or `valueResource`, when false, saves rows\nthat fill only one column; by default the form drops them.\n","default":true},"resource":{"type":"object","description":"For exportSelect fields, the export whose records become the options. When the form\nopens, the UI previews the export in `virtual` (with `test.limit` 100 unless the export\nsets its own) and lists the preview's `data`: each record needs a `label` and a `value`\n(a string or number serves as both), so shape them with the export's `transform`. A\nsaved export can't be referenced, and an HTTP export that finds no records leaves the\nfield showing an error instead of options.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline: `adaptorType`, its adaptor block, and an optional\n`transform`. `_connectionId` defaults to the connection of the export or import the\nform belongs to; set it on any other resource's form. On an integration's form,\nand on the forms of its flows, it may also be the name of one of the integration's\n`aliases[]`, matched without regard to case: the UI previews the block on the\nroute scoped to the form's resource, where the alias resolves to its connection\n(past the preview's type check, a value that is neither a connection id nor an\nalias in that scope is a 400 `invalid_ref` there). Forms installed from a\ntemplate name connections this way, since the same block runs in every account\nthe template is installed in. The unscoped `POST /v1/exports/preview` knows no\naliases: past the preview's type check, an alias name there is 400 `invalid_ref`.\n","additionalProperties":true}}},"multiselect":{"type":"boolean","description":"For exportSelect fields, when true, the user can choose several options and the value\nis saved as an array.\n","default":false},"supportHandlebars":{"type":"boolean","description":"For exportSelect fields, when true, renders the `resource.virtual` export as a Handlebars\ntemplate before each preview (all but its `transform`, `hooks`, and `filter`). On an\nintegration, flow group, flow, export, or import form, the form's current values are\nunder that form's scope name (`integration`, `flowGrouping`, `flow`, `export`, or\n`import`), beside the saved settings of the scopes above it, with no `settings.`\nprefix; on a connection or iClient form the template has no context. The options then\nload through `refreshOptionsOnChangesTo` or `typeAheadSearch`, or when the user\nrefreshes the field.\n","default":false},"refreshOptionsOnChangesTo":{"type":"array","items":{"type":"string"},"description":"For exportSelect fields with `supportHandlebars`, ids of the fields whose values the\ntemplated export uses: the options load once one of them has a value and reload whenever\none changes.\n"},"typeAheadSearch":{"type":"boolean","description":"For exportSelect fields, when true, re-runs the templated export as the user types, with\nthe typed text as this field's own value; an empty box clears the options, and typed\ntext is accepted as the value.\n","default":false},"showDelete":{"type":"boolean","description":"For keyvalue fields, determines whether to show a delete button for each key-value pair.\n"},"doNotAllowFutureDates":{"type":"boolean","description":"For date and datetime fields, restricts selection to dates not in the future.\n"},"skipTimezoneConversion":{"type":"boolean","description":"For datetime fields, prevents automatic timezone conversion of the date value.\n"},"options":{"type":"array","description":"For fields that present choices (select, multiselect, radiogroup, toggle), defines\nthe available options.\n","items":{"anyOf":[{"title":"Option group","type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"oneOf":[{"title":"String value","type":"string"},{"title":"Label-value pair","type":"object","properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]},"description":"Array of option values/labels to display in the selection control.\n"}}},{"title":"Label-value pair","type":"object","required":["label"],"properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]}},"visibleWhen":{"type":"array","description":"Conditional display rules that determine when this field should be visible.\nIf empty or not provided, the field is always visible.\n","items":{"type":"object","properties":{"field":{"type":"string","description":"The ID of another field whose value controls the visibility of this field. The\nsave doesn't check it: a rule naming an ID that isn't in the form counts as met,\nso the field stays visible.\n"},"is":{"type":"array","items":{"type":["string","boolean","number","null"]},"description":"Array of values - if the referenced field has any of these values,\nthis field will be visible. Values may be strings, booleans (for\ncheckbox/toggle fields), numbers (for numeric inputs), or null.\n"}}}}}}},"layout":{"type":"object","description":"Defines how the form fields are arranged and grouped in the UI.\nThe layout can organize fields into columns, sections, or other visual groupings.\n","properties":{"type":{"type":"string","description":"The type of layout to use for the form.\n","enum":["column","collapse","box","indent","tabWithoutSave","verticalTabWithoutSave"]},"fields":{"type":"array","items":{"type":"string"},"description":"Field IDs shown above the containers, without a heading.\n"},"containers":{"type":"array","description":"Array of container objects that group fields or contain nested containers.\nEach container can represent a column, box, indented section, or collapsible section.\n","items":{"type":"object","properties":{"type":{"type":"string","description":"The visual style of the container.\n","enum":["indent","box","collapse"]},"label":{"type":"string","description":"The heading text displayed for this container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this container.\nEach ID must correspond to a key in the fieldMap object: the save doesn't check it,\nand an ID that doesn't renders nothing. A field the layout doesn't list isn't shown.\n"},"containers":{"type":"array","description":"Nested containers within this container. Allows for hierarchical organization\nof fields with different visual styles.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"The heading text displayed for this nested container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this nested container.\n"}}}}}}}}}},"additionalProperties":true},"init":{"type":"object","description":"Configuration for custom JavaScript initialization that executes when the form is first loaded.\n\nThis object defines a JavaScript hook that prepares the form for use, sets initial field values,\nperforms validation, or otherwise customizes the form behavior before it is displayed to the user.\n\n**Function signature**\n\nThe initialization function is invoked with a single 'options' argument containing contextual information:\n```javascript\nfunction formInit(options) {\n  // Process options and return the form object\n  return options.resource.settingsForm.form;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.resource` - The current resource being configured\n- `options.parentResource` - The parent of the current resource\n- `options.grandparentResource` - The grandparent of the current resource\n- `options.license` - For integration apps, the license provisioned to the integration\n- `options.parentLicense` - For integration apps, the parent of the license\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Dynamically generate field options based on resource configuration\n- Pre-populate default values from related resources\n- Apply conditional logic that depends on resource properties\n- Add, remove, or modify form fields based on user permissions or account settings\n- Fetch external data to populate selection options\n- Implement complex validation rules that depend on resource context\n- Create branching form experiences based on user selections\n\n**Return value**\n\nThe function must return a valid form object that the UI can render.\nThrowing an exception will signal an error to the user.\n\nThe UI runs the function each time it opens the form and renders the returned form instead of\n`form`, then fills in the values from `settings`; a thrown error's message replaces the form.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called when the form\nis initialized and should handle any custom setup logic.\n\nThe function must follow the expected signature and return a valid form object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the initialization function.\n\nThe referenced script should contain the function specified in the\n'function' property. On an integration, a flow group, a flow, an export, an import, or a\nconnection, an id that isn't a script in the same account (or, on an Integration App's\nresources, one the app shares) is refused with 422 `invalid_ref`. An iClient save\nstores the id without that check.\n"}}}}},"PreSave":{"type":"object","description":"Defines a JavaScript hook that executes before the resource is saved.\n\nThis hook allows for programmatic validation, transformation, or enrichment of the\nresource itself before it is persisted. It can be used to enforce business rules,\nset derived properties, or implement cross-field validations that can't be expressed\nthrough the standard UI.\n\n**Function signature**\n\nThe preSave function is invoked with a single 'options' argument containing:\n```javascript\nfunction preSave(options) {\n  // Process options and return the modified resource\n  return options.newResource;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.newResource` - The resource being saved (with pending changes)\n- `options.oldResource` - The previous version of the resource (before changes)\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Enforcing complex business rules across multiple fields\n- Automatically deriving field values based on other configuration\n- Performing validation that depends on external systems or data\n- Normalizing or standardizing configuration values\n- Adding computed or derived properties\n- Implementing versioning or change tracking\n- Dynamically looking up data using the Celigo API module to enrich configuration\n\n**Return value**\n\nThe function must return the newResource object (potentially modified) to be saved.\nThrowing an exception will prevent saving and signal an error to the user.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called just before\nthe resource is saved.\n\nThe function must follow the expected signature and return the resource object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the preSave function.\n\nThe referenced script should contain the function specified in the\n'function' property. This script must be accessible within the user's account\nand have appropriate permissions.\n"}}},"Integration":{"type":"object","description":"Integration object as returned by the API.","required":["_id","name","createdAt","lastModified","install","installSteps","uninstallSteps","changeEditionSteps","flowGroupings","apiGroupings","_registeredConnectionIds"],"allOf":[{"$ref":"#/components/schemas/IntegrationBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_registeredConnectionIds":{"type":"array","readOnly":true,"description":"Connections registered to this integration. Managed by the platform when users\nregister connections through the UI or the integration's registerConnection\noperation; client-sent values are ignored (PUT-verified).","items":{"type":"string","format":"objectId"}},"_registeredLookupCacheIds":{"type":"array","readOnly":true,"description":"Lookup caches registered to this integration, managed by the platform.","items":{"type":"string","format":"objectId"}},"_registeredTopicIds":{"type":"array","readOnly":true,"description":"Topics registered to this integration, so its flows can subscribe to or publish on them.\nMaintained by the platform: added through the integration's topic `register` operations,\n`POST /v1/topics` with `__integrationIds`, or automatically when a flow in the integration\nis saved with a step bound to a topic; removed by the `DELETE …/register` operation or when\nthe topic is deleted. Client-sent values are ignored (PUT-verified). With no topic\nregistered it is an empty array, or absent on older integrations.","items":{"type":"string","format":"objectId"}},"_registeredKnowledgeBaseIds":{"type":"array","readOnly":true,"description":"Knowledge bases registered to this integration. Maintained by the platform: a\nvalue sent on a create or update is ignored. With none registered it is an empty\narray, or absent on an integration last saved before the field existed.","items":{"type":"string","format":"objectId"}}}}]},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422-unprocessable-entity":{"description":"Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}":{"put":{"summary":"Update an integration","operationId":"updateIntegration","tags":["Integrations"],"description":"Replaces the integration's mutable fields. Send the full object -- omitted fields revert to\ndefaults. GET the integration first, modify the fields you need, then PUT back. For partial\nupdates to `settings`, `flowGroupings`, or `apiGroupings`, prefer PATCH with JSON Patch\ninstead.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}}},"responses":{"200":{"description":"Integration updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"$ref":"#/components/responses/422-unprocessable-entity"}}}}}}
````

## Delete an integration

> Deletes an integration. The integration is soft-deleted and retained in the\
> recycle bin for 30 days before permanent removal. Delete the flows, syncs, APIs and\
> Tools it contains, and remove its aliases that point at lookup caches, first.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}":{"delete":{"summary":"Delete an integration","operationId":"deleteIntegration","tags":["Integrations"],"description":"Deletes an integration. The integration is soft-deleted and retained in the\nrecycle bin for 30 days before permanent removal. Delete the flows, syncs, APIs and\nTools it contains, and remove its aliases that point at lookup caches, first.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"integration deleted successfully"},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"description":"The integration still contains resources that must be deleted first, APIs and Tools\namong them (`dependencies_not_deleted`, one entry per blocking resource), or one of its\n`aliases[]` still points at a lookup cache. Flows and syncs block it the same way, with\none entry per flow or sync still in the integration (\"flow <id> must be deleted before\nyou can delete integration <id>\", \"sync <id> must be deleted before you can delete\nintegration <id>\"), and nothing is deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Patch an integration

> Partially updates an integration using a JSON Patch document (RFC 6902).\
> \`replace\` and \`add\` set a value (a currently unset field is fine) and\
> \`remove\` unsets it; \`copy\` and \`test\` are rejected. Only these paths are\
> accepted:\
> \
> \| Path | Description |\
> \|------|-------------|\
> \| \`/settings\` | Integration settings object |\
> \| \`/flowGroupings\` | Flow grouping configuration |\
> \| \`/apiGroupings\` | API grouping configuration |\
> \| \`/iLMIgnore\` | Fields lifecycle pulls and reverts leave untouched, keyed by resource type (the integration's \`iLMIgnore\` field); a field path the type does not allow is rejected with 422 |\
> \| \`/tag\` | Label that tells apart installs of the same Integration App |\
> \| \`/celigoAgentAutoRunMode\` | Celigo Agent auto-run toggle |\
> \| \`/version\` | Installed Integration App version, normally written by the app's update workflow |\
> \| \`/updateInProgress\` | Integration App update flag, normally managed by the update workflow |\
> \
> Any other path — including \`/name\` and \`/description\` — fails with 422\
> \`\<path> is not a whitelisted property\`, and a \`null\` value is rejected. A\
> successful patch returns no body, so the server-assigned \`\_id\` of a grouping\
> added through \`/flowGroupings\` or \`/apiGroupings\` is only available from a\
> follow-up \`GET\`.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"JsonPatchRequest":{"type":"array","description":"A JSON Patch document (RFC 6902). Send an array of patch\noperations on whitelisted fields — all other paths are rejected\nwith 422.","minItems":1,"items":{"$ref":"#/components/schemas/JsonPatchOperation"}},"JsonPatchOperation":{"type":"object","description":"A single JSON Patch operation (RFC 6902).","required":["op","path"],"properties":{"op":{"type":"string","enum":["replace","add","remove"],"description":"The operation to perform."},"path":{"type":"string","description":"JSON Pointer (RFC 6901) to the field to patch. Only\nwhitelisted paths are accepted — unlisted paths return\n`422` with `\"<path> is not a whitelisted property\"`."},"value":{"description":"The new value to set. Required for `replace` and `add`, omit for `remove`."}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}":{"patch":{"summary":"Patch an integration","description":"Partially updates an integration using a JSON Patch document (RFC 6902).\n`replace` and `add` set a value (a currently unset field is fine) and\n`remove` unsets it; `copy` and `test` are rejected. Only these paths are\naccepted:\n\n| Path | Description |\n|------|-------------|\n| `/settings` | Integration settings object |\n| `/flowGroupings` | Flow grouping configuration |\n| `/apiGroupings` | API grouping configuration |\n| `/iLMIgnore` | Fields lifecycle pulls and reverts leave untouched, keyed by resource type (the integration's `iLMIgnore` field); a field path the type does not allow is rejected with 422 |\n| `/tag` | Label that tells apart installs of the same Integration App |\n| `/celigoAgentAutoRunMode` | Celigo Agent auto-run toggle |\n| `/version` | Installed Integration App version, normally written by the app's update workflow |\n| `/updateInProgress` | Integration App update flag, normally managed by the update workflow |\n\nAny other path — including `/name` and `/description` — fails with 422\n`<path> is not a whitelisted property`, and a `null` value is rejected. A\nsuccessful patch returns no body, so the server-assigned `_id` of a grouping\nadded through `/flowGroupings` or `/apiGroupings` is only available from a\nfollow-up `GET`.","operationId":"patchIntegration","tags":["Integrations"],"parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonPatchRequest"}}}},"responses":{"204":{"description":"Integration patched successfully"},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"description":"Patch rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Clone an integration

> Creates a standalone copy of an existing integration: the copy records its source in\
> \`\_sourceId\` but isn't lifecycle-linked to it, so a pull between the two finds no changes.\
> When the source has registered connections, remap each one via \`connectionMap\`; mapped\
> connections are reused, not cloned.<br>

````json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"CloneRequest":{"type":"object","description":"Request body for cloning an integration.","required":["name"],"properties":{"name":{"type":"string","description":"Name for the cloned integration."},"description":{"type":"string","description":"Description for the cloned integration."},"envId":{"type":"string","format":"objectId","description":"Environment to create the clone in, taken from GET /v1/environments. Omit to\nclone within the current environment. The name has no leading underscore:\n`_envId` is ignored, and the clone is created in the current environment.\n"},"connectionMap":{"type":"object","description":"Mapping of original connection _ids to replacement connection _ids.\nKeys are source connection _ids on the original integration; values\nare target connection _ids in the destination environment.\nRequired when the source integration has registered connections — omitting it or\nsending an empty map fails with 400 `invalid_connectionMap`. Every registered\nconnection must be a key, mapped to a connection in the target environment: a missing or\nunknown key, or a value that isn't a connection there, fails with 422\n`invalid_connectionId`. Map a connection to itself to reuse it in the clone; omit the map\nwhen the source has none.\n","additionalProperties":{"type":"string"}},"_stackId":{"type":"string","format":"objectId","description":"Stack that every stack reference in the cloned resources (hooks and wrapper\nconnections running on a stack) points at. Required when the clone preview reports\n`stackRequired: true`: without it the clone fails with 400 `stack_not_found`. The\nstack must belong to the target environment or be shared with it (404\n`stack_not_found` for an unknown id, 400 `invalid_stack` otherwise)."}},"additionalProperties":true},"CloneResponse":{"description":"Response body for a clone operation. Some clone endpoints return the cloned resource, while others may return a list of related created resources.","oneOf":[{"title":"integration","$ref":"#/components/schemas/Integration"},{"title":"resource list","type":"array","items":{"type":"object","properties":{"model":{"type":"string","description":"Model name of the created resource (e.g., Flow, Export, Import)."},"_id":{"type":"string","format":"objectId","description":"Unique id of the created resource."},"name":{"type":"string","description":"Optional name of the created resource."}},"required":["_id"]}}]},"Integration":{"type":"object","description":"Integration object as returned by the API.","required":["_id","name","createdAt","lastModified","install","installSteps","uninstallSteps","changeEditionSteps","flowGroupings","apiGroupings","_registeredConnectionIds"],"allOf":[{"$ref":"#/components/schemas/IntegrationBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_registeredConnectionIds":{"type":"array","readOnly":true,"description":"Connections registered to this integration. Managed by the platform when users\nregister connections through the UI or the integration's registerConnection\noperation; client-sent values are ignored (PUT-verified).","items":{"type":"string","format":"objectId"}},"_registeredLookupCacheIds":{"type":"array","readOnly":true,"description":"Lookup caches registered to this integration, managed by the platform.","items":{"type":"string","format":"objectId"}},"_registeredTopicIds":{"type":"array","readOnly":true,"description":"Topics registered to this integration, so its flows can subscribe to or publish on them.\nMaintained by the platform: added through the integration's topic `register` operations,\n`POST /v1/topics` with `__integrationIds`, or automatically when a flow in the integration\nis saved with a step bound to a topic; removed by the `DELETE …/register` operation or when\nthe topic is deleted. Client-sent values are ignored (PUT-verified). With no topic\nregistered it is an empty array, or absent on older integrations.","items":{"type":"string","format":"objectId"}},"_registeredKnowledgeBaseIds":{"type":"array","readOnly":true,"description":"Knowledge bases registered to this integration. Maintained by the platform: a\nvalue sent on a create or update is ignored. With none registered it is an empty\narray, or absent on an integration last saved before the field existed.","items":{"type":"string","format":"objectId"}}}}]},"IntegrationBase":{"type":"object","description":"Writable integration fields shared by the request and response schemas.","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"Human-readable name for the integration.\n\nUse a short, descriptive label that helps users identify the integration in the UI."},"description":{"type":["string","null"],"maxLength":5120,"description":"Optional description of the integration's purpose and behavior.\n\nHelpful for documentation, onboarding, and clarifying what the integration does."},"readme":{"type":["string","null"],"maxLength":51200,"description":"Long-form README content for the integration (typically Markdown).\n\nUse this to provide setup instructions, prerequisites, and operational notes."},"_connectorId":{"type":"string","format":"objectId","description":"Integration App (connector) identifier when this integration is based on an installed Integration App.\nAn integration carrying it is a tile (or a child of one) and is uninstalled from its Admin →\nUninstall page, never deleted: a DELETE answers 403 `delete_not_allowed`.\n\nIf you are not working with an Integration App installation, omit this field."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template this integration was installed from. Absent on integrations built from scratch and on\nclones. It does not make the integration an Integration App — `_connectorId` does.\n\nOmit unless you are creating/updating an integration from a template."},"install":{"type":"array","description":"Install \"cards\" an Integration App installer shows during installation — UI workflow metadata, not runtime\nconfiguration. The platform also writes it (empty) on a plain custom integration created by the UI's\nclone-and-install, so its presence does not indicate an Integration App.\n\nUnless you are explicitly modeling an install experience, omit this field.","items":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","description":"Display name for this install card."},"description":{"type":"string","description":"Help text shown to the user for this install card."},"imageURL":{"type":"string","description":"Optional image URL to display for this install card."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created/registered by this card (if applicable)."},"installURL":{"type":"string","description":"URL to open during install (if the card is URL-based)."},"completed":{"type":["boolean","null"],"description":"When true, this card has been completed. The server also returns `null` for cards whose completion state was never set."},"installerFunction":{"type":"string","description":"Optional function name used by the platform to run install logic for this card."},"uninstallerFunction":{"type":"string","description":"Optional function name used by the platform to run uninstall logic for this card."},"options":{"type":"object","description":"Free-form options passed to the installer/uninstaller logic.","additionalProperties":true},"sourceConnection":{"type":"object","description":"Source connection metadata used to prefill or drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this card uses a template ZIP artifact."},"_stackId":{"type":"string","format":"objectId","description":"Stack identifier used by install logic (if applicable)."},"isClone":{"type":"boolean","description":"When true, this card is part of a clone workflow."},"form":{"type":"object","description":"Inline form definition used by this card (if applicable).","additionalProperties":true}}}},"mode":{"type":"string","description":"Where the integration stands in its install or uninstall wizard. The platform writes it on a plain custom\nintegration created by the UI's clone-and-install as much as on an Integration App, and leaves it set after\nthe wizard completes, so it does not indicate an Integration App (`_connectorId` does).\n\nOmit when creating an integration directly.","enum":["install","settings","uninstall"]},"settings":{"description":"Integration App settings object for this integration. An Integration App can also keep\nits settings fields here, each with its current value: `settings.general` and\n`settings.sections[]` (tabs, then nested `sections[]`, then `fields[]`; a flow entry's own\nfields sit in its `settings[]`). When `settings.supportsMultiStore` is true, each\n`settings.sections[]` entry is a store and its own `sections[]` are the tabs.\nA write that changes it to a non-empty string, a number, or a boolean fails with 422\n`invalid_field_type` (\"Invalid value provided for settings. Expected an object.\"); an\nobject, an array, an empty string, and `null` are accepted.","allOf":[{"description":"Integration App settings object for this integration.\n\nThese values are typically collected via `settingsForm` and then stored here. When generating values,\nprefer setting only the fields required by the form/workflow and omit unknown keys."},{"$ref":"#/components/schemas/Settings"}]},"version":{"type":["string","null"],"description":"Version of the Integration App (or template) currently installed in this integration.\nFor Integration Apps the connector's update workflow sets it; omit unless you are\nexplicitly controlling versions."},"tag":{"type":["string","null"],"description":"Legacy field for distinguishing multiple instances of the same Integration App within a single Celigo environment.\n\nOnly set this when a customer is running multiple installations of the same Integration App. Otherwise, omit this field."},"updateInProgress":{"type":"boolean","description":"When true, an Integration App update workflow is currently running. Settable via the\nAPI, but normally managed by the platform's update workflow."},"celigoAgentAutoRunMode":{"type":"boolean","description":"When true, the Celigo Agent (Ora) saves its updates to this integration, and to an export\nor import that is a step of one of its flows, without a manual approval step.\n\nOmit unless you are explicitly configuring Celigo Agent behavior for this integration."},"resolvedAt":{"type":"string","format":"date-time","description":"Timestamp indicating when the most recent install/update workflow was resolved/completed.\n\nTypically system-managed; omit in normal create/update payloads."},"settingsForm":{"description":"Settings form definition for the integration.","allOf":[{"description":"Settings form definition for the integration.\n\nThis controls the UI fields shown to users to collect `settings`.\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/Form"}]},"preSave":{"description":"Pre-save hook configuration used to validate/transform settings before saving.","allOf":[{"description":"Pre-save hook configuration used to validate/transform settings before saving.\n\nUnless you are authoring/patching an Integration App definition, omit this field."},{"$ref":"#/components/schemas/PreSave"}]},"update":{"type":"object","description":"Script reference used by the platform to perform integration update logic (e.g., migration between versions).\n\nOnly include when the update workflow explicitly requires it.","properties":{"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the update implementation."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for the update script (if applicable)."},"function":{"type":"string","description":"Function name within the script to invoke for updates."}}},"installSteps":{"type":"array","description":"Ordered steps of the install wizard that created this integration, each marked completed as it finishes.\nWritten by the UI's clone-and-install of a plain custom integration (a `template_zip` step with `isClone`\ntrue) as well as by Integration App installers, and kept after completion — so a populated list does not\nindicate an Integration App.\n\nOmit unless you are building an installer.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Options the installer logic reads for this step. Free-form, except\nthat the MCP-server template install writes `mcpServerTemplate` on\nits `template_zip` step.","additionalProperties":true,"properties":{"mcpServerTemplate":{"type":"object","additionalProperties":true,"description":"Marks the `template_zip` step of the Integration that installing an\nMCP-server template creates when the template packs dependencies\n(`POST /v1/mcpservers/template`, or a Marketplace MCP listing); the\nserver itself is created by this step's final save, not before.\nWritten with the template's identity and connection shapes when the\nIntegration is created, then extended with the step's checkpoint as\nthe step runs, so a retry of a failed step reuses what an earlier\nattempt already created instead of creating it again. Completing the\nstep creates the MCP server, disabled, and copies the template's\nresource files into this Integration's folder in Celigo Storage.","properties":{"sourceIntegrationId":{"type":"string","format":"objectId","description":"Integration document the template's resources belong to — the\n`integration.json` in the template ZIP. The Integration being\ninstalled is cloned from it (its `_sourceId`); it is not an\nIntegration in this account."},"_templateId":{"type":"string","format":"objectId","description":"Marketplace template the install came from. Absent when the ZIP was uploaded directly."},"connectionShapes":{"type":"array","description":"One entry per connection the template packs, read when the matching\n`connection` step binds or creates a connection: a connection the step\ncreates receives the entry's `endUserProvidedFields`; an existing\nconnection is updated only when the entry requires end-user\ncredentials and the connection has no list of its own yet. When the\nentry requires end-user credentials, an existing connection of\nanother `type` is refused.","items":{"type":"object","properties":{"_id":{"type":"string","format":"objectId","description":"The connection's id inside the template, matched against the `connection` step's `sourceConnection._id`."},"type":{"type":"string","description":"Connection type the step's connection must have when the entry requires end-user credentials."},"endUserProvidedFields":{"type":"array","items":{"type":"string"},"description":"Dot-paths of the connection's fields each end user supplies on their own copy, as the template's publisher set them."},"requiresEndUserCredentials":{"type":"boolean","description":"When true, the template's server requires every end user to supply their own credentials on this connection."}}}},"mcpServerId":{"type":"string","format":"objectId","description":"Id reserved for the MCP server once the template's tools are created,\nbefore any resource file is uploaded. While the step is incomplete it\nis only a reservation — no server document exists under it until the\nstep's final save; a retry returns the saved server without uploading\nagain only when an earlier attempt already saved a server for this id."},"toolIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Tool id inside the template → id of the Tool the install created from it, written with `mcpServerId`; a retry reuses the created tools."},"apiIdMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"API id inside the template → id of the API the install created from it, written with `toolIdMap`."},"resourceFileMap":{"type":"object","additionalProperties":{"type":"string","format":"objectId"},"description":"Resource file entry in the template ZIP (`resources/<key>`) → id of its\ncopy in this Integration's Celigo Storage folder. Written only after\nevery copied file is active, so a retry that finds the map skips the\nupload; cleared, together with `createdFolderIds` and\n`createdFileIds`, before a failed attempt's files are removed."},"createdFolderIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage folders the install created under this Integration's folder for the resource files' relative paths — the current checkpoint, cleared with `resourceFileMap` before a failed attempt's rollback and rewritten by the next attempt."},"createdFileIds":{"type":"array","items":{"type":"string","format":"objectId"},"description":"Storage files the install has copied — the current checkpoint, cleared and rewritten the same way as `createdFolderIds`; the completed server serves them as its resources."}}}}}}}},"uninstallSteps":{"type":"array","description":"Ordered list of lifecycle steps used by the Integration App uninstaller.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"changeEditionSteps":{"type":"array","description":"Ordered list of steps used when changing the integration's edition/license.","items":{"type":"object","additionalProperties":true,"required":["name","type"],"properties":{"name":{"type":"string","description":"Display name for the step."},"description":{"type":"string","description":"Help text shown to the user for the step."},"imageUrl":{"type":"string","description":"Optional image URL for the step."},"completed":{"type":"boolean","description":"When true, this step has been completed."},"type":{"type":"string","description":"Step type.","enum":["connection","url","form","hidden","template_zip","stack","edition"]},"url":{"type":"string","description":"URL to open (for `type: url`)."},"form":{"type":"object","description":"Inline form definition (for `type: form`).","additionalProperties":true},"function":{"type":"string","description":"Function name to run for this step (script-based behavior)."},"initFormFunction":{"type":"string","description":"Function name used to initialize form data (for `type: form`)."},"_scriptId":{"type":"string","format":"objectId","description":"Script that contains `function`, `initFormFunction`, or `getUrlFunction`."},"sourceConnection":{"type":"object","description":"Source connection metadata used to drive install behavior.","additionalProperties":true},"templateZip":{"type":"boolean","description":"When true, this step uses a template ZIP artifact."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced/created by this step (for `type: connection`)."},"_stackId":{"type":"string","format":"objectId","description":"Stack referenced/created by this step (for `type: stack`)."},"isClone":{"type":"boolean","description":"When true, this step is being applied in a clone workflow."},"getUrlFunction":{"type":"string","description":"Function name used to compute a URL dynamically (for `type: url`)."},"options":{"type":"object","description":"Free-form options used by installer logic for this step.","additionalProperties":true}}}},"pendingLicense":{"type":["object","null"],"description":"Pending license/edition change information for the integration.\n\nThe server returns `null` when no license/edition change is pending (rather than omitting the field).\nOnly include when a license/edition change workflow explicitly requires it.","properties":{"opts":{"type":"object","description":"Free-form license options/payload.","additionalProperties":true},"_editionId":{"type":["string","null"],"format":"objectId","description":"Target edition ID for the pending license change, or `null` when cleared."}}},"_parentId":{"type":"string","format":"objectId","description":"Parent integration ID when this integration was created as a child of another integration.\nInvalid ids are silently dropped by the server. Omit unless creating/updating child integrations."},"childDisplayName":{"type":"string","description":"Display name used for a child integration created during installation.\n\nOmit unless creating/updating child integrations."},"initChild":{"type":"object","description":"Script reference used to initialize a child integration during installation.\n\nOnly include when the child initialization workflow explicitly requires it.","properties":{"function":{"type":"string","description":"Function name to invoke to initialize the child integration."},"_scriptId":{"type":"string","format":"objectId","description":"Script ID that contains the initChild function."},"_stackId":{"type":"string","format":"objectId","description":"Stack ID that provides runtime context for initChild (if applicable)."}}},"flowGroupings":{"type":"array","description":"UI grouping configuration that groups an integration's flows into named\nsections. Works on ANY integration — this is NOT an Integration-App-only\nfeature; a plain integration can define flow groupings too. Create groupings\nhere, then assign flows to them via `PUT /v1/flows/updateFlowGrouping`. A\ngrouping that still has member flows survives being removed from this array —\nungroup its flows first.\n\nOmit unless you are explicitly configuring flow grouping behavior.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the flow grouping section."},"settings":{"type":"object","description":"Group-level settings for flows in this group. At runtime, flows in the\ngroup read these values under the fixed scope key `flowGrouping` — e.g.\nthe Handlebars expression `{{{settings.flowGrouping.salesOrganization}}}`\nor the Mapper 2.0 envelope path `$.settings.flowGrouping.salesOrganization`.","additionalProperties":true},"settingsForm":{"description":"Form definition for this flow grouping's settings UI.","allOf":[{"description":"Form definition for this flow grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"apiGroupings":{"type":"array","description":"UI grouping configuration for APIs within the integration.\n\nUsed to group APIs into named sections with their own settings/settingsForm.\nWorks identically to `flowGroupings` but for API resources. Create groupings here,\nthen assign APIs to them via `PUT /v1/apis/updateApiGrouping`. A grouping that still\nhas member APIs survives being removed from this array — ungroup its APIs first.","items":{"type":"object","additionalProperties":true,"required":["name"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Server-assigned grouping id."},"name":{"type":"string","description":"Display name for the API grouping section."},"settings":{"type":"object","description":"Group-level settings for APIs in this group.","additionalProperties":true},"settingsForm":{"description":"Form definition for this API grouping's settings UI.","allOf":[{"description":"Form definition for this API grouping's settings UI."},{"$ref":"#/components/schemas/Form"}]}}}},"netSuiteDistributedAdaptor":{"type":"object","description":"NetSuite distributed adaptor metadata (platform feature).\n\nOnly include if you are explicitly configuring distributed NetSuite adaptor behavior.","properties":{"accountId":{"type":"string","description":"NetSuite account identifier."},"environment":{"type":"string","description":"NetSuite environment.","enum":["production","beta","sandbox"]},"integrationId":{"type":"string","description":"Identifier used by the distributed adaptor for this integration."}}},"_sourceId":{"type":"string","format":"objectId","description":"Integration this one was cloned from. Set on every clone, standalone copies included, so\nit doesn't by itself mean the two are lifecycle-linked. Omit in create and update payloads."},"sampleIntegration":{"type":"boolean","description":"Indicates this integration is a sample/demo integration (used for templates/examples).\n\nTypically system-managed."},"syncs":{"type":"boolean","description":"When true, the integration is a container for Celigo Sync resources — set it on\n`POST /v1/integrations` before creating syncs in it (`POST /v1/syncs` into an\nintegration without it fails with `422 integration_not_for_sync`). Fixed at creation:\n`PUT /v1/integrations/{_id}` ignores the field in both directions. Keep flows out of\nit: a flow create isn't refused there. While the integration holds a sync, deleting\nit fails with 422 \"sync <id> must be deleted before you can delete integration <id>\"."},"aliases":{"type":"array","description":"Named aliases that map to specific resources within the integration.","items":{"type":"object","properties":{"alias":{"type":"string","description":"Alias name for the resource reference."},"description":{"type":"string","description":"Description of what this alias represents."},"_exportId":{"type":"string","format":"objectId","description":"Export referenced by this alias."},"_importId":{"type":"string","format":"objectId","description":"Import referenced by this alias."},"_flowId":{"type":"string","format":"objectId","description":"Flow referenced by this alias."},"_connectionId":{"type":"string","format":"objectId","description":"Connection referenced by this alias."},"_lookupCacheId":{"type":"string","format":"objectId","description":"Lookup cache referenced by this alias. Added automatically when the\ncache is registered to the integration (the alias is a slug of the\ncache name), and must be removed before the cache can be deregistered."}}}},"iLMIgnore":{"type":"object","description":"Fields that integration lifecycle pulls and reverts leave untouched, keyed by resource type\n(`integration`, `flow`, `export`, ...) with an array of field paths for each. Change it with\n`PATCH /v1/integrations/{_id}` on `/iLMIgnore` and read the saved value back here; a field\npath the resource type does not allow is rejected with 422 (\"Invalid path expression\n`<path>` for <type>. Path expression not supported\").","additionalProperties":true}}},"Settings":{"type":"object","description":"Configuration settings that can be accessed by hooks, filters, mappings and handlebars templates at runtime.\n\nIt enables customization of the resource's logic, allowing hooks, mappings, filters, and\nhandlebars to access and apply the settings at runtime.\n\n**Usage**\n\nThe settings object can store arbitrary JSON data that you want to save with the resource.\nWhile it's often populated through a form defined in the `settingsForm` field, you can also:\n\n- Directly provide JSON settings without using a form\n- Store configuration values used by hooks and templates\n- Create resource-specific constants and parameters\n- Maintain lookup tables or mapping structures\n- Define conditional logic parameters\n\n**Accessibility**\n\nSettings are available in:\n- All handlebars fields for building dynamic payloads\n- Field mapping expressions\n- JavaScript hooks via the options object\n- Filters and transformations\n\nAt runtime, the settings objects in the step's execution chain are gathered into a\nsingle `settings` context keyed by fixed scope keys. Flow runs populate the full\nchain: `settings.integration.*`, `settings.flowGrouping.*` (the flow group the flow\nbelongs to), `settings.flow.*`, `settings.connection.*`, `settings.iClient.*`, and\nthe running step's own scope — `settings.export.*` on exports/lookups,\n`settings.import.*` on imports (the key matches the step type). Steps executing\ninside a My API or a Tool receive only the step's own scope plus\n`settings.connection.*` / `settings.iClient.*`; the integration, flowGrouping, and\nflow scopes resolve empty there. The scope key is literal — resource display names\nand settingsForm section labels are never part of the path. The segments after the\nscope mirror the stored settings JSON key path exactly: a top-level field is\n`settings.<scope>.<fieldId>`, and nested objects add one segment per JSON key\n(e.g. `settings.flowGrouping.Customer.region` when the group's settings JSON nests\n`region` under `Customer`). References without a scope key\n(e.g. `{{settings.myField}}`) resolve to empty strings.\n\n**Best practices**\n\nFor non-technical users, create a custom form instead of editing the JSON directly.\nThis provides a user-friendly interface for updating settings without requiring JSON knowledge.\n","additionalProperties":true},"Form":{"type":"object","description":"Configuration for creating user-friendly settings forms that make it easier for less technical users\nto configure integration resources.\n\n**Settings form builder**\n\nThe Settings Form Builder allows you to create or edit user-friendly fields that prompt for text entry\nor selections that will be returned as settings applied to this resource. Your forms can include any\nfield types that you see elsewhere in integrator.io, such as:\n\n- Text fields\n- Dropdown selections\n- Checkboxes\n- Radio buttons\n- Date pickers\n- Multi-select fields\n- Search fields\n\nForm fields make it much easier for less technical users to work with your integration settings by:\n\n- Providing clear labels and help text\n- Enforcing validation rules\n- Offering pre-defined selection options\n- Grouping related settings logically\n- Supporting conditional visibility\n- Creating a consistent user experience\n","properties":{"form":{"type":"object","description":"Configuration that defines the structure, fields, and behavior of the settings form.\n\nThis object contains the complete definition of the form's layout, fields, validation rules,\nand interactive behaviors. The specific structure depends on the form complexity and can include\nfield definitions, sections, conditional display logic, and default values.\n\nThe form configuration is typically created and managed through the visual Form Builder interface\nrather than edited directly as JSON.\n","properties":{"fieldMap":{"type":"object","description":"A mapping of field identifiers to their configuration objects.\nEach key in this object represents a unique field ID, and the value contains\nall the configuration settings for that specific form field.\n","additionalProperties":{"type":"object","description":"Configuration for an individual form field.\n","properties":{"id":{"type":"string","description":"Unique identifier for this field within the form: layout containers and conditions\nrefer to the field by it. Use the same string as the field's fieldMap key and its `name`.\n"},"name":{"type":"string","description":"Key the field's value is saved under: one top-level key of the resource's `settings`,\nwhich the form also reads the value back from when it opens. Nested objects inside\n`settings` are written to it directly, not through a form field's `name`.\n"},"type":{"type":"string","description":"The type of form control to render for this field.\n","enum":["text","checkbox","radiogroup","relativeuri","editor","keyvalue","select","multiselect","toggle","datetime","date","exportSelect","staticMap"]},"label":{"type":"string","description":"Display label shown next to the field in the form.\n"},"description":{"type":"string","description":"Detailed explanation text that appears below the field, providing more context\nthan the label or helpText.\n"},"helpText":{"type":"string","description":"Explanatory text that appears when hovering over the help icon next to the field.\nUsed to provide additional guidance on how to use the field.\n"},"required":{"type":"boolean","description":"When true, the field must have a value before the form can be submitted. Only the form\nenforces it: an API write of `settings` is stored without the value.\n","default":false},"defaultValue":{"description":"Value the form shows while the resource's `settings` holds no value under the field's\n`name`.\n"},"multiline":{"type":"boolean","description":"For text fields, determines whether the input should be a multi-line text area\ninstead of a single-line input.\n","default":false},"rowsMax":{"type":"integer","description":"For multiline text fields, specifies the maximum number of visible rows.\n"},"inputType":{"type":"string","description":"For text fields, specifies the HTML input type attribute to apply additional\nvalidation or specialized input behavior.\n","enum":["text","number","email","password","tel","url"]},"delimiter":{"type":"string","description":"For text fields, specifies a character to use for splitting the input into an array.\nUsed for collecting multiple values in a single text field.\n"},"mode":{"type":"string","description":"For editor fields, specifies the type of content being edited for syntax highlighting.\n","enum":["json","xml","csv","text"]},"keyName":{"type":"string","description":"For keyvalue and staticMap fields, names the first column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `key`.\n"},"valueName":{"type":"string","description":"For keyvalue and staticMap fields, names the second column: each saved row holds that\ncolumn's value under this key. A keyvalue field without it uses `value`.\n"},"keyLabel":{"type":"string","description":"For staticMap fields, heading of the first column.\n"},"valueLabel":{"type":"string","description":"For staticMap fields, heading of the second column.\n"},"keyOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the first column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"valueOptions":{"type":"array","description":"For staticMap fields, suggestions offered in the second column's cells. A cell still\naccepts a typed value.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"Display text for the suggestion.\n"},"value":{"type":"string","description":"Value saved when the suggestion is chosen.\n"}}}},"keyResource":{"type":"object","description":"For staticMap fields, fills the first column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is. With\n`keyResource` or `valueResource` set, the form requires both columns in every row\nunless `keyValueRequired` is false.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"valueResource":{"type":"object","description":"For staticMap fields, fills the second column's suggestions from an export the form\ncarries inline in `virtual`, run the way an exportSelect's `resource` is.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline, shaped like an exportSelect's `resource.virtual`.\n","additionalProperties":true}}},"keyValueRequired":{"type":"boolean","description":"For staticMap fields with `keyResource` or `valueResource`, when false, saves rows\nthat fill only one column; by default the form drops them.\n","default":true},"resource":{"type":"object","description":"For exportSelect fields, the export whose records become the options. When the form\nopens, the UI previews the export in `virtual` (with `test.limit` 100 unless the export\nsets its own) and lists the preview's `data`: each record needs a `label` and a `value`\n(a string or number serves as both), so shape them with the export's `transform`. A\nsaved export can't be referenced, and an HTTP export that finds no records leaves the\nfield showing an error instead of options.\n","properties":{"virtual":{"type":"object","description":"Export document to run, inline: `adaptorType`, its adaptor block, and an optional\n`transform`. `_connectionId` defaults to the connection of the export or import the\nform belongs to; set it on any other resource's form. On an integration's form,\nand on the forms of its flows, it may also be the name of one of the integration's\n`aliases[]`, matched without regard to case: the UI previews the block on the\nroute scoped to the form's resource, where the alias resolves to its connection\n(past the preview's type check, a value that is neither a connection id nor an\nalias in that scope is a 400 `invalid_ref` there). Forms installed from a\ntemplate name connections this way, since the same block runs in every account\nthe template is installed in. The unscoped `POST /v1/exports/preview` knows no\naliases: past the preview's type check, an alias name there is 400 `invalid_ref`.\n","additionalProperties":true}}},"multiselect":{"type":"boolean","description":"For exportSelect fields, when true, the user can choose several options and the value\nis saved as an array.\n","default":false},"supportHandlebars":{"type":"boolean","description":"For exportSelect fields, when true, renders the `resource.virtual` export as a Handlebars\ntemplate before each preview (all but its `transform`, `hooks`, and `filter`). On an\nintegration, flow group, flow, export, or import form, the form's current values are\nunder that form's scope name (`integration`, `flowGrouping`, `flow`, `export`, or\n`import`), beside the saved settings of the scopes above it, with no `settings.`\nprefix; on a connection or iClient form the template has no context. The options then\nload through `refreshOptionsOnChangesTo` or `typeAheadSearch`, or when the user\nrefreshes the field.\n","default":false},"refreshOptionsOnChangesTo":{"type":"array","items":{"type":"string"},"description":"For exportSelect fields with `supportHandlebars`, ids of the fields whose values the\ntemplated export uses: the options load once one of them has a value and reload whenever\none changes.\n"},"typeAheadSearch":{"type":"boolean","description":"For exportSelect fields, when true, re-runs the templated export as the user types, with\nthe typed text as this field's own value; an empty box clears the options, and typed\ntext is accepted as the value.\n","default":false},"showDelete":{"type":"boolean","description":"For keyvalue fields, determines whether to show a delete button for each key-value pair.\n"},"doNotAllowFutureDates":{"type":"boolean","description":"For date and datetime fields, restricts selection to dates not in the future.\n"},"skipTimezoneConversion":{"type":"boolean","description":"For datetime fields, prevents automatic timezone conversion of the date value.\n"},"options":{"type":"array","description":"For fields that present choices (select, multiselect, radiogroup, toggle), defines\nthe available options.\n","items":{"anyOf":[{"title":"Option group","type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"oneOf":[{"title":"String value","type":"string"},{"title":"Label-value pair","type":"object","properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]},"description":"Array of option values/labels to display in the selection control.\n"}}},{"title":"Label-value pair","type":"object","required":["label"],"properties":{"label":{"type":"string","description":"Display text for the option.\n"},"value":{"type":"string","description":"Value to store when this option is selected.\n"}}}]}},"visibleWhen":{"type":"array","description":"Conditional display rules that determine when this field should be visible.\nIf empty or not provided, the field is always visible.\n","items":{"type":"object","properties":{"field":{"type":"string","description":"The ID of another field whose value controls the visibility of this field. The\nsave doesn't check it: a rule naming an ID that isn't in the form counts as met,\nso the field stays visible.\n"},"is":{"type":"array","items":{"type":["string","boolean","number","null"]},"description":"Array of values - if the referenced field has any of these values,\nthis field will be visible. Values may be strings, booleans (for\ncheckbox/toggle fields), numbers (for numeric inputs), or null.\n"}}}}}}},"layout":{"type":"object","description":"Defines how the form fields are arranged and grouped in the UI.\nThe layout can organize fields into columns, sections, or other visual groupings.\n","properties":{"type":{"type":"string","description":"The type of layout to use for the form.\n","enum":["column","collapse","box","indent","tabWithoutSave","verticalTabWithoutSave"]},"fields":{"type":"array","items":{"type":"string"},"description":"Field IDs shown above the containers, without a heading.\n"},"containers":{"type":"array","description":"Array of container objects that group fields or contain nested containers.\nEach container can represent a column, box, indented section, or collapsible section.\n","items":{"type":"object","properties":{"type":{"type":"string","description":"The visual style of the container.\n","enum":["indent","box","collapse"]},"label":{"type":"string","description":"The heading text displayed for this container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this container.\nEach ID must correspond to a key in the fieldMap object: the save doesn't check it,\nand an ID that doesn't renders nothing. A field the layout doesn't list isn't shown.\n"},"containers":{"type":"array","description":"Nested containers within this container. Allows for hierarchical organization\nof fields with different visual styles.\n","items":{"type":"object","properties":{"label":{"type":"string","description":"The heading text displayed for this nested container.\n"},"fields":{"type":"array","items":{"type":"string"},"description":"Array of field IDs that should be displayed in this nested container.\n"}}}}}}}}}},"additionalProperties":true},"init":{"type":"object","description":"Configuration for custom JavaScript initialization that executes when the form is first loaded.\n\nThis object defines a JavaScript hook that prepares the form for use, sets initial field values,\nperforms validation, or otherwise customizes the form behavior before it is displayed to the user.\n\n**Function signature**\n\nThe initialization function is invoked with a single 'options' argument containing contextual information:\n```javascript\nfunction formInit(options) {\n  // Process options and return the form object\n  return options.resource.settingsForm.form;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.resource` - The current resource being configured\n- `options.parentResource` - The parent of the current resource\n- `options.grandparentResource` - The grandparent of the current resource\n- `options.license` - For integration apps, the license provisioned to the integration\n- `options.parentLicense` - For integration apps, the parent of the license\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Dynamically generate field options based on resource configuration\n- Pre-populate default values from related resources\n- Apply conditional logic that depends on resource properties\n- Add, remove, or modify form fields based on user permissions or account settings\n- Fetch external data to populate selection options\n- Implement complex validation rules that depend on resource context\n- Create branching form experiences based on user selections\n\n**Return value**\n\nThe function must return a valid form object that the UI can render.\nThrowing an exception will signal an error to the user.\n\nThe UI runs the function each time it opens the form and renders the returned form instead of\n`form`, then fills in the values from `settings`; a thrown error's message replaces the form.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called when the form\nis initialized and should handle any custom setup logic.\n\nThe function must follow the expected signature and return a valid form object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the initialization function.\n\nThe referenced script should contain the function specified in the\n'function' property. On an integration, a flow group, a flow, an export, an import, or a\nconnection, an id that isn't a script in the same account (or, on an Integration App's\nresources, one the app shares) is refused with 422 `invalid_ref`. An iClient save\nstores the id without that check.\n"}}}}},"PreSave":{"type":"object","description":"Defines a JavaScript hook that executes before the resource is saved.\n\nThis hook allows for programmatic validation, transformation, or enrichment of the\nresource itself before it is persisted. It can be used to enforce business rules,\nset derived properties, or implement cross-field validations that can't be expressed\nthrough the standard UI.\n\n**Function signature**\n\nThe preSave function is invoked with a single 'options' argument containing:\n```javascript\nfunction preSave(options) {\n  // Process options and return the modified resource\n  return options.newResource;\n}\n```\n\n**Available context**\n\nThe 'options' argument provides access to:\n- `options.newResource` - The resource being saved (with pending changes)\n- `options.oldResource` - The previous version of the resource (before changes)\n- `options.sandbox` - Boolean flag indicating whether the script is running in a sandbox environment\n\n\n**Common uses**\n\n- Enforcing complex business rules across multiple fields\n- Automatically deriving field values based on other configuration\n- Performing validation that depends on external systems or data\n- Normalizing or standardizing configuration values\n- Adding computed or derived properties\n- Implementing versioning or change tracking\n- Dynamically looking up data using the Celigo API module to enrich configuration\n\n**Return value**\n\nThe function must return the newResource object (potentially modified) to be saved.\nThrowing an exception will prevent saving and signal an error to the user.\n","properties":{"function":{"type":"string","description":"The name of the function to execute within the referenced script.\n\nThis property specifies which function to invoke from the script\nreferenced by _scriptId. The function will be called just before\nthe resource is saved.\n\nThe function must follow the expected signature and return the resource object.\n"},"_scriptId":{"type":"string","format":"objectId","description":"Reference to a predefined script resource containing the preSave function.\n\nThe referenced script should contain the function specified in the\n'function' property. This script must be accessible within the user's account\nand have appropriate permissions.\n"}}},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"400-bad-request":{"description":"Bad request. The server could not understand the request because of malformed syntax or invalid parameters.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/clone":{"post":{"summary":"Clone an integration","description":"Creates a standalone copy of an existing integration: the copy records its source in\n`_sourceId` but isn't lifecycle-linked to it, so a pull between the two finds no changes.\nWhen the source has registered connections, remap each one via `connectionMap`; mapped\nconnections are reused, not cloned.\n","operationId":"cloneIntegration","tags":["Integrations"],"parameters":[{"name":"_id","in":"path","description":"The unique identifier of the integration to clone","required":true,"schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneRequest"}}}},"responses":{"201":{"description":"Integration cloned successfully. Returns a manifest of the resources the clone created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneResponse"}}}},"400":{"$ref":"#/components/responses/400-bad-request"},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"description":"A `connectionMap` key is missing or isn't one of the source's registered connections, or a\nvalue isn't a connection in the target environment (`invalid_connectionId`). Nothing is\ncreated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
````

## Preview cloning an integration

> Returns a preview of the resources that would be created by cloning the specified integration.\
> The response includes the integration and all transitive dependencies — flows, connections,\
> exports, imports, scripts, async helpers, lookup caches, and tools.\
> No resources are created by this endpoint.<br>

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"ClonePreviewResponse":{"type":"object","description":"Preview of the resources that would be created by a clone operation.\nEach object in the `objects` array represents a resource that will be\ncloned, including the target resource and all transitive dependencies\n(connections, scripts, exports, imports, etc.).\n","properties":{"objects":{"type":"array","description":"List of resources that would be created by the clone. Always includes\nthe target resource and may include transitive dependencies such as\nconnections, scripts, exports, imports, async helpers, and lookup caches.\n","items":{"type":"object","properties":{"model":{"type":"string","description":"The model type of the resource. Observed values include\nAsyncHelper, Connection, Export, Flow, Import, Integration,\nLookupCache, Script, and Tool.\n"},"doc":{"type":"object","description":"The full resource document that would be created by the clone.","additionalProperties":true}}}},"stackRequired":{"type":"boolean","description":"`true` when the resource or one of its dependencies references a stack (a hook or\nwrapper connection that runs on a stack). Send `_stackId` in the clone request: without\nit the clone fails with 400 `stack_not_found`."},"_stackId":{"type":["string","null"],"description":"The first stack the resource or a dependency references, or null. Pass it, or another\nstack in the target environment, as `_stackId` in the clone request; the clone points\nevery stack reference at that one stack."}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/clone/preview":{"get":{"summary":"Preview cloning an integration","description":"Returns a preview of the resources that would be created by cloning the specified integration.\nThe response includes the integration and all transitive dependencies — flows, connections,\nexports, imports, scripts, async helpers, lookup caches, and tools.\nNo resources are created by this endpoint.\n","operationId":"previewCloneIntegration","tags":["Integrations"],"parameters":[{"name":"_id","in":"path","description":"The unique identifier of the integration to preview cloning","required":true,"schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Clone preview retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClonePreviewResponse"}}}},"400":{"description":"The `_id` is not a valid ObjectId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List revisions for an integration

> Returns every revision entry (snapshots, pulls, reverts) for the integration, newest first.\
> An integration with no revision history returns an empty response (204), not \`\[]\`.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"RevisionsResponse":{"type":"array","description":"List of revisions for an integration, newest first. Empty history returns\nan empty response rather than `[]`.","items":{"$ref":"#/components/schemas/Revision"}},"Revision":{"type":"object","description":"Integration Lifecycle Management (ILM) revision entry. Revisions capture point-in-time state of an\nintegration and drive snapshot, pull, and revert workflows across environments.","properties":{"_id":{"type":"string","format":"objectId","description":"Revision id."},"_integrationId":{"type":"string","format":"objectId","description":"Id of the integration this revision belongs to."},"_fromIntegrationId":{"type":"string","format":"objectId","description":"For `pull` / `revert` revisions, the id of the source integration the changes originated from.\nFor `snapshot` revisions this equals `_integrationId`."},"_fromIntegrationEnvId":{"type":"string","format":"objectId","description":"Environment id of the source integration."},"fromIntegrationName":{"type":"string","description":"Display name of the source integration at revision time (frozen copy)."},"type":{"type":"string","description":"Revision kind.","enum":["snapshot","pull","revert"]},"status":{"type":"string","description":"Lifecycle status. `completed` revisions are terminal; `inprogress` (pull/revert) revisions can\nbe diffed and either applied or canceled. `failed` revisions surfaced an error mid-process;\n`canceled` revisions were aborted before apply.","enum":["inprogress","completed","failed","canceled"]},"description":{"type":"string","description":"Human-entered label describing what the revision captures."},"beforeRevisionHash":{"type":"string","description":"Content hash of the integration state prior to this revision. On a `pull` it is the\nrestore point that the Revisions tab's **Revert to before this revision** returns to:\nthe revert names the pull in `_revertToRevisionId` and copies this hash into\n`revertToRevisionHash`."},"transactionHash":{"type":"string","description":"Transaction hash of the revision write. Present on `pull` and `revert` revisions; absent on\nplain snapshots."},"afterRevisionHash":{"type":"string","description":"Content hash of the integration state after the revision was applied. Present on `pull` and\n`revert` revisions."},"errorFileKey":{"type":"string","readOnly":true,"description":"Storage key of the error file written when the apply step fails. Present only on `failed`\nrevisions; the file's records are read through `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors`."},"_revertToRevisionId":{"type":"string","format":"objectId","description":"For `revert` revisions, the id of the target revision being reverted to."},"revertToRevisionHash":{"type":"string","description":"Content hash of the revision being reverted to — echoes `beforeRevisionHash` of the\n`_revertToRevisionId` revision."},"_createdByUserId":{"type":"string","format":"objectId","description":"User id of the creator."},"installSteps":{"type":"array","description":"Install steps associated with the revision (empty for normal snapshots; populated when the\nrevision is part of a pull/revert that requires user-facing install actions).","items":{"type":"object","additionalProperties":true}},"createdAt":{"type":"string","format":"date-time","description":"When the revision was created."},"lastModified":{"type":"string","format":"date-time","description":"Last update time of the revision record."}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/revisions":{"get":{"operationId":"listIntegrationRevisions","tags":["Integrations"],"summary":"List revisions for an integration","description":"Returns every revision entry (snapshots, pulls, reverts) for the integration, newest first.\nAn integration with no revision history returns an empty response (204), not `[]`.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Revision history, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionsResponse"}}}},"204":{"description":"No revisions exist for this integration."},"400":{"description":"Error code `not_supported` means the integration is an Integration App installation (it\ncarries `_connectorId`). A marketplace template install is not one, though the message\nnames templates.\n\nError code `invalid_integration_state` means an install step is not completed (`completed`\nfalse in `installSteps`).\n\nError code `invalid_environment_for_integration` means the integration belongs to another\nenvironment of the account than the one the token acts in. `GET /v1/integrations/{_id}`\nanswers 404 for the same id; an id that exists in no environment answers 404 here too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Get a revision

> Returns the full revision record. The list endpoint already surfaces every field, so this is\
> primarily useful when you have a \`\_revisionId\` in hand (e.g. from a webhook, audit log, or\
> external reference) and want to verify state without re-listing.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Revision":{"type":"object","description":"Integration Lifecycle Management (ILM) revision entry. Revisions capture point-in-time state of an\nintegration and drive snapshot, pull, and revert workflows across environments.","properties":{"_id":{"type":"string","format":"objectId","description":"Revision id."},"_integrationId":{"type":"string","format":"objectId","description":"Id of the integration this revision belongs to."},"_fromIntegrationId":{"type":"string","format":"objectId","description":"For `pull` / `revert` revisions, the id of the source integration the changes originated from.\nFor `snapshot` revisions this equals `_integrationId`."},"_fromIntegrationEnvId":{"type":"string","format":"objectId","description":"Environment id of the source integration."},"fromIntegrationName":{"type":"string","description":"Display name of the source integration at revision time (frozen copy)."},"type":{"type":"string","description":"Revision kind.","enum":["snapshot","pull","revert"]},"status":{"type":"string","description":"Lifecycle status. `completed` revisions are terminal; `inprogress` (pull/revert) revisions can\nbe diffed and either applied or canceled. `failed` revisions surfaced an error mid-process;\n`canceled` revisions were aborted before apply.","enum":["inprogress","completed","failed","canceled"]},"description":{"type":"string","description":"Human-entered label describing what the revision captures."},"beforeRevisionHash":{"type":"string","description":"Content hash of the integration state prior to this revision. On a `pull` it is the\nrestore point that the Revisions tab's **Revert to before this revision** returns to:\nthe revert names the pull in `_revertToRevisionId` and copies this hash into\n`revertToRevisionHash`."},"transactionHash":{"type":"string","description":"Transaction hash of the revision write. Present on `pull` and `revert` revisions; absent on\nplain snapshots."},"afterRevisionHash":{"type":"string","description":"Content hash of the integration state after the revision was applied. Present on `pull` and\n`revert` revisions."},"errorFileKey":{"type":"string","readOnly":true,"description":"Storage key of the error file written when the apply step fails. Present only on `failed`\nrevisions; the file's records are read through `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors`."},"_revertToRevisionId":{"type":"string","format":"objectId","description":"For `revert` revisions, the id of the target revision being reverted to."},"revertToRevisionHash":{"type":"string","description":"Content hash of the revision being reverted to — echoes `beforeRevisionHash` of the\n`_revertToRevisionId` revision."},"_createdByUserId":{"type":"string","format":"objectId","description":"User id of the creator."},"installSteps":{"type":"array","description":"Install steps associated with the revision (empty for normal snapshots; populated when the\nrevision is part of a pull/revert that requires user-facing install actions).","items":{"type":"object","additionalProperties":true}},"createdAt":{"type":"string","format":"date-time","description":"When the revision was created."},"lastModified":{"type":"string","format":"date-time","description":"Last update time of the revision record."}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/revisions/{_revisionId}":{"get":{"operationId":"getIntegrationRevision","tags":["Integrations"],"summary":"Get a revision","description":"Returns the full revision record. The list endpoint already surfaces every field, so this is\nprimarily useful when you have a `_revisionId` in hand (e.g. from a webhook, audit log, or\nexternal reference) and want to verify state without re-listing.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_revisionId","in":"path","required":true,"description":"Revision id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Revision record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"400":{"description":"Error code `not_supported` means the integration is an Integration App installation (it\ncarries `_connectorId`). A marketplace template install is not one, though the message\nnames templates.\n\nError code `invalid_integration_state` means an install step is not completed (`completed`\nfalse in `installSteps`).\n\nError code `invalid_environment_for_integration` means the integration belongs to another\nenvironment of the account than the one the token acts in.\n\nAll three are checked before the revision is looked up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Create a snapshot revision

> Takes a point-in-time snapshot of the integration's current state and writes it to the revision\
> history. The returned revision has \`type: snapshot\` and \`status: completed\` immediately --\
> snapshots are synchronous and do not require an apply step. This is the only revision type\
> that can be created via the public API; \`pull\` and \`revert\` revisions require the Celigo UI.\
> \
> A standalone copy made with \`POST /v1/integrations/{\_id}/clone\` can't be snapshotted: it isn't\
> lifecycle-linked to its source, so the request fails with 422 \`lifecycleerror\`. Snapshot the\
> source integration instead.\
> \
> An Integration App installation (an integration that carries \`\_connectorId\`) can't be\
> snapshotted either: the check every revision route runs first refuses one with 400\
> \`not\_supported\` (source-only on this route: live-verified on the four routes that read\
> revisions, not yet confirmed with a snapshot request).

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"RevisionCreateRequest":{"type":"object","description":"Request body for `POST /v1/integrations/{_id}/revisions/create`. Creates a `snapshot` revision of\nthe integration's current state.","properties":{"description":{"type":"string","minLength":1,"description":"Human-readable label shown in the Revisions tab. Required — the UI enforces a non-empty value\nand so does the API."}},"required":["description"]},"Revision":{"type":"object","description":"Integration Lifecycle Management (ILM) revision entry. Revisions capture point-in-time state of an\nintegration and drive snapshot, pull, and revert workflows across environments.","properties":{"_id":{"type":"string","format":"objectId","description":"Revision id."},"_integrationId":{"type":"string","format":"objectId","description":"Id of the integration this revision belongs to."},"_fromIntegrationId":{"type":"string","format":"objectId","description":"For `pull` / `revert` revisions, the id of the source integration the changes originated from.\nFor `snapshot` revisions this equals `_integrationId`."},"_fromIntegrationEnvId":{"type":"string","format":"objectId","description":"Environment id of the source integration."},"fromIntegrationName":{"type":"string","description":"Display name of the source integration at revision time (frozen copy)."},"type":{"type":"string","description":"Revision kind.","enum":["snapshot","pull","revert"]},"status":{"type":"string","description":"Lifecycle status. `completed` revisions are terminal; `inprogress` (pull/revert) revisions can\nbe diffed and either applied or canceled. `failed` revisions surfaced an error mid-process;\n`canceled` revisions were aborted before apply.","enum":["inprogress","completed","failed","canceled"]},"description":{"type":"string","description":"Human-entered label describing what the revision captures."},"beforeRevisionHash":{"type":"string","description":"Content hash of the integration state prior to this revision. On a `pull` it is the\nrestore point that the Revisions tab's **Revert to before this revision** returns to:\nthe revert names the pull in `_revertToRevisionId` and copies this hash into\n`revertToRevisionHash`."},"transactionHash":{"type":"string","description":"Transaction hash of the revision write. Present on `pull` and `revert` revisions; absent on\nplain snapshots."},"afterRevisionHash":{"type":"string","description":"Content hash of the integration state after the revision was applied. Present on `pull` and\n`revert` revisions."},"errorFileKey":{"type":"string","readOnly":true,"description":"Storage key of the error file written when the apply step fails. Present only on `failed`\nrevisions; the file's records are read through `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors`."},"_revertToRevisionId":{"type":"string","format":"objectId","description":"For `revert` revisions, the id of the target revision being reverted to."},"revertToRevisionHash":{"type":"string","description":"Content hash of the revision being reverted to — echoes `beforeRevisionHash` of the\n`_revertToRevisionId` revision."},"_createdByUserId":{"type":"string","format":"objectId","description":"User id of the creator."},"installSteps":{"type":"array","description":"Install steps associated with the revision (empty for normal snapshots; populated when the\nrevision is part of a pull/revert that requires user-facing install actions).","items":{"type":"object","additionalProperties":true}},"createdAt":{"type":"string","format":"date-time","description":"When the revision was created."},"lastModified":{"type":"string","format":"date-time","description":"Last update time of the revision record."}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/revisions/create":{"post":{"operationId":"createIntegrationRevision","tags":["Integrations"],"summary":"Create a snapshot revision","description":"Takes a point-in-time snapshot of the integration's current state and writes it to the revision\nhistory. The returned revision has `type: snapshot` and `status: completed` immediately --\nsnapshots are synchronous and do not require an apply step. This is the only revision type\nthat can be created via the public API; `pull` and `revert` revisions require the Celigo UI.\n\nA standalone copy made with `POST /v1/integrations/{_id}/clone` can't be snapshotted: it isn't\nlifecycle-linked to its source, so the request fails with 422 `lifecycleerror`. Snapshot the\nsource integration instead.\n\nAn Integration App installation (an integration that carries `_connectorId`) can't be\nsnapshotted either: the check every revision route runs first refuses one with 400\n`not_supported` (source-only on this route: live-verified on the four routes that read\nrevisions, not yet confirmed with a snapshot request).","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionCreateRequest"}}}},"responses":{"201":{"description":"Snapshot revision created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"400":{"description":"The request is malformed, or the integration is refused by the check every revision route\nruns first. That check answers `not_supported` for an Integration App installation (an\nintegration that carries `_connectorId`; a marketplace template install is not refused,\nthough the message names templates) and `invalid_integration_state` for an integration\nwith an install step not completed. On this route the `not_supported` refusal is\nsource-only: live-verified on the four routes that read revisions, not yet confirmed with\na snapshot request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"description":"The integration is a standalone copy made by `POST /v1/integrations/{_id}/clone`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Diff a pull or revert revision

> Returns the before/after diff for a pull or revert revision. The diff is materialized on \`pull\`\
> and \`revert\` revisions and is retained on their \`completed\` state -- available for both\
> \`inprogress\` and \`completed\` pull/revert revisions. Snapshot revisions are not diffable\
> (there is no source integration to diff against), and \`canceled\` revisions drop their diff.\
> \
> The response body is a \`{before, after}\` envelope where each side is a map keyed by resource\
> type (e.g. \`flow\`, \`export\`, \`connection\`, \`api\`, \`tool\`) whose values are maps of resourceId\
> to full resource snapshot.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"RevisionDiffResponse":{"type":"object","description":"Structured before/after diff for a `pull` or `revert` revision, available on an `inprogress`\none once its install steps have materialized and kept once it is `completed`. Snapshot,\n`canceled` and `failed` revisions have none and return HTTP 400 `invalid_revision_state`.\n\nA `{before, after}` envelope: each side maps resource type to resource id to that resource's\nsnapshot. Treated as an opaque envelope here; specific field layout is not guaranteed stable\nacross platform versions.","additionalProperties":true},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/revisions/{_revisionId}/diff":{"get":{"operationId":"getIntegrationRevisionDiff","tags":["Integrations"],"summary":"Diff a pull or revert revision","description":"Returns the before/after diff for a pull or revert revision. The diff is materialized on `pull`\nand `revert` revisions and is retained on their `completed` state -- available for both\n`inprogress` and `completed` pull/revert revisions. Snapshot revisions are not diffable\n(there is no source integration to diff against), and `canceled` revisions drop their diff.\n\nThe response body is a `{before, after}` envelope where each side is a map keyed by resource\ntype (e.g. `flow`, `export`, `connection`, `api`, `tool`) whose values are maps of resourceId\nto full resource snapshot.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_revisionId","in":"path","required":true,"description":"Revision id. Must be a `pull` or `revert` revision in `inprogress` or `completed` state.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Diff envelope for the revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionDiffResponse"}}}},"400":{"description":"Revision is not in a diffable state. Error code `invalid_revision_state`. Occurs on\nsnapshot revisions (no source to diff against), `canceled` revisions (diff dropped),\n`failed` revisions (read their cause from\n`GET /v1/integrations/{_id}/revisions/{_revisionId}/errors` instead), and\n`inprogress` revisions whose install steps haven't materialized yet.\n\nThe integration is checked before the revision: `not_supported` (an Integration App\ninstallation), `invalid_integration_state` (an install step not completed),\n`invalid_environment_for_integration` (another environment than the token's).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List a failed revision's errors

> Returns the error records recorded while a \`pull\` or \`revert\` revision was being applied — the\
> same list the Revisions tab shows for a \`failed\` revision. Read this, not the diff, to learn why\
> a revision failed: \`GET /v1/integrations/{\_id}/revisions/{\_revisionId}/diff\` rejects \`failed\`\
> revisions with \`invalid\_revision\_state\`, and every state other than \`failed\` is rejected here\
> with the same code.\
> \
> Each record is an error the apply step recorded: a resource or reference it refused, or a\
> failure of the apply step itself. A \`LifeCycleError\` names ids by the revision's change-set\
> keys — \`\<type> - \<id> references a deleted resource: \<type> - \<id>.deleted\` reports that the\
> merged document still points at an entry the same change set marks \`.deleted\`. The suffix is\
> that marker, not the resource's state in the account.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"RevisionErrorsResponse":{"type":"array","description":"Error records for one revision, oldest first.","items":{"$ref":"#/components/schemas/RevisionError"}},"RevisionError":{"type":"object","description":"One error recorded while a revision was being applied.","required":["code","message"],"properties":{"_id":{"type":"string","format":"objectId","description":"Error record id; the Revisions tab uses it to open the record's detail view."},"code":{"type":"string","description":"Error class the apply step recorded. Recorded classes include `LifeCycleError` — a\nchange-set consistency failure — and the code of a resource validation the apply ran; a\nfailure of the apply step itself is recorded under its own class. A flow whose step names an\nexport the account does not hold is recorded as `invalid_ref` (`<id> is not a valid <path>`);\nwhen that flow is enabled and scheduled, the same refusal also records `not_allowed`\n(`Unfinished flows are not allowed to be scheduled.`), which names no flow."},"message":{"type":"string","description":"Human-readable cause. In a `LifeCycleError`, resource references use the change set's own\nids, so a `<id>.deleted` suffix identifies an entry of the revision, not the state of the\nresource in the account. A flow's `invalid_ref` carries the id the flow named and the field\npath that holds it."},"createdAt":{"type":"string","format":"date-time","description":"When the error was recorded."}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/revisions/{_revisionId}/errors":{"get":{"operationId":"listIntegrationRevisionErrors","tags":["Integrations"],"summary":"List a failed revision's errors","description":"Returns the error records recorded while a `pull` or `revert` revision was being applied — the\nsame list the Revisions tab shows for a `failed` revision. Read this, not the diff, to learn why\na revision failed: `GET /v1/integrations/{_id}/revisions/{_revisionId}/diff` rejects `failed`\nrevisions with `invalid_revision_state`, and every state other than `failed` is rejected here\nwith the same code.\n\nEach record is an error the apply step recorded: a resource or reference it refused, or a\nfailure of the apply step itself. A `LifeCycleError` names ids by the revision's change-set\nkeys — `<type> - <id> references a deleted resource: <type> - <id>.deleted` reports that the\nmerged document still points at an entry the same change set marks `.deleted`. The suffix is\nthat marker, not the resource's state in the account.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_revisionId","in":"path","required":true,"description":"Revision id. Must be a revision in `failed` state.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Error records for the failed revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionErrorsResponse"}}}},"400":{"description":"Revision is not in `failed` state, so it has no error records. Error code\n`invalid_revision_state` — returned for `completed`, `canceled`, and `inprogress` revisions\nof every type, including snapshots.\n\nThree checks on the integration run before the revision is looked up: `not_supported` for\nan Integration App installation (it carries `_connectorId`), `invalid_integration_state`\nfor an install step not completed (`completed` false in `installSteps`), and\n`invalid_environment_for_integration` for an integration in another environment of the\naccount than the one the token acts in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Summarize open errors across an integration's flows

> Returns a per-flow count of currently open (unresolved) errors for every flow in the integration.\
> Flows with zero open errors still appear so callers see the full flow roster; \`lastErrorAt\` is\
> only populated when \`numError > 0\`. Entries do not contain individual error ids -- to get\
> actionable error records, drill into \`GET /v1/flows/{\_flowId}/{\_stepId}/errors\` for each flow\
> and step.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"IntegrationErrorsResponse":{"type":"array","description":"Per-flow open-error summary for an integration. One entry per flow in the integration; flows with\nzero open errors still appear so callers see the full roster. Empty integrations (no flows) return\nHTTP 204 with no body.","items":{"type":"object","properties":{"_flowId":{"type":"string","format":"objectId","description":"Id of the flow these counts apply to."},"numError":{"type":"integer","minimum":0,"description":"Count of currently open (unresolved) errors on this flow. Only\nerrors within the account's data-retention window are counted —\nolder open errors are excluded."},"lastErrorAt":{"type":"string","format":"date-time","description":"Timestamp of the most recent open error on this flow, scoped to\nthe account's data-retention window. Omitted when `numError` is 0."}}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"400-bad-request":{"description":"Bad request. The server could not understand the request because of malformed syntax or invalid parameters.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/errors":{"get":{"operationId":"listIntegrationErrors","tags":["Integrations"],"summary":"Summarize open errors across an integration's flows","description":"Returns a per-flow count of currently open (unresolved) errors for every flow in the integration.\nFlows with zero open errors still appear so callers see the full flow roster; `lastErrorAt` is\nonly populated when `numError > 0`. Entries do not contain individual error ids -- to get\nactionable error records, drill into `GET /v1/flows/{_flowId}/{_stepId}/errors` for each flow\nand step.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Per-flow open-error summary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationErrorsResponse"}}}},"204":{"description":"Integration has no flows with any reported error state."},"400":{"$ref":"#/components/responses/400-bad-request"},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## (Legacy) Assign open errors to a user across an integration

> Tags a batch of open errors with an assignee. Errors stay open; this does not resolve or retry\
> them. The \`email\` must resolve to a user with access to the account.\
> \
> Prefer \`PUT /v1/flows/{\_flowId}/{\_stepId}/errors/assign\` instead -- it works with a plain\
> bearer token and requires no extra headers. This integration-level endpoint requires an\
> \`integrator-ashareid\` header, and account-owner PATs have no ashare pointing at themselves, so\
> they cannot call it directly.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"IntegrationErrorsAssignRequest":{"type":"object","description":"Request body for `PUT /v1/integrations/{_id}/errors/assign`. Assigns a batch of open errors —\nacross any flow in the integration — to a user by email. Errors remain open; only the assignee\ntag changes.","properties":{"errorIds":{"type":"array","description":"Ids of open errors to assign. Obtain from the per-step endpoint\n`GET /v1/flows/{_flowId}/{_stepId}/errors` → each entry's `errorId`. The integration-level\n`GET /v1/integrations/{_id}/errors` only returns per-flow *aggregates* (no individual error\nids), so the error ids must come from the per-step endpoint. Platform caps batch size around\n~1000; chunk larger sets client-side.","minItems":1,"items":{"type":"string"}},"email":{"type":"string","format":"email","description":"Email of the account user to assign the errors to. Must match an existing user with access to\nthe account; the API does not create users implicitly and rejects unknown emails."}},"required":["errorIds","email"]},"IntegrationErrorsAssignResponse":{"type":"object","description":"Echo of the mutation — ids of errors that were reassigned. Mirrors the shape of the per-step\n`PUT /v1/flows/{_id}/{_stepId}/errors/assign` response.","properties":{"errorsToReturn":{"type":"array","description":"Error ids that were affected by the mutation.","items":{"type":"string"}}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"400-bad-request":{"description":"Bad request. The server could not understand the request because of malformed syntax or invalid parameters.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/integrations/{_id}/errors/assign":{"put":{"operationId":"assignIntegrationErrors","tags":["Integrations"],"summary":"(Legacy) Assign open errors to a user across an integration","description":"Tags a batch of open errors with an assignee. Errors stay open; this does not resolve or retry\nthem. The `email` must resolve to a user with access to the account.\n\nPrefer `PUT /v1/flows/{_flowId}/{_stepId}/errors/assign` instead -- it works with a plain\nbearer token and requires no extra headers. This integration-level endpoint requires an\n`integrator-ashareid` header, and account-owner PATs have no ashare pointing at themselves, so\nthey cannot call it directly.","parameters":[{"name":"integrator-ashareid","in":"header","required":false,"description":"Account-share id scoping the request to a specific shared-account context. Only accepted\nwhen the bearer token's user is the `sharedWithUser` of that ashare. Not required by the\nper-step fallback — prefer that endpoint instead.","schema":{"type":"string","format":"objectId"}},{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationErrorsAssignRequest"}}}},"responses":{"200":{"description":"Errors assigned. Body echoes which ids were affected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationErrorsAssignResponse"}}}},"400":{"$ref":"#/components/responses/400-bad-request"},"401":{"$ref":"#/components/responses/401-unauthorized"},"403":{"description":"`integrator-ashareid` is malformed (not a 24-char hex id). Error code:\n`invalid_header_value`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Either the integration is unknown, no `integrator-ashareid` was sent (code: `invalid_ref`,\nmessage: \"Integration not found.\"), or the header references a share whose `sharedWithUser`\nisn't the bearer token's user (code: `access_restricted`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## List flows belonging to an integration

> Returns a bare array of full flow objects for every flow in the integration. Each element\
> is a complete flow resource, the same shape as \`GET /v1/flows/{\_id}\`.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/flows":{"get":{"operationId":"listIntegrationFlows","tags":["Integrations"],"summary":"List flows belonging to an integration","description":"Returns a bare array of full flow objects for every flow in the integration. Each element\nis a complete flow resource, the same shape as `GET /v1/flows/{_id}`.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of flow objects to return.","schema":{"type":"integer","minimum":1}},{"name":"includeInstances","in":"query","required":false,"description":"When true, instance flows generated from abstract (multi-instance)\nflows are included in the results, which otherwise list only\nregular and abstract flows.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Array of flow objects.","content":{"application/json":{"schema":{"type":"array","description":"Bare array of full flow resource objects.","items":{"type":"object","description":"A flow resource. Same shape as returned by `GET /v1/flows/{_id}`."}}}}},"204":{"description":"Integration has no flows."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List imports belonging to an integration

> Returns a bare array of full import objects for every import in the integration. Each element\
> is a complete import resource, the same shape as \`GET /v1/imports/{\_id}\`.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/imports":{"get":{"operationId":"listIntegrationImports","tags":["Integrations"],"summary":"List imports belonging to an integration","description":"Returns a bare array of full import objects for every import in the integration. Each element\nis a complete import resource, the same shape as `GET /v1/imports/{_id}`.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of import objects to return. **Bug:** the server returns N+1 items for a\n`limit=N` value.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Array of import objects.","content":{"application/json":{"schema":{"type":"array","description":"Bare array of full import resource objects.","items":{"type":"object","description":"An import resource. Same shape as returned by `GET /v1/imports/{_id}`."}}}}},"204":{"description":"Integration has no imports."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List exports belonging to an integration

> Returns a bare array of full export objects for every export in the integration. Each element\
> is a complete export resource, the same shape as \`GET /v1/exports/{\_id}\`.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/exports":{"get":{"operationId":"listIntegrationExports","tags":["Integrations"],"summary":"List exports belonging to an integration","description":"Returns a bare array of full export objects for every export in the integration. Each element\nis a complete export resource, the same shape as `GET /v1/exports/{_id}`.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of export objects to return. **Bug:** the server returns N+1 items for a\n`limit=N` value.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Array of export objects.","content":{"application/json":{"schema":{"type":"array","description":"Bare array of full export resource objects.","items":{"type":"object","description":"An export resource. Same shape as returned by `GET /v1/exports/{_id}`."}}}}},"204":{"description":"Integration has no exports."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List connections belonging to an integration

> Returns a bare array of full connection objects for every connection registered to the\
> integration. Each element is a complete connection resource, the same shape as\
> \`GET /v1/connections/{\_id}\`. Unlike the flows/imports/exports sub-resource endpoints, this\
> endpoint rejects unknown integration ids with a 404.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/connections":{"get":{"operationId":"listIntegrationConnections","tags":["Integrations"],"summary":"List connections belonging to an integration","description":"Returns a bare array of full connection objects for every connection registered to the\nintegration. Each element is a complete connection resource, the same shape as\n`GET /v1/connections/{_id}`. Unlike the flows/imports/exports sub-resource endpoints, this\nendpoint rejects unknown integration ids with a 404.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of connection objects to return.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Array of connection objects.","content":{"application/json":{"schema":{"type":"array","description":"Bare array of full connection resource objects.","items":{"type":"object","description":"A connection resource. Same shape as returned by `GET /v1/connections/{_id}`."}}}}},"204":{"description":"Integration has no connections."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List async helpers belonging to an integration

> Returns a bare array of async-helper objects for every async helper registered to the\
> integration. Each element is a complete async-helper resource, the same shape as\
> \`GET /v1/asynchelpers/{\_id}\`.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/asynchelpers":{"get":{"operationId":"listIntegrationAsyncHelpers","tags":["Integrations"],"summary":"List async helpers belonging to an integration","description":"Returns a bare array of async-helper objects for every async helper registered to the\nintegration. Each element is a complete async-helper resource, the same shape as\n`GET /v1/asynchelpers/{_id}`.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Array of async-helper objects.","content":{"application/json":{"schema":{"type":"array","description":"Bare array of full async-helper resource objects.","items":{"type":"object","description":"An async-helper resource. Same shape as returned by `GET /v1/asynchelpers/{_id}`."}}}}},"204":{"description":"Integration has no async helpers."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List account shares for an integration

> Returns an array of account-share (ashare) objects for the integration. Each entry describes a\
> user who has been granted access to the integration's owning account, along with their access\
> level and authentication metadata. Unlike other integration sub-resource list endpoints, this\
> always returns an array (an integration with no shares returns \`\[]\`).

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/ashares":{"get":{"operationId":"listIntegrationAshares","tags":["Integrations"],"summary":"List account shares for an integration","description":"Returns an array of account-share (ashare) objects for the integration. Each entry describes a\nuser who has been granted access to the integration's owning account, along with their access\nlevel and authentication metadata. Unlike other integration sub-resource list endpoints, this\nalways returns an array (an integration with no shares returns `[]`).","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Array of account-share objects.","content":{"application/json":{"schema":{"type":"array","description":"Account shares scoped to the integration.","items":{"type":"object","properties":{"_id":{"type":"string","format":"objectId","description":"Ashare id."},"accepted":{"type":"boolean","description":"When true, the shared user has accepted the invitation."},"accessLevel":{"type":"string","description":"Access level granted to the user (e.g. `administrator`, `manage`, `monitor`)."},"accountSSORequired":{"type":"boolean","description":"When true, the account requires SSO for this user."},"accountMFARequired":{"type":"boolean","description":"When true, the user must complete Celigo MFA to access this account even\nafter signing in through SSO. Password sign-in on a paid account requires\nMFA whatever this holds."},"createdAt":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"lastSignIn":{"type":"string","format":"date-time"},"isProductionAdmin":{"type":"boolean"},"sharedWithUser":{"type":"object","description":"The user this share was granted to.","properties":{"_id":{"type":"string","format":"objectId"},"email":{"type":"string","format":"email"},"name":{"type":"string"},"lastSignIn":{"type":"string","format":"date-time"},"allowedToResetMFA":{"type":"boolean"},"accountSSOLinked":{"type":"boolean"}}}}}}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Register a connection to an integration (by path)

> Registers a single connection to the integration by specifying the connection id in the URL\
> path. No request body is needed. To unregister, use \`DELETE\` on the same path. Alternatively,\
> use \`PUT /v1/integrations/{\_id}/connections/register\` to register by request body.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/connections/{_connectionId}/register":{"put":{"operationId":"registerConnectionToIntegration","tags":["Integrations"],"summary":"Register a connection to an integration (by path)","description":"Registers a single connection to the integration by specifying the connection id in the URL\npath. No request body is needed. To unregister, use `DELETE` on the same path. Alternatively,\nuse `PUT /v1/integrations/{_id}/connections/register` to register by request body.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_connectionId","in":"path","required":true,"description":"Connection id to register.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Connection registered successfully. No body returned."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Unregister a connection from an integration

> Removes a connection's registration from the integration. This does not delete the connection\
> itself -- it only removes it from the integration's registered-connections list.\
> \
> Fails while any resource in the integration still uses the connection. Two references\
> are known to count: any step in one of its flows, Tools, or APIs whose \`\_connectionId\`\
> is this connection -- every step is an export or import document, whatever its kind\
> (lookup, listener, AI agent, guardrail, Tool wrapper, transfer) -- and an alias on the\
> integration or one of its flows whose \`\_connectionId\` points at it. Move the steps to\
> another connection first (a whole flow at once with\
> \`PUT /v1/flows/{\_id}/replaceConnection\`; Tool and API steps through their own\
> step-level \`replaceConnection\`), remove or retarget any alias that still points at it,\
> then unregister.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/integrations/{_id}/connections/{_connectionId}/register":{"delete":{"operationId":"unregisterConnectionFromIntegration","tags":["Integrations"],"summary":"Unregister a connection from an integration","description":"Removes a connection's registration from the integration. This does not delete the connection\nitself -- it only removes it from the integration's registered-connections list.\n\nFails while any resource in the integration still uses the connection. Two references\nare known to count: any step in one of its flows, Tools, or APIs whose `_connectionId`\nis this connection -- every step is an export or import document, whatever its kind\n(lookup, listener, AI agent, guardrail, Tool wrapper, transfer) -- and an alias on the\nintegration or one of its flows whose `_connectionId` points at it. Move the steps to\nanother connection first (a whole flow at once with\n`PUT /v1/flows/{_id}/replaceConnection`; Tool and API steps through their own\nstep-level `replaceConnection`), remove or retarget any alias that still points at it,\nthen unregister.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_connectionId","in":"path","required":true,"description":"Connection id to unregister.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Connection unregistered successfully. No body returned. Deleting a registered\nconnection (`DELETE /v1/connections/{_id}`) already removes it from\n`_registeredConnectionIds`, so this call is not needed afterwards — on a deleted\nconnection it returns 404."},"400":{"description":"The connection is not registered on this integration (\"The connection which you are\ntrying to deregister is not registered on the integration.\"), or a resource in the\nintegration still uses it -- a flow, Tool, or API step bound to it (\"The connection\nis being actively used by the integration...\"), or an alias on the integration or\none of its flows that points at it (\"This connection is being referenced by an\nalias. Delete the alias before deregistering the connection.\"). Error code:\n`not_allowed` for all three.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"description":"The integration does not exist (`invalid_ref`), or no connection with this id exists\nin the account — including one already deleted, which its deletion unregistered\n(`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Register connections to an integration (by body)

> Registers one or more connections to the integration, adding them to its\
> \`\_registeredConnectionIds\` list. The request body is a bare JSON array of\
> connection ids; duplicates and ids that are already registered are ignored.\
> Alternatively, use \`PUT /v1/integrations/{\_id}/connections/{\_connectionId}/register\`\
> to register a single connection by path parameter.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/connections/register":{"put":{"operationId":"registerConnectionToIntegrationByBody","tags":["Integrations"],"summary":"Register connections to an integration (by body)","description":"Registers one or more connections to the integration, adding them to its\n`_registeredConnectionIds` list. The request body is a bare JSON array of\nconnection ids; duplicates and ids that are already registered are ignored.\nAlternatively, use `PUT /v1/integrations/{_id}/connections/{_connectionId}/register`\nto register a single connection by path parameter.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","description":"Connection ids to register.","items":{"type":"string","format":"objectId"}}}}},"responses":{"204":{"description":"Connections registered successfully. No body returned."},"400":{"description":"The body is not a JSON array (`invalid_request`), or an entry in the\narray is not a valid ObjectId (`invalid_ref`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List lookup caches registered to an integration

> Returns a bare array of full lookup cache objects for every cache in the integration's\
> \`\_registeredLookupCacheIds\`, sorted by \`name\`. Each element is the same shape as\
> \`GET /v1/lookupcaches/{\_id}\`. Rejects unknown integration ids with a 404.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"parameters":{"After":{"name":"after","in":"query","required":false,"description":"Opaque cursor for forward pagination. Pass the value from the `Link`\nresponse header (`rel=\"next\"`) to fetch the next page.","schema":{"type":"string"}}},"schemas":{"LookupCache":{"type":"object","required":["_id","_userId","createdAt","lastModified"],"description":"Lookup cache object as returned by the API.","allOf":[{"$ref":"#/components/schemas/LookupCacheBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_userId":{"type":"string","format":"objectId","readOnly":true,"description":"User who owns this lookup cache."},"_templateId":{"type":"string","format":"objectId","readOnly":true,"description":"Template this lookup cache was installed from, when it originated from a template."},"_sourceId":{"type":"string","format":"objectId","readOnly":true,"description":"Origin resource ID when this cache was created by cloning or installing a template."},"size":{"type":"integer","minimum":0,"readOnly":true,"description":"Current size of the cached data in bytes. Maximum 50 MB per cache; 1 GB aggregate per environment."},"sizeInMB":{"type":"string","readOnly":true,"description":"Human-readable size rounded up to the nearest 5 MB increment.\n`\"0 MB\"` for empty caches, `\"<5 MB\"` through `\"<50 MB\"` for\nnon-empty caches, `\"50 MB\"` at the per-cache cap."},"draft":{"type":"boolean","readOnly":true,"description":"When true, this cache was created as a draft by the AI-assisted builder and has not yet been confirmed."},"draftExpiresAt":{"type":"string","format":"date-time","readOnly":true,"description":"When the draft cache expires and will be automatically deleted. Only present when `draft` is `true`."}}}]},"LookupCacheBase":{"type":"object","description":"Writable fields shared by the request and response schemas.","properties":{"name":{"type":"string","maxLength":200,"description":"Display name."},"description":{"type":"string","maxLength":5120,"description":"Purpose or contents of the cache."},"includeDataInTemplatesAndCloning":{"type":"boolean","default":false,"description":"Whether to include the cached key-value data when this cache is\nused in templates or cloned. When `false` (default), only\nmetadata transfers. Set to `true` for static reference tables."},"externalId":{"type":"string","description":"Caller-supplied identifier for cross-system correlation."}}},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/lookupcaches":{"get":{"operationId":"listIntegrationLookupCaches","tags":["Integrations"],"summary":"List lookup caches registered to an integration","description":"Returns a bare array of full lookup cache objects for every cache in the integration's\n`_registeredLookupCacheIds`, sorted by `name`. Each element is the same shape as\n`GET /v1/lookupcaches/{_id}`. Rejects unknown integration ids with a 404.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of lookup caches to return per page.","schema":{"type":"integer","minimum":1}},{"$ref":"#/components/parameters/After"}],"responses":{"200":{"description":"Array of lookup cache objects.","headers":{"Link":{"description":"RFC 5988 pagination link. Includes `<...>; rel=\"next\"` with an `after` cursor when more\ncaches remain; absent on the final page.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LookupCache"}}}}},"204":{"description":"No lookup caches are registered to the integration."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Create a lookup cache and register it

> Creates a lookup cache exactly as \`POST /v1/lookupcaches\` does and, in the same call, adds it to\
> the integration's \`\_registeredLookupCacheIds\` and an \`aliases\[]\` entry whose \`alias\` is a slug of\
> the cache name — the same side effect as the \`register\` operations. Populate the cache afterwards\
> with \`POST /v1/lookupcaches/{\_id}/data\`.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Request-2":{"type":"object","description":"Writable fields for creating or updating a lookup cache.","allOf":[{"$ref":"#/components/schemas/LookupCacheBase"}]},"LookupCacheBase":{"type":"object","description":"Writable fields shared by the request and response schemas.","properties":{"name":{"type":"string","maxLength":200,"description":"Display name."},"description":{"type":"string","maxLength":5120,"description":"Purpose or contents of the cache."},"includeDataInTemplatesAndCloning":{"type":"boolean","default":false,"description":"Whether to include the cached key-value data when this cache is\nused in templates or cloned. When `false` (default), only\nmetadata transfers. Set to `true` for static reference tables."},"externalId":{"type":"string","description":"Caller-supplied identifier for cross-system correlation."}}},"LookupCache":{"type":"object","required":["_id","_userId","createdAt","lastModified"],"description":"Lookup cache object as returned by the API.","allOf":[{"$ref":"#/components/schemas/LookupCacheBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_userId":{"type":"string","format":"objectId","readOnly":true,"description":"User who owns this lookup cache."},"_templateId":{"type":"string","format":"objectId","readOnly":true,"description":"Template this lookup cache was installed from, when it originated from a template."},"_sourceId":{"type":"string","format":"objectId","readOnly":true,"description":"Origin resource ID when this cache was created by cloning or installing a template."},"size":{"type":"integer","minimum":0,"readOnly":true,"description":"Current size of the cached data in bytes. Maximum 50 MB per cache; 1 GB aggregate per environment."},"sizeInMB":{"type":"string","readOnly":true,"description":"Human-readable size rounded up to the nearest 5 MB increment.\n`\"0 MB\"` for empty caches, `\"<5 MB\"` through `\"<50 MB\"` for\nnon-empty caches, `\"50 MB\"` at the per-cache cap."},"draft":{"type":"boolean","readOnly":true,"description":"When true, this cache was created as a draft by the AI-assisted builder and has not yet been confirmed."},"draftExpiresAt":{"type":"string","format":"date-time","readOnly":true,"description":"When the draft cache expires and will be automatically deleted. Only present when `draft` is `true`."}}}]},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/lookupcaches":{"post":{"operationId":"createLookupCacheOnIntegration","tags":["Integrations"],"summary":"Create a lookup cache and register it","description":"Creates a lookup cache exactly as `POST /v1/lookupcaches` does and, in the same call, adds it to\nthe integration's `_registeredLookupCacheIds` and an `aliases[]` entry whose `alias` is a slug of\nthe cache name — the same side effect as the `register` operations. Populate the cache afterwards\nwith `POST /v1/lookupcaches/{_id}/data`.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request-2"}}}},"responses":{"201":{"description":"Created lookup cache, already registered to the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupCache"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Register a lookup cache to an integration (by path)

> Registers a single lookup cache to the integration by specifying the\
> lookup cache id in the URL path. No request body is needed. To\
> unregister, use \`DELETE\` on the same path. Alternatively, use\
> \`PUT /v1/integrations/{\_id}/lookupcaches/register\` to register several\
> caches at once by request body.\
> \
> Registration also adds an entry to the integration's \`aliases\[]\` when the\
> cache does not already have one: \`alias\` is a slug of the cache name\
> (lowercased, whitespace and special characters stripped, \`\_2\`/\`\_3\`/…\
> appended on collision) and \`\_lookupCacheId\` points at the cache. Scripts\
> and hooks use the alias as a stable handle for the cache, and the\
> \`{{getLookupCacheData}}\` Handlebars helper reads the cache only through\
> it: the alias is matched case-sensitively, and a cache \`\_id\` in its place\
> fails with \`alias "…" not found in integration/flow aliases.\`.\
> Deregistering or deleting the cache, and deleting the integration, are\
> blocked until the alias is removed.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/lookupcaches/{_lookupCacheId}/register":{"put":{"operationId":"registerLookupCacheToIntegration","tags":["Integrations"],"summary":"Register a lookup cache to an integration (by path)","description":"Registers a single lookup cache to the integration by specifying the\nlookup cache id in the URL path. No request body is needed. To\nunregister, use `DELETE` on the same path. Alternatively, use\n`PUT /v1/integrations/{_id}/lookupcaches/register` to register several\ncaches at once by request body.\n\nRegistration also adds an entry to the integration's `aliases[]` when the\ncache does not already have one: `alias` is a slug of the cache name\n(lowercased, whitespace and special characters stripped, `_2`/`_3`/…\nappended on collision) and `_lookupCacheId` points at the cache. Scripts\nand hooks use the alias as a stable handle for the cache, and the\n`{{getLookupCacheData}}` Handlebars helper reads the cache only through\nit: the alias is matched case-sensitively, and a cache `_id` in its place\nfails with `alias \"…\" not found in integration/flow aliases.`.\nDeregistering or deleting the cache, and deleting the integration, are\nblocked until the alias is removed.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_lookupCacheId","in":"path","required":true,"description":"Lookup cache id to register.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Lookup cache registered successfully. No body returned."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Unregister a lookup cache from an integration

> Removes a lookup cache's registration from the integration. This does\
> not delete the lookup cache itself — it only removes it from the\
> integration's \`\_registeredLookupCacheIds\` list. Fails when the cache is\
> not registered on the integration, when a flow step in the integration\
> still references it, or when an alias on the integration (or one of its\
> flows) still points at it — including the alias that registration itself\
> created. Remove the flow-step references and the alias (update the\
> \`aliases\` array on the integration or flow) first, then retry.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/integrations/{_id}/lookupcaches/{_lookupCacheId}/register":{"delete":{"operationId":"unregisterLookupCacheFromIntegration","tags":["Integrations"],"summary":"Unregister a lookup cache from an integration","description":"Removes a lookup cache's registration from the integration. This does\nnot delete the lookup cache itself — it only removes it from the\nintegration's `_registeredLookupCacheIds` list. Fails when the cache is\nnot registered on the integration, when a flow step in the integration\nstill references it, or when an alias on the integration (or one of its\nflows) still points at it — including the alias that registration itself\ncreated. Remove the flow-step references and the alias (update the\n`aliases` array on the integration or flow) first, then retry.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_lookupCacheId","in":"path","required":true,"description":"Lookup cache id to unregister.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Lookup cache unregistered successfully. No body returned. Deleting a registered\ncache (`DELETE /v1/lookupcaches/{_id}`, once its alias is removed) already removes\nit from `_registeredLookupCacheIds`, so this call is not needed afterwards — on a\ndeleted cache it returns 404."},"400":{"description":"The cache is not registered on this integration (\"The lookup cache\nwhich you are trying to deregister is not registered on the\nintegration.\"), is still referenced by a flow step in the\nintegration (\"The lookup cache is being actively used by a flow\nstep in this integration...\"), or is still referenced by an alias\n(\"The lookup cache is referenced by an alias in this integration.\nRemove the alias before deregistering.\"). Error code: `not_allowed`\nfor all three.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"description":"The integration does not exist (`invalid_ref`), or no lookup cache with this id exists\nin the account — including one already deleted, which its deletion unregistered\n(`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Register lookup caches to an integration (by body)

> Registers one or more lookup caches to the integration, adding them to\
> its \`\_registeredLookupCacheIds\` list. The request body is a bare JSON\
> array of lookup cache ids; duplicates are collapsed. Alternatively, use\
> \`PUT /v1/integrations/{\_id}/lookupcaches/{\_lookupCacheId}/register\` to\
> register a single cache by path parameter.\
> \
> Registration also adds an entry to the integration's \`aliases\[]\` for each\
> newly registered cache that does not already have one: \`alias\` is a slug\
> of the cache name (lowercased, whitespace and special characters stripped,\
> \`\_2\`/\`\_3\`/… appended on collision) and \`\_lookupCacheId\` points at the\
> cache. Scripts and hooks use the alias as a stable handle for the cache,\
> and the \`{{getLookupCacheData}}\` Handlebars helper reads the cache only\
> through it (matched case-sensitively; a cache \`\_id\` is not accepted).\
> Deregistering or deleting the cache, and deleting the integration, are\
> blocked until the alias is removed.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/lookupcaches/register":{"put":{"operationId":"registerLookupCachesToIntegration","tags":["Integrations"],"summary":"Register lookup caches to an integration (by body)","description":"Registers one or more lookup caches to the integration, adding them to\nits `_registeredLookupCacheIds` list. The request body is a bare JSON\narray of lookup cache ids; duplicates are collapsed. Alternatively, use\n`PUT /v1/integrations/{_id}/lookupcaches/{_lookupCacheId}/register` to\nregister a single cache by path parameter.\n\nRegistration also adds an entry to the integration's `aliases[]` for each\nnewly registered cache that does not already have one: `alias` is a slug\nof the cache name (lowercased, whitespace and special characters stripped,\n`_2`/`_3`/… appended on collision) and `_lookupCacheId` points at the\ncache. Scripts and hooks use the alias as a stable handle for the cache,\nand the `{{getLookupCacheData}}` Handlebars helper reads the cache only\nthrough it (matched case-sensitively; a cache `_id` is not accepted).\nDeregistering or deleting the cache, and deleting the integration, are\nblocked until the alias is removed.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","description":"Lookup cache ids to register.","items":{"type":"string","format":"objectId"}}}}},"responses":{"204":{"description":"Lookup caches registered successfully. No body returned."},"400":{"description":"The body is not a JSON array (`invalid_request`), or an entry in the\narray is not a valid ObjectId (`invalid_ref`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List topics registered to an integration

> Returns a bare array of full topic objects for every topic in the integration's\
> \`\_registeredTopicIds\`, sorted by \`name\`. Each element is the same shape as\
> \`GET /v1/topics/{\_id}\`. Rejects unknown integration ids with a 404. The \`externalId\` filter of\
> \`GET /v1/topics\` is not applied here.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"parameters":{"After":{"name":"after","in":"query","required":false,"description":"Opaque cursor for forward pagination. Pass the value from the `Link`\nresponse header (`rel=\"next\"`) to fetch the next page.","schema":{"type":"string"}}},"schemas":{"Topic":{"type":"object","description":"Topic as returned by the API.","required":["_id","_userId","name","retentionMs","createdAt","lastModified"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the topic. Topic exports and imports bind to it through\n`topic._topicId`, and it is the `_topicId` used by every `/v1/topics/{_id}/…` endpoint."},"_userId":{"type":"string","format":"objectId","readOnly":true,"description":"Account owner whose license and topic quota the topic counts against."},"name":{"type":"string","maxLength":200,"description":"Display name shown in the UI. Empty when the topic was created without one; not unique, so\nuse `_id` to identify a topic."},"description":{"type":["string","null"],"maxLength":5120,"description":"What the topic carries and which flows consume it. Absent or null when never set."},"retentionMs":{"type":"integer","minimum":3600000,"maximum":7776000000,"default":604800000,"description":"How long a published message stays readable, in milliseconds, before it is dropped from the\nstream whether or not a listener consumed it. The week-long default applies when the topic was\ncreated without one."},"externalId":{"type":"string","maxLength":1024,"description":"Caller-chosen key set at creation or update. Present only when it was supplied; filter the\nlist with `GET /v1/topics?externalId=…`. Not unique: the filtered list can hold more than\none topic, so use `_id` to address a topic."},"_integrationId":{"type":"string","format":"objectId","readOnly":true,"description":"Integration App installation that owns the topic. Present only on topics created by an\nIntegration App; absent on topics you create directly, which are shared across integrations\nthrough `_registeredTopicIds` instead."},"_connectorId":{"type":"string","format":"objectId","readOnly":true,"description":"Integration App (connector) that installed the topic. Present only on connector-managed\ntopics, which the connector — not the user — registers and deregisters."},"_templateId":{"type":"string","format":"objectId","readOnly":true,"description":"Template the topic was installed from. Present only when it originated from a template."},"_sourceId":{"type":"string","format":"objectId","readOnly":true,"description":"Topic this one was cloned or installed from. Present only on copies."},"draft":{"type":"boolean","description":"When true, the topic is an unconfirmed draft (created with `draft: true`, typically by\nthe AI-assisted builder) that auto-deletes at `draftExpiresAt`. Absent on ordinary\ntopics and once a `PUT` with `draft: false` promotes the draft."},"draftExpiresAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when an unconfirmed draft is deleted automatically — 48 hours after\ncreation. Present only while `draft` is true; cleared together with it."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the topic was created."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the topic was last updated by PUT or PATCH."},"deletedAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the topic was moved to the recycle bin. Present only on the copy returned by\n`GET /v1/recycleBinTTL/topics/{_id}`; deleted topics are hidden from every other endpoint."}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/topics":{"get":{"operationId":"listIntegrationTopics","tags":["Integrations"],"summary":"List topics registered to an integration","description":"Returns a bare array of full topic objects for every topic in the integration's\n`_registeredTopicIds`, sorted by `name`. Each element is the same shape as\n`GET /v1/topics/{_id}`. Rejects unknown integration ids with a 404. The `externalId` filter of\n`GET /v1/topics` is not applied here.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of topics to return per page.","schema":{"type":"integer","minimum":1}},{"$ref":"#/components/parameters/After"}],"responses":{"200":{"description":"Array of topic objects.","headers":{"Link":{"description":"RFC 5988 pagination link. Includes `<...>; rel=\"next\"` with an `after` cursor when more\ntopics remain; absent on the final page.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Topic"}}}}},"204":{"description":"No topics are registered to the integration."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Create a topic and register it

> Creates a topic exactly as \`POST /v1/topics\` does and, in the same call, adds it to the\
> integration's \`\_registeredTopicIds\`. Use this when the topic is being built for one integration's\
> flows; to share a topic across several integrations, create it with \`POST /v1/topics\` and\
> register it on each with the \`register\` operations.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Request-3":{"type":"object","description":"Writable fields for creating or updating a topic.","required":["name"],"properties":{"name":{"type":"string","maxLength":200,"description":"Display name shown in the UI and recorded as `deletedInfo.name` on audit entries. Names need\nnot be unique — exports and imports bind to the topic id, so renaming never breaks a\nsubscription. Script tags and other unsafe HTML are stripped on save."},"description":{"type":["string","null"],"maxLength":5120,"description":"What the topic carries and which flows consume it. Shown in the UI only; it plays no part in\nrouting. Send null to clear a previous value."},"retentionMs":{"type":"integer","minimum":3600000,"maximum":7776000000,"default":604800000,"description":"How long a published message stays readable, in milliseconds, before it is dropped from the\nstream whether or not a listener consumed it. The default keeps a week of messages, enough for\na listener that is paused over a weekend to catch up; the ceiling is further capped by the\naccount license's `topics.retentionCeilingDays`. Changing it on an existing topic\nre-configures the stream, so messages older than the new window are no longer retained."},"externalId":{"type":"string","maxLength":1024,"description":"Caller-chosen key for finding the topic again without storing its id — filter the list with\n`GET /v1/topics?externalId=…`. Integration Apps use it to locate a topic across installs.\nNot unique: another topic can carry the same value, so the filtered list can hold several."},"draft":{"type":"boolean","description":"When true, the topic is a draft that auto-deletes 48 hours after creation\n(`draftExpiresAt` in the response). Set at creation; an update can clear the\nflag but never set it, and a PUT that omits it leaves an existing draft as is —\nthe one field the whole-document PUT does not clear."},"__integrationIds":{"type":"array","maxItems":100,"items":{"type":"string","format":"objectId"},"description":"Integrations to register the new topic on immediately after creation, so flows in those\nintegrations can subscribe to it. Honored only on `POST /v1/topics` (ignored on PUT), never\npersisted, and not echoed back. Ids are validated before the topic is saved; registration\nruns after the save, and per-integration failures are reported in\n`__failedIntegrationRegistrations` on the 201 response without rolling back the new topic."}}},"Topic":{"type":"object","description":"Topic as returned by the API.","required":["_id","_userId","name","retentionMs","createdAt","lastModified"],"properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the topic. Topic exports and imports bind to it through\n`topic._topicId`, and it is the `_topicId` used by every `/v1/topics/{_id}/…` endpoint."},"_userId":{"type":"string","format":"objectId","readOnly":true,"description":"Account owner whose license and topic quota the topic counts against."},"name":{"type":"string","maxLength":200,"description":"Display name shown in the UI. Empty when the topic was created without one; not unique, so\nuse `_id` to identify a topic."},"description":{"type":["string","null"],"maxLength":5120,"description":"What the topic carries and which flows consume it. Absent or null when never set."},"retentionMs":{"type":"integer","minimum":3600000,"maximum":7776000000,"default":604800000,"description":"How long a published message stays readable, in milliseconds, before it is dropped from the\nstream whether or not a listener consumed it. The week-long default applies when the topic was\ncreated without one."},"externalId":{"type":"string","maxLength":1024,"description":"Caller-chosen key set at creation or update. Present only when it was supplied; filter the\nlist with `GET /v1/topics?externalId=…`. Not unique: the filtered list can hold more than\none topic, so use `_id` to address a topic."},"_integrationId":{"type":"string","format":"objectId","readOnly":true,"description":"Integration App installation that owns the topic. Present only on topics created by an\nIntegration App; absent on topics you create directly, which are shared across integrations\nthrough `_registeredTopicIds` instead."},"_connectorId":{"type":"string","format":"objectId","readOnly":true,"description":"Integration App (connector) that installed the topic. Present only on connector-managed\ntopics, which the connector — not the user — registers and deregisters."},"_templateId":{"type":"string","format":"objectId","readOnly":true,"description":"Template the topic was installed from. Present only when it originated from a template."},"_sourceId":{"type":"string","format":"objectId","readOnly":true,"description":"Topic this one was cloned or installed from. Present only on copies."},"draft":{"type":"boolean","description":"When true, the topic is an unconfirmed draft (created with `draft: true`, typically by\nthe AI-assisted builder) that auto-deletes at `draftExpiresAt`. Absent on ordinary\ntopics and once a `PUT` with `draft: false` promotes the draft."},"draftExpiresAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when an unconfirmed draft is deleted automatically — 48 hours after\ncreation. Present only while `draft` is true; cleared together with it."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the topic was created."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the topic was last updated by PUT or PATCH."},"deletedAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the topic was moved to the recycle bin. Present only on the copy returned by\n`GET /v1/recycleBinTTL/topics/{_id}`; deleted topics are hidden from every other endpoint."}}},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/topics":{"post":{"operationId":"createTopicOnIntegration","tags":["Integrations"],"summary":"Create a topic and register it","description":"Creates a topic exactly as `POST /v1/topics` does and, in the same call, adds it to the\nintegration's `_registeredTopicIds`. Use this when the topic is being built for one integration's\nflows; to share a topic across several integrations, create it with `POST /v1/topics` and\nregister it on each with the `register` operations.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request-3"}}}},"responses":{"201":{"description":"Created topic, already registered to the integration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Topic"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"description":"The topic body failed validation — the same codes as `POST /v1/topics`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Register a topic to an integration (by path)

> Adds a single topic to the integration's \`\_registeredTopicIds\` so flows in the integration can\
> subscribe to or publish on it. No request body is needed; registering an already-registered topic\
> succeeds without duplicating it. To unregister, use \`DELETE\` on the same path; to register several\
> topics at once, use \`PUT /v1/integrations/{\_id}/topics/register\`.\
> \
> Registration also happens automatically when a flow in the integration is saved with a step\
> bound to the topic. Unlike lookup caches, registering a topic adds no \`aliases\[]\` entry.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/topics/{_topicId}/register":{"put":{"operationId":"registerTopicToIntegration","tags":["Integrations"],"summary":"Register a topic to an integration (by path)","description":"Adds a single topic to the integration's `_registeredTopicIds` so flows in the integration can\nsubscribe to or publish on it. No request body is needed; registering an already-registered topic\nsucceeds without duplicating it. To unregister, use `DELETE` on the same path; to register several\ntopics at once, use `PUT /v1/integrations/{_id}/topics/register`.\n\nRegistration also happens automatically when a flow in the integration is saved with a step\nbound to the topic. Unlike lookup caches, registering a topic adds no `aliases[]` entry.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_topicId","in":"path","required":true,"description":"Topic id to register.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Topic registered successfully. No body returned."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"description":"The integration does not exist, or the topic does not exist in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Unregister a topic from an integration

> Removes a topic's registration from the integration. This does not delete the topic — it only\
> removes it from the integration's \`\_registeredTopicIds\`. Fails when the topic is not registered\
> on the integration, or while any flow step in the integration (an export or import with\
> \`topic.\_topicId\` set) still uses it. Repoint or delete those steps first, then retry.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/integrations/{_id}/topics/{_topicId}/register":{"delete":{"operationId":"unregisterTopicFromIntegration","tags":["Integrations"],"summary":"Unregister a topic from an integration","description":"Removes a topic's registration from the integration. This does not delete the topic — it only\nremoves it from the integration's `_registeredTopicIds`. Fails when the topic is not registered\non the integration, or while any flow step in the integration (an export or import with\n`topic._topicId` set) still uses it. Repoint or delete those steps first, then retry.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_topicId","in":"path","required":true,"description":"Topic id to unregister.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Topic unregistered successfully. No body returned. Deleting a registered topic\n(`DELETE /v1/topics/{_id}`) already removes it from `_registeredTopicIds`, so this\ncall is not needed afterwards — on a deleted topic it returns 404."},"400":{"description":"The topic is not registered on this integration (\"The topic which you are trying to\nderegister is not registered on the integration.\"), or a flow step in the integration still\nuses it (\"The topic is being actively used by a step in this integration…\"). Error code:\n`not_allowed` for both.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"description":"The integration does not exist (`invalid_ref`), or no topic with this id exists in the\naccount — including one already deleted, which its deletion unregistered (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Register topics to an integration (by body)

> Adds one or more topics to the integration's \`\_registeredTopicIds\`. The request body is a bare\
> JSON array of topic ids; duplicates and already-registered ids are collapsed, and an empty array\
> is accepted as a no-op. Every id must name a topic in this account or nothing is registered.\
> Alternatively, use \`PUT /v1/integrations/{\_id}/topics/{\_topicId}/register\` to register a single\
> topic by path parameter.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/integrations/{_id}/topics/register":{"put":{"operationId":"registerTopicsToIntegration","tags":["Integrations"],"summary":"Register topics to an integration (by body)","description":"Adds one or more topics to the integration's `_registeredTopicIds`. The request body is a bare\nJSON array of topic ids; duplicates and already-registered ids are collapsed, and an empty array\nis accepted as a no-op. Every id must name a topic in this account or nothing is registered.\nAlternatively, use `PUT /v1/integrations/{_id}/topics/{_topicId}/register` to register a single\ntopic by path parameter.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","description":"Topic ids to register.","items":{"type":"string","format":"objectId"}}}}},"responses":{"204":{"description":"Topics registered successfully. No body returned."},"400":{"description":"The body is not a JSON array (\"Maximum batch size is …\", code `batch_size_exceeded`), or an\nentry is not a valid ObjectId (\"Please provide a valid _topicId.\", code `invalid_ref`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"description":"The integration does not exist, or one of the topics does not exist in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Register a knowledge base to an integration (by path)

> Adds a single knowledge base to the integration's \`\_registeredKnowledgeBaseIds\` so AI agent and\
> guardrail steps in the integration can attach it. No request body is needed; registering an\
> already-registered knowledge base succeeds without duplicating it, and the id is matched\
> case-insensitively. To unregister, use \`DELETE\` on the same path; to register several knowledge\
> bases at once, use \`PUT /v1/integrations/{\_id}/knowledgebases/register\`.\
> \
> Registration also happens automatically when a flow in the integration is saved with a step\
> whose AI agent attaches the knowledge base.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"403-forbidden":{"description":"Forbidden. The authenticated caller does not have permission to perform this operation.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/knowledgebases/{_knowledgeBaseId}/register":{"put":{"operationId":"registerKnowledgeBaseToIntegration","tags":["Integrations"],"summary":"Register a knowledge base to an integration (by path)","description":"Adds a single knowledge base to the integration's `_registeredKnowledgeBaseIds` so AI agent and\nguardrail steps in the integration can attach it. No request body is needed; registering an\nalready-registered knowledge base succeeds without duplicating it, and the id is matched\ncase-insensitively. To unregister, use `DELETE` on the same path; to register several knowledge\nbases at once, use `PUT /v1/integrations/{_id}/knowledgebases/register`.\n\nRegistration also happens automatically when a flow in the integration is saved with a step\nwhose AI agent attaches the knowledge base.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_knowledgeBaseId","in":"path","required":true,"description":"Knowledge base id to register.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Knowledge base registered successfully. No body returned."},"400":{"description":"The integration id or the knowledge base id is not a valid id (`invalid_ref`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"403":{"$ref":"#/components/responses/403-forbidden"},"404":{"description":"The integration does not exist (`invalid_ref`), or no knowledge base has this id\n(`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Unregister a knowledge base from an integration

> Removes a knowledge base's registration from the integration. This does not delete the knowledge\
> base — it only removes it from the integration's \`\_registeredKnowledgeBaseIds\`. Fails when the\
> knowledge base is not registered on the integration, or while a step in the integration uses an\
> AI agent or guardrail that attaches it. Remove that step or detach the knowledge base first,\
> then retry.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"403-forbidden":{"description":"Forbidden. The authenticated caller does not have permission to perform this operation.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/knowledgebases/{_knowledgeBaseId}/register":{"delete":{"operationId":"unregisterKnowledgeBaseFromIntegration","tags":["Integrations"],"summary":"Unregister a knowledge base from an integration","description":"Removes a knowledge base's registration from the integration. This does not delete the knowledge\nbase — it only removes it from the integration's `_registeredKnowledgeBaseIds`. Fails when the\nknowledge base is not registered on the integration, or while a step in the integration uses an\nAI agent or guardrail that attaches it. Remove that step or detach the knowledge base first,\nthen retry.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}},{"name":"_knowledgeBaseId","in":"path","required":true,"description":"Knowledge base id to unregister.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Knowledge base unregistered successfully. No body returned."},"400":{"description":"The knowledge base is not registered on this integration, or a step in the integration\nstill attaches it (`not_allowed` for both); or the integration id or the knowledge base id\nis not a valid id (`invalid_ref`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"403":{"$ref":"#/components/responses/403-forbidden"},"404":{"description":"The integration does not exist (`invalid_ref`), or no knowledge base has this id\n(`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Register knowledge bases to an integration (by body)

> Adds one or more knowledge bases to the integration's \`\_registeredKnowledgeBaseIds\`. The request\
> body is a bare JSON array of knowledge base ids, matched case-insensitively; an id that is\
> already registered is not duplicated, and an empty array is accepted as a no-op. Every id must\
> name an existing knowledge base or nothing is registered.\
> Alternatively, use \`PUT /v1/integrations/{\_id}/knowledgebases/{\_knowledgeBaseId}/register\` to\
> register a single knowledge base by path parameter.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"403-forbidden":{"description":"Forbidden. The authenticated caller does not have permission to perform this operation.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/integrations/{_id}/knowledgebases/register":{"put":{"operationId":"registerKnowledgeBasesToIntegration","tags":["Integrations"],"summary":"Register knowledge bases to an integration (by body)","description":"Adds one or more knowledge bases to the integration's `_registeredKnowledgeBaseIds`. The request\nbody is a bare JSON array of knowledge base ids, matched case-insensitively; an id that is\nalready registered is not duplicated, and an empty array is accepted as a no-op. Every id must\nname an existing knowledge base or nothing is registered.\nAlternatively, use `PUT /v1/integrations/{_id}/knowledgebases/{_knowledgeBaseId}/register` to\nregister a single knowledge base by path parameter.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"uniqueItems":true,"description":"Knowledge base ids to register.","items":{"type":"string","format":"objectId"}}}}},"responses":{"204":{"description":"Knowledge bases registered successfully. No body returned."},"400":{"description":"The body is not a JSON array (`invalid_request`), an entry is not a valid knowledge base id\n(`invalid_ref`), or the array holds more than 500 distinct ids (`batch_size_exceeded`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"403":{"$ref":"#/components/responses/403-forbidden"},"404":{"description":"The integration does not exist (`invalid_ref`), or an id names no knowledge base\n(`not_found`, listing every such id).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Get integration tree metadata

> Returns structural metadata for the integration and its child integrations. The response\
> includes install steps, flow groupings, API groupings, registered connection ids, uninstall\
> steps, and change-edition steps, plus a \`childIntegrations\` array with the same structure for\
> each child. Primarily useful for Integration App integrations that have install/uninstall steps\
> and child integrations.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/tree/metadata":{"get":{"operationId":"getIntegrationTreeMetadata","tags":["Integrations"],"summary":"Get integration tree metadata","description":"Returns structural metadata for the integration and its child integrations. The response\nincludes install steps, flow groupings, API groupings, registered connection ids, uninstall\nsteps, and change-edition steps, plus a `childIntegrations` array with the same structure for\neach child. Primarily useful for Integration App integrations that have install/uninstall steps\nand child integrations.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Integration tree metadata.","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"object","description":"Metadata for the integration itself, including install steps, flow groupings,\nAPI groupings, registered connection ids, uninstall steps, and change-edition steps."},"childIntegrations":{"type":"array","description":"Metadata for child integrations (empty array if none).","items":{"type":"object"}}}}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Resume an Integration App integration

> Resumes a paused Integration App integration. Requires that the integration belongs to an\
> Integration App. No request body is needed.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/resume":{"put":{"operationId":"resumeIntegration","tags":["Integrations"],"summary":"Resume an Integration App integration","description":"Resumes a paused Integration App integration. Requires that the integration belongs to an\nIntegration App. No request body is needed.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Integration resumed successfully."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"description":"Integration does not belong to an Integration App. Error code: `invalid_ref`, message:\n\"doesnot belongs to any Integration App.\"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Change the edition of an Integration App integration

> Triggers an edition change for an Integration App integration that has a \`changeEdition\`\
> function configured. Requires the integration to belong to an Integration App with edition\
> support.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/changeEdition":{"post":{"operationId":"changeIntegrationEdition","tags":["Integrations"],"summary":"Change the edition of an Integration App integration","description":"Triggers an edition change for an Integration App integration that has a `changeEdition`\nfunction configured. Requires the integration to belong to an Integration App with edition\nsupport.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Edition change initiated successfully."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"description":"Integration does not belong to an Integration App with changeEdition support. Error code:\n`invalid_integration_app`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Initialize a child integration

> Initializes a child integration under an Integration App parent. Requires the parent integration\
> to belong to an Integration App with an init script configured.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/initChild":{"post":{"operationId":"initChildIntegration","tags":["Integrations"],"summary":"Initialize a child integration","description":"Initializes a child integration under an Integration App parent. Requires the parent integration\nto belong to an Integration App with an init script configured.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id (the parent Integration App integration).","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Child integration initialized successfully."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"},"422":{"description":"Integration App does not have a valid init script. Error code: `invalid_ref`, message:\n\"Script fields invalid or not found.\"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Detach the license from an integration

> Detaches the license from an integration. Idempotent -- calling it on an integration that\
> already has no license attached is a no-op. No request body is needed.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/detachLicense":{"put":{"operationId":"detachIntegrationLicense","tags":["Integrations"],"summary":"Detach the license from an integration","description":"Detaches the license from an integration. Idempotent -- calling it on an integration that\nalready has no license attached is a no-op. No request body is needed.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"License detached (or was already detached). No body returned."},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## Get a downloadable template for an integration

> Packages the integration as an installable template and returns a signed\
> S3 URL where the template \`.zip\` can be downloaded. The URL is\
> pre-signed and short-lived (it expires shortly after issuance), so fetch\
> the file promptly after calling this endpoint.\
> \
> The downloaded \`.zip\` is the same artifact used to install the integration\
> as a template into another account.

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"404-not-found":{"description":"Not found. The requested resource does not exist or is not visible to the caller.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}}},"paths":{"/v1/integrations/{_id}/template":{"get":{"operationId":"getIntegrationTemplate","tags":["Integrations"],"summary":"Get a downloadable template for an integration","description":"Packages the integration as an installable template and returns a signed\nS3 URL where the template `.zip` can be downloaded. The URL is\npre-signed and short-lived (it expires shortly after issuance), so fetch\nthe file promptly after calling this endpoint.\n\nThe downloaded `.zip` is the same artifact used to install the integration\nas a template into another account.","parameters":[{"name":"_id","in":"path","required":true,"description":"Integration id.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Signed download URL for the integration template zip.","content":{"application/json":{"schema":{"type":"object","properties":{"signedURL":{"type":"string","description":"Pre-signed, short-lived S3 URL to download the template `.zip`."},"key":{"type":"string","description":"S3 object key for the generated template `.zip`."}}}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"$ref":"#/components/responses/404-not-found"}}}}}}
```

## List dependencies of an integration

> Returns the set of resources that depend on the specified resource.\
> The response is an object whose keys are dependent-resource types\
> (e.g. \`flows\`, \`imports\`) and whose values are arrays of dependency\
> entries. An empty object \`{}\` means no other resources depend on the\
> target (also returned for a well-formatted but nonexistent id).

```json
{"openapi":"3.2.0","info":{"title":"Integrations","version":"1.0.0"},"tags":[{"name":"Integrations","description":"Integrations are the top-level containers that group flows, connections, exports,\nimports, and other resources into a logical unit. Each integration appears as a tile\non the Celigo Home page.\n\nTwo flavors exist:\n- **Standard integrations** — user-created containers that group custom flows.\n- **Integration App installations** — created from a published connector/template,\n  with install/uninstall steps, settings forms, editions, and optional child\n  integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,\n  `install`, `installSteps`) also appear on a standard integration created by the\n  UI's clone-and-install, so they do not by themselves mean Integration App.\n\nIntegrations support **Integration Lifecycle Management (ILM)**: revisions (snapshot,\npull, revert) promote changes between an integration and its lifecycle-linked clones,\nand carry every resource the integration contains. Only the UI's clone-and-install\nlinks a clone; `POST /v1/integrations/{_id}/clone` makes a standalone copy. An Integration\nApp installation is the exception: every route that reads its revisions answers 400\n`not_supported`.\n\n## Integration schema\n\n{% openapi-schemas spec=\"integration\" schemas=\"Integration\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"DependencyResponse":{"type":"object","description":"Map of dependent-resource types to arrays of dependency entries.\nKeys are plural resource type strings (e.g. `flows`, `imports`,\n`connections`). An empty object `{}` means no dependents.\n","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/DependencyEntry"}}},"DependencyEntry":{"type":"object","description":"A single resource that depends on the queried resource.","properties":{"id":{"type":"string","description":"Unique identifier of the dependent resource."},"name":{"type":"string","description":"Display name of the dependent resource."},"type":{"type":"string","description":"Sub-type of the dependent resource when its collection distinguishes one, such as\n`stream` for a listener export. Only present for resource types that carry a `type`."},"paths":{"type":"array","description":"Dot-notation paths within the dependent resource that reference\nthe target resource. `[*]` denotes array elements.","items":{"type":"string"}},"accessLevel":{"type":"string","description":"The caller's access level on the dependent resource."},"dependencyIds":{"type":"object","description":"Map of resource types to arrays of IDs that this dependent\nresource references on the target. Keys are singular or plural\nresource type strings; values are arrays of ID strings.","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["id","name","paths","accessLevel","dependencyIds"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/integrations/{_id}/dependencies":{"get":{"operationId":"listIntegrationDependencies","tags":["Integrations"],"summary":"List dependencies of an integration","description":"Returns the set of resources that depend on the specified resource.\nThe response is an object whose keys are dependent-resource types\n(e.g. `flows`, `imports`) and whose values are arrays of dependency\nentries. An empty object `{}` means no other resources depend on the\ntarget (also returned for a well-formatted but nonexistent id).","parameters":[{"name":"_id","in":"path","required":true,"description":"Resource ID.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Dependency map. Keys are resource-type strings; values are arrays\nof dependency entries. Returns `{}` when no dependents exist.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyResponse"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
