# /forms/{formId}/integrations/webmerge

Create a form WebMerge integration

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Formstack API v2025.0",
    "version": "0.0.4"
  },
  "servers": [
    {
      "url": "https://www.formstack.com/api/v2025",
      "description": "Production server"
    },
    {
      "url": "https://staging-formstack.com/api/v2025",
      "description": "Staging server"
    },
    {
      "url": "https://dev-formstack.com/api/v2025",
      "description": "Development server"
    }
  ],
  "paths": {
    "/forms/{formId}/integrations/webmerge": {
      "post": {
        "tags": [
          "Submit Actions"
        ],
        "description": "Create a form WebMerge integration",
        "operationId": "createFormWebmergeIntegration",
        "parameters": [
          {
            "name": "formId",
            "in": "path",
            "description": "The ID of the form",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "description": "Create Form Integration DTO",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFormIntegrationInputApiDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Form integration created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormstackDocumentIntegrationDetailedApiDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters"
          },
          "403": {
            "description": "Forbidden by form permissions"
          },
          "404": {
            "description": "Form not found"
          },
          "500": {
            "description": "Could not create the form integration"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FormstackDocumentIntegrationDetailedApiDto": {
        "title": "Integration Details",
        "description": "Form integration details response",
        "properties": {
          "id": {
            "description": "The ID of the integration",
            "type": "integer",
            "nullable": false
          },
          "form": {
            "description": "ID of the form this integration is associated with",
            "type": "integer",
            "nullable": false
          },
          "type": {
            "description": "Type of integration",
            "type": "string",
            "nullable": false
          },
          "active": {
            "description": "Whether the integration is active",
            "type": "boolean",
            "nullable": false
          },
          "name": {
            "description": "Name of the integration",
            "type": "string",
            "nullable": false
          },
          "hasCredentials": {
            "description": "Whether the integration has valid credentials",
            "type": "boolean",
            "nullable": false
          }
        },
        "type": "object"
      },
      "CreateFormIntegrationInputApiDto": {
        "title": "Create Form Integration",
        "description": "Create form WebMerge integration request",
        "properties": {
          "type": {
            "description": "Type of WebMerge integration (document or route)",
            "type": "string",
            "enum": [
              "document",
              "route"
            ],
            "nullable": false
          },
          "integrationId": {
            "description": "The ID of the document or route in WebMerge",
            "type": "string",
            "nullable": false
          },
          "webmergeToken": {
            "description": "JWT token for WebMerge authentication",
            "type": "string",
            "nullable": false
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Submit Actions",
      "description": "Submit actions define what happens after a form is submitted—standard processing, displaying a custom message, redirecting to a URL, or running a third-party integration such as WebMerge. Use these endpoints to list a form's submit actions and to create, retrieve, update, and delete them, including the conditional logic that controls when each action runs."
    }
  ]
}
```