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

# Worksite documents list



## OpenAPI

````yaml /api-reference/partners/api.json get /v1/worksites/{id}/documents
openapi: 3.1.0
info:
  title: Laravel
  version: 0.0.1
servers:
  - url: https://api.opx.co/partners
    description: Production
security: []
paths:
  /v1/worksites/{id}/documents:
    get:
      tags:
        - WorksitesDocuments
      summary: Worksite documents list
      operationId: partners.worksites.documents.index
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: '`WorksiteDocumentCollection`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorksiteDocumentCollection'
components:
  schemas:
    WorksiteDocumentCollection:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/WorksiteDocumentResource'
      required:
        - data
      title: WorksiteDocumentCollection
    WorksiteDocumentResource:
      type: object
      properties:
        id:
          type: integer
        worksite_operation_id:
          type:
            - integer
            - 'null'
          description: null if directly attached to a worksite
        type_id:
          type: string
        type:
          type: string
          description: AH, CC, Photo, ...
        file_name:
          type: string
        url:
          type:
            - string
            - 'null'
        status_id:
          type: string
        status:
          type: string
        notes:
          type: string
        non_compliance:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
              minItems: 0
              maxItems: 0
              additionalItems: false
        required:
          type: string
        created_at:
          type: string
      required:
        - id
        - worksite_operation_id
        - type_id
        - type
        - file_name
        - url
        - status_id
        - status
        - notes
        - non_compliance
        - required
        - created_at
      title: WorksiteDocumentResource

````