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

# Copy a skill

> Copies a skill (a Statisfy one, or the workspace's own) into a new workspace skill with its files. The copy has no earlier versions, and changing the original never changes it. Every change goes live at once: there is no draft. A change to a skill an agent uses (`used_by`) needs 'skills:publish' as well. A Statisfy skill, and a skill with tools of its own (`has_tools`), can only be turned on or off here. A digital worker's own key can't write.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/skills/{key}/clone
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/skills/{key}/clone:
    post:
      tags:
        - skills
      summary: Copy a skill
      description: >-
        Copies a skill (a Statisfy one, or the workspace's own) into a new
        workspace skill with its files. The copy has no earlier versions, and
        changing the original never changes it. Every change goes live at once:
        there is no draft. A change to a skill an agent uses (`used_by`) needs
        'skills:publish' as well. A Statisfy skill, and a skill with tools of
        its own (`has_tools`), can only be turned on or off here. A digital
        worker's own key can't write.
      operationId: skills_clone
      parameters:
        - description: The skill's key, from GET /v1/skills
          in: path
          name: key
          required: true
          schema:
            maxLength: 64
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                name:
                  default: null
                  description: The copy's name; the source's when left out
                  maxLength: 255
                  minLength: 1
                  title: Name
                  type: string
              type: object
        required: false
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Skill'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Skill:
      properties:
        description:
          description: What an agent reads every turn to decide when to use it
          title: Description
          type: string
        enabled:
          description: Whether agents in this workspace load it
          title: Enabled
          type: boolean
        key:
          description: 'Fixed when the skill is made: the name agents call it by'
          title: Key
          type: string
        name:
          title: Name
          type: string
        source:
          description: >-
            statisfy (shipped by Statisfy: read-only, but each workspace can
            turn it off) or workspace (this workspace's own)
          enum:
            - statisfy
            - workspace
          title: Source
          type: string
        status:
          description: >-
            The skill's own state. A Statisfy skill turned off by this workspace
            stays enabled here: see `enabled`
          enum:
            - enabled
            - disabled
            - archived
          title: Status
          type: string
        used_by:
          anyOf:
            - items:
                $ref: '#/components/schemas/SkillAgent'
              type: array
            - type: 'null'
          description: >-
            Every agent it is set on (archived agents left out). Changing a
            skill in use needs 'skills:publish'. Null when a change saved but
            its agents could not be read: read the skill again
          title: Used By
        version:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The live version, what a change or POST /v1/skills/{key}/live sends
            back as `expected_version`. Null when storage could not be read
          title: Version
      required:
        - key
        - name
        - description
        - source
        - status
        - enabled
        - version
        - used_by
      title: Skill
      type: object
    SkillAgent:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The agent's id (a digital worker's, from GET /v1/digital_workers);
            null for Stella
          title: Id
        name:
          title: Name
          type: string
        type:
          description: >-
            stella; workbench (the workspace's workbench agent); digital_worker;
            or custom_agent (an Agent Studio agent)
          enum:
            - stella
            - workbench
            - digital_worker
            - custom_agent
          title: Type
          type: string
      required:
        - type
        - id
        - name
      title: SkillAgent
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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