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

# Admin List Forms

> Every form on a published page of the hub, with its accepted-submission count.

A form appears once its page is published and leaves when the page is unpublished,
trashed, or republished without it. The count survives a form leaving and returning.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/teams/{team_id}/hubs/{hub_id}/forms
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/hubs/{hub_id}/forms:
    get:
      tags:
        - forms-admin
      summary: Admin List Forms
      description: >-
        Every form on a published page of the hub, with its accepted-submission
        count.


        A form appears once its page is published and leaves when the page is
        unpublished,

        trashed, or republished without it. The count survives a form leaving
        and returning.
      operationId: forms_admin.get_forms_admin_get_teams_by_team_id_hubs_by_hub_id_forms
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HubFormListResponse'
          description: Successful Response
        '401':
          description: Authentication required.
        '403':
          description: Not a team owner, hub owner or hub admin.
        '404':
          description: No such hub under this team.
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '429':
          description: Rate limited.
      security:
        - HTTPBearer: []
components:
  schemas:
    HubFormListResponse:
      additionalProperties: false
      description: 'The Admin forms list: a top-level ``data`` array and nothing else.'
      properties:
        data:
          items:
            $ref: '#/components/schemas/HubFormResource'
          title: Data
          type: array
      required:
        - data
      title: HubFormListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    HubFormResource:
      additionalProperties: false
      description: >-
        A ``hub_forms`` resource object: exactly ``id``, ``type`` and
        ``attributes``.


        Bespoke rather than ``JsonApiResource`` because that class declares
        ``relationships``,

        ``links`` and ``meta`` as nullable members, and JSON:API forbids a null
        value for any of

        them. This shape neither emits nor documents them.
      properties:
        attributes:
          $ref: '#/components/schemas/HubFormAttributes'
        id:
          title: Id
          type: string
        type:
          const: hub_forms
          default: hub_forms
          title: Type
          type: string
      required:
        - id
        - attributes
      title: HubFormResource
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    HubFormAttributes:
      additionalProperties: false
      properties:
        after_submit:
          discriminator:
            mapping:
              inline: '#/components/schemas/HubFormAfterSubmitInline'
              page: '#/components/schemas/HubFormAfterSubmitPage'
              url: '#/components/schemas/HubFormAfterSubmitUrl'
            propertyName: mode
          oneOf:
            - $ref: '#/components/schemas/HubFormAfterSubmitInline'
            - $ref: '#/components/schemas/HubFormAfterSubmitPage'
            - $ref: '#/components/schemas/HubFormAfterSubmitUrl'
          title: After Submit
        consent_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Consent Count
        contacts_collected:
          title: Contacts Collected
          type: integer
        fields:
          items:
            $ref: '#/components/schemas/HubFormField'
          title: Fields
          type: array
        last_submitted_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Submitted At
        node_id:
          title: Node Id
          type: string
        page_id:
          title: Page Id
          type: string
        page_title:
          title: Page Title
          type: string
        published_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Published At
        section_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Section Label
        show_to:
          enum:
            - everyone
            - visitors
            - members
          title: Show To
          type: string
        submission_count:
          title: Submission Count
          type: integer
      required:
        - page_id
        - page_title
        - node_id
        - section_label
        - fields
        - after_submit
        - show_to
        - published_at
        - submission_count
        - contacts_collected
        - last_submitted_at
        - consent_count
      title: HubFormAttributes
      type: object
    HubFormAfterSubmitInline:
      additionalProperties: false
      properties:
        mode:
          const: inline
          title: Mode
          type: string
      required:
        - mode
      title: HubFormAfterSubmitInline
      type: object
    HubFormAfterSubmitPage:
      additionalProperties: false
      properties:
        mode:
          const: page
          title: Mode
          type: string
        page_id:
          title: Page Id
          type: string
      required:
        - mode
        - page_id
      title: HubFormAfterSubmitPage
      type: object
    HubFormAfterSubmitUrl:
      additionalProperties: false
      properties:
        mode:
          const: url
          title: Mode
          type: string
        url:
          title: Url
          type: string
      required:
        - mode
        - url
      title: HubFormAfterSubmitUrl
      type: object
    HubFormField:
      additionalProperties: false
      properties:
        binding:
          title: Binding
          type: string
        hidden:
          title: Hidden
          type: boolean
        required:
          title: Required
          type: boolean
      required:
        - binding
        - required
        - hidden
      title: HubFormField
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

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