POST
/
integrations
/
{templateId}
/
clone
curl --request POST \
  --url https://api.callab.ai/v1/integrations/{templateId}/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "flow_name": "<string>",
  "tag_name": "<string>",
  "category_name": "<string>",
  "dynamicVariables": {}
}'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "created_by": "123e4567-e89b-12d3-a456-426614174001",
  "company_id": "123e4567-e89b-12d3-a456-426614174001",
  "workspace_id": "default",
  "name": "VTIGER BRING CONTACTS",
  "logo": "<string>",
  "retry_delay": 5,
  "retry_delay_unit": "seconds",
  "max_retries": 3,
  "status": "scheduled",
  "created_at": "2023-10-01T12:34:56Z",
  "updated_at": "2023-10-02T12:34:56Z",
  "deleted_at": "2023-10-03T12:34:56Z",
  "executions": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "scheduled",
      "attempt_number": 123,
      "next_retry_at": "2023-11-07T05:31:56Z",
      "executed_at": "2023-11-07T05:31:56Z",
      "finished_at": "2023-11-07T05:31:56Z",
      "error_message": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "steps": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "step_number": 123,
      "webhook_url": "<string>",
      "webhook_url_params": {},
      "webhook_method": "GET",
      "webhook_headers": {},
      "webhook_body": {},
      "webhook_timeout": 123,
      "depends_on_step": 123,
      "retry_limit": 3,
      "timeout": 123,
      "success_condition": {},
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "deleted_at": "2023-11-07T05:31:56Z"
    }
  ],
  "is_template": false,
  "flow_direction": "inbound",
  "flow_mapping": {},
  "predefinedVariables": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "variables": [
    {
      "name": "<string>",
      "location": "<string>",
      "stepId": 123,
      "type": "<string>",
      "dataType": "<string>",
      "customValue": "<string>"
    }
  ],
  "tag_name": "lead1",
  "category_name": "all leads"
}

The Clone Integration endpoint creates a copy of an existing integration flow. This is useful when you want to create a similar flow with minor modifications or test changes without affecting the original flow.

Effects

  • Creates a new integration flow with a unique ID
  • Copies all configuration settings from the source flow
  • Sets the initial status to SCHEDULED
  • Maintains the same steps and variable definitions
  • Creates fresh execution history

Common Use Cases

  • Creating test versions of production flows
  • Setting up similar flows for different environments
  • Backup before major changes
  • Template-based flow creation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

templateId
string
required

ID of the integration template (or existing flow) to clone.

Body

application/json

Data for the new cloned flow.

Data required to clone an integration or webhook template.

Response

201
application/json

Integration flow cloned successfully.

Represents an integration flow.