---
updatedAt: 2026-05-22T05:45:34.000Z
agentTools:
  projectIndex: https://audata.readme.io/llms.txt
---

# Create FormBuilder form

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Promo API",
    "description": "Comprehensive API for accessing Promo resources.",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://promo.audata.io/api/v2",
      "description": "Production Server"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Campaign": {
        "type": "object",
        "description": "Represents a promotional campaign, which can have multiple deliverables and be associated with a client.",
        "required": [
          "name"
        ],
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "name": {
            "type": "string"
          },
          "budget": {
            "type": "number",
            "format": "float"
          },
          "start_date": {
            "type": "string",
            "format": "date"
          },
          "end_date": {
            "type": "string",
            "format": "date"
          },
          "finance_data": {
            "type": "object",
            "additionalProperties": true
          },
          "client": {
            "$ref": "#/components/schemas/Client"
          },
          "owner_uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true,
            "description": "UUID of the owner (user who created the campaign)"
          },
          "station_uuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "readOnly": true,
            "description": "UUIDs of the associated stations"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "Client": {
        "type": "object",
        "description": "Represents a client (brand or advertiser) associated with campaigns and deliverables.",
        "required": [
          "name"
        ],
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "owner_uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true,
            "description": "UUID of the owner (user who created the client)"
          },
          "station_uuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "readOnly": true,
            "description": "UUIDs of the associated stations"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "FormBuilderForm": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Internal name of the form"
          },
          "description": {
            "type": "string",
            "description": "Public description of the form"
          },
          "status": {
            "type": "string",
            "enum": [
              "published",
              "draft"
            ],
            "description": "Current status of the form ('published' or 'draft')"
          },
          "start_date": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the form becomes active"
          },
          "end_date": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the form expires"
          },
          "s3_url": {
            "type": "string",
            "description": "URL to the hosted form JSON definition"
          },
          "submission_behaviour": {
            "type": "string",
            "enum": [
              "show_message",
              "redirect"
            ],
            "description": "Behavior after submission ('show_message' to display a message, 'redirect' to redirect to a URL)"
          },
          "redirect_url": {
            "type": "string",
            "description": "URL to redirect to after successful submission"
          },
          "message": {
            "type": "string",
            "description": "Message displayed to user after successful submission"
          },
          "one_response_per_listener": {
            "type": "boolean",
            "description": "Whether to restrict submission to one per registered listener"
          },
          "one_response_per_ip_address": {
            "type": "boolean",
            "description": "Whether to restrict submission to one per IP address"
          },
          "use_recaptcha_verification": {
            "type": "boolean",
            "description": "Whether reCAPTCHA is enabled for this form"
          },
          "create_listener": {
            "type": "boolean",
            "description": "Whether to create a new listener profile upon form submission if email or phone number is provided and doesn't match an existing profile"
          },
          "campaign": {
            "$ref": "#/components/schemas/Campaign"
          },
          "css_template_uuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "UUID of the associated CSS template for form styling"
          },
          "confirmation_template_uuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "UUID of the associated template for submission confirmation"
          },
          "list": {
            "$ref": "#/components/schemas/List"
          },
          "fields": {
            "type": "array",
            "description": "An ordered list of form fields. Only returned when the `include_fields` option is requested.",
            "items": {
              "$ref": "#/components/schemas/FormBuilderFormField"
            }
          },
          "station_uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true,
            "description": "UUID of the associated station"
          },
          "archived_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "FormBuilderFormField": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true,
            "description": "UUID of the form field (used as key in custom attribute submission data)"
          },
          "name": {
            "type": "string",
            "description": "Internal name of the form field (used as key in submission data)"
          },
          "type": {
            "type": "string",
            "enum": [
              "FormBuilder::GenericField",
              "FormBuilder::ListenerField",
              "FormBuilder::StaticField"
            ],
            "description": "Type of the form field (determines how the field is rendered and what data it captures)"
          },
          "postion": {
            "type": "integer",
            "description": "Position of the field in the form (lower numbers are displayed first)"
          },
          "options": {
            "type": "object",
            "description": "Configuration options specific to the field type.",
            "additionalProperties": true
          }
        }
      },
      "List": {
        "type": "object",
        "description": "Represents a list of listeners.",
        "required": [
          "name"
        ],
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "name": {
            "type": "string"
          },
          "allow_duplicates": {
            "type": "boolean"
          },
          "allow_same_household": {
            "type": "boolean"
          },
          "listener_notes": {
            "type": "string"
          },
          "campaign": {
            "$ref": "#/components/schemas/Campaign"
          },
          "station_uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true,
            "description": "UUID of the associated station"
          },
          "archived_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/form_builder/forms": {
      "post": {
        "summary": "Create FormBuilder form",
        "tags": [
          "Form Builder"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "form_builder_form": {
                    "$ref": "#/components/schemas/FormBuilderForm"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormBuilderForm"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  }
}
```