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

# Upload a skill (multipart ZIP/.skill/.md)

> Accepts the same shape as Studio web: a single `file` part containing a ZIP archive, .skill bundle, or a standalone SKILL.md. Frontmatter (`name`, `description`, `license`, `compatibility`, `metadata`, `allowed-tools`) is parsed from SKILL.md and persisted alongside per-file content. Max 10MB.



## OpenAPI

````yaml /api-reference/openapi.json post /public/api/v1/skills
openapi: 3.1.0
info:
  contact:
    email: support@gennia.ai
    name: Gennia Support
    url: https://gennia.ai
  description: >-
    Workspace-scoped API authenticated via workspace API key (header `X-Api-Key:
    gsk_...` or `Authorization: Bearer gsk_...`).
  title: Gennia Public API
  version: v1
servers:
  - description: Production
    url: https://api.gennia.ai
security:
  - workspaceApiKey: []
tags:
  - description: Slash commands available inside the agent chat.
    name: Agent Commands
  - description: Link skills to an agent.
    name: Agent Skills
  - description: Read/rename/delete workspace knowledge sources.
    name: Knowledge Sources
  - description: Link knowledge sources to an agent.
    name: Agent Knowledge Sources
  - description: Workspace CRUD for HTTP/DB/Custom tools.
    name: HTTP Tools
  - description: Read/write the agent's model selection + capabilities.
    name: Agent Model
  - description: Discover trigger types available for Native MCP toolkits.
    name: Native MCP Triggers
  - description: Discover and toggle capability features.
    name: Agent Features
  - description: Hub access settings.
    name: Hub Access
  - description: Read conversation history and delete conversations.
    name: Conversations
  - description: Send messages to a published agent.
    name: Messages
  - description: Workspace CRUD for External MCP servers.
    name: External MCPs
  - description: Hub billing — plans, coupons, credit packages.
    name: Billing
  - description: External links shown in the hub menu.
    name: Hub External Links
  - description: Link Native MCP (Composio) instances to an agent.
    name: Agent Native MCPs
  - description: Manage AI agents in the workspace bound to the API key.
    name: Agents
  - description: Read published version snapshots and restore.
    name: Agent Versions
  - description: Read/rename/delete workspace skills.
    name: Skills
  - description: Manage hub end-customers (client workspaces).
    name: Clients
  - description: Hub domain (subdomain) management.
    name: Hub Domain
  - description: Read/write the agent's prompt context.
    name: Agent Prompt
  - description: Scheduled / trigger-based runs of an agent.
    name: Agent Automations
  - description: Link HTTP/DB/Custom tools to an agent.
    name: Agent HTTP Tools
  - description: Hub identity, branding, logos and overall configuration.
    name: Hub
  - description: Discover AI models available to this workspace.
    name: AI Models
  - description: Discover channel types and their config schemas.
    name: Channel Types
  - description: Connect agents to messaging surfaces.
    name: Agent Channels
  - description: Link workspace-registered External MCP servers to an agent.
    name: Agent External MCPs
  - description: Workspace-scoped public API (API key authentication)
    name: Public API
  - description: Dynamic-prompt variable definitions.
    name: Agent Variables
  - description: Link sub-agents as delegation targets.
    name: Agent Sub-agents
paths:
  /public/api/v1/skills:
    post:
      tags:
        - Skills
      summary: Upload a skill (multipart ZIP/.skill/.md)
      description: >-
        Accepts the same shape as Studio web: a single `file` part containing a
        ZIP archive, .skill bundle, or a standalone SKILL.md. Frontmatter
        (`name`, `description`, `license`, `compatibility`, `metadata`,
        `allowed-tools`) is parsed from SKILL.md and persisted alongside
        per-file content. Max 10MB.
      operationId: uploadSkill
      requestBody:
        content:
          multipart/form-data:
            schema:
              properties:
                file:
                  description: Skill bundle (.zip, .skill, or single .md file)
                  format: binary
                  type: string
              required:
                - file
              type: object
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicSkillDetailsDTO'
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicSkillDetailsDTO'
          description: INVALID_SKILL_ZIP / file too large
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicSkillDetailsDTO'
          description: Missing or invalid API key
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicSkillDetailsDTO'
          description: SKILL_NAME_TAKEN
      security:
        - workspaceApiKey: []
components:
  schemas:
    PublicSkillDetailsDTO:
      description: Workspace-uploaded skill. Content is immutable post-upload.
      properties:
        allowedTools:
          type: string
        compatibility:
          type: string
        createdAt:
          format: date-time
          type: string
        description:
          type: string
        files:
          items:
            $ref: '#/components/schemas/FileEntry'
          type: array
        license:
          type: string
        metadata:
          additionalProperties:
            type: object
          type: object
        name:
          type: string
        publicId:
          format: uuid
          type: string
        updatedAt:
          format: date-time
          type: string
      type: object
    FileEntry:
      properties:
        binary:
          type: boolean
        path:
          type: string
        sizeBytes:
          format: int64
          type: integer
      type: object
  securitySchemes:
    workspaceApiKey:
      in: header
      name: X-Api-Key
      type: apiKey

````