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

# A baseline row's documents

> The row's own documents and its spec item's docs-column files (live, read-only; docs columns the role can't see left out). Needs `baseline_items_view`.



## OpenAPI

````yaml /openapi.yaml get /projects/{project_id}/packages/{package_id}/baseline_items/{baseline_item_id}/documents
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /projects/{project_id}/packages/{package_id}/baseline_items/{baseline_item_id}/documents:
    get:
      tags:
        - BaselineItemAttachment
      summary: A baseline row's documents
      description: >-
        The row's own documents and its spec item's docs-column files (live,
        read-only; docs columns the role can't see left out). Needs
        `baseline_items_view`.
      operationId: baseline_item_attachments#documents
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: integer
        - name: package_id
          in: path
          required: true
          schema:
            type: integer
        - name: baseline_item_id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/baseline_item_documents'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    baseline_item_documents:
      type: object
      description: >-
        A baseline row's documents — its own files and its spec item's
        docs-column files.
      properties:
        attachments:
          type: array
          description: >-
            The row's own files, newest first. Changed through
            `baseline_items/:id/attachments`.
          items:
            $ref: '#/components/schemas/attachment'
        project_item_documents:
          type: array
          description: >-
            The spec item's docs-column files, live and read-only; empty when
            the row has no spec item.
          items:
            $ref: '#/components/schemas/project_item_document_group'
      required:
        - attachments
        - project_item_documents
    attachment:
      type: object
      description: >-
        A file attached to a procurement document (purchase order, supplier
        invoice, goods receipt or inspection), a project or a baseline row.
      properties:
        id:
          type: integer
        filename:
          type: string
          description: The name the file was uploaded with.
        content_type:
          type: string
          example: application/pdf
        byte_size:
          type: integer
        url:
          type: string
          description: >-
            Download URL. On private storage a signed URL that serves the file
            inline under its filename.
        created_by_id:
          type: integer
          nullable: true
        created_at:
          type: string
          format: date-time
        deleted_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            When it was removed from its document. Documents list only files
            that are not removed; a purchase order revision lists the files it
            had, removed ones included (their `url` still works).
      required:
        - id
        - filename
        - content_type
        - byte_size
        - url
        - created_at
    project_item_document_group:
      type: object
      description: >-
        The files of one docs column of a spec (project) item, read live and
        read-only. Docs columns the role can't see are left out.
      properties:
        column_slug:
          type: string
        column_name:
          type: string
        files:
          type: array
          items:
            $ref: '#/components/schemas/item_file_document'
      required:
        - column_slug
        - column_name
        - files
    item_file_document:
      type: object
      description: >-
        A file in a docs column, as the column's value and in a baseline row's
        spec item documents.
      properties:
        id:
          type: integer
          description: Item file id.
        name:
          type: string
        url:
          type: string
        content_type:
          type: string
          description: Derived from the file name.
      required:
        - id
        - name
        - url
        - content_type
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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