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

# Export provisioned spec

> Download an installed application as a provisioned bundle. The file contains the OpenAPI document plus the summary, agentic metadata, and spec-config fields needed to install it without an LLM. Credentials are omitted. Returns 409 when the summary or agentic metadata is missing.



## OpenAPI

````yaml get /api/spec/{api_name}/export
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/spec/{api_name}/export:
    get:
      tags:
        - Spec
      summary: Export provisioned spec
      description: >-
        Download an installed application as a provisioned bundle. The file
        contains the OpenAPI document plus the summary, agentic metadata, and
        spec-config fields needed to install it without an LLM. Credentials are
        omitted. Returns 409 when the summary or agentic metadata is missing.
      operationId: spec_export
      parameters:
        - name: api_name
          in: path
          required: true
          schema:
            type: string
            title: Api Name
      responses:
        '200':
          description: Provisioned spec bundle
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpecBundle'
        '404':
          description: Spec not found
        '409':
          description: Spec is not provisioned
      security:
        - BearerAuth: []
components:
  schemas:
    SpecBundle:
      type: object
      required:
        - format
        - format_version
        - spec
        - provisioning
      properties:
        format:
          type: string
          enum:
            - apigene.spec.bundle
        format_version:
          type: integer
          enum:
            - 1
        spec:
          type: object
          description: Installed OpenAPI document
        provisioning:
          type: object
          properties:
            llm_summary:
              type: object
            llm_use_cases_content: {}
            llm_app_categories: {}
            examples:
              type: array
            domain_url:
              type: string
            agentic_metadata:
              type: array
              items:
                type: object
            server_url:
              type: string
            operations_state:
              type: object
            common_parameters:
              type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````

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