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

# Publish Form

> Make a form publicly accessible via its share URL.



## OpenAPI

````yaml openapi.json post /forms/{id}/publish
openapi: 3.1.0
info:
  title: GeniusForms API
  description: >-
    AI-powered form builder API. Create forms manually or generate them from
    natural language prompts.
  version: 1.0.0
  contact:
    name: GeniusForms Support
    email: support@geniusforms.ai
    url: https://geniusforms.ai
servers:
  - url: https://geniusforms.ai/api/v1
    description: Production
  - url: http://localhost:8000/api/v1
    description: Local Development
security:
  - ApiKeyAuth: []
paths:
  /forms/{id}/publish:
    post:
      tags:
        - Forms
      summary: Publish Form
      description: Make a form publicly accessible via its share URL.
      operationId: publishForm
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Form published
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  isPublished:
                    type: boolean
                    example: true
                  publishedAt:
                    type: string
                    format: date-time
                  url:
                    type: string
                    example: https://geniusforms.ai/f/abc123xyz
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from your GeniusForms dashboard

````