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

# Upload Skill Package

> Upload a skill package file to R2 storage.

Only the skill author can upload packages. Max 10 MB.
When version is specified, uploads to the version-specific storage key.



## OpenAPI

````yaml /openapi.json post /v1/skills/{slug}/upload
openapi: 3.1.0
info:
  title: AgentPowers API
  description: Paid marketplace for Claude Code skills and agents
  version: 0.1.0
servers:
  - url: https://api.agentpowers.ai
    description: Production
security: []
paths:
  /v1/skills/{slug}/upload:
    post:
      tags:
        - skills
      summary: Upload Skill Package
      description: |-
        Upload a skill package file to R2 storage.

        Only the skill author can upload packages. Max 10 MB.
        When version is specified, uploads to the version-specific storage key.
      operationId: upload_skill_package_v1_skills__slug__upload_post
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            title: Slug
        - name: version
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Version
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_skill_package_v1_skills__slug__upload_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillUploadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    Body_upload_skill_package_v1_skills__slug__upload_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
      type: object
      required:
        - file
      title: Body_upload_skill_package_v1_skills__slug__upload_post
    SkillUploadResponse:
      properties:
        slug:
          type: string
          title: Slug
        storage_key:
          type: string
          title: Storage Key
        message:
          type: string
          title: Message
          default: Package uploaded
      type: object
      required:
        - slug
        - storage_key
      title: SkillUploadResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Provide a Clerk JWT or a long-lived CLI token (prefix `ap_cli_`).  Pass
        as `Authorization: Bearer <token>`.

````