Skip to content

Files

Upload File
FileCreateResponse Files.Create(FileCreateParamsparameters, CancellationTokencancellationToken = default)
POST/api/v1/beta/files
Query Files
Deprecated
FileQueryResponse Files.Query(FileQueryParams?parameters, CancellationTokencancellationToken = default)
POST/api/v1/beta/files/query
List Files
FileListPageResponse Files.List(FileListParams?parameters, CancellationTokencancellationToken = default)
GET/api/v1/beta/files
Delete File
Files.Delete(FileDeleteParamsparameters, CancellationTokencancellationToken = default)
DELETE/api/v1/beta/files/{file_id}
Read File Content
PresignedUrl Files.Get(FileGetParamsparameters, CancellationTokencancellationToken = default)
GET/api/v1/beta/files/{file_id}/content
ModelsExpand Collapse
class File:

Schema for a file.

required string ID

Unique identifier

formatuuid
required string Name
required string ProjectID

The ID of the project that the file belongs to

formatuuid
DateTimeOffset? CreatedAt

Creation datetime

formatdate-time
string? DataSourceID

The ID of the data source that the file belongs to

formatuuid
DateTimeOffset? ExpiresAt

The expiration date for the file. Files past this date can be deleted.

formatdate-time
string? ExternalFileID

The ID of the file in the external system

Long? FileSize

Size of the file in bytes

minimum0
string? FileType

File type (e.g. pdf, docx, etc.)

maxLength3000
minLength1
DateTimeOffset? LastModifiedAt

The last modified time of the file

formatdate-time
IReadOnlyDictionary<string, PermissionInfo?>? PermissionInfo

Permission information for the file

One of the following:
IReadOnlyDictionary<string, JsonElement>
IReadOnlyList<JsonElement>
string
Double
Boolean
string? Purpose

The intended purpose of the file (e.g., ‘user_data’, ‘parse’, ‘extract’, ‘split’, ‘classify’)

IReadOnlyDictionary<string, ResourceInfo?>? ResourceInfo

Resource information for the file

One of the following:
IReadOnlyDictionary<string, JsonElement>
IReadOnlyList<JsonElement>
string
Double
Boolean
DateTimeOffset? UpdatedAt

Update datetime

formatdate-time
class PresignedUrl:

Schema for a presigned URL.

required DateTimeOffset ExpiresAt

The time at which the presigned URL expires

formatdate-time
required string Url

A presigned URL for IO operations against a private file

formaturi
minLength1
IReadOnlyDictionary<string, string>? FormFields

Form fields for a presigned POST request

Note for AI agents: this documentation is built for programmatic access. - Overview of all docs: https://developers.llamaindex.ai/llms.txt - Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md - Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters. - A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/for-agents/mcp/ - Other LlamaIndex tooling for agents — the LlamaParse Platform MCP server, agent skills and plugins, and the n8n node — is mapped at https://developers.llamaindex.ai/for-agents/