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

# Export Bundle

> Exports the selected categories/items as a ZIP file (`application/zip`).
The response is a binary download with `Content-Disposition: attachment`.

Requires `templates.export`.




## OpenAPI

````yaml /api-reference/openapi/EvoAI-CRM-Service/templates.yaml post /api/v1/templates/export
openapi: 3.0.4
info:
  title: Evolution Foundation - CRM Service - Template Bundles
  description: >
    Export and import configuration bundles (inboxes, agents, automation

    rules, canned responses, templates, custom roles) as portable ZIP files.


    Available starting `v1.0.0-rc3` (EVO-1116).


    See the user guide: [Configuration
    Bundles](/user-guides/settings/template-bundles).


    **Note:** This OpenAPI spec was generated from the controller as part of the
    rc3 release. Schemas reflect the controller surface but request/response
    examples may need refinement based on real payloads.
  version: 1.0.0
servers:
  - url: https://api.evoai.app
  - url: http://localhost:3000
security: []
paths:
  /api/v1/templates/export:
    post:
      summary: Export Bundle
      description: >
        Exports the selected categories/items as a ZIP file (`application/zip`).

        The response is a binary download with `Content-Disposition:
        attachment`.


        Requires `templates.export`.
      operationId: export-template-bundle
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - selection
              properties:
                template_name:
                  type: string
                  description: Name of the template bundle (appears in the ZIP manifest)
                description:
                  type: string
                  description: Optional description of the bundle
                author:
                  type: string
                  description: Author name (appears in the manifest)
                selection:
                  type: object
                  description: |
                    Per-category selection of items. For each category, either
                    use `{ all: true }` to include everything, or
                    `{ ids: [...] }` to cherry-pick.
                  additionalProperties:
                    oneOf:
                      - type: object
                        properties:
                          all:
                            type: boolean
                            description: Include all items of this category
                      - type: object
                        properties:
                          ids:
                            type: array
                            items:
                              type: string
                              format: uuid
              example:
                template_name: Onboarding default
                description: Standard automations and canned responses for new instances
                author: Davidson Gomes
                selection:
                  inboxes:
                    all: true
                  agents:
                    ids:
                      - a1f8...
                      - b3c0...
                  automation_rules:
                    all: true
                  canned_responses:
                    all: true
      responses:
        '200':
          description: ZIP bundle generated
          headers:
            Content-Disposition:
              schema:
                type: string
                example: attachment; filename="bundle-mycompany-2026-05-17.zip"
          content:
            application/zip:
              schema:
                type: string
                format: binary
        '422':
          description: Export failed (validation, missing items, internal error)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
      security:
        - userApiKey: []
components:
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token

````

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