---
updatedAt: 2026-05-06T12:58:01.000Z
agentTools:
  projectIndex: https://docs.audiostack.ai/llms.txt
---

# Get File

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Audiostack API",
    "description": "Documentation for the Audiostack API - the infrastructure for audio",
    "version": "v2",
    "termsOfService": "https://audiostack.ai/en/legal/terms-of-service",
    "contact": {
      "email": "support@audiostack.ai"
    }
  },
  "servers": [
    {
      "url": "https://v2.api.audio",
      "description": "Production server"
    },
    {
      "url": "https://staging-v2.api.audio",
      "description": "Staging server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/files/{fileId}": {
      "get": {
        "tags": [
          "Files"
        ],
        "summary": "Get File",
        "operationId": "get_file_files__fileId__get",
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "File Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileResponseV2"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "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"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "AccessControl": {
        "type": "string",
        "enum": [
          "public",
          "private"
        ],
        "title": "AccessControl"
      },
      "FileCategoryResponse": {
        "properties": {
          "fileCategoryId": {
            "type": "string",
            "format": "uuid",
            "title": "Filecategoryid"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "fileCategoryId",
          "name"
        ],
        "title": "FileCategoryResponse"
      },
      "FileResponseV2": {
        "properties": {
          "fileId": {
            "type": "string",
            "format": "uuid",
            "title": "Fileid"
          },
          "fileName": {
            "type": "string",
            "title": "Filename"
          },
          "folderId": {
            "type": "string",
            "format": "uuid",
            "title": "Folderid"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "createdBy": {
            "type": "string",
            "title": "Createdby"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "updatedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedby"
          },
          "fileType": {
            "$ref": "#/components/schemas/FileTypeResponse"
          },
          "fileCategory": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FileCategoryResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "title": "Createdat"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "accessControl": {
            "$ref": "#/components/schemas/AccessControl"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration"
          }
        },
        "type": "object",
        "required": [
          "fileId",
          "fileName",
          "folderId",
          "createdBy",
          "fileType",
          "size",
          "createdAt",
          "status",
          "accessControl"
        ],
        "title": "FileResponseV2"
      },
      "FileTypeResponse": {
        "properties": {
          "fileTypeId": {
            "type": "string",
            "format": "uuid",
            "title": "Filetypeid"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "fileTypeId",
          "name"
        ],
        "title": "FileTypeResponse"
      }
    }
  }
}
```