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

# Get Skill Collection

Fetch a skill collection by UUID, collection name, or root path.

## Behavior Notes

* Use `format=zip` to download the selected version as a ZIP archive.
* Omit `format` to receive the JSON payload shown in the generated response schema.
* Use `version` or `label` to pin the response to a specific saved version.

## Related

* [List Skill Collections](/reference/list-skill-collections)
* [Skill Collections Overview](/features/skill-collections/overview)
* [Pulling Skills](/features/skill-collections/pulling-skills)


## OpenAPI

````yaml GET /api/public/v2/skill-collections/{identifier}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/public/v2/skill-collections/{identifier}:
    get:
      tags:
        - skill-collections
      summary: Get Skill Collection
      operationId: getSkillCollectionPublic
      parameters:
        - name: identifier
          in: path
          required: true
          schema:
            type: string
          description: Skill collection UUID, name, or root_path.
          example: customer-support-skills
        - name: format
          in: query
          required: false
          schema:
            type: string
            enum:
              - zip
          description: Omit this parameter for JSON, or use `zip` for an archive download.
          example: json
        - name: label
          in: query
          required: false
          schema:
            type: string
          description: >-
            Fetch a version pinned by release label. Mutually exclusive with
            `version`.
          example: production
        - name: version
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
          description: Fetch a specific version number. Mutually exclusive with `label`.
          example: 2
      responses:
        '200':
          description: JSON payload or ZIP archive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSkillCollectionResponse'
              examples:
                json:
                  summary: Skill collection JSON
                  value:
                    success: true
                    skill_collection:
                      id: 5e1a2f7b-9c4d-4a8f-85c2-9d91d2bf6c6f
                      name: customer-support-skills
                      root_path: /support
                    files:
                      - path: skills/refund-policy.md
                        content: Refund policy guidance...
                    version:
                      number: 2
                      label: production
            application/zip:
              schema:
                type: string
                format: binary
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillCollectionErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    GetSkillCollectionResponse:
      type: object
      required:
        - success
        - skill_collection
        - files
        - version
      properties:
        success:
          type: boolean
          enum:
            - true
        skill_collection:
          $ref: '#/components/schemas/SkillCollection'
        files:
          type: object
          additionalProperties:
            type: string
        version:
          oneOf:
            - $ref: '#/components/schemas/SkillCollectionVersion'
            - type: 'null'
    SkillCollectionErrorResponse:
      type: object
      description: Error response format returned by the public skill collection endpoints.
      properties:
        success:
          type: boolean
          enum:
            - false
          description: Indicates that the request failed.
        message:
          type: string
          description: Error message explaining why the request failed.
      required:
        - success
        - message
    SkillCollection:
      type: object
      description: A skill collection container in the public API.
      properties:
        id:
          type: string
          format: uuid
        workspace_id:
          type: integer
        folder_id:
          type: integer
          nullable: true
        root_path:
          type: string
        name:
          type: string
        provider:
          type: string
          nullable: true
        is_deleted:
          type: boolean
        created_by:
          type: integer
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_by:
          type: integer
          nullable: true
        updated_at:
          type: string
          format: date-time
        external_ids:
          type: array
          items:
            $ref: '#/components/schemas/ExternalId'
          description: External ID mappings attached to this skill collection.
    SkillCollectionVersion:
      type: object
      description: A saved version of a skill collection.
      properties:
        id:
          type: string
          format: uuid
        skill_collection_id:
          type: string
          format: uuid
        workspace_id:
          type: integer
        number:
          type: integer
        root_path_at_version:
          type: string
        provider:
          type: string
          nullable: true
        file_paths:
          type: array
          items:
            type: string
        commit_message:
          type: string
          nullable: true
        release_label:
          type: string
          nullable: true
        archived:
          type: boolean
        created_by:
          type: integer
          nullable: true
        user_email:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          default: false
          description: Indicates that the request failed.
        message:
          type: string
          description: Human-readable error message.
        error:
          type: string
          description: Machine-readable or fallback error message.
      additionalProperties: true
      description: >-
        Standard error response. Some legacy endpoints may return either message
        or error.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExternalId:
      properties:
        source:
          type: string
          maxLength: 128
          minLength: 1
          title: Source
          description: The external system or namespace that owns the ID.
        external_id:
          type: string
          maxLength: 512
          minLength: 1
          title: External Id
          description: The identifier for this entity in the external system.
      type: object
      required:
        - source
        - external_id
      additionalProperties: false
      title: ExternalId
      description: >-
        Customer-defined mapping between a PromptLayer entity and an external
        system identifier.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  responses:
    UnauthorizedError:
      description: Unauthorized - missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ForbiddenError:
      description: Forbidden - API key does not have access to the requested resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundError:
      description: Not found - requested resource does not exist or is not accessible.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ValidationError:
      description: Validation error - request parameters or body are invalid.
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/HTTPValidationError'
              - $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````