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

# Get public form

> Retrieve a public form configuration for external data collection without authentication.

**Parameters**:
- `formSiteId`: Unique identifier combining form and site for this public endpoint
- `password`: Optional password if the form is password-protected

**Response includes**:
- Complete form structure with all elements and their configurations
- Form metadata (title, description, instructions)
- Element definitions (input types, validation rules, options)
- Conditional logic and dependencies between elements
- Submission settings and requirements

**Use Cases**:
- External data collection from suppliers, partners, or stakeholders
- Self-service environmental data reporting
- Compliance data gathering from multiple organizations
- Public sustainability surveys and assessments

**Security Features**:
- No authentication required for public access
- Optional password protection for sensitive forms
- Rate limiting to prevent abuse
- Organization-level access controls still apply



## OpenAPI

````yaml https://app.azalt.co/api/v1/openapi.json get /forms/public/{formSiteId}
openapi: 3.0.3
info:
  title: Erguvan Public API
  version: 1.0.0
servers:
  - url: https://app.azalt.co/api/v1
security: []
paths:
  /forms/public/{formSiteId}:
    get:
      tags:
        - Form
      summary: Get public form
      description: >-
        Retrieve a public form configuration for external data collection
        without authentication.


        **Parameters**:

        - `formSiteId`: Unique identifier combining form and site for this
        public endpoint

        - `password`: Optional password if the form is password-protected


        **Response includes**:

        - Complete form structure with all elements and their configurations

        - Form metadata (title, description, instructions)

        - Element definitions (input types, validation rules, options)

        - Conditional logic and dependencies between elements

        - Submission settings and requirements


        **Use Cases**:

        - External data collection from suppliers, partners, or stakeholders

        - Self-service environmental data reporting

        - Compliance data gathering from multiple organizations

        - Public sustainability surveys and assessments


        **Security Features**:

        - No authentication required for public access

        - Optional password protection for sensitive forms

        - Rate limiting to prevent abuse

        - Organization-level access controls still apply
      operationId: getPublicForm
      parameters:
        - in: path
          name: formSiteId
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  organizationId:
                    type: string
                    nullable: true
                  metadata: {}
                  description:
                    type: string
                    nullable: true
                  settings:
                    nullable: true
                  isPublic:
                    type: boolean
                  year:
                    type: number
                  siteId:
                    type: string
                  elements:
                    type: array
                    items: {}
                  hideFuturePeriods:
                    type: boolean
                required:
                  - id
                  - name
                  - organizationId
                  - description
                  - isPublic
                  - year
                  - siteId
                  - elements
                  - hideFuturePeriods
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.NOT_FOUND'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
components:
  schemas:
    error.BAD_REQUEST:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Invalid input data
        code:
          type: string
          description: The error code
          example: BAD_REQUEST
        issues:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
          description: An array of issues that were responsible for the error
          example: []
      required:
        - message
        - code
      title: Invalid input data error (400)
      description: The error information
      example:
        code: BAD_REQUEST
        message: Invalid input data
        issues: []
    error.NOT_FOUND:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Not found
        code:
          type: string
          description: The error code
          example: NOT_FOUND
        issues:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
          description: An array of issues that were responsible for the error
          example: []
      required:
        - message
        - code
      title: Not found error (404)
      description: The error information
      example:
        code: NOT_FOUND
        message: Not found
        issues: []
    error.INTERNAL_SERVER_ERROR:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Internal server error
        code:
          type: string
          description: The error code
          example: INTERNAL_SERVER_ERROR
        issues:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
              - message
          description: An array of issues that were responsible for the error
          example: []
      required:
        - message
        - code
      title: Internal server error error (500)
      description: The error information
      example:
        code: INTERNAL_SERVER_ERROR
        message: Internal server error
        issues: []

````