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

# Import selected team skills

> Imports 1–100 selected SKILL.md paths from the immutable commit returned by scan. Re-importing the same repository path refreshes its metadata while preserving its skill ID.



## OpenAPI

````yaml /openapi/v1.json post /teams/{teamSlug}/skills/import
openapi: 3.1.0
info:
  title: Felan API
  description: >-
    Team-scoped access to Felan sessions, integrations, environments,
    environment variables, automations, skills, custom subagents, and inbound
    events.
  version: 1.0.0
  contact:
    name: Felan Support
    url: https://felan.ai
servers:
  - url: https://app.felan.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Teams
  - name: Integrations
  - name: Environments
  - name: Environment Variables
  - name: Automations
  - name: Skills
  - name: Subagents
  - name: Sessions
  - name: Events
  - name: OpenAPI
paths:
  /teams/{teamSlug}/skills/import:
    post:
      tags:
        - Skills
      summary: Import selected team skills
      description: >-
        Imports 1–100 selected SKILL.md paths from the immutable commit returned
        by scan. Re-importing the same repository path refreshes its metadata
        while preserving its skill ID.
      operationId: importTeamSkills
      parameters:
        - $ref: '#/components/parameters/TeamSlug'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamSkillImportInput'
      responses:
        '201':
          description: Imported skill metadata
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/TeamSkill'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '502':
          $ref: '#/components/responses/SkillSourceUnavailable'
components:
  parameters:
    TeamSlug:
      name: teamSlug
      in: path
      required: true
      description: Felan team slug shown in dashboard URLs and Team Settings
      schema:
        type: string
        minLength: 1
  schemas:
    TeamSkillImportInput:
      type: object
      additionalProperties: false
      required:
        - repository
        - ref
        - commit
        - paths
      properties:
        repository:
          type: string
          description: Repository returned by scan, or its public GitHub URL.
          example: felan-ai/skills
        ref:
          type: string
          example: main
        commit:
          type: string
          pattern: ^[0-9a-f]{40}$
          example: 0123456789abcdef0123456789abcdef01234567
        paths:
          type: array
          minItems: 1
          maxItems: 100
          uniqueItems: true
          items:
            type: string
            pattern: (^|/)SKILL\.md$
          example:
            - release/SKILL.md
    TeamSkill:
      type: object
      additionalProperties: false
      required:
        - id
        - provider
        - repository
        - ref
        - path
        - name
        - description
        - sourceCommit
      properties:
        id:
          type: string
          format: uuid
          example: d82ec81c-6a15-4b7c-a349-bfab277b4623
        provider:
          type: string
          const: github
        repository:
          type: string
          example: felan-ai/skills
        ref:
          type: string
          example: main
        path:
          type: string
          example: release/SKILL.md
        name:
          type: string
          maxLength: 100
          example: release
        description:
          type: string
          maxLength: 1024
          example: Prepare and verify a release.
        sourceCommit:
          type: string
          pattern: ^[0-9a-f]{40}$
          example: 0123456789abcdef0123456789abcdef01234567
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              examples:
                - VALIDATION_ERROR
                - UNAUTHORIZED
                - NOT_FOUND
                - SKILL_SOURCE_UNAVAILABLE
                - EXECUTION_DENIED
                - CONFLICT
                - RATE_LIMITED
                - SESSION_START_FAILED
                - SESSION_PUBLISH_FAILED
                - MESSAGE_PUBLISH_FAILED
                - INTERNAL_ERROR
            message:
              type: string
  responses:
    ValidationError:
      description: The request body or source reference is invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: VALIDATION_ERROR
              message: Invalid subagent fields
    Unauthorized:
      description: Missing or invalid team API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource missing or outside the authenticated team
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Team API key rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: The server could not complete the request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    SkillSourceUnavailable:
      description: The public GitHub skill source could not be read
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: SKILL_SOURCE_UNAVAILABLE
              message: The public GitHub skill source is unavailable
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Team API key. Current keys retain the bzy_team_ compatibility prefix.

````