# /forms/{formId}/html

Retrieve HTML markup for a specific 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}/html": {
      "get": {
        "tags": [
          "Forms",
          "Classic"
        ],
        "description": "Retrieve HTML markup for a specific form",
        "operationId": "getFormHtml",
        "parameters": [
          {
            "name": "formId",
            "in": "path",
            "description": "The ID of the form",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Form HTML retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormHtmlApiDto"
                }
              }
            }
          },
          "404": {
            "description": "Form not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FormHtmlApiDto": {
        "title": "Form HTML",
        "description": "Form HTML response",
        "properties": {
          "id": {
            "description": "The ID of the form",
            "type": "integer",
            "nullable": false
          },
          "name": {
            "description": "Name of the form",
            "type": "string",
            "nullable": false
          },
          "html": {
            "description": "HTML V4 of the form",
            "type": "string",
            "nullable": false
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Forms",
      "description": "Forms are the core resource of the Formstack API. Use these endpoints to create, retrieve, update, copy, and delete forms, list the forms in an account with filtering and sorting, generate prefilled form URLs, and fetch the embed JavaScript or rendered HTML for a form. Most other resources—fields, submissions, emails, and submit actions—are scoped to a form."
    },
    {
      "name": "Classic",
      "description": "Classic"
    }
  ]
}
```