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

# Get File

> Get one of your uploaded files.

Answers 404 when the file does not exist, is not yours, has expired or was deleted.



## OpenAPI

````yaml https://api.edenai.run/v3/docs/openapi.json get /v3/upload/{file_id}
openapi: 3.1.0
info:
  title: Eden AI API V3
  version: 3.0.0
servers:
  - url: https://api.edenai.run
    description: Production server
security: []
paths:
  /v3/upload/{file_id}:
    get:
      tags:
        - files management
      summary: Get File
      description: >-
        Get one of your uploaded files.


        Answers 404 when the file does not exist, is not yours, has expired or
        was deleted.
      operationId: get_file_v3_upload__file_id__get
      parameters:
        - name: file_id
          in: path
          required: true
          schema:
            type: string
            examples:
              - file-eden-kuhiiahctna5jjywirtfkraaaa
            title: File Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - AuthBearer: []
components:
  schemas:
    FileResponse:
      properties:
        file_id:
          type: string
          title: File Id
          description: The file's id, to pass wherever an API call takes a file
          examples:
            - file-eden-kuhiiahctna5jjywirtfkraaaa
        file_name:
          type: string
          title: File Name
          description: >-
            File name as uploaded, made safe to save on any system: no folder
            path or leading dot, characters not allowed in file names replaced
            with `_`, and cut to 255 bytes, keeping an extension of up to 16
            characters. A name left empty becomes `upload`.
        file_size:
          type: integer
          title: File Size
          description: File size in bytes
        file_mimetype:
          type: string
          title: File Mimetype
          description: Detected MIME type
        purpose:
          type: string
          title: Purpose
          description: Purpose of the file (e.g., 'general', 'assistants')
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
          description: File metadata (e.g., page_count for PDFs/documents)
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Upload timestamp
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
          description: Expiration timestamp
      type: object
      required:
        - file_id
        - file_name
        - file_size
        - file_mimetype
        - purpose
        - created_at
      title: FileResponse
      description: Response for a file.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    AuthBearer:
      type: http
      scheme: bearer

````

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