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

# Export Forms

> Queues an asynchronous CSV or XLSX export of the form rows; the file is emailed to the caller's address. Requires `maihue-form:export`.



## OpenAPI

````yaml POST /maihue/form/export
openapi: 3.0.1
info:
  title: Maihue Form API
  description: >
    Maihue forms (`maihue_form`): a named set of questions per country, answered
    by leads.


    List paging and sorting read the camelCase keys `pageSize`,
    `maxPageSizeOverride` and `orderBy`. Every route requires the
    `maihue-form:<action>` permission named in its description.
  version: '2026-10-21'
servers:
  - description: Production
    url: https://api.bbrands.io/api/v3
  - description: Certification
    url: https://certification.api.bbrands.io/api/v3
  - description: Development
    url: https://development.api.bbrands.io/api/v3
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Maihue Form
    description: Forms that group the Maihue questions.
paths:
  /maihue/form/export:
    post:
      tags:
        - Maihue Form
      summary: Export forms
      description: >-
        Queues an asynchronous CSV or XLSX export of the form rows; the file is
        emailed to the caller's address. Requires `maihue-form:export`.
      operationId: maihueFormExport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportBody'
      responses:
        '202':
          description: Export job queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ExportJob'
                  message:
                    type: string
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    ExportBody:
      type: object
      additionalProperties: false
      required:
        - format
      properties:
        filters:
          type: string
          description: Same `field|operator|value` syntax as the list.
          example: is_actived|eq|true
        format:
          type: string
          enum:
            - csv
            - xlsx
        order_by:
          type: string
          example: created_at:desc
    ExportJob:
      type: object
      additionalProperties: true
      description: The queued export job.
    Meta:
      type: object
      properties:
        correlation:
          type: string
          description: Request correlation id; quote it when reporting an issue.
        status:
          type: integer
        timestamp:
          type: string
          format: date-time
        version:
          type: string
          nullable: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code.
            errors:
              type: array
              items: {}
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid, revoked or expired credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The caller lacks the required permission
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      headers:
        Retry-After:
          description: Seconds until a request is allowed again.
          schema:
            type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: A `secret` API key, `hzk_<env>_<prefix>_<secret>`.

````

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