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

# List who can open a file: its owner, team, link, and people access, plus access inherited from parent folders. Owner or workspace admin only.

> **Beta** — this endpoint may change before general availability.



## OpenAPI

````yaml /api-reference/openapi.json get /files/{fileId}/sharing
openapi: 3.1.0
info:
  title: Replo Public API
  version: '2026-10-29'
servers:
  - url: https://api.replo.app/v1
security: []
paths:
  /files/{fileId}/sharing:
    get:
      tags:
        - Files
      summary: >-
        List who can open a file: its owner, team, link, and people access, plus
        access inherited from parent folders. Owner or workspace admin only.
      description: '**Beta** — this endpoint may change before general availability.'
      operationId: files.getSharing
      parameters:
        - name: Replo-Api-Version
          in: header
          required: true
          schema:
            type: string
            enum:
              - '2026-10-29'
          description: The public API version to use for this request.
        - schema:
            type: string
            format: uuid
          required: true
          name: fileId
          in: path
      responses:
        '200':
          description: >-
            List who can open a file: its owner, team, link, and people access,
            plus access inherited from parent folders. Owner or workspace admin
            only.
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    enum:
                      - file_sharing
                  fileId:
                    type: string
                    format: uuid
                  owner:
                    type:
                      - object
                      - 'null'
                    properties:
                      email:
                        type:
                          - string
                          - 'null'
                      name:
                        type:
                          - string
                          - 'null'
                    required:
                      - email
                      - name
                  access:
                    type: array
                    items:
                      type: object
                      properties:
                        to:
                          type: string
                          description: '"team", "link", or a person''s email.'
                        role:
                          type: string
                          enum:
                            - viewer
                            - commenter
                            - editor
                          description: AgentFileRole
                      required:
                        - to
                        - role
                  inherited:
                    type: array
                    items:
                      type: object
                      properties:
                        to:
                          type: string
                          description: '"team", "link", or a person''s email.'
                        role:
                          type: string
                          enum:
                            - owner
                            - editor
                            - commenter
                            - viewer
                          description: AgentFileAccessRole
                        folderName:
                          type:
                            - string
                            - 'null'
                          description: Null when the caller cannot open that folder.
                      required:
                        - to
                        - role
                        - folderName
                    description: >-
                      Access granted on a parent folder. Change it on that
                      folder, not here.
                  artifactUrl:
                    type:
                      - string
                      - 'null'
                    format: uri
                    description: The viewer link for an artifact; null for other files.
                required:
                  - object
                  - fileId
                  - owner
                  - access
                  - inherited
                  - artifactUrl
                additionalProperties: false
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '401':
          description: Missing or invalid Replo Public API token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '403':
          description: You are not authorized to access this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '409':
          description: The resource is in a conflicting state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '413':
          description: File content exceeds the 10 MiB limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '429':
          description: >-
            Too many requests. Please retry after the time indicated by the
            Retry-After header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '500':
          description: An internal error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
        '503':
          description: Service temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
      security:
        - bearerAuth: []
components:
  schemas:
    PublicApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            doc_url:
              type: string
          required:
            - code
            - message
            - doc_url
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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