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

# Get File

> Retrieve metadata for a file by its ID.



## OpenAPI

````yaml openapi/files.json GET /v1/files/{file_id}
openapi: 3.0.3
info:
  title: Files API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/files/{file_id}:
    get:
      summary: Get File Metadata by ID
      description: Retrieve metadata for a file by its ID.
      parameters:
        - name: file_id
          in: path
          required: true
          description: Unique identifier for the file to retrieve.
          schema:
            type: string
      responses:
        '200':
          description: Successful response with file metadata.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: File ID
                  object:
                    type: string
                    description: The kind of object. "file" for this endpoint.
                  created:
                    type: integer
                    description: Created epoch timestamp
                  filename:
                    type: string
                    description: The filename of the uploaded file
                  bytes:
                    type: integer
                    description: File size in bytes
                  purpose:
                    type: string
                    description: The purpose of the file
                  status:
                    type: string
                    description: File status (e.g., 'pending', 'completed')
        '401':
          description: Invalid API key
        '404':
          description: File not found
        '500':
          description: Internal server error
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form Bearer <token>, where <token>
        is your auth token.

````