> ## 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.

# Import provisioned spec

> Install a provisioned spec bundle. Rebuilds the spec document and spec config without calling an LLM. The imported spec is tenant-local and security schemes are created empty. Optional api_title renames info.title before install. Returns 409 when that title already exists.



## OpenAPI

````yaml post /api/spec/import
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/import:
    post:
      tags:
        - Spec
      summary: Import provisioned spec
      description: >-
        Install a provisioned spec bundle. Rebuilds the spec document and spec
        config without calling an LLM. The imported spec is tenant-local and
        security schemes are created empty. Optional api_title renames
        info.title before install. Returns 409 when that title already exists.
      operationId: spec_import
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
                  description: apigene.spec.bundle JSON file
                api_title:
                  type: string
                  description: Optional title. Replaces info.title before install.
      responses:
        '200':
          description: Imported spec
          content:
            application/json:
              schema:
                type: object
                properties:
                  api_name:
                    type: string
        '400':
          description: Invalid bundle
        '409':
          description: A spec with this title already exists
      security:
        - BearerAuth: []
components:
  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.