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

# Create form

> Create a form. Nobody fills it out until you share its link or put it on a page.

This tool changes data. Call it without `confirmationToken` for a preview that changes nothing. Then send the same body with the preview's `confirmationToken` to apply it.



## OpenAPI

````yaml /openapi.json post /v1/tools/create_form
openapi: 3.1.0
info:
  title: Steerco API
  version: 2.0.0
  description: >-
    Read and change your Steerco workspace: companies, people, mail, meetings,
    deals, sequences, tasks, lead finders and website visitors. The REST API and
    the MCP server run the same tools.
servers:
  - url: https://api.getsteerco.com
security: []
paths:
  /v1/tools/create_form:
    post:
      tags:
        - Tools
      summary: Create form
      description: >-
        Create a form. Nobody fills it out until you share its link or put it on
        a page.


        This tool changes data. Call it without `confirmationToken` for a
        preview that changes nothing. Then send the same body with the preview's
        `confirmationToken` to apply it.
      operationId: create_form
      parameters:
        - schema:
            type: string
            description: The workspace id. GET /v1/workspaces lists yours.
          required: true
          description: The workspace id. GET /v1/workspaces lists yours.
          in: header
          name: X-Workspace-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: What the form is called, such as "Book a call".
                  type: string
                  minLength: 1
                  maxLength: 120
                questions:
                  description: >-
                    The questions everyone answers, in order, less the
                    qualifying ones. Each takes a snake_case `key` that never
                    changes, such as "work_email". One must be an email
                    question, and it is always required. Ask for the person's
                    name with a `name` question, or `firstName` and `lastName`,
                    for their company's name with `company`, and for its website
                    with `website`, each at most once. When a Short text
                    question already asks for a name, company name or website,
                    change its type instead of adding another. On a create,
                    absent asks `firstName`, `lastName` and work email
                    questions, and "What do you need help with?" when everyone
                    books.
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    oneOf:
                      - type: object
                        properties:
                          key:
                            type: string
                            minLength: 1
                            maxLength: 64
                            pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                          label:
                            type: string
                            minLength: 1
                            maxLength: 200
                          type:
                            type: string
                            enum:
                              - select
                              - multiSelect
                          required:
                            default: false
                            type: boolean
                          options:
                            minItems: 1
                            maxItems: 100
                            type: array
                            items:
                              type: object
                              properties:
                                value:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                label:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                icon:
                                  oneOf:
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          const: icon
                                        name:
                                          type: string
                                      required:
                                        - kind
                                        - name
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          const: emoji
                                        value:
                                          type: string
                                          minLength: 1
                                          maxLength: 16
                                          pattern: >-
                                            \p{Extended_Pictographic}|\p{Regional_Indicator}|[0-9#*]️?⃣
                                      required:
                                        - kind
                                        - value
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          const: image
                                        imageId:
                                          type: string
                                          pattern: ^[a-f0-9]{24}$
                                      required:
                                        - kind
                                        - imageId
                                      additionalProperties: false
                              required:
                                - value
                                - label
                              additionalProperties: false
                          newStep:
                            type: boolean
                          placeholder:
                            description: >-
                              Example text in the empty box. It shows on text,
                              long text, email, phone and number questions, and
                              on a one-choice question with more than five
                              options.
                            type: string
                            maxLength: 120
                          help:
                            description: >-
                              One line under the question that says what to put
                              or why it is asked.
                            type: string
                            maxLength: 140
                        required:
                          - key
                          - label
                          - type
                          - options
                        additionalProperties: false
                      - type: object
                        properties:
                          key:
                            type: string
                            minLength: 1
                            maxLength: 64
                            pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                          label:
                            type: string
                            minLength: 1
                            maxLength: 200
                          type:
                            type: string
                            enum:
                              - text
                              - longText
                              - name
                              - firstName
                              - lastName
                              - email
                              - phone
                              - company
                              - website
                              - number
                              - date
                              - checkbox
                          required:
                            default: false
                            type: boolean
                          newStep:
                            type: boolean
                          placeholder:
                            description: >-
                              Example text in the empty box. It shows on text,
                              long text, email, phone and number questions, and
                              on a one-choice question with more than five
                              options.
                            type: string
                            maxLength: 120
                          help:
                            description: >-
                              One line under the question that says what to put
                              or why it is asked.
                            type: string
                            maxLength: 140
                        required:
                          - key
                          - label
                          - type
                        additionalProperties: false
                qualify:
                  description: >-
                    The questions that decide who books, each with the answer
                    that lets a person book. A person books only when every
                    answer fits. Empty lets everyone book.
                  maxItems: 10
                  type: array
                  items:
                    type: object
                    properties:
                      question:
                        oneOf:
                          - type: object
                            properties:
                              label:
                                type: string
                                minLength: 1
                                maxLength: 200
                              type:
                                type: string
                                enum:
                                  - select
                                  - multiSelect
                              options:
                                minItems: 1
                                maxItems: 100
                                type: array
                                items:
                                  type: object
                                  properties:
                                    value:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                    label:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                    icon:
                                      oneOf:
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              const: icon
                                            name:
                                              type: string
                                          required:
                                            - kind
                                            - name
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              const: emoji
                                            value:
                                              type: string
                                              minLength: 1
                                              maxLength: 16
                                              pattern: >-
                                                \p{Extended_Pictographic}|\p{Regional_Indicator}|[0-9#*]️?⃣
                                          required:
                                            - kind
                                            - value
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              const: image
                                            imageId:
                                              type: string
                                              pattern: ^[a-f0-9]{24}$
                                          required:
                                            - kind
                                            - imageId
                                          additionalProperties: false
                                  required:
                                    - value
                                    - label
                                  additionalProperties: false
                              newStep:
                                type: boolean
                              placeholder:
                                description: >-
                                  Example text in the empty box. It shows on
                                  text, long text, email, phone and number
                                  questions, and on a one-choice question with
                                  more than five options.
                                type: string
                                maxLength: 120
                              help:
                                description: >-
                                  One line under the question that says what to
                                  put or why it is asked.
                                type: string
                                maxLength: 140
                            required:
                              - label
                              - type
                              - options
                            additionalProperties: false
                          - type: object
                            properties:
                              label:
                                type: string
                                minLength: 1
                                maxLength: 200
                              type:
                                type: string
                                enum:
                                  - text
                                  - longText
                                  - name
                                  - firstName
                                  - lastName
                                  - email
                                  - phone
                                  - company
                                  - website
                                  - number
                                  - date
                                  - checkbox
                              newStep:
                                type: boolean
                              placeholder:
                                description: >-
                                  Example text in the empty box. It shows on
                                  text, long text, email, phone and number
                                  questions, and on a one-choice question with
                                  more than five options.
                                type: string
                                maxLength: 120
                              help:
                                description: >-
                                  One line under the question that says what to
                                  put or why it is asked.
                                type: string
                                maxLength: 140
                            required:
                              - label
                              - type
                            additionalProperties: false
                        description: >-
                          The question the form adds, such as {"label": "How
                          many people work at your company?", "type": "select",
                          "options": [{"value": "1 to 9", "label": "1 to 9"},
                          {"value": "10 or more", "label": "10 or more"}]}. A
                          select or multiSelect question takes `options`. Set
                          each option's value to its label.
                      rule:
                        type: object
                        properties:
                          op:
                            type: string
                            enum:
                              - eq
                              - neq
                              - gt
                              - gte
                              - lt
                              - lte
                              - contains
                              - not_contains
                              - in
                              - is_empty
                              - is_not_empty
                              - older_than_days
                              - within_days
                          value:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                              - type: array
                                items:
                                  type: string
                        required:
                          - op
                          - value
                        description: >-
                          The answer that lets a person book, such as {"op":
                          "in", "value": ["10 or more"]}. A select compares with
                          "eq", "neq" or "in", a number with "gt" or "lt", a
                          checkbox with "eq" and true or false.
                    required:
                      - question
                      - rule
                calendarId:
                  description: >-
                    The booking calendar a person who may book goes to, from
                    list_booking_calendars.
                  type: string
                  minLength: 1
                unqualified:
                  description: >-
                    Where a person who does not qualify goes: {"kind":
                    "message", "message": "..."} or {"kind": "redirect", "url":
                    "https://..."}. Add "thenSequenceId", a sequence id from
                    list_sequences, to start a sequence for them. Read only with
                    `qualify`. On a create, absent shows "Thanks for your
                    interest. We'll be in touch."
                  oneOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: message
                        message:
                          type: string
                          maxLength: 400
                        thenSequenceId:
                          type: string
                          minLength: 1
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: redirect
                        url:
                          type: string
                          maxLength: 2048
                          format: uri
                        thenSequenceId:
                          type: string
                          minLength: 1
                      required:
                        - kind
                        - url
                      additionalProperties: false
                thankYou:
                  description: >-
                    The thank-you message a person reads once they send a form
                    with no calendar, such as "Thanks, we will be in touch." On
                    a qualifying form, only the people who qualify read it. A
                    form with a calendar sends them to book instead, and takes
                    none. On an edit, "" puts the default back.
                  type: string
                  maxLength: 400
                followUp:
                  description: >-
                    Whether a person the form sends to book, who then doesn't
                    book, gets "Form: didn't book". It needs a calendar. On a
                    create, absent turns it on when you pass calendarId.
                  type: boolean
                submitLabel:
                  description: >-
                    The words on the submit button, such as "Get my demo".
                    Absent keeps the default, which names the next step when
                    everyone books. On an edit, "" puts the default back.
                  type: string
                  maxLength: 60
                layout:
                  description: >-
                    "page" asks every question at once, and "steps" asks one
                    step at a time, with the contact questions last.
                  type: string
                  enum:
                    - page
                    - steps
                skipRest:
                  description: >-
                    On a steps form, whether a person certain to qualify skips
                    to the contact questions.
                  type: boolean
                otherwiseSkipRest:
                  description: >-
                    On a steps form, whether a person certain not to qualify
                    skips to the contact questions.
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: >-
            A preview, when the body has no confirmationToken. The applied
            write, when it has one.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ToolPreview'
                  - $ref: '#/components/schemas/ToolCommitted'
        '400':
          description: The body doesn't match the tool's input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: The API key is missing or not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Your role or plan doesn't allow this tool, or your setting for
            changes from AI tools and API keys is off.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: A record the input names doesn't exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The confirmationToken doesn't match this body, or it expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: You made more than 120 tool calls in a minute.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    ToolPreview:
      type: object
      properties:
        status:
          type: string
          enum:
            - preview
        preview:
          description: What the write would change. Nothing has changed yet.
        confirmationToken:
          type: string
          description: >-
            Send this back with the same input to apply the write. It works for
            this call only.
        expiresAt:
          type: string
          description: When the token stops working, 10 minutes after the preview.
      required:
        - status
        - confirmationToken
        - expiresAt
    ToolCommitted:
      type: object
      properties:
        status:
          type: string
          enum:
            - committed
        result: {}
        cut:
          $ref: '#/components/schemas/OutputCut'
      required:
        - status
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
        - code
    OutputCut:
      type: object
      properties:
        note:
          type: string
          description: What was cut, and how to get the rest.
        lists:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              shown:
                type: integer
              total:
                type: integer
            required:
              - path
              - shown
              - total
          description: Each list that lost items from its end, by its path in the result.
        textsShortened:
          type: integer
          description: How many long text fields end in "[cut]".
      required:
        - note
        - lists
        - textsShortened
      description: >-
        Present when the result was larger than about 25,000 tokens and Steerco
        cut it.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key, starting ak_. Create one under Settings > MCP and API in
        Steerco.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.