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

# List forms

> The forms of an agent (or the workspace pool), cursor-paginated. Pass `agentId` to scope to one agent.



## OpenAPI

````yaml /openapi.json get /v1/forms
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Production
  - url: http://localhost:8080
    description: Development
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/forms:
    get:
      tags:
        - Forms
      summary: List forms
      description: >-
        The forms of an agent (or the workspace pool), cursor-paginated. Pass
        `agentId` to scope to one agent.
      operationId: PublicFormsController_list_v1
      parameters:
        - name: limit
          required: false
          in: query
          description: How many items to return (1–100).
          schema:
            minimum: 1
            maximum: 100
            default: 50
            type: number
        - name: after
          required: false
          in: query
          description: >-
            Opaque cursor: pass the `nextCursor` of a previous page to get the
            next one.
          schema:
            type: string
        - name: before
          required: false
          in: query
          description: Opaque cursor for paging backwards (items before it).
          schema:
            type: string
        - name: agentId
          required: true
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedFormsDto'
      security:
        - api-key: []
components:
  schemas:
    PaginatedFormsDto:
      type: object
      properties:
        data:
          description: The items of this page.
          type: array
          items:
            $ref: '#/components/schemas/PublicFormDto'
        hasMore:
          type: boolean
          description: True when more items exist after this page.
        nextCursor:
          type: string
          nullable: true
          description: >-
            Opaque cursor to pass as `after` for the next page; null on the last
            page.
      required:
        - data
        - hasMore
        - nextCursor
    PublicFormDto:
      type: object
      properties:
        id:
          type: string
        agentId:
          type: object
          nullable: true
        key:
          type: string
        description:
          type: string
        fields:
          type: array
          items:
            $ref: '#/components/schemas/FormFieldDto'
        submit:
          $ref: '#/components/schemas/FormSubmitDto'
        successMessage:
          $ref: '#/components/schemas/LocalizedTextDto'
        successLinkId:
          type: object
          nullable: true
        notifyOwners:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - agentId
        - key
        - description
        - fields
        - submit
        - successMessage
        - successLinkId
        - notifyOwners
        - createdAt
        - updatedAt
    FormFieldDto:
      type: object
      properties:
        key:
          type: string
          description: The kebab-case key of the field.
        kind:
          type: string
          enum:
            - text
            - email
            - phone
            - textarea
            - select
            - checkbox
            - password
        label:
          $ref: '#/components/schemas/LocalizedTextDto'
        required:
          type: boolean
        placeholder:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/LocalizedTextDto'
        options:
          nullable: true
          type: array
          items:
            $ref: '#/components/schemas/LocalizedTextDto'
        minLength:
          type: object
          nullable: true
        maxLength:
          type: object
          nullable: true
        pattern:
          type: object
          nullable: true
          maxLength: 200
        confirms:
          type: object
          nullable: true
          maxLength: 64
      required:
        - key
        - kind
        - label
        - required
    FormSubmitDto:
      type: object
      properties:
        mode:
          type: string
          enum:
            - internal
            - external
        url:
          type: string
          description: 'external only: the tenant API the browser POSTs to.'
          maxLength: 400
        method:
          type: string
          enum:
            - POST
        tokenField:
          type: object
          nullable: true
          maxLength: 64
          description: 'external only: the JSON key carrying a session token for auto-login.'
      required:
        - mode
    LocalizedTextDto:
      type: object
      properties:
        es:
          type: string
          maxLength: 200
        en:
          type: string
          maxLength: 200
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````