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

# Import Claude Design Application Api Endpoint

> Convert a Claude Design export (the .dc.html artboards, canvas.json and images, a zip of them, or a saved canvas page) into a static site, create a GitHub repository for it under the given credential and owner, commit the site with a Dockerfile, and register the application on that repository. Refusals a caller can act on come back as `errors` with a 200, in the create route's shape. The lane ships behind the `claude_design_import` organisation feature flag: while it is off the route answers 404, like the platform build routes.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json post /api/v1/org/applications/imports/claude-design
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
tags:
  - name: Clusters
    description: Create, inspect and manage clusters, and the stacks deployed on them.
  - name: Managed Clusters
    description: Provider-managed control planes, driven through one common surface.
  - name: Imported Clusters
    description: Clusters that already existed and were connected to Ankra.
  - name: Cluster Access
    description: Kubeconfigs, service-account tokens and per-cluster access grants.
  - name: Kubernetes
    description: Read and act on the Kubernetes objects inside a cluster.
  - name: DigitalOcean Clusters
    description: Provision and manage DigitalOcean Kubernetes clusters.
  - name: Hetzner Clusters
    description: Provision and manage Hetzner Kubernetes clusters.
  - name: OVH Clusters
    description: Provision and manage OVH Kubernetes clusters.
  - name: Scaleway Clusters
    description: Provision and manage Scaleway Kapsule clusters.
  - name: UpCloud Clusters
    description: Provision and manage UpCloud Kubernetes clusters.
  - name: Applications
    description: Deploy, configure and observe applications across the fleet.
  - name: Stack Profiles
    description: Reusable stack definitions, their versions and sharing.
  - name: Charts
    description: Browse the chart catalogue behind stacks and addons.
  - name: Helm
    description: Helm registries, credentials and the charts they expose.
  - name: Executions
    description: Long-running platform executions and their jobs.
  - name: Operations
    description: Cancel in-flight cluster operations and their jobs.
  - name: Chat
    description: Conversational sessions, plans and confirmable actions.
  - name: AI Agent Runs
    description: Autonomous agent runs and their outcomes.
  - name: AI Tickets
    description: The AI ticket board, its sync connections and settings.
  - name: AI Playbooks
    description: Reusable playbooks the AI lanes execute.
  - name: AI Conditions
    description: Conditions that gate AI autonomy.
  - name: AI Engineering Handoffs
    description: Work the AI lanes escalate to a human engineer.
  - name: AI Environment
    description: The environment and base stacks AI demos deploy into.
  - name: Security
    description: Findings, advisories, SBOMs, compliance and posture.
  - name: Cost
    description: Cluster and fleet cost, rate cards and cost settings.
  - name: Billing
    description: Subscription and spend caps.
  - name: Organisation
    description: Members, invitations, audit logs and organisation settings.
  - name: Account Tokens
    description: Personal access tokens for the API and CLI.
  - name: Credentials
    description: The shared credential store.
  - name: Azure Credentials
    description: Azure credentials and SSH keys.
  - name: DigitalOcean Credentials
    description: DigitalOcean credentials and SSH keys.
  - name: Hetzner Credentials
    description: Hetzner credentials and SSH keys.
  - name: OVH Credentials
    description: OVH credentials and SSH keys.
  - name: Scaleway Credentials
    description: Scaleway credentials.
  - name: UpCloud Credentials
    description: UpCloud credentials and SSH keys.
  - name: Data Source Credentials
    description: Credentials for metrics and log sources.
  - name: DNS Credentials
    description: Credentials for DNS providers.
  - name: DNS
    description: DNS zones and records, including custom organisation zones.
  - name: Cloudflare
    description: Cloudflare domains and the credentials behind them.
  - name: Variables
    description: Organisation- and cluster-scoped variables.
  - name: SOPS
    description: Encrypt and decrypt values with the organisation SOPS config.
  - name: Alerts
    description: Alert integrations and ingest credentials.
  - name: Notifications
    description: Notification routes and their delivery targets.
  - name: Support
    description: Support tickets.
paths:
  /api/v1/org/applications/imports/claude-design:
    post:
      tags:
        - Applications
      summary: Import Claude Design Application Api Endpoint
      description: >-
        Convert a Claude Design export (the .dc.html artboards, canvas.json and
        images, a zip of them, or a saved canvas page) into a static site,
        create a GitHub repository for it under the given credential and owner,
        commit the site with a Dockerfile, and register the application on that
        repository. Refusals a caller can act on come back as `errors` with a
        200, in the create route's shape. The lane ships behind the
        `claude_design_import` organisation feature flag: while it is off the
        route answers 404, like the platform build routes.
      operationId: >-
        import_claude_design_application_api_endpoint_api_v1_org_applications_imports_claude_design_post
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ankra-Organisation-Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportClaudeDesignRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportClaudeDesignResponse'
          description: Successful Response
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: >-
            Not found (the claude_design_import feature flag is off for the
            organisation)
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ImportClaudeDesignRequest:
      properties:
        app_repo_credential_name:
          description: GitHub credential the repository is created and read through.
          title: App Repo Credential Name
          type: string
        app_repo_name:
          anyOf:
            - type: string
            - type: 'null'
          description: Repository name; defaults to a slug of the application name.
          title: App Repo Name
        app_repo_owner:
          description: GitHub user or organisation the repository is created under.
          title: App Repo Owner
          type: string
        files:
          items:
            $ref: '#/components/schemas/ImportClaudeDesignFile'
          title: Files
          type: array
        name:
          title: Name
          type: string
        source_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The claude.ai/design link the export came from, recorded in the
            repository README and provenance file.
          title: Source Url
        visibility:
          anyOf:
            - type: string
            - type: 'null'
          description: '''private'' (default) or ''public''.'
          title: Visibility
      required:
        - name
        - app_repo_credential_name
        - app_repo_owner
        - files
      title: ImportClaudeDesignRequest
      type: object
    ImportClaudeDesignResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ResourceError'
          title: Errors
          type: array
        id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The registered application id; null when the import was refused (see
            errors).
          title: Id
        notes:
          items:
            type: string
          title: Notes
          type: array
        pages:
          items:
            $ref: '#/components/schemas/ImportedDesignPage'
          title: Pages
          type: array
        repository:
          anyOf:
            - $ref: '#/components/schemas/ImportedRepository'
            - type: 'null'
        warnings:
          items:
            $ref: '#/components/schemas/ImportedDesignWarning'
          title: Warnings
          type: array
      required:
        - id
        - errors
        - repository
        - pages
        - warnings
        - notes
      title: ImportClaudeDesignResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ImportClaudeDesignFile:
      properties:
        content_base64:
          description: >-
            The file content, base64. At most 2 MiB per entry and 16 MiB per
            import.
          title: Content Base64
          type: string
        path:
          description: >-
            File name as exported (directories are dropped): <Name>.dc.html,
            canvas.json, an image, a .zip, or a saved canvas .html page.
          title: Path
          type: string
      required:
        - path
        - content_base64
      title: ImportClaudeDesignFile
      type: object
    ResourceError:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorItem'
          title: Errors
          type: array
        kind:
          type: string
          title: Kind
        name:
          title: Name
          type: string
      required:
        - name
        - kind
      title: ResourceError
      type: object
    ImportedDesignPage:
      properties:
        artboard:
          title: Artboard
          type: string
        dynamic:
          description: >-
            The artboard depends on the Claude Design runtime and is served as
            authored.
          title: Dynamic
          type: boolean
        page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Id
        path:
          description: Page path under site/ in the repository.
          title: Path
          type: string
        title:
          type: string
          title: Title
      required:
        - artboard
        - path
        - title
        - dynamic
      title: ImportedDesignPage
      type: object
    ImportedRepository:
      properties:
        commit_sha:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The commit that added the site; null when the repository already
            held this exact import.
          title: Commit Sha
        default_branch:
          title: Default Branch
          type: string
        name:
          title: Name
          type: string
        owner:
          title: Owner
          type: string
        reused:
          description: >-
            True when an existing repository carrying the same import was
            registered without a new commit.
          title: Reused
          type: boolean
        web_url:
          title: Web Url
          type: string
      required:
        - owner
        - name
        - web_url
        - default_branch
        - commit_sha
        - reused
      title: ImportedRepository
      type: object
    ImportedDesignWarning:
      properties:
        artboard:
          title: Artboard
          type: string
        kind:
          type: string
          title: Kind
        message:
          title: Message
          type: string
      required:
        - artboard
        - kind
        - message
      title: ImportedDesignWarning
      type: object
    ValidationError:
      properties:
        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
    ErrorItem:
      properties:
        key:
          type: string
          title: Key
        message:
          title: Message
          type: string
      required:
        - key
        - message
      title: ErrorItem
      type: object

````