> ## Documentation Index
> Fetch the complete documentation index at: https://developers.formstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# /forms/{formId}/confirmations

Create a new confirmation email for a form

# 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}/confirmations": {
      "post": {
        "tags": [
          "Confirmation Emails",
          "Classic"
        ],
        "description": "Create a new confirmation email for a form",
        "operationId": "createConfirmationEmail",
        "parameters": [
          {
            "name": "formId",
            "in": "path",
            "description": "The ID of the form",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "description": "Create confirmation email request data",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConfirmationEmailInputApiDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Confirmation email created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfirmationDetailedApiDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters"
          },
          "403": {
            "description": "Forbidden by form permissions"
          },
          "404": {
            "description": "Form not found"
          },
          "500": {
            "description": "Could not create the confirmation email"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ConfirmationDetailedApiDto": {
        "title": "Confirmation Details",
        "description": "Confirmation email details response",
        "properties": {
          "id": {
            "description": "The ID of the confirmation email",
            "type": "integer",
            "nullable": false
          },
          "form": {
            "description": "ID of the form this confirmation is associated with",
            "type": "integer",
            "nullable": false
          },
          "name": {
            "description": "Name of the confirmation email",
            "type": "string",
            "nullable": true
          },
          "toField": {
            "description": "The form field ID that contains the recipient's email address",
            "type": "integer",
            "nullable": true
          },
          "sender": {
            "description": "Email address of the sender",
            "type": "string",
            "nullable": false
          },
          "subject": {
            "description": "Subject of the confirmation email",
            "type": "string",
            "nullable": false
          },
          "message": {
            "description": "Body content of the confirmation email",
            "type": "string",
            "nullable": false
          },
          "delay": {
            "description": "Delay in minutes before sending the confirmation email",
            "type": "string",
            "nullable": true
          },
          "type": {
            "description": "Type of content (fields|data)",
            "type": "string",
            "nullable": true
          },
          "format": {
            "description": "Format of the confirmation email (e.g., html, plaintext)",
            "type": "string",
            "nullable": true
          },
          "hideEmpty": {
            "description": "Flag to hide empty fields in the confirmation email",
            "type": "string",
            "nullable": true
          },
          "logic": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/LogicDto"
              }
            ],
            "nullable": true,
            "description": "Logic conditions for when to send the confirmation email"
          }
        },
        "type": "object"
      },
      "CreateConfirmationEmailInputApiDto": {
        "title": "Create Confirmation Email",
        "description": "Create confirmation email request",
        "properties": {
          "name": {
            "description": "Name of the confirmation email",
            "type": "string",
            "nullable": true
          },
          "toField": {
            "description": "Form field ID that contains the recipient's email address",
            "type": "integer",
            "nullable": false
          },
          "senderEmail": {
            "description": "Email address of the sender",
            "type": "string",
            "nullable": false
          },
          "subject": {
            "description": "Subject line of the confirmation email",
            "type": "string",
            "nullable": false
          },
          "type": {
            "description": "Type of content to include in the email message",
            "type": "string",
            "enum": [
              "data",
              "fields"
            ],
            "nullable": false
          },
          "hideEmpty": {
            "description": "Whether to exclude empty fields from the email",
            "type": "boolean",
            "default": false,
            "nullable": true
          },
          "showSection": {
            "description": "Whether to display section headings in the email",
            "type": "boolean",
            "default": false,
            "nullable": true
          },
          "message": {
            "description": "HTML content of the email message",
            "type": "string",
            "nullable": false
          },
          "delay": {
            "description": "Delay before sending email (e.g., '+1 day', '+1 hour', '12/23/2012')",
            "type": "string",
            "nullable": true
          },
          "format": {
            "description": "Whether the Confirmation Email should be Rich HTML or Plain Text",
            "type": "string",
            "default": "html",
            "enum": [
              "html",
              "plaintext"
            ],
            "nullable": true
          },
          "logic": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/LogicDto"
              }
            ],
            "nullable": true,
            "description": "Logic conditions for when to send the confirmation email"
          }
        },
        "type": "object"
      },
      "LogicDto": {
        "title": "Logic Conditions",
        "description": "Logic conditions for conditional processing",
        "properties": {
          "action": {
            "description": "Action to perform (show/hide)",
            "type": "string",
            "enum": [
              "show",
              "hide"
            ],
            "nullable": false
          },
          "conditional": {
            "description": "Conditional operator (all/any)",
            "type": "string",
            "enum": [
              "all",
              "any"
            ],
            "nullable": false
          },
          "checks": {
            "description": "Array of condition checks",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogicFieldCheckDto"
            },
            "nullable": false
          }
        },
        "type": "object"
      },
      "LogicFieldCheckDto": {
        "title": "Logic Check Condition",
        "description": "Single condition check for logic operations",
        "properties": {
          "field": {
            "description": "Field ID to check",
            "type": "string",
            "nullable": false
          },
          "condition": {
            "description": "Condition operator",
            "type": "string",
            "enum": [
              "equals",
              "notequals",
              "greaterthan",
              "lessthan"
            ],
            "nullable": false
          },
          "option": {
            "description": "Value to compare against",
            "type": "string",
            "nullable": false
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Confirmation Emails",
      "description": "Confirmation emails are the messages sent to the person who submits a form. Use these endpoints to list a form's confirmation emails and to create, retrieve, update, and delete them, including subject, sender, content, send delay, and conditional logic."
    },
    {
      "name": "Classic",
      "description": "Classic"
    }
  ]
}
```