GET /v1/files/:id
Retrieve metadata for a specific file.Authentication
Requires provider authentication headers:Request
Headers
The provider to route the request to (e.g.,
openai, azure-openai)Bearer token for the provider API
Path Parameters
The ID of the file to retrieve
Response
The file identifier
The object type, always “file”
The size of the file in bytes
Unix timestamp of when the file was created
The name of the file
The purpose of the file
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