GET /v1/files/:id
Retrieve metadata for a specific file.Authentication
Requires provider authentication headers:Request
Headers
string
required
The provider to route the request to (e.g.,
openai, azure-openai)string
required
Bearer token for the provider API
Path Parameters
string
required
The ID of the file to retrieve
Response
string
The file identifier
string
The object type, always “file”
integer
The size of the file in bytes
integer
Unix timestamp of when the file was created
string
The name of the file
string
The purpose of the file
string
The status of the file (e.g., “uploaded”, “processed”, “error”)
Example
Response Example
File Content
To retrieve the actual file content, use:Related Endpoints
Upload File
Upload a new file
List Files
View all uploaded files
Delete File
Delete an uploaded file