FusionAuth Form API

The Form API from FusionAuth — 4 operation(s) for form.

GitHub OpenAPI

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/form Create a form with a form definition · Create form #
Ask an LLM
“How do I set up a new web form in FusionAuth?”
“Can I name a form when I create it?”
Tell an agent
Create a form from {form}.
Set up a new form with definition {form}.
POST /api/form/field Create a form field · Create form field #
Ask an LLM
“How do I add a single field to a form?”
“Can I create several form fields in one request?”
Tell an agent
Create form field {field}.
Create form fields {fields}.
POST /api/form/field/{fieldId} Create a form field with a given id · Create form field with id #
Ask an LLM
“How do I create a form field using a specific id?”
“Can I add a field to a form with a custom id?”
Tell an agent
Create form field {fieldId} with details {field}.
Add a form field {fieldId} to the form.
DELETE /api/form/field/{fieldId} Delete a form field · Delete form field with id #
Ask an LLM
“How do I remove a field from a form?”
“Can I delete a form field by its id?”
Tell an agent destructive · confirm first
Delete form field {fieldId}.
Remove the field {fieldId} from the form.
PATCH /api/form/field/{fieldId} Patch a form field · Patch form field with id #
Ask an LLM
“How do I change just the label of a form field?”
“Can I partially update a form field?”
Tell an agent
Patch form field {fieldId} with {field}.
Change only the label of form field {fieldId}.
GET /api/form/field/{fieldId} Get a form field · Retrieve form field with id #
Ask an LLM
“What type and options does a particular form field have?”
“Can I fetch one form field by its id?”
Tell an agent
Get form field {fieldId}.
Show the settings of form field {fieldId}.
PUT /api/form/field/{fieldId} Replace a form field · Update form field with id #
Ask an LLM
“How do I overwrite a form field's type and options?”
“Can I replace a form field entirely?”
Tell an agent
Replace form field {fieldId} with {field}.
Overwrite the settings of form field {fieldId}.
POST /api/form/{formId} Create a form with a given id · Create form with id #
Ask an LLM
“How do I create a form with a specific id?”
“Can I add a form to the system using my own id?”
Tell an agent
Create form {formId} with details {form}.
Add a form {formId} to the system.
DELETE /api/form/{formId} Delete a form · Delete form with id #
Ask an LLM
“How do I delete a form?”
“Can I remove a form by its ID?”
Tell an agent destructive · confirm first
Delete form {formId}.
Remove web form {formId}.
PATCH /api/form/{formId} Update a form · Patch form with id #
Ask an LLM
“How do I change the fields on an existing form?”
“Can I edit a form after it's created?”
Tell an agent
Patch form {formId} with {form}.
Update the definition of form {formId}.
GET /api/form/{formId} Get a form · Retrieve form with id #
Ask an LLM
“What fields does a given form contain?”
“Can I fetch a form by its id?”
Tell an agent
Get form {formId}.
Show the fields of form {formId}.
PUT /api/form/{formId} Replace a form · Update form with id #
Ask an LLM
“How do I overwrite a form's fields?”
“Can I replace a whole form at once?”
Tell an agent
Replace form {formId} with {form}.
Overwrite the entire form {formId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fusionauth:fusionauth-form-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

fusionauth-form-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.66.0
  title: FusionAuth Form API
  description: This is a FusionAuth server. Find out more at https://fusionauth.io. You need to set up an API key in the FusionAuth instance you are using to test out the API calls.
  license:
    name: Apache2
servers:
- url: http://localhost:9011
- url: https://sandbox.fusionauth.io
security:
- ApiKeyAuth: []
tags:
- name: Form
paths:
  /api/form:
    post:
      description: Creates a form. You can optionally specify an Id for the form, if not provided one will be generated.
      operationId: createForm
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Create form
      x-summary-source: derived
  /api/form/field:
    post:
      description: Creates a form field. You can optionally specify an Id for the form, if not provided one will be generated.
      operationId: createFormField
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormFieldRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormFieldResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Create form field
      x-summary-source: derived
  /api/form/field/{fieldId}:
    post:
      description: Creates a form field. You can optionally specify an Id for the form, if not provided one will be generated.
      operationId: createFormFieldWithId
      parameters:
      - name: fieldId
        in: path
        schema:
          type: string
        required: true
        description: The Id for the form field. If not provided a secure random UUID will be generated.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormFieldRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormFieldResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Create form field with id
      x-summary-source: derived
    delete:
      description: Deletes the form field for the given Id.
      operationId: deleteFormFieldWithId
      parameters:
      - name: fieldId
        in: path
        schema:
          type: string
        required: true
        description: The Id of the form field to delete.
      responses:
        '200':
          description: Success
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Delete form field with id
      x-summary-source: derived
    patch:
      description: Patches the form field with the given Id.
      operationId: patchFormFieldWithId
      parameters:
      - name: fieldId
        in: path
        schema:
          type: string
        required: true
        description: The Id of the form field to patch.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormFieldRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormFieldResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Patch form field with id
      x-summary-source: derived
    get:
      description: Retrieves the form field with the given Id.
      operationId: retrieveFormFieldWithId
      parameters:
      - name: fieldId
        in: path
        schema:
          type: string
        required: true
        description: The Id of the form field.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormFieldResponse'
        default:
          description: Error
      tags:
      - Form
      summary: Retrieve form field with id
      x-summary-source: derived
    put:
      description: Updates the form field with the given Id.
      operationId: updateFormFieldWithId
      parameters:
      - name: fieldId
        in: path
        schema:
          type: string
        required: true
        description: The Id of the form field to update.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormFieldRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormFieldResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Update form field with id
      x-summary-source: derived
  /api/form/{formId}:
    post:
      description: Creates a form. You can optionally specify an Id for the form, if not provided one will be generated.
      operationId: createFormWithId
      parameters:
      - name: formId
        in: path
        schema:
          type: string
        required: true
        description: The Id for the form. If not provided a secure random UUID will be generated.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Create form with id
      x-summary-source: derived
    delete:
      description: Deletes the form for the given Id.
      operationId: deleteFormWithId
      parameters:
      - name: formId
        in: path
        schema:
          type: string
        required: true
        description: The Id of the form to delete.
      responses:
        '200':
          description: Success
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Delete form with id
      x-summary-source: derived
    patch:
      description: Patches the form with the given Id.
      operationId: patchFormWithId
      parameters:
      - name: formId
        in: path
        schema:
          type: string
        required: true
        description: The Id of the form to patch.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Patch form with id
      x-summary-source: derived
    get:
      description: Retrieves the form with the given Id.
      operationId: retrieveFormWithId
      parameters:
      - name: formId
        in: path
        schema:
          type: string
        required: true
        description: The Id of the form.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormResponse'
        default:
          description: Error
      tags:
      - Form
      summary: Retrieve form with id
      x-summary-source: derived
    put:
      description: Updates the form with the given Id.
      operationId: updateFormWithId
      parameters:
      - name: formId
        in: path
        schema:
          type: string
        required: true
        description: The Id of the form to update.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FormRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      tags:
      - Form
      summary: Update form with id
      x-summary-source: derived
components:
  schemas:
    FormResponse:
      description: Form response.
      type: object
      properties:
        form:
          $ref: '#/components/schemas/Form'
        forms:
          type: array
          items:
            $ref: '#/components/schemas/Form'
    FormControl:
      description: ''
      type: string
      enum:
      - checkbox
      - number
      - password
      - radio
      - select
      - textarea
      - text
    FormRequest:
      description: Form response.
      type: object
      properties:
        form:
          $ref: '#/components/schemas/Form'
    ZonedDateTime:
      description: 'The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.'
      example: '1659380719000'
      type: integer
      format: int64
    FormFieldRequest:
      description: The FormField API request object.
      type: object
      properties:
        field:
          $ref: '#/components/schemas/FormField'
        fields:
          type: array
          items:
            $ref: '#/components/schemas/FormField'
    FormStep:
      description: ''
      type: object
      properties:
        fields:
          type: array
          items:
            type: string
            format: uuid
        type:
          $ref: '#/components/schemas/FormStepType'
    FormDataType:
      description: ''
      type: string
      enum:
      - bool
      - consent
      - date
      - email
      - number
      - phoneNumber
      - string
    FormStepType:
      description: Denotes the type of form step. This is used to configure different behavior on form steps in the registration flow.
      type: string
      enum:
      - collectData
      - verifyEmail
      - verifyPhoneNumber
    Error:
      description: Defines an error.
      type: object
      properties:
        code:
          type: string
        data:
          type: object
          additionalProperties:
            type: object
        message:
          type: string
    FormFieldResponse:
      description: Form field response.
      type: object
      properties:
        field:
          $ref: '#/components/schemas/FormField'
        fields:
          type: array
          items:
            $ref: '#/components/schemas/FormField'
    FormType:
      description: ''
      type: string
      enum:
      - registration
      - adminRegistration
      - adminUser
      - selfServiceUser
    Errors:
      description: Standard error domain object that can also be used as the response from an API call.
      type: object
      properties:
        fieldErrors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
        generalErrors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
    FormField:
      description: ''
      type: object
      properties:
        confirm:
          type: boolean
        consentId:
          type: string
          format: uuid
        control:
          $ref: '#/components/schemas/FormControl'
        data:
          type: object
          additionalProperties:
            type: object
        description:
          type: string
        id:
          type: string
          format: uuid
        insertInstant:
          $ref: '#/components/schemas/ZonedDateTime'
        key:
          type: string
        lastUpdateInstant:
          $ref: '#/components/schemas/ZonedDateTime'
        name:
          type: string
        options:
          type: array
          items:
            type: string
        required:
          type: boolean
        type:
          $ref: '#/components/schemas/FormDataType'
        validator:
          $ref: '#/components/schemas/FormFieldValidator'
    Form:
      description: ''
      type: object
      properties:
        data:
          type: object
          additionalProperties:
            type: object
        id:
          type: string
          format: uuid
        insertInstant:
          $ref: '#/components/schemas/ZonedDateTime'
        lastUpdateInstant:
          $ref: '#/components/schemas/ZonedDateTime'
        name:
          type: string
        steps:
          type: array
          items:
            $ref: '#/components/schemas/FormStep'
        type:
          $ref: '#/components/schemas/FormType'
    FormFieldValidator:
      description: ''
      type: object
      properties:
        expression:
          type: string
        enabled:
          type: boolean
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Authorization
      in: header
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
x-provenance:
  method: harvested
  publisher: FusionAuth
  source: https://raw.githubusercontent.com/fusionauth/fusionauth-openapi/HEAD/openapi.yaml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)